/* ==========================================================================
   refut — stylesheet
   Built to feel like the Ultimate Team menus: tabs, tiles, button prompts.
   ========================================================================== */

:root {
  --bg: #0a0c0f;
  --bg-2: #111418;
  --bg-3: #181c21;
  --panel: rgba(15, 18, 22, 0.86);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.17);
  --text: #f1f2f4;
  --text-2: #aeb2ba;
  --text-3: #767b85;
  --lime: #bbf445;
  --lime-2: #cffb6d;
  --ink: #0e1209;
  --coral: #fc5463;
  --cyan: #45e0f0;
  --discord: #5865f2;

  --f-ui: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 3.4vw, 56px);
  --maxw: 1440px;
  --bar-h: 76px;
  --prompt-h: 46px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.8, 0.2);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--lime); color: var(--ink); }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: var(--prompt-h);
}

:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 200; padding: 10px 14px;
  background: var(--lime); color: var(--ink); font: 700 1.1rem/1 var(--f-ui); text-transform: uppercase;
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip:focus { transform: none; }

.wrap { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }

/* ---------- type ---------- */
.title {
  font-family: var(--f-ui); font-weight: 700; font-style: italic;
  text-transform: uppercase;
  font-size: clamp(3rem, 6.4vw, 6.4rem);
  line-height: 0.86; letter-spacing: -0.005em;
}
.h2 {
  font-family: var(--f-ui); font-weight: 700;
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  line-height: 1; text-transform: uppercase; letter-spacing: 0.01em;
}
.crumbs {
  display: flex; gap: 10px; align-items: center;
  font: 600 1rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-2);
}
.crumbs span { color: var(--text-3); }
.lede { font-size: 1.15rem; line-height: 1.55; color: var(--text-2); max-width: 52ch; }

/* ---------- key caps (the button prompts from the game) ---------- */
.kbd {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 22px; padding: 0 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: 5px;
  font: 700 0.78rem/1 var(--f-ui); letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--text);
}
.kbd--btn {
  height: 26px; min-width: 30px;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s, transform 0.15s;
}
.kbd--btn:hover { border-color: var(--lime); color: var(--lime); }
.kbd--btn.is-pressed, .kbd--btn:active { background: var(--lime); border-color: var(--lime); color: var(--ink); transform: scale(0.94); }

/* ---------- backdrop: stadium photo + gameplay, crossfading ---------- */
.stage {
  position: fixed; inset: -28px; z-index: -2; overflow: hidden; background: #05070b;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: filter 0.9s var(--ease);
}
.stage__slides { position: absolute; inset: 0; }
.stage__slide {
  position: absolute; inset: 0; opacity: 0;
  background: #05070b var(--pos, center) / cover no-repeat;
  transition: opacity 1.8s ease;
  animation: drift 26s ease-in-out infinite alternate;
}
.stage__slide:nth-child(2n) { animation-delay: -9s; animation-direction: alternate-reverse; }
.stage__slide.is-on { opacity: 1; }
@keyframes drift { from { transform: scale(1.12) translate3d(-1.2%, 0, 0); } to { transform: scale(1.03) translate3d(1.2%, -0.8%, 0); } }
/* first visit: the floodlights come on */
.lights-intro .stage__slides { animation: lights-on 2.8s ease-out both; }
@keyframes lights-on {
  0%, 10% { filter: brightness(0.03); }
  13% { filter: brightness(0.95); }
  16% { filter: brightness(0.08); }
  20% { filter: brightness(0.8); }
  23% { filter: brightness(0.18); }
  32% { filter: brightness(0.6); }
  100% { filter: brightness(1); }
}
body:not([data-page="index"]) .stage { filter: blur(16px) brightness(0.5) saturate(1.1); }

.stage__shade { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.stage__shade::before, .stage__shade::after { content: ""; position: absolute; inset: 0; transition: opacity 0.8s ease; }
.stage__shade::before {
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.86) 0%, rgba(5, 7, 10, 0.5) 36%, rgba(5, 7, 10, 0.05) 62%),
    linear-gradient(0deg, rgba(5, 7, 10, 0.92) 0%, rgba(5, 7, 10, 0.25) 42%, rgba(5, 7, 10, 0) 62%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.6) 0%, rgba(5, 7, 10, 0) 18%);
}
.stage__shade::after { background: linear-gradient(180deg, rgba(10, 12, 15, 0.35) 0%, rgba(10, 12, 15, 0.82) 420px, var(--bg) 860px); }
[data-page="index"] .stage__shade::before { opacity: 1; }
[data-page="index"] .stage__shade::after { opacity: 0; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.85), rgba(5, 7, 10, 0));
  transition: background-color 0.3s, box-shadow 0.3s;
}
.bar.is-solid { background-color: rgba(9, 11, 14, 0.95); box-shadow: 0 1px 0 var(--line); }
.bar__in {
  width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto;
  height: var(--bar-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand svg { width: 30px; color: var(--lime); }
.brand span { font: italic 700 1.75rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.01em; }

.tabs { display: flex; align-items: center; gap: 14px; }
.tabs__list { position: relative; display: flex; }
.tabs__a {
  position: relative; display: block; padding: 0 18px; height: 46px;
  font: 600 1.35rem/46px var(--f-ui); text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--text-2); white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.tabs__a:hover { color: var(--text); }
.tabs__a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.tabs__bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--lime);
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}
.no-js .tabs__a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--lime); }

