:root {
  --void: #050607;
  --iron: #9aa3a8;
  --iron-dim: #5b6469;
  --doom: #4f7a52;
  --glow: #8fd19e;
  --text: #e9ecef;
  --ember: #c8a24a;
  --blood: #d94b3d;
  --title: "Anton", "Impact", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--void); color: var(--text); }
body { font-family: var(--mono); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; }
.mono { font-family: var(--mono); }
button { font: inherit; color: inherit; }

/* ---------- atmosphere ---------- */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(0,0,0,.75) 85%, #000 100%); }
.grain { position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .035;
  background-image: repeating-radial-gradient(circle at 17% 32%, #fff 0 .5px, transparent .5px 3px);
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)}
  60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

.brand { position: fixed; top: 18px; left: 20px; z-index: 20; font-family: var(--title); letter-spacing: .32em;
  font-size: 15px; color: var(--iron); text-decoration: none; }
.brand span { color: var(--iron-dim); }
.foot { position: fixed; right: 16px; bottom: 12px; z-index: 20; font-size: 11px; letter-spacing: .2em; }
.foot a { color: var(--iron-dim); text-decoration: none; }
.foot a:hover { color: var(--glow); }
.noscript { position: fixed; inset: auto 0 40% 0; text-align: center; z-index: 30; color: var(--iron); }

.view { position: relative; z-index: 5; min-height: 100vh; min-height: 100dvh; }

/* ---------- type ---------- */
.kicker { margin: 0; font-size: 12px; letter-spacing: .35em; color: var(--glow); opacity: .8; text-transform: uppercase; }
.wordmark { margin: 0; font-family: var(--title); font-weight: 400; letter-spacing: .14em;
  font-size: clamp(30px, 8.6vw, 116px); line-height: 1; text-align: center;
  background: linear-gradient(100deg, #5d666b 0%, #dfe5e8 35%, var(--glow) 50%, #dfe5e8 65%, #5d666b 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(143,209,158,.18)); }
.wordmark span { opacity: .55; }
.wordmark i, .brand i { font-style: normal; }
.brand i { color: var(--doom); }
@keyframes shine { 0%,100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hint { font-size: 11px; letter-spacing: .3em; color: var(--iron-dim); text-transform: uppercase; }
.status { font-size: 12px; letter-spacing: .25em; color: var(--ember); }

.btn { cursor: pointer; background: transparent; border: 1px solid rgba(143,209,158,.45); color: var(--text);
  padding: 16px 30px; font-family: var(--mono); font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
  position: relative; overflow: hidden; transition: border-color .3s, color .3s, box-shadow .3s; }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(143,209,158,.18), transparent);
  transform: translateX(-100%); animation: sweep 3.2s ease-in-out infinite; }
.btn:hover, .btn:focus-visible { border-color: var(--glow); color: var(--glow); box-shadow: 0 0 30px rgba(143,209,158,.2); outline: none; }
.btn.small { padding: 10px 18px; font-size: 11px; }
@keyframes sweep { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(100%); } }
.link { cursor: pointer; background: none; border: 0; color: var(--iron-dim); font-size: 12px; letter-spacing: .25em;
  text-transform: uppercase; padding: 8px; }
.link:hover, .link:focus-visible { color: var(--glow); outline: none; }

/* ---------- countdown ---------- */
.countdown { display: flex; gap: clamp(10px, 3vw, 34px); justify-content: center; font-family: var(--mono); }
.countdown .unit { display: flex; flex-direction: column; align-items: center; min-width: 2.4em; }
.countdown .num { font-size: clamp(30px, 7vw, 64px); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(143,209,158,.35); }
.countdown .lbl { font-size: 10px; letter-spacing: .35em; color: var(--iron-dim); margin-top: 6px; }
.countdown.big .num { font-size: clamp(38px, 10vw, 96px); }
.countdown .sep { font-size: clamp(30px, 7vw, 64px); color: var(--doom); opacity: .6; align-self: flex-start; }
.countdown.big .sep { font-size: clamp(38px, 10vw, 96px); }

/* ---------- gate ---------- */
#gate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  padding: 90px 16px 70px; text-align: center; }

/* ---------- stage ---------- */
#stage { position: fixed; inset: 0; overflow: hidden; z-index: 10; }
.spot { position: absolute; inset: 0; opacity: 0; transition: opacity 3.5s ease;
  background: radial-gradient(ellipse 42% 85% at 50% -10%, rgba(185,215,195,.26), rgba(120,160,135,.08) 45%, transparent 70%); }
