/* cybersushigame.com, shared by every page
   Layout: full-bleed cinematic scroll story in one deliberate dark look (neon night),
   sticky hero stage, content column 1240px with fluid 16-48px gutters, alternating media rows */
/* self-hosted fonts, subset to the site text (SIL Open Font License, see /v2/fonts/OFL-*.txt) */
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/chakra-petch-500.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/chakra-petch-600.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/chakra-petch-700.woff2') format('woff2'); }
@font-face { font-family: 'Dela Gothic One'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/dela-gothic-one-400.woff2') format('woff2'); }
@font-face { font-family: 'M PLUS Rounded 1c'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/m-plus-rounded-1c-500.woff2') format('woff2'); }
@font-face { font-family: 'M PLUS Rounded 1c'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/m-plus-rounded-1c-700.woff2') format('woff2'); }
@font-face { font-family: 'M PLUS Rounded 1c'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/m-plus-rounded-1c-800.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --ink: #0b0715;
  --ink-2: #140c22;
  --ink-3: #1e1431;
  --line: rgba(246, 241, 255, 0.14);
  --fg: #f7f2ff;
  --fg-2: #c4b8dd;
  --fg-3: #8f82ab;
  --wasabi: #c8ff2e;
  --wasabi-ink: #12190a;
  --neon: #ff2e9a;
  --mochi: #ff8a1f;
  --gold: #ffcf3d;
  --cyan: #2ee6ff;
  --violet: #8f5bff;
  --r-common: #c9d3e3;
  --r-rare: #2f9bff;
  --r-epic: #a24bff;
  --r-legendary: #ffbe2e;
  --r-mythic: #ff2e9a;
  --g1: var(--neon);
  --g2: var(--mochi);
  --g3: var(--gold);
  --font-display: "Dela Gothic One", "Arial Black", "Helvetica Neue", Impact, sans-serif;
  --font-body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-hud: "Chakra Petch", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --step-hero: clamp(3.1rem, 12vw, 10rem);
  --step-xl: clamp(2.7rem, 9vw, 7.25rem);
  --step-l: clamp(2rem, 5.4vw, 4.4rem);
  --step-m: clamp(1.45rem, 3vw, 2.3rem);
  --step-s: clamp(1.08rem, 1.5vw, 1.28rem);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --radius: 18px;
  --nav-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--neon); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
  color: var(--fg);
  background: linear-gradient(96deg, var(--g1) 0%, var(--g2) 52%, var(--g3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-block: 0.06em;
}
.display--hero { font-size: var(--step-hero); }
.display--xl { font-size: var(--step-xl); }
.display--l { font-size: var(--step-l); }
.display--m { font-size: var(--step-m); line-height: 1.05; }
.display--white { background: none; -webkit-text-fill-color: currentColor; color: var(--fg); }
.eyebrow {
  font-family: var(--font-hud);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before { content: ""; width: 0.75em; height: 0.75em; background: var(--g1); transform: rotate(45deg); flex: none; box-shadow: 0 0 12px var(--g1); }
.lede { font-size: var(--step-s); line-height: 1.65; color: var(--fg-2); max-width: 60ch; margin: 0; }
.lede strong { color: var(--fg); font-weight: 700; }
.hud { font-family: var(--font-hud); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: transparent;
  --b-fg: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--b-bg);
  color: var(--b-fg);
  font-family: var(--font-hud);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-pop), box-shadow 0.3s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: translateY(1px) scale(0.95); transition-duration: 0.08s; }
.btn--wasabi { --b-bg: var(--wasabi); --b-fg: var(--wasabi-ink); box-shadow: 0 0 0 0 rgba(200, 255, 46, 0); }
.btn--wasabi:hover { box-shadow: 0 10px 34px -6px rgba(200, 255, 46, 0.65); }
.btn--wasabi::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg);
  animation: shine 4.8s ease-in-out infinite 1.2s;
  z-index: -1;
}
.btn--ghost { border-color: rgba(247, 242, 255, 0.55); }
.btn--ghost:hover { --b-bg: var(--fg); --b-fg: var(--ink); border-color: var(--fg); }
.btn--sm { min-height: 40px; padding: 0.6em 1.1em; font-size: 0.76rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

.play-dot {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--wasabi); color: var(--wasabi-ink);
  display: grid; place-items: center; flex: none;
  box-shadow: 0 0 0 0 rgba(200, 255, 46, 0.6);
  animation: pulse 2.4s ease-out infinite;
  transition: transform 0.35s var(--ease-pop);
}
.play-dot svg { width: 26px; height: 26px; margin-left: 4px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 255, 46, 0.55); } 80%, 100% { box-shadow: 0 0 0 22px rgba(200, 255, 46, 0); } }

