:root {
  --ink: #0b0b10;
  --paper: #f4f1ea;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; background: #000; color: var(--paper); font-family: var(--display); overflow: hidden; }
body { display: grid; place-items: center; -webkit-tap-highlight-color: transparent; user-select: none; }

.stage {
  position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: 100dvh;
  overflow: hidden; background: var(--bg, #111); color: var(--fg, var(--paper));
  transition: background .6s ease, color .6s ease;
}
@media (min-width: 700px) { .stage { height: min(100dvh, 900px); border-radius: 18px; } }

.bars { position: absolute; inset: 12px 12px auto; display: flex; gap: 4px; z-index: 5; }
.bars span { flex: 1; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 25%, transparent); overflow: hidden; }
.bars i { display: block; height: 100%; width: 0; background: var(--fg); }
.bars span.done i { width: 100%; }
.bars span.now i { animation: fill var(--dur) linear forwards; }
.stage.paused .bars span.now i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }

.brand { position: absolute; top: 26px; left: 16px; right: 16px; z-index: 5; display: flex; justify-content: space-between;
  font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }

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

.kicker { font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
h1 { font-weight: 800; font-size: clamp(40px, 12vw, 64px); line-height: .92; letter-spacing: -.03em; }
h2 { font-weight: 800; font-size: clamp(30px, 9vw, 44px); line-height: .95; letter-spacing: -.02em; }
.huge { font-weight: 800; font-size: clamp(84px, 30vw, 150px); line-height: .85; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
p { font-size: 18px; line-height: 1.35; max-width: 32ch; }
.muted { opacity: .7; }

.cover { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.cover.tilt { transform: rotate(-3deg); }

ol.rank { list-style: none; padding: 0; display: grid; gap: 10px; }
ol.rank li { display: grid; grid-template-columns: 34px 52px 1fr auto; align-items: center; gap: 12px; }
ol.rank .n { font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
ol.rank .thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 3px; }
ol.rank .t { font-weight: 700; font-size: 17px; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
ol.rank .s { font-size: 13px; opacity: .7; font-weight: 400; display: block; }
ol.rank .c { font: 500 12px var(--mono); opacity: .8; }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 200px; }
.chart div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.chart b { display: block; width: 100%; background: var(--fg); border-radius: 3px 3px 0 0; min-height: 2px; }
.chart small { font: 500 10px var(--mono); opacity: .8; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.grid div { border-top: 2px solid var(--fg); padding-top: 8px; }
.grid b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.grid span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; opacity: .75; }

.card { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.card .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.card h3 { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .12em; opacity: .6; margin-bottom: 4px; }
.card ol { padding-left: 0; list-style-position: inside; font-weight: 700; font-size: 14px; line-height: 1.35; }
.card ol li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }

.hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .5; z-index: 5; }
.tap { position: absolute; top: 0; bottom: 0; z-index: 4; }
.tap.l { left: 0; width: 33%; } .tap.r { right: 0; width: 67%; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; pointer-events: none; }
.slide > :not(.blob) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .slide.on > * { animation: none; } }
.ph { display: grid; place-items: center; background: color-mix(in srgb, var(--fg) 14%, transparent); color: var(--fg);
  font-weight: 800; font-size: 1.2em; letter-spacing: -.02em; }
.cover.ph { font-size: 72px; }
.card .ph { color: var(--ink); background: #ddd6c8; }
.card .banner { width: 100%; aspect-ratio: 2/1; object-fit: cover; border-radius: 8px; font-size: 48px; }
.slide > :has(a) { z-index: 6; }