.bar__right { display: flex; align-items: center; gap: 22px; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 1rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(187, 244, 69, 0.18); }

/* ---------- button prompts bar ---------- */
.prompts {
  position: fixed; inset: auto 0 0; z-index: 45; height: var(--prompt-h);
  background: rgba(7, 9, 12, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.prompts__in {
  width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; height: 100%;
  display: flex; align-items: center; gap: 30px;
}
.prompt {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 1.08rem/1 var(--f-ui); letter-spacing: 0.02em; color: var(--text);
  transition: color 0.2s;
}
button.prompt:hover { color: var(--lime); }
button.prompt:hover .kbd { border-color: var(--lime); color: var(--lime); }
.prompt--end { margin-left: auto; }

/* ---------- buttons ---------- */
.btn {
  --b: rgba(255, 255, 255, 0.1);
  --f: var(--text);
  --hl: rgba(255, 255, 255, 0.22);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 50px; padding: 0 20px; border-radius: 4px;
  background: var(--b); color: var(--f);
  font: 700 1.2rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.03em;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), var(--hl), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }
.btn:hover { --b: rgba(255, 255, 255, 0.16); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .kbd { height: 20px; min-width: 22px; font-size: 0.72rem; border-color: currentColor; opacity: 0.7; color: inherit; }
.btn--primary { --b: var(--lime); --f: var(--ink); --hl: rgba(255, 255, 255, 0.75); }
.btn--primary:hover { --b: var(--lime-2); box-shadow: 0 10px 30px -12px rgba(187, 244, 69, 0.6); }
.btn--discord { --b: var(--discord); --f: #fff; --hl: rgba(255, 255, 255, 0.35); }
.btn--discord:hover { --b: #6b77f5; }
.btn--sm { height: 40px; padding: 0 14px; font-size: 1.05rem; gap: 9px; }
.btn--sm svg { width: 18px; height: 18px; }
.btn--lg { height: 58px; padding: 0 26px; font-size: 1.35rem; }

.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  background: currentColor; opacity: 0.3;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.7s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}
.btn--primary .ripple, .tile .ripple { background: #fff; opacity: 0.35; }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

.more {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 1.05rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-2); transition: color 0.2s;
}
.more:hover { color: var(--lime); }
.more svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.more:hover svg { transform: translateX(3px); }

/* ---------- tiles ---------- */
.tile {
  --hl: rgba(255, 255, 255, 0.14);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 20px; border-radius: 4px;
  background: var(--panel); color: var(--text); text-align: left;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  outline: none;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), var(--hl), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.tile__img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.7) saturate(1.05);
  transition: transform 0.7s var(--ease), filter 0.4s;
}
.tile--img::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(6, 8, 11, 0.94) 0%, rgba(6, 8, 11, 0.45) 45%, rgba(6, 8, 11, 0) 75%);
}
a.tile:hover, a.tile:focus-visible, button.tile:hover, button.tile:focus-visible {
  transform: scale(1.022); z-index: 2;
  box-shadow: inset 0 0 0 3px var(--lime), 0 20px 40px -20px rgba(0, 0, 0, 0.9);
}
.tile:hover::before { opacity: 1; }
.tile:hover .tile__img, .tile:focus-visible .tile__img { transform: scale(1.06); filter: brightness(0.82) saturate(1.1); }
.tile__tag {
  position: absolute; top: 14px; left: 18px;
  font: 600 0.95rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2);
}
.tile__key { position: absolute; top: 12px; right: 14px; }
.tile__title {
  font: italic 700 clamp(1.6rem, 2.1vw, 2.15rem)/0.95 var(--f-ui); text-transform: uppercase;
}
.tile__sub { margin-top: 6px; font-size: 0.95rem; line-height: 1.35; color: var(--text-2); }
.tile__cta {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 14px;
  padding: 8px 12px; border-radius: 3px; background: var(--lime); color: var(--ink);
  font: 700 1rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.03em;
}
.tile__cta svg { width: 18px; height: 18px; }
.tile--main .tile__title { font-size: clamp(2.2rem, 3.2vw, 3.2rem); }

/* ---------- page transitions ---------- */
/* tab to tab, the screen slides the way you moved, like switching tabs in game */
.js .screen {
  opacity: 0;
  translate: calc(var(--dir, 0) * 44px) calc((1 - var(--dir, 0) * var(--dir, 0)) * 14px);
}
.js.is-ready .screen {
  opacity: 1; translate: none;
  transition: opacity 0.45s ease-out, translate 0.6s var(--ease);
}
.js.is-leaving .screen {
  opacity: 0; translate: calc(var(--dir, 1) * -44px) 0;
  transition: opacity 0.2s ease-in, translate 0.24s var(--ease-in);
}
.js .in { opacity: 0; translate: calc(var(--dir, 0) * 28px) calc((1 - var(--dir, 0) * var(--dir, 0)) * 16px); }
.js.is-ready .in {
  opacity: 1; translate: 0 0;
  transition: opacity 0.5s ease-out, translate 0.65s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms + 80ms);
}
/* first visit: let the floodlights come on before the menu appears */
.js.lights-intro.is-ready .home .in { transition-delay: calc(var(--i, 0) * 80ms + 1.25s); }