/* ---------- rarity cubes (never stars) ---------- */
.rarity { display: inline-flex; align-items: center; gap: 0.6em; color: var(--rc, var(--r-legendary)); font-family: var(--font-hud); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.rarity[data-tier="1"] { --rc: var(--r-common); }
.rarity[data-tier="2"] { --rc: var(--r-rare); }
.rarity[data-tier="3"] { --rc: var(--r-epic); }
.rarity[data-tier="4"] { --rc: var(--r-legendary); }
.rarity[data-tier="5"] { --rc: var(--r-mythic); }
.cubes { display: inline-flex; gap: 3px; }
.cube { width: 15px; height: 15px; color: var(--rc); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--rc) 60%, transparent)); }
.cube.is-off { color: rgba(247, 242, 255, 0.22); filter: none; }
.rarity[data-tier="5"] .cube:not(.is-off) { animation: holo 3s linear infinite; }
@keyframes holo { to { filter: hue-rotate(360deg) drop-shadow(0 0 5px rgba(255, 46, 154, 0.6)); } }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0.2em 0.8em; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-hud); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2); background: rgba(11, 7, 21, 0.4); }
.chip--hot { color: var(--wasabi-ink); background: var(--wasabi); border-color: transparent; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--gutter) 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(11, 7, 21, 0.78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav__brand { display: block; flex: none; line-height: 0; }
.nav__brand img { height: 40px; width: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6)); transition: transform 0.4s var(--ease-pop); }
.nav__brand:hover img { transform: rotate(-3deg) scale(1.06); }
.nav__links { display: none; gap: clamp(14px, 2.2vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav__links a { font-family: var(--font-hud); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--fg-2); padding-block: 8px; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--wasabi); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--fg); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__mini { font-family: var(--font-hud); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--fg); }
.nav .btn .long { display: none; }
@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__mini { display: none; }
  .nav .btn .long { display: inline; }
}

/* ---------- hero: the world collapses into the logo ---------- */
.hero { position: relative; height: 100vh; height: 100svh; background: var(--ink); }
.hero.is-scrub { height: 300vh; height: 300svh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; opacity: var(--mo, 1); }
.hero__media.is-masked {
  -webkit-mask-image: url("../img/logo-mask.png");
  mask-image: url("../img/logo-mask.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: var(--mw) var(--mh);
  mask-size: var(--mw) var(--mh);
  -webkit-mask-position: var(--mx) var(--my);
  mask-position: var(--mx) var(--my);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--vz, 1)); transform-origin: 50% 45%; }
