* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #c8102e;
}

body {
  background:
    radial-gradient(circle at 30% 20%, #d61b3a 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, #a80d24 0%, transparent 50%),
    #c8102e;
}

/* ─── Stage & Bears ──────────────────────────── */
#stage { position: fixed; inset: 0; overflow: hidden; }

.bear {
  position: absolute;
  width: 14px;
  height: 16px;
  pointer-events: none;
  will-change: transform, left, top, opacity;
}

/* ─── Draggable Tool Objects ─────────────────── */
.tool-obj {
  position: fixed;
  z-index: 200;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.55));
  transition: filter 0.2s, transform 0.18s;
}

.tool-obj:hover {
  filter: drop-shadow(0 10px 26px rgba(0,0,0,0.7)) brightness(1.1);
  transform: scale(1.05);
}

.tool-obj.dragging {
  cursor: grabbing;
  filter: drop-shadow(0 16px 36px rgba(0,0,0,0.8)) brightness(1.15);
  transform: scale(1.08) rotate(-2.5deg);
  transition: none;
  z-index: 400;
}

/* ─── Tooltip Arrow ──────────────────────────── */
.tool-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 7px;
  pointer-events: none;
}

.tip-text {
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Courier New', monospace;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  white-space: nowrap;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 4px 11px;
}

/* Small downward-pointing triangle */
.tip-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid rgba(255, 255, 255, 0.72);
  margin-top: 5px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35));
}

/* ─── Tool Visuals ───────────────────────────── */
.tool-visual {
  pointer-events: none;
}

.tool-visual img {
  display: block;
  object-fit: contain;
  -webkit-user-drag: none;
}

/* Card SVG */
.card-svg {
  width: 168px;
  height: 108px;
  display: block;
}

/* Bill image */
#obj-bill .tool-visual img {
  width: 190px;
  height: 134px;
}

/* Gummy bag image */
#obj-bag .tool-visual img {
  width: 118px;
  height: 138px;
}

/* ─── Header ─────────────────────────────────── */
#header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 100;
  pointer-events: none;
}

#logo {
  width: 130px;
  height: 130px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

#brand {
  color: #fff;
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 255, 255, 0.2);
  pointer-events: none;
  margin-top: 2px;
}

#links {
  display: flex;
  gap: 12px;
  pointer-events: auto;
  margin-top: 4px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.link-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #c8102e;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.link-btn svg {
  width: 14px;
  height: 14px;
}

/* ─── Counter ────────────────────────────────── */
#counter {
  position: fixed;
  top: 30px;
  right: 30px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  z-index: 100;
  pointer-events: none;
}