.js [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity 0.6s ease-out, translate 0.7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ---------- home ---------- */
.home {
  min-height: 100vh; min-height: 100svh;
  display: flex;
  padding: calc(var(--bar-h) + 16px) 0 28px;
}
[data-page="index"] .home { padding-bottom: calc(var(--prompt-h) + 24px); }
.home__in { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.home__head { max-width: 700px; padding-top: clamp(12px, 7vh, 80px); }
.home__head .title { margin: 16px 0 20px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }
.home__lede { font-size: 1.15rem; line-height: 1.55; color: #c9ccd2; max-width: 50ch; }
.home__tiles {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 0.95fr; gap: 12px;
  height: clamp(230px, 33vh, 320px);
}
.tile--status {
  justify-content: space-between; padding-top: 46px;
  background: rgba(12, 15, 19, 0.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.status-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font: 600 1.25rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.02em;
}
.status-list b { color: var(--lime); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; }

/* ---------- content below the fold ---------- */
.below { position: relative; background: var(--bg); }
.below::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 140px; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 12, 15, 0), var(--bg));
}
.section { padding-block: clamp(56px, 7vw, 96px); }
.section + .section { padding-top: 0; }
.shead {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.shead__note { font: 600 1rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); }

.about { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.about__text .h2 { margin-bottom: 22px; }
.about__text p { color: var(--text-2); font-size: 1.1rem; max-width: 58ch; }
.about__text p + p { margin-top: 1em; }
.about__text .more { margin-top: 26px; }
.about__fig img { width: 100%; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.about__fig figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--text-3); }

.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile--shot { aspect-ratio: 16 / 10; }
.tile--shot .tile__title { font-size: clamp(1.3rem, 1.6vw, 1.6rem); }

/* ---------- inner page header ---------- */
.phead { padding-top: calc(var(--bar-h) + clamp(40px, 8vw, 96px)); padding-bottom: clamp(32px, 4vw, 56px); }
.phead .title { margin: 16px 0 20px; }

/* ---------- panels ---------- */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: clamp(22px, 3vw, 36px); }
.panel .h2 { margin-bottom: 18px; }
.panel p { color: var(--text-2); }
.panel p + p { margin-top: 1em; }
.road li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.road li:first-child { border-top: 0; padding-top: 0; }
.road__when { font: 700 1.05rem/1.3 var(--f-ui); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); }
.road li.is-now .road__when { color: var(--lime); }
.road b { font: 700 1.25rem/1.2 var(--f-ui); text-transform: uppercase; }
.road p { margin-top: 2px; font-size: 0.97rem; }
.tile--wide { min-height: 240px; }
.tile--wide .tile__title { font-size: clamp(2rem, 3.4vw, 3.2rem); }