.hero__shade { position: absolute; inset: 0; pointer-events: none; opacity: var(--shade, 1); background: linear-gradient(180deg, rgba(11, 7, 21, 0.6) 0%, rgba(11, 7, 21, 0) 24%, rgba(11, 7, 21, 0) 52%, rgba(11, 7, 21, 0.92) 100%); }
.hero__glow {
  position: absolute; inset: -10%; pointer-events: none; opacity: var(--glow, 1);
  background:
    radial-gradient(38% 30% at 50% 40%, rgba(255, 46, 154, 0.34), transparent 70%),
    radial-gradient(30% 26% at 66% 50%, rgba(46, 230, 255, 0.2), transparent 72%),
    radial-gradient(30% 24% at 32% 56%, rgba(200, 255, 46, 0.12), transparent 70%);
}
.hero__dots { position: absolute; inset: 0; pointer-events: none; opacity: calc(var(--glow, 1) * 0.55); background: radial-gradient(rgba(247, 242, 255, 0.09) 1px, transparent 1.4px) 0 0 / 7px 7px; -webkit-mask-image: radial-gradient(60% 50% at 50% 45%, #000, transparent); mask-image: radial-gradient(60% 50% at 50% 45%, #000, transparent); }
.hero__logo {
  position: absolute;
  left: var(--lx, calc(50% - min(43vw, 450px)));
  top: var(--ly, 18vh);
  width: var(--lw, min(86vw, 900px));
  height: auto;
  max-width: none;
  opacity: var(--lo, 1);
  transform: scale(var(--ls, 1));
  transform-origin: 50% 55%;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
.hero__lockup { position: absolute; left: 0; right: 0; top: var(--kt, calc(18vh + min(86vw, 900px) * 0.465 + 8px)); padding-inline: var(--gutter); display: grid; justify-items: center; gap: 14px; text-align: center; opacity: var(--lk, 1); transform: translateY(calc((1 - var(--lk, 1)) * 28px)); visibility: var(--lkv, visible); }
.hero__date { font-size: clamp(2rem, 6.6vw, 4.6rem); }
.hero__platforms { margin: 0; color: var(--fg-2); font-size: 0.82rem; }
.hero__rest { position: absolute; left: 0; right: 0; bottom: clamp(22px, 5vh, 48px); padding-inline: var(--gutter); display: grid; justify-items: center; gap: 10px; text-align: center; opacity: var(--rest, 0); pointer-events: none; }
.hero__rest .display { font-size: clamp(1.6rem, 4.6vw, 3rem); }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-hud); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-2); }
.scroll-cue::after { content: ""; width: 2px; height: 34px; background: linear-gradient(var(--wasabi), transparent); animation: cue 1.6s var(--ease-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero.is-scrub .hero__rest { pointer-events: auto; }

/* ---------- shard strip ---------- */
.shards { position: relative; overflow: clip; padding-block: clamp(28px, 6vw, 72px) clamp(20px, 4vw, 40px); }
.shards__track { display: flex; gap: clamp(10px, 1.6vw, 22px); width: max-content; transform: translate3d(var(--sx, 0px), 0, 0); will-change: transform; padding-inline: var(--gutter); }
.shard { width: clamp(220px, 34vw, 520px); aspect-ratio: 16 / 9; flex: none; clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%); overflow: hidden; background: var(--ink-3); }
.shard img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 0.8s var(--ease-out); }
.shard:hover img { transform: scale(1.14); }
.shards__track--b { margin-top: clamp(10px, 1.6vw, 22px); transform: translate3d(calc(var(--sx, 0px) * -0.6 - 18vw), 0, 0); }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(72px, 11vw, 150px); }
.sec-head { display: grid; gap: 4px; margin-bottom: clamp(24px, 4vw, 44px); }
.sec-head .lede { margin-top: 14px; }

/* trailers */
.feature-player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); cursor: pointer; text-align: left; box-shadow: 0 40px 80px -40px rgba(255, 46, 154, 0.45); }
.feature-player video, .feature-player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.feature-player:hover video, .feature-player:hover > img { transform: scale(1.03); }
.feature-player__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 7, 21, 0) 40%, rgba(11, 7, 21, 0.88) 100%); }
.feature-player__meta { position: absolute; left: clamp(16px, 3vw, 36px); right: clamp(16px, 3vw, 36px); bottom: clamp(16px, 3vw, 32px); display: flex; align-items: center; gap: 16px; }
.feature-player__label { font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2.6rem); text-transform: uppercase; line-height: 1; }
.feature-player__time { margin-left: auto; font-size: 0.8rem; color: var(--fg-2); }
.feature-player:hover .play-dot { transform: scale(1.12); }
.now-tag { position: absolute; top: clamp(14px, 2.4vw, 26px); left: clamp(14px, 2.4vw, 26px); display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 7, 21, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: var(--font-hud); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.now-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.trailer-row { margin-top: clamp(16px, 2.4vw, 26px); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: clamp(12px, 1.6vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.trailer-row::-webkit-scrollbar { display: none; }
.t-card { scroll-snap-align: start; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; display: grid; gap: 10px; min-width: 0; }
.t-card__img { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ink-3); }
.t-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.t-card:hover .t-card__img img { transform: scale(1.07); }
.t-card__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); }
.t-card__play { position: absolute; left: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--fg); color: var(--ink); display: grid; place-items: center; transition: transform 0.35s var(--ease-pop), background-color 0.2s; }
.t-card__play svg { width: 15px; height: 15px; margin-left: 2px; }
.t-card:hover .t-card__play { transform: scale(1.15); background: var(--wasabi); }
.t-card__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.02rem; line-height: 1.1; }
.t-card__sub { font-size: 0.74rem; color: var(--fg-3); margin-top: -6px; }
@media (min-width: 1100px) { .trailer-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

/* story */
.story { overflow: clip; }
.story__quote { margin: 0; display: grid; gap: 0.04em; }
.story__quote .display { font-size: var(--step-xl); }
.story__by { margin-top: 18px; color: var(--fg-3); font-size: 0.8rem; }
.story__grid { display: grid; gap: clamp(28px, 5vw, 64px); margin-top: clamp(30px, 5vw, 60px); align-items: start; }
.story__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%; }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.text-link { display: inline-flex; align-items: center; gap: 0.6em; margin-top: 22px; font-family: var(--font-hud); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--wasabi); }
.text-link svg { width: 1.2em; height: 1.2em; transition: transform 0.35s var(--ease-pop); }
.text-link:hover svg { transform: translateX(6px); }
@media (min-width: 900px) { .story__grid { grid-template-columns: 1.05fr 1fr; } }

