:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --ink: #f4f1ec;
  --accent: #ff6a3d;
  --accent-dark: #ff6a3d;
  --muted: #9b958c;
  --panel: #121212;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  --ring: 0 0 0 4px rgba(255, 106, 61, 0.3);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

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

body {
  background: radial-gradient(circle at top, #1c1c1c 0%, #0f0f0f 45%, #0b0b0b 100%);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  overscroll-behavior: none;
}

.app {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
}

.hero {
  display: grid;
  gap: 8px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--muted);
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
}

.lede {
  color: var(--muted);
  font-size: 1rem;
}

.sublede {
  color: var(--muted);
  font-size: 0.95rem;
}

.stage {
  position: relative;
  border-radius: 32px;
  background: var(--stage-choice, var(--panel));
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 48vh;
  touch-action: none;
  transition: background 200ms ease;
}

.stage-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(255, 255, 255, 0.05) 95%),
    linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.05) 95%);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
}

.reveal-mask {
  position: absolute;
  inset: 0;
  background: var(--panel);
  pointer-events: none;
  clip-path: circle(var(--reveal-radius, 0px) at var(--reveal-x, 50%) var(--reveal-y, 50%));
  transition: clip-path 1600ms ease-out, opacity 600ms ease-out;
  opacity: 0;
  z-index: 2;
}

.stage.is-revealing .reveal-mask {
  opacity: 1;
}

.chosen-spot {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.5) 38%,
    rgba(0, 0, 0, 0.25) 55%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
  z-index: 3;
}

.finger {
  position: absolute;
  width: 135px;
  height: 135px;
  border-radius: 999px;
  background: var(--finger-fill, rgba(255, 90, 47, 0.15));
  border: 2px solid var(--finger-border, rgba(255, 90, 47, 0.55));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--finger-text, var(--accent-dark));
  transform: translate(-50%, -50%);
  transition: transform 120ms ease, box-shadow 120ms ease;
  user-select: none;
  pointer-events: none;
  z-index: 4;
}

.finger::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, opacity 180ms ease;
  opacity: 0;
}

.finger.is-chosen {
  background: var(--finger-solid, var(--accent));
  color: #fff;
  box-shadow: 0 18px 42px rgba(21, 21, 20, 0.2);
  transform: translate(-50%, -50%) scale(1.08);
}

.finger.is-chosen::after {
  border-color: var(--finger-border, rgba(255, 90, 47, 0.9));
  transform: scale(1.25);
  opacity: 1;
}


@media (max-width: 700px) {
  .app {
    padding: 18px;
    gap: 18px;
  }

  .stage {
    min-height: 52vh;
  }

  .finger {
    width: 114px;
    height: 114px;
  }
}