/* ---------- the lineup (pitch) ---------- */
.xi__stage {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: center;
  position: relative; overflow: hidden;
  background: radial-gradient(70% 60% at 42% 55%, rgba(60, 120, 50, 0.16), transparent 70%), var(--bg-2);
  border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(16px, 2.6vw, 36px);
}
.xi__formation {
  position: absolute; left: clamp(18px, 2.6vw, 38px); bottom: clamp(14px, 2vw, 28px); z-index: 2;
  font: italic 700 clamp(2.4rem, 4.6vw, 4.2rem)/1 var(--f-ui); color: rgba(241, 242, 244, 0.13);
  pointer-events: none;
}
.pitch { --tilt: 46deg; perspective: 1400px; perspective-origin: 50% 20%; padding: 30px 0 10px; }
.pitch__plane {
  position: relative; width: min(100%, 640px); margin-inline: auto; aspect-ratio: 100 / 118;
  transform: rotateX(var(--tilt)); transform-style: preserve-3d; transform-origin: 50% 60%;
  margin-top: clamp(-110px, -9vw, -30px); margin-bottom: clamp(-30px, -2vw, -8px);
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 9.8%, transparent 9.8% 19.6%),
    linear-gradient(180deg, #235020, #193a18);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.8);
}
.pitch__marks, .pitch__links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pitch__marks * { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.pitch__links line { stroke: #d8e04a; stroke-width: 2.2; vector-effect: non-scaling-stroke; opacity: 0.35; transition: opacity 0.4s; }
.pitch__links line.flow { stroke: #fff; stroke-dasharray: 2 10; stroke-width: 2.6; opacity: 0; animation: flow 1.1s linear infinite; }
.pitch__links line.on { opacity: 1; stroke: var(--lime); }
.pitch__links line.flow.on { opacity: 0.9; stroke: #fff; }
@keyframes flow { to { stroke-dashoffset: -24; } }

.node {
  --size: clamp(46px, 7vw, 72px);
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  transform: translate(-50%, -100%) rotateX(calc(var(--tilt) * -1));
  transform-origin: 50% 100%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  outline: none;
}
.node__card {
  position: relative; width: var(--size); height: calc(var(--size) * 1.32);
  display: grid; place-items: center;
  background: linear-gradient(160deg, #4a4330, #1d1c17 70%);
  clip-path: polygon(50% 0, 100% 7%, 100% 82%, 50% 100%, 0 82%, 0 7%);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.node__card::before {
  content: ""; position: absolute; inset: 2px; clip-path: inherit;
  background: linear-gradient(160deg, #202329, #121418 70%);
}
.node__code { position: relative; z-index: 1; font: 700 max(9px, calc(var(--size) * 0.22))/1 var(--f-ui); letter-spacing: 0.03em; }
.node__pos {
  font: 700 0.85rem/1 var(--f-ui); letter-spacing: 0.04em; padding: 3px 9px;
  background: rgba(8, 10, 12, 0.88); color: #9fdc3c; border-radius: 999px;
}
.node:hover .node__card, .node.is-active .node__card { transform: translateY(-6px); }
.node.is-active .node__card { background: linear-gradient(160deg, var(--cyan), #1f8e9a 80%); }
.node.is-active .node__code { color: var(--cyan); }
.node__sel {
  position: absolute; inset: -8px -8px auto; height: calc(var(--size) * 1.32 + 16px);
  pointer-events: none; opacity: 0; transition: opacity 0.3s, transform 0.4s var(--ease); transform: scale(1.1);
  --c: var(--cyan);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 14px 3px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 3px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 14px 3px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 3px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 14px 3px no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / 3px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 14px 3px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 3px 14px no-repeat;
}
.node.is-active .node__sel { opacity: 1; transform: translateY(-6px); }
.node:focus-visible .node__sel { opacity: 1; }

.xi__panel { position: relative; z-index: 2; }
.xi__pos {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 3px var(--cyan); margin-bottom: 18px;
  font: 700 1.7rem/1 var(--f-ui); color: var(--text);
}
.xi__name { font: 700 2.4rem/1 var(--f-ui); text-transform: uppercase; color: var(--cyan); }
.xi__role { margin-top: 8px; font: 600 1.05rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); }
.xi__desc { margin-top: 18px; color: var(--text-2); min-height: 5.2em; }
.xi__links { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.xi__links dt { font: 600 0.9rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 10px; }
.xi__links dd { display: flex; flex-wrap: wrap; gap: 8px; }
.xi__chip {
  padding: 6px 12px; border-radius: 3px; background: rgba(255, 255, 255, 0.07);
  font: 700 0.95rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-2);
  transition: background-color 0.2s, color 0.2s;
}
.xi__chip:hover { background: rgba(255, 255, 255, 0.14); color: var(--text); }
.xi__swap { transition: opacity 0.3s, translate 0.4s var(--ease); }
.xi__swap.is-out { opacity: 0; translate: 0 8px; }

/* ---------- gallery ---------- */
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.subtab {
  position: relative; padding: 14px 16px; white-space: nowrap;
  font: 600 1.3rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.02em; color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}
.subtab span { margin-left: 6px; font-size: 0.85em; color: var(--text-3); }
.subtab:hover { color: var(--text); }
.subtab[aria-pressed="true"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.subtab[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--lime); }

.shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.shot { grid-column: span 6; }
.shot--wide { grid-column: span 7; }
.shot--narrow { grid-column: span 5; }
.shots.is-filtered .shot { grid-column: span 6; }
.shot.is-hidden { display: none; }
.shot__btn { width: 100%; height: 100%; min-height: 260px; }
.note { margin-top: 28px; color: var(--text-3); }

.lb {
  position: fixed; inset: 0; z-index: 80;
  display: grid; grid-template-rows: auto 1fr auto; padding: 18px var(--gutter);
  visibility: hidden; pointer-events: none;
}
.lb.is-open { visibility: visible; pointer-events: auto; }
.lb__bg { position: absolute; inset: 0; background: rgba(5, 7, 10, 0.95); opacity: 0; transition: opacity 0.35s; }
.lb.is-open .lb__bg { opacity: 1; }
.lb__top, .lb__bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; opacity: 0; transition: opacity 0.3s 0.1s; }
.lb.is-open .lb__top, .lb.is-open .lb__bottom { opacity: 1; }
.lb__count { font: 700 1.3rem/1 var(--f-ui); }
.lb__count span { color: var(--text-3); }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 16px 0; }
.lb__img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); object-fit: contain; border-radius: 3px; }
.lb__cap { color: var(--text-2); }
.lb__cap strong { color: var(--text); font: 700 1.1rem/1 var(--f-ui); text-transform: uppercase; margin-right: 10px; }
.lb__nav { display: flex; gap: 8px; }
.icon-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font: 700 1.05rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.03em;
  transition: background-color 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.16); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- join ---------- */
.invite {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: center;
  padding: clamp(22px, 3vw, 36px); border-radius: 4px;
  background: linear-gradient(100deg, rgba(88, 101, 242, 0.24), rgba(88, 101, 242, 0.06) 60%), var(--bg-2);
  border: 1px solid rgba(88, 101, 242, 0.35);
}
.invite__icon { width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; background: var(--discord); }
.invite__icon svg { width: 44px; height: 44px; color: #fff; }
.invite__body p { margin-top: 8px; color: var(--text-2); }
.invite__actions { display: flex; flex-direction: column; gap: 10px; min-width: 300px; }
.copy {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 46px; padding: 0 6px 0 16px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 1px var(--line-2);
  font: 600 1.05rem/1 var(--f-ui); letter-spacing: 0.02em; color: var(--text-2);
  transition: box-shadow 0.2s;
}
.copy:hover { box-shadow: inset 0 0 0 1px var(--lime); }
.copy__state {
  padding: 8px 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); color: var(--text);
  font: 700 0.85rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.06em;
  transition: background-color 0.2s, color 0.2s;
}
.copy.is-done .copy__state { background: var(--lime); color: var(--ink); }

.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 4px;
  font: 700 1.4rem/1.15 var(--f-ui); text-transform: uppercase; letter-spacing: 0.01em;
  transition: color 0.2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--lime); }
.qa__pm { position: relative; flex: none; width: 30px; height: 30px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); transition: background-color 0.2s, color 0.2s; }
.qa__pm::before, .qa__pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.qa__pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__pm { background: var(--lime); color: var(--ink); }
.qa[open] .qa__pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 60px 22px 4px; color: var(--text-2); max-width: 70ch; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- footer ---------- */
.foot { background: var(--bg); }
.foot__in { padding-block: 36px 40px; border-top: 1px solid var(--line); margin-top: clamp(48px, 6vw, 80px); }
.foot__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__links a { font: 600 1.15rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-2); transition: color 0.2s; }
.foot__links a:hover { color: var(--lime); }
.foot__legal { margin-top: 22px; font-size: 0.88rem; color: var(--text-3); max-width: 90ch; }