/* feature rows */
.features { display: grid; gap: clamp(64px, 10vw, 140px); }
.feature { display: grid; gap: clamp(22px, 4vw, 56px); align-items: center; }
.feature__media { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; border-radius: 6px; background: var(--ink-3); clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%); }
.feature__media video, .feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(11, 7, 21, 0.22) 1px, transparent 1.3px) 0 0 / 5px 5px; mix-blend-mode: multiply; pointer-events: none; }
.feature__text { min-width: 0; }
.feature__title { font-size: var(--step-l); margin-bottom: 18px; }
.feature__stack { display: grid; }
.feature__quote { margin: 22px 0 0; padding-left: 16px; border-left: 3px solid var(--g1); font-family: var(--font-hud); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--fg); }
.feature__quote span { display: block; color: var(--fg-3); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 6px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.25fr 1fr; }
  .feature--flip .feature__media { order: 2; }
  .feature--flip { grid-template-columns: 1fr 1.25fr; }
}

/* crew */
.crew { overflow: clip; }
.crew__rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(210px, 62vw, 290px); gap: clamp(12px, 1.6vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 22px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.crew__rail::-webkit-scrollbar { display: none; }
.c-card { position: relative; display: block; scroll-snap-align: center; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--ink-3); transform: translateZ(0); transition: transform 0.45s var(--ease-pop), box-shadow 0.45s ease; box-shadow: 0 0 0 1px var(--line); }
.c-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.c-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 7, 21, 0) 46%, rgba(11, 7, 21, 0.94) 100%); }
.c-card__info { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; display: grid; gap: 6px; }
.c-card__name { font-family: var(--font-display); text-transform: uppercase; font-size: 1.9rem; line-height: 1; }
.c-card__tag { font-size: 0.82rem; color: var(--fg-2); line-height: 1.3; }
.c-card__flag { position: absolute; top: 12px; left: 12px; z-index: 1; }
.c-card:hover { transform: translateY(-8px) rotate(-1.2deg); box-shadow: 0 0 0 2px var(--rc, var(--wasabi)), 0 26px 50px -20px var(--rc, var(--wasabi)); }
.c-card:hover img { transform: scale(1.08); }
@media (min-width: 1100px) { .crew__rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; } }

/* rift */
.rift { position: relative; overflow: clip; min-height: min(92vh, 900px); display: grid; align-items: end; padding-block: clamp(80px, 12vw, 160px) clamp(48px, 8vw, 100px); }
.rift__bg { position: absolute; inset: 0; }
.rift__bg video, .rift__bg img { width: 100%; height: 100%; object-fit: cover; }
.rift__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 7, 21, 0.95) 0%, rgba(11, 7, 21, 0.7) 40%, rgba(11, 7, 21, 0.1) 75%), linear-gradient(0deg, var(--ink) 0%, transparent 30%), linear-gradient(180deg, var(--ink) 0%, transparent 22%); }
.rift__inner { position: relative; display: grid; gap: 18px; max-width: 640px; }
.rift__meta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.countdown { display: inline-flex; gap: 10px; align-items: baseline; padding: 10px 16px; border-radius: 12px; background: rgba(11, 7, 21, 0.62); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.countdown b { font-family: var(--font-hud); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.04em; color: var(--wasabi); font-variant-numeric: tabular-nums; }
.countdown span { font-family: var(--font-hud); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2); }
@media (max-width: 720px) {
  .rift { min-height: 0; padding-top: 0; align-items: start; }
  .rift__bg { position: relative; inset: auto; aspect-ratio: 16 / 11; margin-bottom: -18%; }
  .rift__bg::after { background: linear-gradient(0deg, var(--ink) 4%, transparent 50%); }
}