.floor { position: absolute; left: 50%; bottom: 6vh; width: min(70vw, 560px); height: 70px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(160,200,175,.22), transparent 70%); opacity: 0; transition: opacity 4s ease; }
#stage.lit .spot, #stage.lit .floor { opacity: 1; }
.chair-wrap { position: absolute; left: 50%; bottom: 8vh; width: min(58vw, 330px); transform: translateX(-50%) scale(.9);
  transform-origin: 50% 100%; opacity: 0; transition: transform 16s cubic-bezier(.2,.1,.2,1), opacity 3s ease, filter 1.5s; }
#stage.lit .chair-wrap { opacity: 1; transform: translateX(-50%) scale(1.06); }
#stage.acting .chair-wrap { opacity: .18; filter: blur(3px); }
.chair { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 30px rgba(0,0,0,.8)); }
.chair-name { font-family: var(--title); font-size: 34px; letter-spacing: 3px; fill: #cdd5d7; }
.chair.empty { opacity: .5; }

.cards { position: absolute; left: 0; right: 0; top: 16vh; display: flex; flex-direction: column; align-items: center;
  gap: 18px; padding: 0 16px; text-align: center; pointer-events: none; }
#stage.acting .cards { display: none; }
.card { font-family: var(--title); text-transform: uppercase; line-height: 1.05; animation: cardIn 1.5s cubic-bezier(.2,.7,.2,1) both;
  text-shadow: 0 0 30px rgba(0,0,0,.9); overflow-wrap: anywhere; }
.card.out { animation: cardOut .7s ease forwards; }
.card.name { font-size: clamp(40px, 10vw, 120px); letter-spacing: .08em; color: var(--text); }
.card.line { font-size: clamp(22px, 5vw, 52px); letter-spacing: .3em; color: var(--iron); }
.card.line em, .hero-line em { font-style: normal; color: var(--blood); display: inline-block; animation: glitch 1.2s steps(2) infinite; }
.card.wordmark { font-size: clamp(32px, 9.4vw, 124px); }
.card.tag { font-family: var(--mono); font-size: clamp(14px, 3vw, 20px); letter-spacing: .4em; color: var(--ember); text-transform: lowercase; }
@keyframes cardIn { from { opacity: 0; letter-spacing: .7em; filter: blur(10px); transform: scale(1.08); }
  to { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes cardOut { to { opacity: 0; filter: blur(8px); transform: scale(.97); } }
@keyframes glitch { 0% { transform: translate(0); text-shadow: 2px 0 #39f, -2px 0 #f33; }
  50% { transform: translate(1px,-1px); text-shadow: -2px 0 #39f, 2px 0 #f33; } 100% { transform: translate(0); } }

.aka { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 900px; }
.aka .label { font-family: var(--mono); font-size: 13px; letter-spacing: .6em; color: var(--glow); }
.aka .nick { font-family: var(--title); text-transform: uppercase; color: var(--text); letter-spacing: .06em; line-height: 1.05;
  font-size: clamp(26px, 6.5vw, 70px); animation: slam .55s cubic-bezier(.3,1.6,.5,1) both; overflow-wrap: anywhere; max-width: 92vw; }
.aka .nick.long { font-size: clamp(16px, 3.6vw, 38px); }
.aka .nick.xlong { font-size: clamp(12px, 2.6vw, 26px); }
@keyframes slam { 0% { opacity: 0; transform: scale(2.4); filter: blur(8px); } 60% { opacity: 1; transform: scale(.95); filter: blur(0); }
  100% { transform: scale(1); } }
#stage.shake { animation: shake .4s linear; }
@keyframes shake { 0%,100% { transform: none; } 20% { transform: translate(-6px,3px); } 40% { transform: translate(5px,-4px); }
  60% { transform: translate(-3px,-2px); } 80% { transform: translate(2px,3px); } }

/* act: the media */
.act { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 64px 16px 72px; }
.screen { position: relative; width: min(92vw, 960px); max-height: 74vh; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(154,163,168,.18); background: #000; box-shadow: 0 0 80px rgba(143,209,158,.12), 0 30px 80px rgba(0,0,0,.8);
  animation: cardIn 1.2s ease both; }
.screen.portrait { width: auto; height: 74vh; aspect-ratio: 9 / 16; max-width: 92vw; }
.screen video, .screen img { display: block; max-width: 100%; max-height: 74vh; margin: auto; }
.screen.portrait video { width: 100%; height: 100%; object-fit: contain; }
.screen .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.screen.k-overlay { aspect-ratio: 16 / 9; }
.screen.k-imageAudio img { animation: kenburns 30s ease-out both; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.12) translate(-1%, -1%); } }
.screen.k-audio, .screen.k-imageAudio { overflow: hidden; }
.screen.k-audio { aspect-ratio: 16 / 7; flex-direction: column; gap: 14px; }
.screen.k-audio canvas { width: 100%; height: 70%; }
.screen .now-playing { font-family: var(--mono); font-size: 12px; letter-spacing: .4em; color: var(--glow); }
.screen.k-audio .now-playing { position: static; }
.screen.k-imageAudio .now-playing { position: absolute; left: 14px; bottom: 12px; background: rgba(0,0,0,.6); padding: 6px 10px; }
.extras { display: flex; flex-direction: column; gap: 16px; }
.extras img { width: min(22vw, 240px); background: #e9e4d8; padding: 10px 10px 34px; transform: rotate(-4deg);
  box-shadow: 0 20px 40px rgba(0,0,0,.7); animation: dropIn 1s cubic-bezier(.2,.9,.3,1.2) both .6s; }
.extras.right img { transform: rotate(5deg); }
.extras img.poster { padding: 0; border: 6px solid #15181a; background: #000; transform: rotate(-2deg); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-40px) rotate(-12deg); } }

.stage-ui { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 4px; z-index: 12; }

/* ---------- hub ---------- */
#hub { display: flex; flex-direction: column; align-items: center; gap: 56px; padding: 96px 16px 80px; }
.hero { display: flex; align-items: center; gap: clamp(20px, 5vw, 56px); max-width: 980px; width: 100%; justify-content: center; }
.hero-chair { width: clamp(120px, 26vw, 230px); flex: none; position: relative; }
.hero-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hero-name { margin: 0; font-family: var(--title); font-weight: 400; font-size: clamp(34px, 8vw, 88px); line-height: 1;
  letter-spacing: .05em; overflow-wrap: anywhere; }
.hero-line { margin: 0; font-family: var(--title); font-size: clamp(16px, 3.4vw, 30px); letter-spacing: .2em; color: var(--iron); }
.hero-line b { font-weight: 400; color: var(--glow); }
.aka-line { margin: 0 0 6px; font-size: 12px; letter-spacing: .12em; color: var(--iron-dim); line-height: 1.8; overflow-wrap: anywhere; }
.aka-line span { color: var(--iron); }
.hero-text .btn { align-self: flex-start; }

.more { position: relative; text-align: center; padding: 30px 0 0; width: 100%; max-width: 760px; }
.ghosts { position: absolute; inset: -10px 0 auto; display: flex; justify-content: center; gap: 8vw; opacity: .07; pointer-events: none;
  filter: blur(1.5px); }
.ghosts .chair { width: 90px; }
.more-line { position: relative; margin: 0; font-family: var(--title); font-size: clamp(18px, 3.6vw, 30px); letter-spacing: .45em;
  color: var(--iron-dim); animation: flicker 6s infinite; }
@keyframes flicker { 0%,100% { opacity: .55; } 47% { opacity: .55; } 48% { opacity: .15; } 49% { opacity: .7; } 51% { opacity: .2; } 52% { opacity: .6; } }
.next { position: relative; font-size: 11px; letter-spacing: .3em; color: var(--doom); text-transform: uppercase; }

.archive { width: 100%; max-width: 980px; display: flex; flex-direction: column; gap: 18px; }
.archive-row { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: thin; scrollbar-color: #2a3033 transparent; }
.archive-item { flex: none; width: 112px; cursor: pointer; background: none; border: 1px solid transparent; padding: 10px 6px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; transition: border-color .3s, background .3s; }
.archive-item:hover, .archive-item:focus-visible { border-color: rgba(143,209,158,.35); background: rgba(143,209,158,.04); outline: none; }
.archive-item .chair { width: 74px; }
.archive-item .nm { font-family: var(--title); font-size: 13px; letter-spacing: .08em; color: var(--iron); max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-item .nm.not { color: var(--blood); }

.btn.new { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 25; background: rgba(5,6,7,.85);
  border-color: var(--glow); color: var(--glow); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 40px rgba(143,209,158,.45); } }

/* ---------- finale ---------- */
#finale { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 90px 16px; }

/* ---------- easter eggs + lightbox ---------- */
.egg { position: fixed; z-index: 15; width: 30px; height: auto; opacity: .06; cursor: pointer; transition: opacity .4s, transform .4s;
  filter: grayscale(1); }
.egg:hover { opacity: .9; filter: none; transform: scale(1.6) rotate(-8deg); }
.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center;
  padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 88vh; box-shadow: 0 0 80px rgba(143,209,158,.2); }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-text { align-items: center; }
  .hero-text .btn { align-self: center; }
  .act { flex-direction: column; gap: 12px; padding: 56px 12px 64px; overflow-y: auto; justify-content: flex-start; }
  .extras { flex-direction: row; }
  .extras img { width: 38vw; }
  .screen { max-height: 56vh; }
  .screen video, .screen img { max-height: 56vh; }
  .screen.portrait { height: 56vh; }
  .ghosts { gap: 14vw; }
  .ghosts .chair { width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .wordmark, .btn::before, .more-line { animation: none; }
  .chair-wrap { transition: opacity 1s; }
}

body[data-view="stage"] .foot, body[data-view="stage"] .brand { display: none; }