/* ---------- 404 ---------- */
.lost { min-height: calc(100vh - var(--prompt-h)); min-height: calc(100svh - var(--prompt-h)); display: flex; align-items: center; padding-top: var(--bar-h); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .status { display: none; }
  .xi__stage { grid-template-columns: 1fr; }
  .invite { grid-template-columns: auto 1fr; }
  .invite__actions { grid-column: 1 / -1; min-width: 0; flex-direction: row; flex-wrap: wrap; }
  .invite__actions > * { flex: 1 1 260px; }
}

@media (max-width: 900px) {
  :root { --bar-h: 108px; }
  body { padding-bottom: 0; }
  .prompts, .tabs .kbd--btn, .tile__key, .btn .kbd { display: none; }
  .bar { background: rgba(9, 11, 14, 0.94); box-shadow: 0 1px 0 var(--line); }
  .bar__in { grid-template-columns: 1fr auto; grid-template-rows: 58px 50px; gap: 0 12px; }
  .brand span { font-size: 1.55rem; }
  .tabs { grid-column: 1 / -1; grid-row: 2; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs__a { padding: 0 14px; font-size: 1.25rem; }

  [data-page="index"] .home { padding-top: calc(var(--bar-h) + 8px); padding-bottom: 24px; }
  [data-page="index"] .stage__shade::before {
    background: linear-gradient(180deg, rgba(5, 7, 10, 0.72) 0%, rgba(5, 7, 10, 0.5) 45%, rgba(5, 7, 10, 0.9) 100%);
  }
  .home__head { padding-top: 16px; }
  .home__tiles { grid-template-columns: 1fr 1fr; height: auto; }
  .home__tiles .tile { min-height: 150px; }
  .home__tiles .tile--main { grid-column: 1 / -1; min-height: 230px; }
  .home__tiles .tile--status { grid-column: 1 / -1; min-height: 0; }

  .about { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(4, 78%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .strip > * { scroll-snap-align: start; }
  .panels { grid-template-columns: 1fr; }
  .shots .shot, .shots .shot--wide, .shots .shot--narrow, .shots.is-filtered .shot { grid-column: 1 / -1; }
  .shot__btn { min-height: 0; aspect-ratio: 16 / 10; }
  .qa__a p { padding-right: 4px; }
  .pitch { --tilt: 34deg; padding-top: 10px; }
  .node { --size: clamp(36px, 10vw, 56px); gap: 4px; }
  .node__pos { font-size: 0.7rem; padding: 2px 7px; }
  .xi__formation { display: none; }
}

@media (max-width: 560px) {
  .invite { grid-template-columns: 1fr; }
  .lb__cap { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
}

/* ==========================================================================
   v3 components
   ========================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- music toggle in the top bar ---------- */
.sound {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 13px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.08); color: var(--text-2);
  font: 700 1.05rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.03em;
  transition: background-color 0.2s, color 0.2s;
}
.sound:hover { background: rgba(255, 255, 255, 0.14); color: var(--text); }
.sound__eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound__eq i { width: 3px; height: 35%; border-radius: 1px; background: currentColor; }
.sound.is-on { color: var(--text); }
.sound.is-on .sound__eq i { background: var(--lime); animation: eq 0.8s ease-in-out infinite alternate; }
.sound.is-on .sound__eq i:nth-child(2) { animation-duration: 0.55s; }
.sound.is-on .sound__eq i:nth-child(3) { animation-duration: 0.95s; }
.sound.is-on .sound__eq i:nth-child(4) { animation-duration: 0.65s; }
@keyframes eq { from { height: 18%; } to { height: 100%; } }

/* ---------- now playing ---------- */
.music {
  position: fixed; right: var(--gutter); bottom: calc(var(--prompt-h) + 14px); z-index: 46;
  display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 6px;
  background: rgba(9, 11, 14, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -16px rgba(0, 0, 0, 0.85);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s var(--ease), box-shadow 0.4s;
}
.music.is-open { opacity: 1; transform: none; pointer-events: auto; }
.music.is-announce { box-shadow: 0 0 0 1px rgba(187, 244, 69, 0.55), 0 18px 40px -16px rgba(0, 0, 0, 0.85); }
.music__video, .music__info, .music__ctrl { transition: width 0.4s var(--ease), height 0.4s var(--ease), opacity 0.3s; }
.music:not(.is-announce):not(:hover):not(:focus-within) { gap: 10px; padding: 6px 12px 6px 6px; }
.music:not(.is-announce):not(:hover):not(:focus-within) .music__video { width: 64px; height: 36px; }
.music:not(.is-announce):not(:hover):not(:focus-within) .music__info { width: 150px; }
.music:not(.is-announce):not(:hover):not(:focus-within) .music__label,
.music:not(.is-announce):not(:hover):not(:focus-within) .music__artist { display: none; }
.music:not(.is-announce):not(:hover):not(:focus-within) .music__title { margin-top: 0; font-size: 1rem; }
.music:not(.is-announce):not(:hover):not(:focus-within) .music__ctrl { width: 0; opacity: 0; overflow: hidden; }
.music__video { flex: none; width: 128px; height: 72px; border-radius: 3px; overflow: hidden; background: #000; }
.music__video iframe { display: block; width: 100%; height: 100%; border: 0; }
.music__info { width: 190px; min-width: 0; }
.music__label { display: block; font: 700 0.75rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.08em; color: var(--lime); }
.music__title { display: block; margin-top: 5px; font: 700 1.1rem/1.1 var(--f-ui); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music__artist { display: block; margin-top: 2px; font-size: 0.85rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music__ctrl { display: flex; align-items: center; gap: 6px; }
.music__btn {
  position: relative; overflow: hidden; isolation: isolate;
  width: 34px; height: 34px; border-radius: 4px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07); transition: background-color 0.2s;
}
.music__btn:hover { background: rgba(255, 255, 255, 0.15); }
.music__btn svg { width: 16px; height: 16px; }
[data-m="toggle"] svg:nth-child(2) { display: none; }
.music:not(.is-playing) [data-m="toggle"] svg:first-child { display: none; }
.music:not(.is-playing) [data-m="toggle"] svg:nth-child(2) { display: block; }
.music__vol input { width: 76px; accent-color: var(--lime); cursor: pointer; }
.music__lists { display: flex; gap: 3px; margin-left: 2px; }
.music__lists button {
  height: 28px; padding: 0 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); color: var(--text-2);
  font: 700 0.85rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.03em;
  transition: background-color 0.2s, color 0.2s;
}
.music__lists button:hover { color: var(--text); }
.music__lists button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }

/* ---------- gameplay reel ---------- */
.film {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.film__track { display: flex; gap: 12px; width: max-content; animation: reel 70s linear infinite; }
.film:hover .film__track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(calc(-50% - 6px)); } }
.film__item { position: relative; flex: none; width: clamp(280px, 30vw, 480px); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--bg-3); }
.film__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.4s; filter: brightness(0.88); }
.film__item:hover img { transform: scale(1.05); filter: brightness(1); }
.film__item figcaption {
  position: absolute; inset: auto 0 0; padding: 30px 16px 14px;
  background: linear-gradient(0deg, rgba(6, 8, 11, 0.9), transparent);
  font: italic 700 1.35rem/1 var(--f-ui); text-transform: uppercase;
}
.film__item figcaption span {
  display: inline-block; margin-right: 8px; padding: 3px 7px; border-radius: 3px; vertical-align: 2px;
  background: rgba(255, 255, 255, 0.14); font: normal 700 0.8rem/1 var(--f-ui); letter-spacing: 0.04em;
}

/* ---------- SBC ---------- */
.sbc { position: relative; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; }
.sbc__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(187, 244, 69, 0.09), transparent 65%);
}
.sbc__kicker { font: 700 0.9rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.08em; color: var(--lime); }
.sbc__title { margin-top: 6px; font: italic 700 2.2rem/1 var(--f-ui); text-transform: uppercase; }
.sbc__meta { display: flex; align-items: center; gap: 18px; font: 600 0.95rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); }
.sbc__meta b { margin-left: 6px; color: var(--text); }
.sbc__reset {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 7px 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); color: var(--text-2);
  font: 700 0.9rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.04em;
}
.sbc__reset:hover { color: var(--text); }
.sbc__body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.sbc__pitch {
  position: relative; min-height: 400px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 58px, rgba(255, 255, 255, 0.16) 59px 60px, transparent 61px),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.16) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 60px, transparent 60px 120px),
    linear-gradient(180deg, #1f4d1d, #163a16);
  border-right: 1px solid var(--line);
}
.sbc__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.sbc__lines line { stroke: rgba(255, 255, 255, 0.22); stroke-width: 3; stroke-dasharray: 6 8; vector-effect: non-scaling-stroke; transition: stroke 0.4s; }
.sbc__lines line.is-on { stroke: #43e05a; stroke-dasharray: none; filter: drop-shadow(0 0 5px rgba(67, 224, 90, 0.7)); }
.slot {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.slot__card {
  --hl: rgba(255, 255, 255, 0.2);
  position: relative; overflow: hidden; isolation: isolate;
  width: 104px; height: 138px;
  display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 7%, 100% 82%, 50% 100%, 0 82%, 0 7%);
  background: rgba(255, 255, 255, 0.28);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.slot__card::before { content: ""; position: absolute; inset: 2px; z-index: -1; clip-path: inherit; background: rgba(8, 12, 9, 0.78); transition: background 0.3s; }
.slot__card::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), var(--hl), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.slot__card:hover { transform: translateY(-4px); background: var(--lime); }
.slot__card:hover::after { opacity: 1; }
.slot__card:focus-visible { outline: none; background: #fff; }
.slot__empty { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 700 0.9rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); }
.slot__empty i { font-style: normal; font-size: 2.2rem; line-height: 1; color: var(--lime); }
.slot__item { display: none; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.slot__item svg { width: 38px; height: 38px; }
.slot__item b { font: italic 700 1.2rem/1 var(--f-ui); text-transform: uppercase; }
.slot__item small { font: 700 0.72rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.slot.is-filled .slot__empty { display: none; }
.slot.is-filled .slot__item { display: flex; }
.slot.is-filled .slot__card { background: linear-gradient(160deg, #f4e7a1, #b8964a); }
[data-slot="discord"].is-filled .slot__card::before { background: linear-gradient(160deg, #6f7cf6, #3c47c7); }
[data-slot="role"].is-filled .slot__card::before { background: linear-gradient(160deg, #cffb6d, #86b42a); }
[data-slot="role"].is-filled .slot__item { color: var(--ink); }
[data-slot="game"].is-filled .slot__card::before { background: linear-gradient(160deg, #2a2f3a, #10131a); }
[data-slot="game"].is-filled .slot__item b { font-size: 1.45rem; color: #f4e7a1; }
.slot.just-filled .slot__card { animation: slot-in 0.75s var(--ease); }
@keyframes slot-in { 0% { transform: perspective(500px) rotateY(95deg) scale(0.9); filter: brightness(2.2); } 60% { filter: brightness(1.4); } 100% { transform: none; filter: none; } }
.slot.is-shake { animation: shake 0.42s; }
@keyframes shake { 0%, 100% { transform: translate(-50%, -50%); } 25% { transform: translate(calc(-50% - 7px), -50%); } 75% { transform: translate(calc(-50% + 7px), -50%); } }
.slot__label {
  padding: 4px 10px; border-radius: 999px; background: rgba(8, 10, 12, 0.88);
  font: 700 0.9rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
}
.slot.is-filled .slot__label { color: #43e05a; }
.slot__pick {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px);
  display: flex; gap: 6px; padding: 6px; border-radius: 6px; background: rgba(8, 10, 12, 0.95);
  box-shadow: 0 0 0 1px var(--line-2), 0 14px 30px -12px rgba(0, 0, 0, 0.9);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.25s var(--ease);
}
.slot__pick.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.slot__pick button {
  height: 34px; padding: 0 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); white-space: nowrap;
  font: 700 1rem/1 var(--f-ui); text-transform: uppercase; transition: background-color 0.2s, color 0.2s;
}
.slot__pick button:hover { background: var(--lime); color: var(--ink); }
.sbc__hint {
  position: absolute; left: 16px; right: 16px; bottom: 14px; text-align: center;
  font: 700 1rem/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: 0.04em; color: rgba(241, 242, 244, 0.72);
}
.sbc__hint.is-bad { color: #ff8a93; }
.sbc__side { display: flex; flex-direction: column; gap: 18px; padding: 22px 24px; }
.sbc__h { font: 700 1.25rem/1 var(--f-ui); text-transform: uppercase; }
.sbc__reqs li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; color: var(--text-2);
}
.sbc__reqs li span::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%;
  background: var(--coral); vertical-align: 1px; transition: background-color 0.3s;
}
.sbc__reqs li b { font: 700 1.05rem/1 var(--f-ui); color: var(--coral); }
.sbc__reqs li.is-met { color: var(--text); }
.sbc__reqs li.is-met span::before { background: #43e05a; }
.sbc__reqs li.is-met b { color: #43e05a; }
.sbc__progress { display: flex; align-items: center; gap: 12px; font: 700 0.95rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); }
.sbc__bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.sbc__bar i { display: block; height: 100%; background: #43e05a; transform-origin: left; transform: scaleX(0); transition: transform 0.6s var(--ease); }
.sbc__reward { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); }
.sbc__pack {
  flex: none; width: 52px; height: 70px; border-radius: 4px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--lime), #5f8a14); color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.sbc__pack svg { width: 30px; }
.sbc__reward p { font: 700 0.8rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.sbc__reward b { display: block; margin-top: 4px; font: 700 1.2rem/1.1 var(--f-ui); text-transform: uppercase; }
.sbc__reward small { display: block; margin-top: 3px; font-size: 0.8rem; color: var(--text-3); }
.sbc__submit { width: 100%; }
.sbc__submit:disabled { --b: rgba(255, 255, 255, 0.07); --f: var(--text-3); cursor: not-allowed; box-shadow: none; }
.sbc__submit:disabled::before { display: none; }
.sbc.is-ready .sbc__submit:not(:disabled) { animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(187, 244, 69, 0.25), 0 10px 30px -10px rgba(187, 244, 69, 0.7); } }
.sbc__done {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px; text-align: center;
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(187, 244, 69, 0.16), transparent 70%),
    rgba(9, 11, 14, 0.97);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sbc__done[hidden] { display: none; }
.sbc__done-title { margin: 10px 0 12px; font: italic 700 clamp(2.4rem, 5vw, 4.2rem)/0.9 var(--f-ui); text-transform: uppercase; color: var(--lime); }
.sbc__done-sub { color: var(--text-2); max-width: 44ch; margin: 0 auto; }
.sbc__done .actions { justify-content: center; }
.sbc__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.sbc__done.is-play .sbc__flash { animation: flash 0.9s ease-out; }
.sbc__done.is-play .sbc__done-in { animation: reward-in 0.9s 0.15s var(--ease) both; }
@keyframes flash { 0% { opacity: 0.9; } 100% { opacity: 0; } }
@keyframes reward-in { from { opacity: 0; transform: scale(0.85) translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- dev squad (Discord profile cards) ---------- */
.tail { position: relative; background: var(--bg); }
.devs { padding-top: 8px; }
.devs__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dev {
  --hl: rgba(255, 255, 255, 0.06);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; border-radius: 8px;
  background: #121419; box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.25s, transform 0.25s var(--ease);
}
.dev::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--hl), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.dev:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-3px); }
.dev:hover::before { opacity: 1; }
.dev__banner { position: relative; height: 100px; background: var(--banner, #1b1f26); overflow: hidden; }
.dev__banner-img { width: 100%; height: 100%; object-fit: cover; }
.dev__head { position: relative; height: 46px; padding: 0 14px; display: flex; justify-content: flex-end; align-items: center; }
.dev__avatar { position: absolute; left: 12px; top: -48px; width: 94px; height: 94px; padding: 7px; border-radius: 50%; background: #121419; }
.dev__pfp { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: #1b1f26; }
.dev__deco { position: absolute; left: -1px; top: -1px; width: 96px; height: 96px; max-width: none; pointer-events: none; }
.dev__badges { display: flex; gap: 4px; padding: 4px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); }
.dev__badges:empty { display: none; }
.dev__badges img { width: 20px; height: 20px; }
.dev__body { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; padding: 6px 16px 16px; }
.dev__name { font: 700 1.3rem/1.2 var(--f-body); }
.dev__user { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 2px; font-size: 0.92rem; color: var(--text-2); }
.dev__tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); font: 700 0.75rem/1 var(--f-body); color: var(--text); }
.dev__tag img { width: 14px; height: 14px; }
.dev__role-chip {
  align-self: flex-start; margin-top: 12px; padding: 4px 8px; border-radius: 3px;
  background: rgba(69, 224, 240, 0.13); color: #86ecf6;
  font: 700 0.8rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.06em;
}
.dev--creator .dev__role-chip { background: rgba(187, 244, 69, 0.13); color: var(--lime); }
.dev__role { margin-top: 10px; flex: 1; font-size: 0.95rem; line-height: 1.45; color: var(--text-2); }
.dev__links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.dev__id {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 38px; padding: 0 5px 0 12px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 0 1px var(--line);
  font: 600 0.95rem/1 var(--f-ui); letter-spacing: 0.03em; color: var(--text-3);
  transition: box-shadow 0.2s, color 0.2s;
}
.dev__id:hover { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.dev__id .copy__state { padding: 6px 8px; font-size: 0.75rem; }
.dev__id.is-done .copy__state { background: var(--lime); color: var(--ink); }

@media (max-width: 1180px) {
  .devs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .music__lists { display: none; }
}
@media (max-width: 900px) {
  .sound__txt { display: none; }
  .sound { padding: 0 11px; }
  .music { right: 12px; left: 12px; bottom: 12px; gap: 10px; }
  .music__video { width: 96px; height: 54px; }
  .music__info { flex: 1; width: auto; }
  .music__vol { display: none; }
  .sbc__body { grid-template-columns: 1fr; }
  .sbc__pitch { min-height: 460px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sbc__hint { bottom: 12px; font-size: 0.9rem; }
  .slot__card { width: 84px; height: 112px; }
  .slot__item svg { width: 30px; height: 30px; }
  .slot__label { font-size: 0.78rem; }
  .sbc__head { padding: 16px 18px; }
  .sbc__side { padding: 18px; }
  .film__item { width: 78vw; }
}
@media (max-width: 560px) {
  .devs__list { grid-template-columns: 1fr; }
  .sbc__meta span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .film { overflow-x: auto; }
  .film__track { animation: none; }
  .stage__slide { animation: none; }
}