/* nav cards */
.navcards { display: grid; gap: clamp(12px, 1.8vw, 22px); }
.navcard { position: relative; display: grid; align-content: end; min-height: 300px; padding: 22px; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--ink-3); isolation: isolate; box-shadow: 0 0 0 1px var(--line); transition: transform 0.45s var(--ease-pop); }
.navcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease-out); }
.navcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 7, 21, 0.05) 30%, rgba(11, 7, 21, 0.92)); }
.navcard:hover { transform: translateY(-6px); }
.navcard:hover img { transform: scale(1.07); }
.navcard h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1; }
.navcard p { margin: 0; color: var(--fg-2); font-size: 0.92rem; }
.navcard .go { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(247, 242, 255, 0.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform 0.35s var(--ease-pop), background-color 0.2s; }
.navcard .go svg { width: 18px; height: 18px; }
.navcard:hover .go { background: var(--wasabi); color: var(--wasabi-ink); transform: rotate(-45deg) scale(1.1); }
@media (min-width: 820px) { .navcards { grid-template-columns: 1.4fr 1fr 1fr; } .navcard { min-height: 420px; } }

/* end card */
.endcard { position: relative; overflow: clip; text-align: center; padding-block: clamp(90px, 14vw, 190px); isolation: isolate; }
.endcard__bg { position: absolute; inset: 0; z-index: -1; }
.endcard__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.endcard__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, rgba(11, 7, 21, 0.45), rgba(11, 7, 21, 0.9)), linear-gradient(180deg, var(--ink), transparent 25%, transparent 75%, var(--ink)); }
.endcard__logo { width: min(80vw, 640px); margin: 0 auto 10px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }
.endcard .display--xl { margin-top: 6px; }
.endcard .btn-row { justify-content: center; margin-top: 26px; }
.endcard__jp { margin: 22px 0 0; font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.08em; color: var(--neon); }
.endcard__sub { margin: 12px 0 0; color: var(--fg-2); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 44px calc(44px + env(safe-area-inset-bottom, 0px)); color: var(--fg-3); font-size: 0.86rem; }
.foot__row { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.foot__brand { display: flex; align-items: center; gap: 18px; }
.foot__brand img { height: 46px; width: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.foot__links a { text-decoration: none; color: var(--fg-2); }
.foot__links a:hover { color: var(--wasabi); }
.copy-mail { display: inline-flex; align-items: center; gap: 10px; }
.copy-mail code { font-family: var(--font-hud); color: var(--fg); user-select: all; -webkit-user-select: all; }
.copy-mail button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 4px 12px; cursor: pointer; font-family: var(--font-hud); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.copy-mail button:hover { color: var(--fg); border-color: var(--fg-2); }
.foot__legal { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.78rem; }

/* ---------- player modal ---------- */
.player { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: calc(env(safe-area-inset-top, 0px) + 16px) 12px calc(env(safe-area-inset-bottom, 0px) + 16px); }
.player__backdrop { position: absolute; inset: 0; background: rgba(5, 3, 10, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade 0.3s ease; }
.player__frame { position: relative; width: min(100%, 1280px, calc((100vh - 140px) * 16 / 9)); animation: pop 0.45s var(--ease-pop); }
.player__video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; box-shadow: 0 30px 90px -20px rgba(255, 46, 154, 0.5); }
.player__bar { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.player__title { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.05rem, 2.4vw, 1.6rem); line-height: 1.1; }
.player__close { margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(247, 242, 255, 0.08); cursor: pointer; display: grid; place-items: center; transition: transform 0.3s var(--ease-pop), background-color 0.2s; }
.player__close:hover { transform: rotate(90deg); background: var(--neon); }
.player__close svg { width: 20px; height: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.92) translateY(20px); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .shards__track, .shards__track--b { transform: none; }
}

/* ---------- footer: community links ---------- */
.foot__top { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.foot__top .foot__brand { line-height: 0; }
.foot__community { display: grid; gap: 12px; justify-items: start; }
.foot__label { margin: 0; font-size: 0.74rem; color: var(--fg-3); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 17px 0 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(247, 242, 255, 0.05); color: var(--fg); text-decoration: none; font-family: var(--font-hud); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; transition: transform 0.35s var(--ease-pop), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.social svg { width: 18px; height: 18px; flex: none; }
.social:hover { transform: translateY(-2px); background: var(--fg); color: var(--ink); border-color: var(--fg); }
.social:active { transform: translateY(1px) scale(0.96); transition-duration: 0.08s; }
.copy-mail a { font-family: var(--font-hud); font-weight: 600; color: var(--fg); text-decoration: none; }
.copy-mail a:hover { color: var(--wasabi); }
.foot__legal span:last-child { color: var(--fg-3); }
@media (min-width: 900px) { .foot__community { justify-items: end; } .foot__label { text-align: right; } }
@media (max-width: 599px) {
  .socials { gap: 8px; }
  .social { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .social span { display: none; }
  .social svg { width: 20px; height: 20px; }
}

/* ---------- odds and rates ---------- */
.odds-hero { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--nav-h) + clamp(56px, 10vw, 140px)) 0 clamp(44px, 7vw, 90px); }
.odds-hero__bg { position: absolute; inset: 0; z-index: -1; }
.odds-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.odds-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 7, 21, 0.55) 0%, rgba(11, 7, 21, 0.75) 55%, var(--ink) 100%), linear-gradient(90deg, rgba(11, 7, 21, 0.85) 0%, rgba(11, 7, 21, 0.2) 75%); }
.odds-hero h1 { margin-bottom: 18px; }
.odds-jump { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 28px 0 0; padding: 0; }
.odds-jump .chip { text-decoration: none; min-height: 40px; padding-inline: 1em; color: var(--fg); transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.odds-jump .chip:hover { background: var(--fg); color: var(--ink); border-color: var(--fg); }

.rift-odds { position: relative; padding-block: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); scroll-margin-top: var(--nav-h); }
.rift-odds__head { display: grid; gap: clamp(22px, 4vw, 48px); align-items: center; margin-bottom: clamp(24px, 3.4vw, 40px); }
.rift-odds__head .display { margin-bottom: 14px; }
.rift-odds__facts { display: grid; gap: 10px; margin: 22px 0 0; }
.rift-odds__facts div { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.rift-odds__facts dt { min-width: 92px; font-size: 0.74rem; color: var(--fg-3); }
.rift-odds__facts dd { margin: 0; color: var(--fg); font-weight: 700; }
.rift-odds__media { margin: 0; position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); box-shadow: 0 30px 70px -36px var(--g2); }
.rift-odds__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .rift-odds__head { grid-template-columns: 1.1fr 1fr; } }

