
    :root {
      --ink: #fffafc;
      --muted: #bcb4c9;
      --purple: #8c4dff;
      --pink: #ff3d9a;
      --cyan: #21e6ff;
      --yellow: #ffe452;
      --panel: rgba(22, 15, 37, .88);
      --line: rgba(255, 255, 255, .13);
      font-family: Inter, ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color-scheme: dark;
    }

    * { box-sizing: border-box; }

    html { min-height: 100%; background: #090611; }

    body {
      min-height: 100vh;
      min-height: 100svh;
      margin: 0;
      color: var(--ink);
      overflow-x: hidden;
      background:
        radial-gradient(circle at 12% 0%, rgba(255, 61, 154, .24), transparent 30rem),
        radial-gradient(circle at 92% 12%, rgba(33, 230, 255, .18), transparent 28rem),
        linear-gradient(155deg, #090611 0%, #10091c 50%, #08060d 100%);
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: .18;
      background-image: repeating-linear-gradient(90deg, transparent 0 56px, rgba(255,255,255,.045) 57px 58px);
      mask-image: linear-gradient(to bottom, #000, transparent 70%);
    }

    button, input { font: inherit; }

    button { touch-action: manipulation; }

    .app {
      width: min(100%, 500px);
      min-height: 100svh;
      margin: 0 auto;
      padding: max(22px, env(safe-area-inset-top)) 18px max(26px, env(safe-area-inset-bottom));
      display: grid;
      grid-template-rows: auto 1fr auto;
      gap: 20px;
    }

    .brand {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .wordmark {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-weight: 1000;
      font-size: clamp(1.7rem, 8vw, 2.35rem);
      letter-spacing: -.075em;
      line-height: .9;
      transform: rotate(-2deg);
      text-shadow: 3px 3px 0 rgba(140, 77, 255, .85), -2px -2px 0 rgba(33, 230, 255, .55);
    }

    .note {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: #090611;
      background: var(--yellow);
      box-shadow: 4px 4px 0 var(--pink);
      font-size: 1.35rem;
      transform: rotate(8deg);
    }

    .beta {
      padding: 7px 10px;
      border: 1px solid rgba(255,255,255,.2);
      border-radius: 999px;
      color: var(--muted);
      font-size: .75rem;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
      white-space: nowrap;
      background: rgba(255,255,255,.05);
    }

    .panel {
      align-self: center;
      position: relative;
      overflow: hidden;
      padding: clamp(24px, 7vw, 36px);
      border: 1px solid var(--line);
      border-radius: 30px;
      background: var(--panel);
      box-shadow: 0 25px 80px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.08);
      backdrop-filter: blur(18px);
    }

    .panel::after {
      content: "";
      position: absolute;
      width: 190px;
      height: 190px;
      right: -90px;
      bottom: -115px;
      border-radius: 50%;
      background: var(--pink);
      opacity: .18;
      filter: blur(3px);
      pointer-events: none;
    }

    .screen { display: none; position: relative; z-index: 1; }
    .screen.active { display: block; animation: enter .32s ease both; }

    @keyframes enter {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    h1, h2, p { margin-top: 0; }

    h1, h2 {
      margin-bottom: 10px;
      font-size: clamp(1.65rem, 7vw, 2.35rem);
      line-height: 1.06;
      letter-spacing: -.045em;
    }

    .lead {
      color: var(--muted);
      margin-bottom: 24px;
      line-height: 1.5;
      font-size: 1rem;
    }

    .field-label {
      display: block;
      margin-bottom: 10px;
      color: var(--ink);
      font-size: .86rem;
      font-weight: 850;
      letter-spacing: .04em;
      text-align: center;
      text-transform: uppercase;
    }

    .code-input {
      width: 100%;
      height: 76px;
      padding: 0 14px;
      border: 2px solid rgba(255,255,255,.22);
      border-radius: 19px;
      outline: none;
      color: var(--ink);
      background: rgba(4, 2, 10, .7);
      font-size: clamp(2rem, 10vw, 2.75rem);
      font-weight: 950;
      letter-spacing: .18em;
      text-align: center;
      font-variant-numeric: tabular-nums;
      transition: border-color .2s, box-shadow .2s;
    }

    .code-input:focus {
      border-color: var(--cyan);
      box-shadow: 0 0 0 5px rgba(33,230,255,.12);
    }

    .code-input.invalid {
      border-color: #ff668b;
      animation: shake .25s linear;
    }

    @keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

    .error {
      min-height: 24px;
      margin: 9px 0 7px;
      color: #ff9cb6;
      font-size: .9rem;
      text-align: center;
    }

    .primary, .secondary {
      width: 100%;
      min-height: 58px;
      border: 0;
      border-radius: 17px;
      cursor: pointer;
      font-weight: 950;
      transition: transform .12s ease, filter .2s ease, opacity .2s ease;
    }

    .primary {
      color: #090611;
      background: linear-gradient(100deg, var(--yellow), #ffbe3f);
      box-shadow: 0 9px 0 #9b5515, 0 17px 30px rgba(255,196,63,.14);
    }

    .primary:active { transform: translateY(5px); box-shadow: 0 4px 0 #9b5515; }
    .primary:disabled { cursor: wait; opacity: .48; filter: grayscale(.4); }

    .secondary {
      margin-top: 12px;
      border: 1px solid rgba(255,255,255,.18);
      color: var(--ink);
      background: rgba(255,255,255,.07);
    }

    .secondary:active { transform: scale(.985); }

    .cassette-wrap {
      display: grid;
      place-items: center;
      min-height: 170px;
      margin: 8px 0 22px;
      perspective: 700px;
    }

    .cassette {
      width: min(100%, 290px);
      aspect-ratio: 1.58;
      position: relative;
      padding: 21px;
      border: 3px solid #161022;
      border-radius: 17px;
      color: #160b24;
      background: linear-gradient(145deg, #ffeb62, #ffbe3f);
      box-shadow: 0 16px 0 #9b5515, 0 27px 45px rgba(0,0,0,.32);
      transform: rotate(-3deg);
    }

    .playing .cassette { animation: float 2.4s ease-in-out infinite; }

    @keyframes float { 50% { transform: rotate(2deg) translateY(-7px); } }

    .tape-label {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 15px 17px;
      border: 2px solid rgba(22,11,36,.65);
      border-radius: 10px;
      background: rgba(255,255,255,.38);
    }

    .tape-top { display: flex; justify-content: space-between; font-size: .68rem; font-weight: 950; letter-spacing: .08em; }

    .reels {
      display: flex;
      align-items: center;
      justify-content: space-around;
      height: 55px;
      border: 3px solid #241634;
      border-radius: 26px;
      background: #f9efff;
    }

    .reel {
      width: 36px;
      height: 36px;
      border: 8px dotted #20132f;
      border-radius: 50%;
      background: var(--pink);
    }

    .playing .reel { animation: spin 1.2s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }

    .tape-bottom { text-align: center; font-size: .75rem; font-weight: 950; }

    .countdown {
      display: flex;
      align-items: baseline;
      justify-content: center;
      gap: 7px;
      margin-bottom: 7px;
      font-variant-numeric: tabular-nums;
    }

    .countdown strong { font-size: clamp(3.1rem, 17vw, 5.2rem); line-height: 1; letter-spacing: -.07em; }
    .countdown span { color: var(--muted); font-weight: 800; }

    .status-line {
      min-height: 24px;
      margin-bottom: 18px;
      color: var(--cyan);
      font-size: .92rem;
      font-weight: 800;
      text-align: center;
    }

    .answer {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px 14px;
      align-items: end;
      margin-bottom: 18px;
    }

    .answer small { color: var(--muted); font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
    .answer h2 { grid-column: 1; margin: 0; color: var(--yellow); }
    .year { grid-column: 2; grid-row: 1 / span 2; color: var(--cyan); font-size: 2.1rem; font-weight: 1000; letter-spacing: -.05em; }
    .artist { margin: 0 0 3px; color: var(--ink); font-size: 1.03rem; font-weight: 800; }

    .setup-count {
      display: grid;
      place-items: center;
      width: 96px;
      height: 96px;
      margin: 24px auto;
      border: 2px solid rgba(255,255,255,.15);
      border-radius: 50%;
      color: var(--yellow);
      background: rgba(255,228,82,.07);
      font-size: 3.8rem;
      font-weight: 1000;
    }

    details {
      position: relative;
      z-index: 1;
      color: var(--muted);
      font-size: .85rem;
    }

    summary { cursor: pointer; text-align: center; font-weight: 800; }

    .test-codes {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
      margin-top: 12px;
    }

    .test-code {
      padding: 7px 10px;
      border: 1px solid var(--line);
      border-radius: 9px;
      color: var(--ink);
      background: rgba(255,255,255,.05);
      font-weight: 850;
      font-variant-numeric: tabular-nums;
      letter-spacing: .08em;
    }

    .tiny { margin: 14px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.45; text-align: center; }

    @media (min-width: 700px) {
      .app { padding-top: 34px; padding-bottom: 34px; }
      .panel { border-radius: 34px; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
    }
  
