:root {
    --ink: #0d0d0f;
    --paper: #f6f1e7;
    --font: "Inter", "Helvetica Neue", system-ui, sans-serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; background: #000; color: var(--paper); font-family: var(--font); overflow: hidden; }
  body { display: grid; place-items: center; }

  .stage {
    position: relative; width: min(100vw, calc(100vh * 9 / 16)); height: min(100vh, calc(100vw * 16 / 9));
    overflow: hidden; border-radius: 18px; user-select: none;
  }
  @media (max-width: 600px) { .stage { border-radius: 0; width: 100vw; height: 100vh; } }

  .bars { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 5; }
  .bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
  .bars span i { display: block; height: 100%; width: 0; background: #fff; }
  .bars span.done i { width: 100%; }

  .hud { position: absolute; top: 24px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; z-index: 5; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
  .hud button { background: rgba(0,0,0,.25); color: inherit; border: 0; border-radius: 99px; padding: 6px 12px; font: inherit; cursor: pointer; }

  .slide { position: absolute; inset: 0; padding: 72px 28px 36px; display: none; flex-direction: column; justify-content: center; gap: 18px; }
  .slide.on { display: flex; animation: enter .5s cubic-bezier(.2,.8,.2,1); }
  @keyframes enter { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
  .slide > * { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
  .slide > *:nth-child(2) { animation-delay: .12s; } .slide > *:nth-child(3) { animation-delay: .24s; }
  .slide > *:nth-child(4) { animation-delay: .36s; } .slide > *:nth-child(5) { animation-delay: .48s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

  .kicker { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
  .huge { font-size: clamp(64px, 22vmin, 150px); font-weight: 900; line-height: .9; letter-spacing: -.04em; }
  .big { font-size: clamp(34px, 9vmin, 60px); font-weight: 900; line-height: .95; letter-spacing: -.03em; }
  .mid { font-size: clamp(20px, 4.6vmin, 28px); font-weight: 700; line-height: 1.15; }
  .small { font-size: 15px; line-height: 1.4; opacity: .85; }

  .cover { width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; display: block; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
  .cover-wrap { width: 62%; align-self: center; }
  .ph { display: grid; place-items: center; font-weight: 900; color: rgba(255,255,255,.9); text-shadow: 0 2px 12px rgba(0,0,0,.25); }

  .list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
  .list li { display: grid; grid-template-columns: 34px 54px 1fr; align-items: center; gap: 12px; }
  .list .n { font-size: 28px; font-weight: 900; }
  .list .thumb { width: 54px; height: 54px; border-radius: 6px; font-size: 20px; }
  .list b { display: block; font-size: 18px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .list small { font-size: 13px; opacity: .8; }

  .grid2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .grid2 .cell .cover { border-radius: 6px; font-size: 18px; }
  .grid2 .cell b { display: block; margin-top: 6px; font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; }
  .grid2 .cell small { font-size: 11px; opacity: .8; }
  .grid2 .cell:first-child .cover { font-size: 40px; }
  .grid2 .cell:first-child { grid-column: span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
  .grid2 .cell:first-child b { font-size: 22px; }

  .chart { display: flex; align-items: flex-end; gap: 8px; height: 42%; }
  .chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
  .chart .bar { width: 100%; border-radius: 6px 6px 2px 2px; background: currentColor; transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; }
  .chart .lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; }
  .chart .val { font-size: 11px; opacity: .85; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
  @keyframes grow { from { transform: scaleY(0); } }

  .clock { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
  .clock span { flex: 1; background: currentColor; border-radius: 3px 3px 0 0; opacity: .35; animation: grow .8s both; }
  .clock span.hi { opacity: 1; }
  .clock-axis { display: flex; justify-content: space-between; font-size: 11px; opacity: .7; margin-top: 4px; }

  .stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stats3 div { background: rgba(0,0,0,.18); border-radius: 12px; padding: 12px; }
  .stats3 b { display: block; font-size: 24px; font-weight: 900; }
  .stats3 small { font-size: 12px; opacity: .85; }

  .summary { gap: 14px; }
  .summary .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .summary h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; margin-bottom: 6px; }
  .summary ol { list-style: none; font-size: 15px; font-weight: 700; line-height: 1.5; }
  .summary ol li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .summary ol li span { opacity: .6; margin-right: 6px; }

  .tap { position: absolute; top: 60px; bottom: 0; width: 35%; z-index: 4; cursor: pointer; }
  .tap.prev { left: 0; } .tap.next { right: 0; width: 65%; }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
  .foot { position: absolute; bottom: 14px; left: 28px; right: 28px; font-size: 11px; opacity: .6; }

  .gate { position: absolute; inset: 0; padding: 72px 28px 36px; display: flex; flex-direction: column; justify-content: center; gap: 18px; background: #1b1bd8; color: #f6f1e7; z-index: 7; }
  .gate[hidden] { display: none; }
  .gate form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
  .gate label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
  .gate input { font: 600 18px var(--font); padding: 14px 16px; border-radius: 12px; border: 2px solid transparent; background: rgba(255,255,255,.14); color: inherit; outline: none; }
  .gate input:focus { border-color: #c8f25a; }
  .gate button { margin-top: 6px; font: 800 18px var(--font); padding: 14px 18px; border-radius: 99px; border: 0; background: #c8f25a; color: #0d0d0f; cursor: pointer; }
  .gate button:disabled { opacity: .6; cursor: wait; }
  .gate .err { min-height: 1.4em; font-weight: 700; color: #ffcf3e; }
  .hud .actions { display: flex; gap: 6px; }