.odds-grid { display: grid; gap: clamp(14px, 2vw, 22px); align-items: start; }
@media (min-width: 900px) { .odds-grid { grid-template-columns: 0.8fr 1.2fr; } }
.odds-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(247, 242, 255, 0.055), rgba(247, 242, 255, 0.02)); padding: clamp(18px, 2.4vw, 28px); }
.odds-card h3 { margin: 0 0 10px; font-family: var(--font-hud); font-weight: 700; font-size: 0.84rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg); }
.odds-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.odds-table th, .odds-table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.odds-table th { padding-top: 4px; font-family: var(--font-hud); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }
.odds-table th:last-child, .odds-table td:last-child { text-align: right; padding-left: 16px; }
.odds-table tbody tr:last-child td { border-bottom: 0; padding-bottom: 2px; }
.odds-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--fg); font-weight: 700; }
.odds-table td .rarity { display: flex; width: max-content; margin-top: 6px; }
.odds-item .chip { min-height: 22px; font-size: 0.64rem; padding: 0.1em 0.7em; }
.odds-sub { display: block; width: 100%; font-weight: 500; font-size: 0.86rem; color: var(--fg-2); }
.odds-pct { font-family: var(--font-hud); font-weight: 700; font-size: 1.08rem; color: var(--fg); white-space: nowrap; }
.odds-rules { margin-top: clamp(14px, 2vw, 22px); }
.odds-rules ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.odds-rules li { position: relative; padding-left: 26px; color: var(--fg-2); line-height: 1.6; }
.odds-rules li::before { content: ""; position: absolute; left: 3px; top: 0.6em; width: 9px; height: 9px; background: var(--g1); transform: rotate(45deg); box-shadow: 0 0 10px var(--g1); }
.odds-rules strong { color: var(--fg); }
.odds-explain .sec-head { margin-bottom: clamp(18px, 2.6vw, 28px); }
.odds-explain__grid { display: grid; gap: clamp(14px, 2vw, 22px); align-items: start; }
.odds-explain__grid .odds-rules { margin-top: 0; }
@media (min-width: 900px) { .odds-explain__grid { grid-template-columns: 1fr 1fr; } }
#duplicates .sec-head { margin-bottom: clamp(18px, 2.6vw, 28px); }
#duplicates .odds-rules { margin-top: 0; }
.odds-foot { margin: 26px 0 0; font-size: 0.74rem; color: var(--fg-3); }
.odds-foot a { color: var(--fg-2); text-transform: none; letter-spacing: 0.02em; }
.odds-foot a:hover { color: var(--wasabi); }

/* ---------- legal pages ---------- */
.page-hero { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--nav-h) + clamp(52px, 9vw, 120px)) 0 clamp(30px, 4.6vw, 56px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 92% -10%, rgba(255, 46, 154, 0.2), transparent 65%), radial-gradient(55% 80% at -5% 110%, rgba(46, 230, 255, 0.13), transparent 70%); }
.page-hero h1 { margin-bottom: 16px; }
.legal-date { margin: 0 0 16px; font-size: 0.74rem; color: var(--fg-3); }
.legal { padding-bottom: clamp(60px, 9vw, 120px); }
.legal__summary, .legal__body { max-width: 860px; }
.legal__summary-title { margin: 0 0 14px; font-family: var(--font-hud); font-weight: 700; font-size: 0.84rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--wasabi); }
.legal__summary ul, .legal-sec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.legal__summary li, .legal-sec li { position: relative; padding-left: 26px; color: var(--fg-2); line-height: 1.65; }
.legal__summary li::before, .legal-sec li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 9px; height: 9px; background: var(--wasabi); transform: rotate(45deg); box-shadow: 0 0 10px rgba(200, 255, 46, 0.55); }
.legal__note { margin: 16px 0 0; font-size: 0.86rem; color: var(--fg-3); }
.legal__toc .odds-jump { margin: clamp(22px, 3vw, 32px) 0 clamp(6px, 1.2vw, 14px); }
.legal-sec { padding-block: clamp(28px, 3.6vw, 44px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal-sec h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.08; text-transform: uppercase; color: var(--fg); text-wrap: balance; }
.legal-sec h2 .num { flex: none; font-size: 0.82rem; font-weight: 700; color: var(--neon); }
.legal-sec h3 { margin: 26px 0 12px; font-family: var(--font-hud); font-weight: 700; font-size: 0.84rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg); }
.legal-sec h2 + h3 { margin-top: 0; }
.legal-sec p { margin: 0 0 14px; color: var(--fg-2); line-height: 1.7; }
.legal-sec ul { margin-bottom: 16px; }
.legal-sec > :last-child { margin-bottom: 0; }
.legal-sec strong, .legal__summary strong { color: var(--fg); font-weight: 800; }
.legal-sec a, .legal__summary a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--wasabi); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; transition: color 0.2s ease; }
.legal-sec a:hover, .legal__summary a:hover { color: var(--wasabi); }
.legal-sec code { font-family: var(--font-hud); font-size: 0.95em; color: var(--fg); background: rgba(247, 242, 255, 0.08); padding: 0.1em 0.45em; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- not found ---------- */
.notfound { position: relative; isolation: isolate; overflow: clip; min-height: min(100svh, 980px); display: grid; align-items: center; padding: calc(var(--nav-h) + 48px) 0 72px; }
.notfound__bg { position: absolute; inset: 0; z-index: -1; }
.notfound__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.notfound__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 7, 21, 0.45) 0%, rgba(11, 7, 21, 0.7) 60%, var(--ink) 100%), linear-gradient(90deg, rgba(11, 7, 21, 0.85) 0%, rgba(11, 7, 21, 0.15) 80%); }
.notfound h1 { margin-bottom: 16px; }
.notfound .lede { max-width: 40ch; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.notfound__bg img { object-position: 66% 50%; }
.foot__links a[aria-current="page"] { color: var(--fg); }
@media (max-width: 699px) {
  /* one swipeable row of section chips on phones instead of a tall stack */
  .legal__toc { margin-inline: calc(var(--gutter) * -1); }
  .legal__toc .odds-jump { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .legal__toc .odds-jump::-webkit-scrollbar { display: none; }
  .legal__toc .odds-jump li { flex: none; }
  .legal__toc .chip { white-space: nowrap; }
}
