
@font-face {
  font-family: 'Pixelify Sans';
  src: url('../fonts/pixelify-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night-0: #070518;
  --night-1: #0b0824;
  --night-2: #110c33;
  --sky: #24215f;
  --gold-light: #ffe7a0;
  --gold: #f5c542;
  --gold-deep: #f09a3e;
  --gold-dark: #b0600f;
  --gold-ink: #2b1503;
  --violet: #7c5cff;
  --violet-light: #c3b6ff;
  --violet-deep: #5a37f0;
  --violet-ink: #0e0638;
  --twitch: #9146ff;
  --twitch-light: #bf94ff;
  --online: #4ade80;
  --positive: #5ee08f;
  --negative: #ff6b6b;
  --text: #f1efff;
  --muted: #b3aedb;
  --faint: #8580b8;
  --panel: #14112f;
  --card: #19153d;
  --card-2: #1f1a4b;
  --raised: #262059;
  --border: #2d2866;
  --border-strong: #433d93;
  --outline: #07041a;
  --font-pixel: 'Pixelify Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --galactic: 'Pixelify Sans', 'Segoe UI Symbol', 'Gadugi', 'Euphemia UCAS', 'Euphemia', 'Noto Sans Canadian Aboriginal', 'Apple Symbols', 'Cambria Math', 'Noto Sans Symbols', 'Noto Sans Math', sans-serif;
  --content: 1180px;
  --fw: 3px;
  --sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-10Q0 0 10 0Q0 0 0 10Q0 0-10 0Q0 0 0-10Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 60% 40% at 15% 30%, rgb(90 55 240 / 13%), transparent 70%),
    radial-gradient(ellipse 50% 35% at 90% 60%, rgb(145 70 255 / 10%), transparent 70%),
    radial-gradient(ellipse 70% 30% at 50% 95%, rgb(245 197 66 / 6%), transparent 70%),
    var(--night-1);
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: no-common-ligatures;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--gold-light); }
a:hover { color: #fff; }
button { font: inherit; color: inherit; }
code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.9em; color: var(--gold-light); background: rgb(255 255 255 / 7%); padding: 1px 5px; border-radius: 4px; }
strong { color: #fff; font-weight: 800; }
::selection { background: rgb(124 92 255 / 55%); color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.pixel { image-rendering: pixelated; }
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px;
  background: var(--gold); color: var(--gold-ink); font-weight: 800; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }
.noscript { text-align: center; padding: 20px; background: var(--raised); }

.pixel-frame, .card, .fact, .player, .live-card, .step, .pd, .toast, .chip, .search, .ip-copy {
  --frame: var(--border-strong);
  box-shadow:
    0 calc(var(--fw) * -1) 0 0 var(--frame),
    0 var(--fw) 0 0 var(--frame),
    calc(var(--fw) * -1) 0 0 0 var(--frame),
    var(--fw) 0 0 0 var(--frame),
    var(--extra-shadow, 0 0 0 0 transparent);
}

.btn {
  --frame: var(--outline);
  --face: linear-gradient(180deg, #ffe680, #f7c23a 55%, #f0a43a);
  --edge: #b5620f;
  --ink: var(--gold-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px 15px;
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  border: 0;
  background:
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 16%) 0 9px, transparent 9px 18px),
    var(--face);
  box-shadow:
    inset 0 -5px 0 0 var(--edge),
    inset 0 3px 0 0 rgb(255 255 255 / 45%),
    0 calc(var(--fw) * -1) 0 0 var(--frame),
    0 var(--fw) 0 0 var(--frame),
    calc(var(--fw) * -1) 0 0 0 var(--frame),
    var(--fw) 0 0 0 var(--frame),
    0 calc(var(--fw) + 5px) 0 0 rgb(0 0 0 / 35%);
  transition: transform 0.12s, filter 0.15s;
}
.btn:hover { color: var(--ink); filter: brightness(1.08); transform: translateY(-2px); }
.btn:active { transform: translateY(2px); filter: brightness(0.96); }
.btn-violet {
  --face: radial-gradient(circle at 20% 30%, rgb(255 255 255 / 55%) 0 1.5px, transparent 2px) 0 0 / 34px 26px,
          radial-gradient(circle at 70% 70%, rgb(255 255 255 / 40%) 0 1px, transparent 1.5px) 0 0 / 22px 30px,
          linear-gradient(180deg, #8f6cff, #5a37f0 60%, #4628d4);
  --edge: #2c1690;
  --ink: #fff;
  text-shadow: 0 2px 0 rgb(14 6 56 / 60%);
}
.btn-violet:hover { color: #fff; }
.btn-twitch {
  --face: linear-gradient(180deg, #a970ff, #9146ff 60%, #7a2ff0);
  --edge: #4b1a9e;
  --ink: #fff;
  text-shadow: 0 2px 0 rgb(30 6 70 / 50%);
}
.btn-twitch:hover { color: #fff; }
.btn-ghost {
  --face: linear-gradient(180deg, #2a2463, #1d1849);
  --edge: #120e33;
  --ink: var(--text);
}
.btn-ghost:hover { color: #fff; }
.btn-small { padding: 8px 14px 11px; font-size: 1rem; gap: 8px; }
.link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--faint); text-decoration: underline; text-underline-offset: 3px; font-size: 0.9rem;
}
.link-button:hover { color: var(--text); }

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 28px);
  padding: 12px clamp(14px, 4vw, 40px);
  padding-top: max(12px, env(safe-area-inset-top));
  transition: background-color 0.3s, box-shadow 0.3s;
}
.topbar.is-solid {
  background: #0d0a2a;
  box-shadow: 0 3px 0 0 var(--border), 0 12px 30px -12px rgb(0 0 0 / 70%);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-family: var(--font-pixel); font-weight: 700; font-size: 1.35rem;
  text-shadow: 0 2px 0 var(--outline);
}
.brand img { border-radius: 8px; box-shadow: 0 0 0 2px var(--outline); }
.brand:hover { color: var(--gold-light); }
.nav { display: flex; align-items: center; gap: clamp(4px, 1.5vw, 14px); margin-left: auto; }
.nav a {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 8px;
  font-family: var(--font-pixel); font-size: 1.08rem; font-weight: 500;
  color: var(--text); text-decoration: none; text-shadow: 0 2px 0 var(--outline);
}
.nav a::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transition: transform 0.2s;
}
.nav a:hover { color: var(--gold-light); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.live-dot {
  display: inline-block; width: 10px; height: 10px; flex: none;
  background: #ff4d6d; box-shadow: 0 0 0 2px rgb(255 77 109 / 30%);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse { 50% { box-shadow: 0 0 0 5px rgb(255 77 109 / 0%); opacity: 0.75; } }

.hero {
  position: relative;
  isolation: isolate;
  min-height: max(100svh, 680px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #232060 url('../img/ciel.png') center top / auto 100% repeat-x;
  image-rendering: pixelated;
  cursor: crosshair;
}
.hero-scene { position: absolute; left: 0; top: 0; z-index: -1; image-rendering: pixelated; }
.hero-inner {
  width: 100%;
  max-width: 1000px;
  padding: max(92px, 11svh) 20px calc(var(--castle-h, 300px) + 18px);
  text-align: center;
  image-rendering: auto;
}
.hero a, .hero button { cursor: pointer; }
.hero-inner { transition: opacity 0.9s; }
.hero.is-finale .hero-inner { opacity: 0.06; transition-duration: 0.5s; }
.hero-status {
  position: absolute; z-index: 2; top: max(70px, calc(env(safe-area-inset-top) + 62px)); left: 0; right: 0;
  display: none; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 0 16px;
}
.topbar-status { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.topbar-status .status-chip { font-size: 0.92rem; padding: 4px 10px 5px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 6px;
  white-space: nowrap;
  font-family: var(--font-pixel); font-size: 0.98rem; color: #fff; text-decoration: none;
  background: rgb(10 7 34 / 82%);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 12%);
  animation: chip-in 0.5s ease-out both;
}
.status-chip:hover { color: #fff; background: rgb(10 7 34 / 95%); }
.status-chip .dot { width: 10px; height: 10px; background: var(--online); box-shadow: 0 0 10px var(--online); }
.status-chip.is-offline .dot { background: #8a85b5; box-shadow: none; }
.status-chip.is-live { box-shadow: 0 0 0 2px var(--twitch), 0 0 22px rgb(145 70 255 / 50%); }
@keyframes chip-in { from { opacity: 0; transform: translateY(-6px); } }
.hero-title { margin: 0; line-height: 0; }
.hero-logo {
  width: min(880px, 94vw, 86svh);
  height: auto;
  filter: drop-shadow(0 16px 24px rgb(5 3 20 / 55%));
  animation: logo-float 6s ease-in-out infinite;
  image-rendering: auto;
}
@keyframes logo-float { 50% { transform: translateY(-10px) rotate(-0.4deg); } }
.hero-tagline {
  margin: clamp(12px, 2.6svh, 26px) auto 10px;
  max-width: 24ch;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(1.4rem, min(3.4vw, 3.9svh), 2.45rem);
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 3px 0 var(--outline), 0 0 30px rgb(10 6 40 / 90%);
}
.hero-pitch {
  margin: 0 auto;
  max-width: 60ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.55;
  font-weight: 600;
  color: #ebe8ff;
  text-wrap: pretty;
  text-shadow: 0 2px 0 var(--outline), 0 0 18px rgb(10 6 40 / 95%);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 22px; margin-top: clamp(20px, 3.4svh, 32px); }
.hero-hint {
  position: absolute; left: 0; right: 0; bottom: 14px; margin: 0;
  text-align: center; font-family: var(--font-pixel); font-size: 0.92rem;
  color: rgb(241 239 255 / 62%); text-shadow: 0 2px 0 var(--outline);
  pointer-events: none;
  image-rendering: auto;
  transition: opacity 0.6s;
}
.hero-hint.is-used { opacity: 0; }

.section {
  position: relative;
  width: 100%;
  max-width: calc(var(--content) + 40px);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 130px) 20px 0;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-pixel); font-size: 1.05rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet-light);
}
.eyebrow::before, .eyebrow::after {
  content: ''; width: 12px; height: 12px; background: var(--gold);
  -webkit-mask: var(--sparkle) center / contain no-repeat; mask: var(--sparkle) center / contain no-repeat;
  animation: sparkle 3s ease-in-out infinite;
}
.eyebrow::after { animation-delay: -1.5s; }
.eyebrow .glyph { font-family: var(--galactic); color: var(--violet-light); }
@keyframes sparkle { 50% { transform: scale(0.55) rotate(45deg); opacity: 0.5; } }

.section-title, .gold-title {
  margin: 0;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--gold);
  background:
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 20%) 0 0.12em, transparent 0.12em 0.24em),
    linear-gradient(180deg, #fff3b8 0%, #ffd54a 42%, #f7a531 72%, #e47d1d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0.07em 0 #9a4b0b)
    drop-shadow(2px 0 0 var(--outline)) drop-shadow(-2px 0 0 var(--outline))
    drop-shadow(0 2px 0 var(--outline)) drop-shadow(0 -2px 0 var(--outline))
    drop-shadow(0 10px 18px rgb(0 0 0 / 45%));
  text-wrap: balance;
}
.section-lead { margin: 18px auto 0; max-width: 56ch; font-size: 1.13rem; color: var(--muted); text-wrap: pretty; }

.summary { display: grid; gap: 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 28px);
  background: linear-gradient(180deg, var(--card-2), var(--card) 40%);
  --extra-shadow: 0 22px 40px -22px rgb(0 0 0 / 80%);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { --frame: #5a52b8; }
.card-title {
  margin: 0 0 10px;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--gold-light);
  text-shadow: 0 2px 0 var(--outline);
}
.card p { margin: 0 0 14px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
  font-family: var(--font-pixel); font-weight: 600; font-size: 1.05rem; text-decoration: none; color: var(--gold-light);
}
.card-link:hover span { transform: translateX(4px); }
.card-link span { transition: transform 0.2s; }
.card-lucky {
  background:
    radial-gradient(ellipse 60% 55% at 85% 100%, rgb(124 92 255 / 22%), transparent 70%),
    linear-gradient(180deg, var(--card-2), var(--card) 40%);
}

.section-destia { isolation: isolate; }
.section-destia > :not(.lucky-rain) { position: relative; }
.lucky-rain {
  position: absolute; z-index: -1;
  top: 0; bottom: calc(clamp(72px, 11vw, 130px) * -1);
  left: 50%; width: 100vw; translate: -50% 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask: linear-gradient(transparent, #000 16%, #000 78%, transparent);
  mask: linear-gradient(transparent, #000 16%, #000 78%, transparent);
}
.rain-drop {
  position: absolute; top: 0;
  display: block;
  animation: rain-fall var(--dur) linear var(--delay) infinite paused;
}
.lucky-rain.is-playing .rain-drop { animation-play-state: running; }
.rain-drop .mini-cube, .rain-drop .mini-cube::before, .rain-drop .mini-cube::after { animation: none; }
.rain-drop .mini-cube { margin: 0; }
.rain-drop.is-depth-0 { filter: blur(1px); }
@keyframes rain-fall {
  from { transform: translate(0, -70px) rotate(0deg); }
  to { transform: translate(var(--drift), var(--fall, 900px)) rotate(var(--spin)); }
}

.facts { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.fact {
  flex: 0 1 380px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 16px 22px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  --extra-shadow: 0 18px 34px -22px rgb(0 0 0 / 80%);
}
.fact[hidden] { display: none; }
.fact-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 72px; height: 60px; }
.fact-faces { width: auto; min-width: 72px; justify-content: flex-start; }
.fact-faces img {
  width: 26px; height: 26px; margin-left: -9px; flex: none;
  image-rendering: pixelated;
  box-shadow: 0 0 0 2px var(--outline);
}
.fact-faces img:first-child { margin-left: 0; }
.fact-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact-number {
  font-family: var(--font-pixel); font-weight: 700; font-size: 2rem; line-height: 1;
  color: var(--gold-light); text-shadow: 0 2px 0 var(--outline);
}
.fact-label { color: var(--muted); line-height: 1.3; }

.lucky-show { position: relative; width: 230px; height: 200px; margin: auto; }
.lucky-show::before {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 200px; height: 46px; margin-left: -100px;
  background:
    radial-gradient(ellipse 50% 42% at 50% 50%, rgb(255 213 74 / 30%), transparent 70%),
    radial-gradient(ellipse at center, rgb(124 92 255 / 45%), transparent 70%);
  animation: lucky-glow 3.4s ease-in-out infinite;
}
.lucky-show::after {
  content: ''; position: absolute; left: 50%; bottom: 14px; width: 104px; height: 16px; margin-left: -52px;
  background: radial-gradient(ellipse at center, rgb(0 0 0 / 55%), transparent 70%);
  animation: lucky-shadow 3.4s ease-in-out infinite;
}
.lucky-float {
  position: absolute; inset: 0 0 26px; z-index: 1;
  display: grid; place-items: center;
  animation: lucky-bob 3.4s ease-in-out infinite;
}
.lucky-float .mini-cube { --s: 84px; margin: 0; }
@keyframes lucky-bob { 50% { translate: 0 -12px; } }
@keyframes lucky-shadow { 50% { transform: scale(0.8); opacity: 0.7; } }
@keyframes lucky-glow { 50% { opacity: 0.75; transform: scale(1.06); } }
.lucky-spark {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  width: 12px; height: 12px;
  background: var(--gold-light);
  -webkit-mask: var(--sparkle) center / contain no-repeat;
  mask: var(--sparkle) center / contain no-repeat;
  opacity: 0;
  animation: lucky-sparkle 3.3s ease-in-out var(--d) infinite;
}
@keyframes lucky-sparkle { 0%, 100% { opacity: 0; scale: 0.4; } 40% { opacity: 1; scale: 1.1; } 60% { opacity: 0.8; scale: 0.9; } }

.mini-cube {
  --s: 26px;
  --shade: rgb(10 6 40 / 14%);
  position: relative;
  display: block;
  flex: none;
  width: var(--s);
  height: var(--s);
  margin: 6px 12px 6px 4px;
  transform-style: preserve-3d;
  transform: rotateX(-30deg) rotateY(-40deg) translateZ(calc(var(--s) / 2));
}
.mini-cube, .mini-cube::before, .mini-cube::after {
  background-image: linear-gradient(var(--shade), var(--shade)), var(--tex);
  background-size: 100% 100%, 100% var(--tex-h, 100%);
  background-position: 0 0, 0 0;
  image-rendering: pixelated;
}
.mini-cube::before, .mini-cube::after { content: ''; position: absolute; width: 100%; height: 100%; }
.mini-cube::before { --shade: rgb(10 6 40 / 45%); left: 100%; top: 0; transform-origin: 0 50%; transform: rotateY(90deg); }
.mini-cube::after { --shade: transparent; left: 0; bottom: 100%; transform-origin: 50% 100%; transform: rotateX(90deg); }
.tex-lucky-block { --tex: url('../img/textures/lucky_block.png'); --tex-h: 700%; }
.tex-lucky-block, .tex-lucky-block::before, .tex-lucky-block::after { animation: mini-frames 1.05s steps(7) infinite; }
@keyframes mini-frames { to { background-position: 0 0, 0 calc(var(--s) * -7); } }

.mc-tab {
  margin: 14px 0 16px; padding: 8px; display: grid; gap: 3px;
  font-family: var(--font-pixel); font-size: 0.98rem; line-height: 1.45;
  background: rgb(0 0 0 / 42%); text-shadow: 2px 2px 0 rgb(0 0 0 / 55%);
}
.mc-live { font-family: var(--font-pixel); font-weight: 700; color: var(--twitch-light); text-shadow: 0 0 12px rgb(145 70 255 / 70%); }
.mc-tab-row { display: flex; align-items: center; gap: 8px; padding: 2px 6px; background: rgb(255 255 255 / 7%); color: #fff; white-space: nowrap; overflow: hidden; }
.mc-tab-row img { width: 18px; height: 18px; image-rendering: pixelated; flex: none; }
.mc-tab-row .mc-live { font-size: 0.95em; }
.mc-tab-row .ping { margin-left: auto; display: flex; align-items: flex-end; gap: 1px; height: 11px; }
.mc-tab-row .ping i { width: 2px; background: #3ddc5f; box-shadow: 1px 1px 0 rgb(0 0 0 / 50%); }

.live-block { margin: 0 0 54px; }
.live-title {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 20px;
  font-family: var(--font-pixel); font-size: 1.6rem; color: #fff; text-shadow: 0 2px 0 var(--outline);
}
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 380px)); justify-content: center; gap: 28px; }
.live-card {
  --frame: var(--twitch);
  --extra-shadow: 0 0 40px -6px rgb(145 70 255 / 55%);
  position: relative;
  display: flex;
  flex-direction: column;
  background: #1a1342;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s;
}
.live-card:hover { transform: translateY(-5px); color: var(--text); }
.live-thumb { position: relative; aspect-ratio: 16 / 9; background: #0d0a24 center / cover no-repeat; overflow: hidden; }
.live-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.badge-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px 3px;
  font-family: var(--font-pixel); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em;
  color: #fff; background: #e91916;
}
.live-thumb .badge-live { position: absolute; top: 10px; left: 10px; }
.live-viewers {
  position: absolute; left: 10px; bottom: 10px; padding: 1px 8px 2px;
  font-family: var(--font-pixel); font-size: 0.9rem; color: #fff; background: rgb(0 0 0 / 72%);
}
.live-watch {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 10px 4px; border: 0; cursor: pointer;
  font-family: var(--font-pixel); font-size: 0.9rem; color: #fff; background: rgb(145 70 255 / 90%);
}
.live-watch:hover { background: var(--twitch); }
.live-info { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 14px 16px; }
.live-info img { width: 44px; height: 44px; image-rendering: pixelated; box-shadow: 0 0 0 2px var(--twitch); }
.live-name { margin: 0; font-family: var(--font-pixel); font-weight: 700; font-size: 1.15rem; color: #fff; }
.live-stream-title { margin: 2px 0 0; font-size: 0.95rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-game { margin: 4px 0 0; font-size: 0.88rem; color: var(--twitch-light); }
.live-link { position: absolute; inset: 0; z-index: 1; }
.live-watch, .live-thumb iframe { z-index: 2; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 22px; margin: 0 0 34px; }
.search {
  --frame: var(--border-strong);
  display: flex; align-items: center; gap: 10px;
  flex: 1 1 260px; max-width: 380px;
  padding: 0 14px;
  background: var(--panel);
  color: var(--faint);
}
.search:focus-within { --frame: var(--gold); color: var(--gold-light); }
.search input {
  flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: none;
  font: inherit; font-size: 1.02rem; color: var(--text);
}
.search input::placeholder { color: var(--faint); }
.filters { display: flex; flex-wrap: wrap; gap: 14px; }
.chip {
  --frame: var(--border-strong);
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border: 0; cursor: pointer;
  font-family: var(--font-pixel); font-size: 1.02rem;
  background: var(--panel); color: var(--muted);
  transition: color 0.15s, background-color 0.15s;
}
.chip:hover { color: #fff; }
.chip[aria-pressed='true'] { --frame: var(--gold); background: #2a2156; color: #fff; }
.chip-live[aria-pressed='true'] { --frame: var(--twitch); }
.chip-online[aria-pressed='true'] { --frame: var(--online); }
.chip-count { min-width: 1ch; color: var(--faint); }
.chip[aria-pressed='true'] .chip-count { color: var(--gold-light); }
.chip-online::before { content: ''; width: 9px; height: 9px; background: var(--online); }

.player-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 28px; }
.player-grid > .player { flex: 0 0 210px; min-width: 0; }
.player {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 18px;
  text-align: center;
  background: linear-gradient(180deg, var(--card-2), var(--card) 50%);
  --extra-shadow: 0 20px 34px -20px rgb(0 0 0 / 85%);
  transition: transform 0.22s, box-shadow 0.22s;
  animation: player-in 0.45s ease-out both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes player-in { from { opacity: 0; transform: translateY(14px); } }
.player-groups.is-settled .player { animation: none; }
.player:hover, .player:focus-within { transform: translateY(-6px); --frame: var(--gold); }
.player.is-live { --frame: var(--twitch); --extra-shadow: 0 0 0 7px rgb(145 70 255 / 16%), 0 0 44px -4px rgb(145 70 255 / 55%); }
.player.is-live:hover { --frame: var(--twitch-light); }
.player-open { position: absolute; inset: 0; z-index: 1; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; }
.player-open:focus-visible { outline-offset: 6px; }
.player-figure {
  position: relative;
  align-self: stretch;
  height: 218px;
  margin: 0 -16px 14px;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 42% at 50% 92%, rgb(124 92 255 / 40%), transparent 70%),
    url('../img/ciel.png') center 20% / 520px auto;
  image-rendering: pixelated;
}
.player-figure::after {
  content: ''; position: absolute; left: 50%; bottom: 12px; width: 84px; height: 12px; margin-left: -42px;
  background: radial-gradient(ellipse at center, rgb(0 0 0 / 55%), transparent 70%);
}
.player-figure img {
  position: relative; z-index: 1;
  height: 188px; width: auto; margin-bottom: 16px;
  image-rendering: auto;
  filter: drop-shadow(0 4px 0 rgb(0 0 0 / 25%));
  transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1), opacity 0.4s ease-out;
}
.player-figure img:not(.is-ready) { opacity: 0; }
.player-figure img.is-mystery { height: 64px; margin-bottom: 60px; image-rendering: pixelated; }
.player:hover .player-figure img { transform: translateY(-6px); }
.player-badges { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.badge-online {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  padding: 2px 8px 3px; font-family: var(--font-pixel); font-size: 0.82rem; color: #d9ffe6;
  background: rgb(8 40 22 / 88%); box-shadow: 0 0 0 2px rgb(74 222 128 / 55%);
}
.badge-online::before { content: ''; width: 8px; height: 8px; background: var(--online); box-shadow: 0 0 8px var(--online); }
.badge-new {
  display: inline-flex; align-items: center; gap: 5px; margin-left: auto;
  padding: 2px 8px 3px;
  font-family: var(--font-pixel); font-weight: 700; font-size: 0.82rem; line-height: 1.25;
  color: var(--gold-ink); background: var(--gold-light);
  box-shadow: 0 2px 0 var(--outline);
  rotate: 3deg;
}
.badge-online + .badge-new { margin-left: 0; }
.badge-new::before {
  content: ''; width: 9px; height: 9px; background: currentColor;
  -webkit-mask: var(--sparkle) center / contain no-repeat;
  mask: var(--sparkle) center / contain no-repeat;
}
.player-role {
  margin: 0 0 6px; padding: 1px 9px 2px;
  font-family: var(--font-pixel); font-size: 0.86rem; letter-spacing: 0.04em;
  color: var(--gold-light); box-shadow: 0 0 0 2px rgb(245 197 66 / 45%);
}
.player-name {
  margin: 0; max-width: 100%;
  font-family: var(--font-pixel); font-weight: 700; font-size: 1.38rem; line-height: 1.15; color: #fff;
  text-shadow: 0 2px 0 var(--outline);
  overflow-wrap: anywhere;
}
.player-desc {
  margin: 10px 0 0; font-size: 0.95rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.player-links { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: auto; padding-top: 14px; }
.social {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px 6px;
  font-family: var(--font-pixel); font-size: 0.92rem; color: #fff; text-decoration: none;
  background: var(--raised); box-shadow: 0 0 0 2px var(--border-strong);
  transition: background-color 0.15s, box-shadow 0.15s;
}
.social:hover { color: #fff; background: #322b74; }
.social-twitch { background: #3a1f73; box-shadow: 0 0 0 2px #6d3fd1; }
.social-twitch:hover { background: #4b278f; }
.social-twitch.is-live { background: var(--twitch); box-shadow: 0 0 0 2px var(--twitch-light), 0 0 18px rgb(145 70 255 / 60%); }
.social-youtube:hover { background: #7a1b1b; }
.social-tiktok:hover { background: #134f55; }
.social .icon { width: 1.05em; height: 1.05em; }
.players-message {
  padding: 30px 24px; text-align: center; color: var(--muted);
  background: var(--panel); box-shadow: inset 0 0 0 2px var(--border);
}
.players-message h3 { margin: 0 0 6px; font-family: var(--font-pixel); font-size: 1.4rem; color: var(--gold-light); }
.players-message p { margin: 0 auto; max-width: 60ch; }
.players-message code { white-space: nowrap; }
.players-message.is-error { box-shadow: inset 0 0 0 2px rgb(255 107 107 / 60%); }
.players-message.is-error h3 { color: var(--negative); }

.player-group { --tone: #ddd8ff; }
.player-group.tone-gold { --tone: var(--gold); }
.player-group.tone-violet { --tone: var(--violet-light); }
.player-group + .player-group { margin-top: clamp(48px, 6vw, 68px); }
.group-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 28px;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.1;
  color: var(--tone);
  text-shadow: 0 2px 0 var(--outline);
}
.group-title::before, .group-title::after {
  content: '';
  flex: 0 1 220px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--tone) 0 9px, transparent 9px 16px);
  opacity: 0.55;
}
.group-icon { width: 22px; height: auto; flex: none; filter: drop-shadow(0 2px 0 var(--outline)); }
.tone-gold .group-title { text-shadow: 0 2px 0 var(--outline), 0 0 24px rgb(245 197 66 / 35%); }

.player-group.is-banner { --glow: 221 216 255; --ribbon: #ddd8ff; --ribbon-dark: #8580b8; --ribbon-ink: var(--night-1); }
.player-group.is-banner.tone-gold { --glow: 245 197 66; --ribbon: var(--gold); --ribbon-dark: var(--gold-dark); --ribbon-ink: var(--gold-ink); }
.player-group.is-banner.tone-violet { --glow: 124 92 255; --ribbon: var(--violet); --ribbon-dark: #3a1fa8; --ribbon-ink: #fff; }
.banner {
  --unit: 7px;
  --frame: rgb(var(--glow) / 75%);
  position: relative;
  margin-top: 26px;
  padding: clamp(50px, 6vw, 62px) clamp(12px, 3vw, 36px) 28px;
  overflow: clip visible;
  background:
    radial-gradient(ellipse 75% 46% at 50% 106%, rgb(var(--glow) / 26%), transparent 70%),
    linear-gradient(180deg, transparent 35%, rgb(7 4 26 / 70%)),
    url('../img/ciel.png') center / cover,
    var(--night-2);
  image-rendering: pixelated;
  box-shadow:
    0 calc(var(--fw) * -1) 0 0 var(--frame),
    0 var(--fw) 0 0 var(--frame),
    calc(var(--fw) * -1) 0 0 0 var(--frame),
    var(--fw) 0 0 0 var(--frame),
    0 0 70px -24px rgb(var(--glow) / 45%),
    0 26px 50px -26px rgb(0 0 0 / 90%);
  animation: player-in 0.5s ease-out both;
}
.player-groups.is-settled .banner { animation: none; }
.banner-sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.banner-sparks i {
  position: absolute;
  width: var(--s); height: var(--s);
  background: rgb(var(--glow));
  -webkit-mask: var(--sparkle) center / contain no-repeat;
  mask: var(--sparkle) center / contain no-repeat;
  opacity: 0.45;
  animation: banner-twinkle 3.6s ease-in-out infinite;
}
@keyframes banner-twinkle { 0%, 100% { opacity: 0.15; scale: 0.7; } 50% { opacity: 0.95; scale: 1.2; } }

.banner-ribbon {
  position: absolute; left: 50%; top: 0; z-index: 3;
  margin: 0;
  translate: -50% -50%;
  filter:
    drop-shadow(3px 0 0 var(--outline)) drop-shadow(-3px 0 0 var(--outline))
    drop-shadow(0 3px 0 var(--outline)) drop-shadow(0 -3px 0 var(--outline))
    drop-shadow(0 6px 0 rgb(0 0 0 / 35%));
}
.banner-ribbon::before, .banner-ribbon::after {
  content: '';
  position: absolute; top: 10px; bottom: -10px; z-index: -1;
  width: 48px;
  background: var(--ribbon-dark);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 15px 50%);
}
.banner-ribbon::before { right: calc(100% - 18px); }
.banner-ribbon::after { left: calc(100% - 18px); scale: -1 1; }
.ribbon-band {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 8px clamp(18px, 3vw, 30px) 11px;
  font-family: var(--font-pixel); font-weight: 700; font-size: clamp(1.3rem, 2.8vw, 1.7rem); line-height: 1.1;
  white-space: nowrap;
  color: var(--ribbon-ink);
  background: var(--ribbon);
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / 22%), inset 0 3px 0 rgb(255 255 255 / 40%);
}
.ribbon-band .group-icon { filter: none; }
.tone-violet .ribbon-band { text-shadow: 0 2px 0 rgb(14 6 56 / 70%); }

.banner-stage {
  position: relative; z-index: 1;
  display: flex; justify-content: space-evenly; align-items: flex-start;
  gap: clamp(8px, 2vw, 24px);
}
.banner-member {
  position: relative;
  flex: 0 1 calc(var(--unit) * 34);
  min-width: 0;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.banner-member.is-live { --glow: 145 70 255; }
.banner-figure {
  position: relative;
  align-self: stretch;
  height: calc(var(--unit) * 38);
  margin: 0;
  display: flex; align-items: flex-end; justify-content: center;
}
.banner-figure::before {
  content: '';
  position: absolute; left: 50%; bottom: 0;
  width: 130%; height: 118%;
  translate: -50% 0;
  background:
    radial-gradient(ellipse 34% 6% at 50% 97%, rgb(var(--glow) / 55%), transparent),
    conic-gradient(from 160deg at 50% 0, transparent, rgb(var(--glow) / 16%) 14deg 26deg, transparent 40deg);
  opacity: 0.75;
  transition: opacity 0.25s;
  pointer-events: none;
}
.banner-figure::after {
  content: '';
  position: absolute; left: 50%; bottom: -3px;
  width: calc(var(--unit) * 15); height: calc(var(--unit) * 2.2);
  translate: -50% 0;
  background: radial-gradient(ellipse at center, rgb(0 0 0 / 60%), transparent 70%);
}
.banner-figure img {
  position: relative; z-index: 1;
  width: calc(var(--w, 0) * var(--unit));
  height: calc(var(--h, 0) * var(--unit));
  max-width: none;
  image-rendering: auto;
  filter: drop-shadow(0 4px 0 rgb(0 0 0 / 25%));
  transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
}
.banner-figure img:not(.is-ready) { opacity: 0; }
.banner-figure img.is-ready { animation: pose-in 0.65s cubic-bezier(.34, 1.56, .64, 1) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
.player-groups.is-settled .banner-figure img { animation: none; }
@keyframes pose-in { from { opacity: 0; translate: 0 22px; scale: 0.9; } }
.banner-figure img.is-mystery { width: 64px; height: 64px; margin-bottom: calc(var(--unit) * 10); image-rendering: pixelated; }
.banner-member:hover .banner-figure img, .banner-member:focus-within .banner-figure img { transform: translateY(-8px); }
.banner-member:hover .banner-figure::before, .banner-member:focus-within .banner-figure::before { opacity: 1; }
.banner-plate {
  display: flex; flex-direction: column; align-items: center;
  max-width: 100%;
  margin-top: 16px;
}
.banner-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin-bottom: 8px; }
.banner-badges :is(.badge-online, .badge-new) { margin-left: 0; }
.banner-name {
  margin: 0; max-width: 100%;
  font-family: var(--font-pixel); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 0 var(--outline);
  overflow-wrap: anywhere;
  transition: color 0.15s;
}
.banner-member:hover .banner-name, .banner-member:focus-within .banner-name { color: var(--gold-light); }
.banner-desc { margin: 10px 0 0; color: var(--muted); }
.banner-member .player-links { margin-top: 0; padding-top: 12px; }

.banner.is-solo { --unit: 8.5px; }
.banner.is-solo .banner-stage { justify-content: center; }
.banner.is-solo .banner-member { flex: 0 1 auto; flex-direction: row; align-items: center; gap: clamp(24px, 5vw, 72px); text-align: left; }
.banner.is-solo .banner-figure { flex: none; align-self: auto; width: calc(var(--unit) * 32); }
.banner.is-solo .banner-plate { align-items: flex-start; max-width: 440px; margin: 0 0 calc(var(--unit) * 4); }
.banner.is-solo :is(.banner-badges, .player-links) { justify-content: flex-start; }
.banner.is-solo .banner-name { font-size: clamp(2rem, 5vw, 3.1rem); }
.banner.is-solo .banner-desc { font-size: 1.1rem; }

@property --p1 { syntax: '<color>'; inherits: false; initial-value: #ff4f8b; }
@property --p2 { syntax: '<color>'; inherits: false; initial-value: #ffd23f; }
@property --p3 { syntax: '<color>'; inherits: false; initial-value: #4cc9f0; }
@property --p4 { syntax: '<color>'; inherits: false; initial-value: #9b5de5; }
@keyframes palette-turn {
  0%, 100% { --p1: #ff4f8b; --p2: #ffd23f; --p3: #4cc9f0; --p4: #9b5de5; }
  25% { --p1: #9b5de5; --p2: #ff4f8b; --p3: #ffd23f; --p4: #4cc9f0; }
  50% { --p1: #4cc9f0; --p2: #9b5de5; --p3: #ff4f8b; --p4: #ffd23f; }
  75% { --p1: #ffd23f; --p2: #4cc9f0; --p3: #9b5de5; --p4: #ff4f8b; }
}
.player.is-artist, .pd.is-artist {
  box-shadow:
    0 calc(var(--fw) * -1) 0 0 var(--p1),
    var(--fw) 0 0 0 var(--p2),
    0 var(--fw) 0 0 var(--p3),
    calc(var(--fw) * -1) 0 0 0 var(--p4),
    0 0 50px -10px rgb(255 79 139 / 45%),
    var(--extra-shadow, 0 0 0 0 transparent);
  animation: player-in 0.45s ease-out both, palette-turn 8s linear infinite;
  animation-delay: calc(var(--i, 0) * 45ms), 0s;
}
.pd.is-artist { animation: palette-turn 8s linear infinite; --extra-shadow: 0 30px 80px -20px rgb(0 0 0 / 90%); }
.player-groups.is-settled .player.is-artist { animation: palette-turn 8s linear infinite; }
.player.is-artist.is-live { --extra-shadow: 0 0 44px -4px rgb(145 70 255 / 55%); }
.player.is-artist .player-name, .pd.is-artist .pd-name {
  background: linear-gradient(90deg, #ff9fc6, #ffe38a, #9fe6ff, #c9a8ff, #ff9fc6) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 0 var(--outline));
  animation: paint-flow 6s linear infinite;
}
@keyframes paint-flow { to { background-position: 200% 0; } }

@property --sway { syntax: '<angle>'; inherits: true; initial-value: -40deg; }
@keyframes oeuvre-float {
  0%, 100% { translate: 0 0; --sway: -52deg; }
  50% { translate: 0 -7px; --sway: -28deg; }
}
.oeuvre { position: absolute; z-index: 2; right: 6px; top: 40%; pointer-events: none; }
.oeuvre::after {
  content: ''; position: absolute; left: 50%; bottom: -14px; width: 34px; height: 8px; margin-left: -17px;
  background: radial-gradient(ellipse at center, rgb(0 0 0 / 45%), transparent 70%);
}
.oeuvre-cube, .pd-oeuvre-cube { display: block; animation: oeuvre-float 4s ease-in-out infinite; }
.oeuvre-cube .mini-cube, .pd-oeuvre-cube .mini-cube {
  --s: 28px;
  margin: 10px 14px 4px;
  transform: rotateX(-28deg) rotateY(var(--sway)) translateZ(calc(var(--s) / 2));
}
.pd-oeuvre {
  display: flex; align-items: center; gap: 16px;
  margin-top: 20px; padding: 12px 16px;
  background: rgb(255 255 255 / 4%);
  box-shadow: inset 0 0 0 2px rgb(255 159 198 / 35%);
}
.pd-oeuvre:empty { display: none; }
.pd-oeuvre-cube .mini-cube { --s: 40px; }
.pd-oeuvre-text { flex: 1; min-width: 0; }
.pd-oeuvre-label { margin: 0; font-family: var(--font-pixel); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: #ff9fc6; }
.pd-oeuvre-name { margin: 2px 0 0; font-family: var(--font-pixel); font-weight: 700; font-size: 1.2rem; color: #fff; }
.pd-oeuvre-flat { width: 64px; height: 64px; image-rendering: pixelated; box-shadow: 0 0 0 2px var(--outline), 0 0 0 4px rgb(255 255 255 / 12%); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 30px; margin: 0; padding: 0; list-style: none; }
.step {
  counter-increment: step;
  position: relative;
  padding: 58px 26px 28px;
  text-align: center;
  background: linear-gradient(180deg, var(--card-2), var(--card) 50%);
  --extra-shadow: 0 22px 40px -22px rgb(0 0 0 / 80%);
}
.step::before {
  content: counter(step);
  position: absolute; top: -26px; left: 50%; margin-left: -26px;
  width: 52px; height: 52px; display: grid; place-items: center;
  font-family: var(--font-pixel); font-weight: 700; font-size: 1.7rem; color: var(--gold-ink);
  background: linear-gradient(180deg, #ffe680, #f0a43a);
  box-shadow: inset 0 -4px 0 #b5620f, 0 -3px 0 0 var(--outline), 0 3px 0 0 var(--outline), -3px 0 0 0 var(--outline), 3px 0 0 0 var(--outline);
}
.step h3 { margin: 0 0 8px; font-family: var(--font-pixel); font-size: 1.45rem; color: #fff; }
.step p { margin: 0 0 22px; color: var(--muted); }
.ip-copy {
  --frame: var(--gold);
  display: inline-flex; align-items: stretch; max-width: 100%;
  padding: 0; border: 0; cursor: pointer; background: #0c0927;
  font-family: var(--font-pixel);
}
.ip-value { padding: 10px 16px; font-size: 1.3rem; color: var(--gold-light); overflow-wrap: anywhere; }
.ip-action { display: grid; place-items: center; padding: 0 14px; font-size: 1rem; color: var(--gold-ink); background: var(--gold); }
.ip-copy:hover .ip-action { background: #ffe680; }

.footer {
  position: relative;
  margin-top: clamp(90px, 12vw, 150px);
  padding: 60px 20px 48px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgb(5 3 20 / 70%) 40%, #050314);
}
.footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--border) 0 12px, transparent 12px 24px);
}
.footer-icon { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 0 0 3px var(--outline), 0 0 30px rgb(124 92 255 / 45%); }
.footer-title { margin: 12px 0 6px; font-family: var(--font-pixel); font-weight: 700; font-size: 1.6rem; color: var(--gold-light); }
.footer-credits { margin: 0 0 14px; color: var(--muted); }
.footer-small { margin: 4px 0 0; font-size: 0.88rem; color: var(--faint); }

.player-dialog {
  width: min(900px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.player-dialog::backdrop { background: rgb(5 3 20 / 78%); }
.player-dialog[open] { animation: dialog-in 0.28s cubic-bezier(.34, 1.4, .64, 1); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(0.96); } }
.pd {
  --frame: var(--gold);
  --extra-shadow: 0 30px 80px -20px rgb(0 0 0 / 90%);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(400px, 1fr);
  grid-template-areas: "stage info";
  max-height: calc(100dvh - 36px);
  overflow: auto;
  background: var(--panel);
}
.pd-close {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; cursor: pointer; background: var(--raised); color: #fff;
  box-shadow: 0 0 0 2px var(--border-strong);
}
.pd-close:hover { background: #3a3280; }
.pd-close .icon { width: 22px; height: 22px; }
.pd-stage {
  grid-area: stage;
  position: relative;
  min-height: 400px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background:
    radial-gradient(ellipse 50% 22% at 50% 88%, rgb(124 92 255 / 45%), transparent 70%),
    url('../img/ciel.png') center 30% / 900px auto;
  image-rendering: pixelated;
}
.pd-stage:active { cursor: grabbing; }
.pd-stage::after {
  content: ''; position: absolute; left: 50%; bottom: 34px; width: 150px; height: 20px; margin-left: -75px;
  background: radial-gradient(ellipse at center, rgb(0 0 0 / 55%), transparent 70%);
}
.pd-info { grid-area: info; padding: clamp(26px, 4vw, 40px) clamp(22px, 3.4vw, 36px); display: flex; flex-direction: column; align-items: flex-start; }
.pd-role { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; }
.pd-role .player-role { margin: 0; }
.pd-role .badge-new { margin-left: 0; }
.pd-role:empty { display: none; }
.pd-name { margin: 0; font-family: var(--font-pixel); font-weight: 700; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.05; color: var(--gold-light); text-shadow: 0 3px 0 var(--outline); overflow-wrap: anywhere; }
.pd-status { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 0.98rem; color: var(--online); }
.pd-status::before { content: ''; width: 8px; height: 8px; background: var(--online); box-shadow: 0 0 8px var(--online); }
.pd-status:empty { display: none; }
.pd-desc { margin: 18px 0 0; font-size: 1.05rem; color: var(--text); }
.pd-desc:empty { display: none; }
.pd-live { width: 100%; margin-top: 22px; }
.pd-live:empty { display: none; }
.pd-live .live-card { width: 100%; }
.pd-offline { margin: 0; padding: 12px 14px; font-size: 0.98rem; color: var(--muted); background: rgb(255 255 255 / 4%); box-shadow: inset 0 0 0 2px var(--border); }
.pd-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.pd-links:empty { display: none; }

.toasts {
  position: fixed; z-index: 80; top: max(84px, env(safe-area-inset-top)); right: 18px;
  display: grid; gap: 14px; width: min(340px, calc(100vw - 36px));
  pointer-events: none;
}
.toast {
  --frame: var(--gold);
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 10px 14px 11px;
  background: #15112f;
  --extra-shadow: 0 16px 34px -10px rgb(0 0 0 / 85%);
  animation: toast-in 0.4s cubic-bezier(.34, 1.4, .64, 1), toast-out 0.4s ease-in forwards var(--out, 4.4s);
  pointer-events: auto;
}
.toast img { width: 36px; height: 36px; image-rendering: pixelated; }
.toast-title { margin: 0; font-family: var(--font-pixel); font-weight: 600; font-size: 0.98rem; color: var(--gold); }
.toast-text { margin: 0; font-family: var(--font-pixel); font-size: 1.08rem; color: #fff; }
.toast.is-info { --frame: var(--violet-light); }
.toast.is-info .toast-title { color: var(--violet-light); }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }

.v1-logo { display: block; width: min(620px, 88vw); height: auto; margin: 0 auto; filter: drop-shadow(0 14px 22px rgb(5 3 20 / 60%)); }
.v1-story {
  max-width: 68ch;
  margin: 0 auto clamp(40px, 6vw, 64px);
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--text);
}
.v1-story:empty { display: none; }
.v1-story p { margin: 0 0 1em; text-wrap: pretty; }
.v1-story p:last-child { margin-bottom: 0; }
.v1-story p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.14em 0 0;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 3.3em;
  line-height: 0.8;
  color: var(--gold);
  text-shadow: 0 3px 0 #9a4b0b, 2px 0 0 var(--outline), -2px 0 0 var(--outline), 0 -2px 0 var(--outline), 0 5px 0 var(--outline);
}
.v1-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(34px, 4.5vw, 52px) clamp(22px, 3vw, 36px);
  padding-top: 14px;
}
.shot {
  --tilt: -2deg;
  --tape: rgb(250 238 205 / 78%);
  position: relative;
  margin: 0;
  padding: 10px 10px 0;
  background: #f6f1e6;
  box-shadow: 0 2px 0 rgb(0 0 0 / 18%), 0 22px 34px -16px rgb(0 0 0 / 80%);
  rotate: var(--tilt);
  animation: player-in 0.45s ease-out both;
  animation-delay: calc(var(--i, 0) * 60ms);
  transition: rotate 0.3s, translate 0.3s, box-shadow 0.3s;
}
.shot:nth-child(4n + 2) { --tilt: 1.6deg; }
.shot:nth-child(4n + 3) { --tilt: -1deg; }
.shot:nth-child(4n + 4) { --tilt: 2.4deg; }
.shot:hover, .shot:focus-within {
  z-index: 1;
  rotate: 0deg;
  translate: 0 -6px;
  box-shadow: 0 2px 0 rgb(0 0 0 / 18%), 0 34px 48px -18px rgb(0 0 0 / 85%);
}
.shot::before {
  content: ''; position: absolute; z-index: 1; top: -13px; left: 50%; width: 92px; height: 26px; margin-left: -46px;
  background: var(--tape);
  box-shadow: 0 1px 2px rgb(0 0 0 / 15%);
  rotate: calc(var(--tilt) * -2);
}
.shot-open {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: #ddd5c4;
}
.shot-open img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter 0.3s; }
.shot:hover .shot-open img { filter: brightness(1.06) saturate(1.05); }
.shot-open:focus-visible { outline-offset: 4px; }
.shot-open:disabled { cursor: default; }
.shot figcaption { padding: 11px 6px 13px; text-align: center; font-family: var(--font-pixel); font-size: 1.08rem; line-height: 1.25; color: #3b2f63; }
.shot.is-blank { padding-bottom: 36px; }
.shot-missing { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; font-size: 0.95rem; color: var(--negative); }
.shot.is-featured {
  --tilt: -1.2deg;
  --tape: rgb(245 197 66 / 62%);
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 780px);
  padding: 14px 14px 0;
  box-shadow: 0 2px 0 rgb(0 0 0 / 18%), 0 0 70px -8px rgb(245 197 66 / 32%), 0 30px 46px -18px rgb(0 0 0 / 85%);
}
.shot.is-featured:hover, .shot.is-featured:focus-within { box-shadow: 0 2px 0 rgb(0 0 0 / 18%), 0 0 80px -6px rgb(245 197 66 / 42%), 0 38px 54px -20px rgb(0 0 0 / 85%); }
.shot.is-featured::before, .shot.is-featured::after {
  content: ''; position: absolute; z-index: 1; top: -8px; width: 110px; height: 28px;
  background: var(--tape);
  box-shadow: 0 1px 2px rgb(0 0 0 / 15%);
}
.shot.is-featured::before { left: -26px; margin: 0; rotate: -38deg; }
.shot.is-featured::after { right: -26px; rotate: 38deg; }
.shot.is-featured figcaption { padding: 14px 6px 17px; font-size: 1.45rem; color: #2d2350; }

.v1-arts { margin-top: clamp(64px, 9vw, 104px); }
.v1-arts-head { margin-bottom: clamp(18px, 3vw, 28px); text-align: center; }
.v1-arts-title { margin: 0; font-family: var(--font-pixel); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.1; color: var(--gold-light); text-shadow: 0 3px 0 var(--outline); }
.v1-arts-text p { margin: 8px auto 0; max-width: 60ch; color: var(--muted); }
.v1-arts-by a { font-weight: 700; color: var(--text); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.v1-arts-by a:hover { color: var(--gold-light); }

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--text);
}
.lightbox::backdrop { background: rgb(5 3 20 / 94%); }
.lightbox[open] { display: grid; place-items: center; animation: dialog-in 0.25s ease-out; }
.lb { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: min(1600px, 92vw); margin: 0; touch-action: pan-y; }
.lb-img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  width: auto;
  height: auto;
  background: #07051a;
  box-shadow: 0 -3px 0 0 var(--gold), 0 3px 0 0 var(--gold), -3px 0 0 0 var(--gold), 3px 0 0 0 var(--gold), 0 30px 80px -20px #000;
}
.lb-caption { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 16px; max-width: 80ch; text-align: center; font-family: var(--font-pixel); font-size: 1.15rem; color: #fff; }
.lb-count { font-size: 0.95rem; color: var(--faint); }
.lb-nav, .lb-close {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: var(--raised);
  box-shadow: 0 0 0 2px var(--border-strong);
}
.lb-nav:hover, .lb-close:hover { background: #3a3280; }
.lb-nav .icon, .lb-close .icon { width: 26px; height: 26px; }
.lb-nav { top: 50%; translate: 0 -50%; }
.lb-prev { left: max(12px, 2vw); }
.lb-next { right: max(12px, 2vw); }
.lb-close { top: max(14px, env(safe-area-inset-top)); right: 14px; }

.fx-canvas, .ambient-canvas {
  position: fixed; left: 0; top: 0;
  pointer-events: none;
  image-rendering: pixelated;
}
.fx-canvas { z-index: 60; mix-blend-mode: screen; }
.ambient-canvas { z-index: -1; }

.voxel-scene { position: relative; width: 0; height: 0; }
.voxel-canvas { position: absolute; image-rendering: pixelated; pointer-events: none; }

.section.section-vods { --vod-pad: clamp(16px, 3vw, 56px); max-width: none; padding-inline: var(--vod-pad); }
.vod-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 2.6vw, 36px); }
.vod-row { --perch: clamp(150px, 19vw, 200px); --px: 9px; --block: calc(var(--px) * 16); --top: calc(var(--block) * 0.24); position: relative; min-width: 0; animation: vod-in 0.8s cubic-bezier(.2, .8, .2, 1) both var(--row-delay, 0s); }
@keyframes vod-in { from { opacity: 0; transform: translateY(26px); } }
.vod-top {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 14px 22px;
  min-height: calc(var(--px) * 33 + var(--top) * 0.5 + 16px);
  padding: 0 4px calc(var(--top) + 16px) calc(var(--perch) + clamp(16px, 3vw, 44px));
}
.vod-row[data-vod-act="sit"] .vod-top { min-height: calc(var(--px) * 22 + 16px); }
.vod-row[data-vod-act="lie"] .vod-top { min-height: calc(var(--px) * 12 + var(--top) + 16px); }
.vod-row[data-vod-act="hop"] .vod-top { min-height: calc(var(--px) * 40 + var(--top) * 0.5 + 16px); }
.vod-perch {
  position: absolute;
  left: clamp(8px, 2.4vw, 34px);
  bottom: 0;
  width: var(--perch);
  height: 1px;
  pointer-events: none;
}
.vod-ground { position: relative; margin-inline: calc(var(--vod-pad, 0px) * -1); }
.vod-stage { position: absolute; z-index: 3; left: 0; right: 0; bottom: 100%; height: 0; pointer-events: none; }
.vod-actor, .vod-shadow, .vod-model { position: absolute; left: 0; top: 0; }
.vod-actor, .vod-model { width: 0; height: 0; }
.vod-shadow {
  height: calc(var(--top) * 0.55);
  margin-top: calc(var(--top) * -0.275);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(4 2 16 / 72%), transparent);
  opacity: 0;
}
.vod-halo {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 100%;
  width: calc(var(--px) * 44);
  height: calc(var(--px) * 44);
  margin-left: calc(var(--px) * -22);
  background:
    radial-gradient(ellipse 34% 56% at 50% 100%, rgb(255 216 110 / 22%), transparent 72%),
    radial-gradient(ellipse 60% 70% at 50% 100%, rgb(124 92 255 / 18%), transparent 70%);
  animation: vod-halo 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes vod-halo { 50% { opacity: 0.72; } }
.vod-model .voxel-scene { position: absolute; left: 0; top: 0; }
.vod-row:not(.has-model) .vod-stage, .vod-row:not(.has-model) .vod-halo { visibility: hidden; }
.vod-id { position: relative; z-index: 4; display: grid; gap: 2px; min-width: 0; }
.vod-name {
  margin: 0;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1;
  color: var(--gold-light);
  text-shadow: 0 3px 0 var(--outline), 3px 0 0 var(--outline), -3px 0 0 var(--outline), 0 -3px 0 var(--outline), 0 0 30px rgb(245 197 66 / 35%);
  overflow-wrap: anywhere;
}
.vod-meta {
  margin: 6px 0 0;
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--violet-light);
}
.btn-youtube {
  --face: linear-gradient(180deg, #ff6464, #ee2a22 58%, #c8170f);
  --edge: #7c0f09;
  --ink: #fff;
  position: relative;
  z-index: 4;
  margin-left: auto;
  align-self: flex-end;
  margin-bottom: 6px;
  text-shadow: 0 2px 0 rgb(70 6 4 / 50%);
}
.btn-youtube:hover { color: #fff; }

.vod-shelf { position: relative; }
.vod-blocks {
  --tex: url('../img/textures/lucky_block.png');
  position: relative;
  z-index: 2;
  height: var(--block);
  background:
    linear-gradient(180deg, rgb(10 6 40 / 18%), rgb(10 6 40 / 46%)),
    var(--tex) 0 0 / var(--block) calc(var(--block) * 7) repeat-x;
  image-rendering: pixelated;
  box-shadow: 0 0 0 3px var(--outline), 0 26px 40px -18px rgb(0 0 0 / 85%);
  animation: vod-blocks 1.05s steps(7) infinite;
  --frame: var(--block);
}
.vod-blocks::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: var(--top);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 16%)),
    var(--tex) 0 0 / var(--block) calc(var(--top) * 7) repeat-x;
  image-rendering: pixelated;
  box-shadow: 0 0 0 3px var(--outline);
  animation: vod-blocks 1.05s steps(7) infinite;
  --frame: var(--top);
}
.vod-blocks::after {
  content: '';
  position: absolute;
  inset: calc(var(--top) * -1) 0 0;
  background: linear-gradient(100deg, transparent 40%, rgb(255 238 170 / 30%) 50%, transparent 60%) -60% 0 / 50% 100% no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: vod-shine 7s ease-in-out infinite;
}
@keyframes vod-blocks { to { background-position: 0 0, 0 calc(var(--frame) * -7); } }
@keyframes vod-shine { 0%, 62% { background-position: -60% 0; } 100% { background-position: 160% 0; } }
.vod-rail {
  --pad: 8px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--pad);
  padding: 28px 24px 30px var(--pad);
  margin-top: -3px;
  scrollbar-width: none;
  cursor: grab;
}
.vod-rail::-webkit-scrollbar { display: none; }
.vod-rail.fade-start { -webkit-mask: linear-gradient(90deg, transparent, #000 48px); mask: linear-gradient(90deg, transparent, #000 48px); }
.vod-rail.fade-end { -webkit-mask: linear-gradient(90deg, #000 calc(100% - 64px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 64px), transparent); }
.vod-rail.fade-start.fade-end { -webkit-mask: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 64px), transparent); mask: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 64px), transparent); }
.vod-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.vod-rail.is-dragging .vod-card { pointer-events: none; }
.vod-card {
  position: relative;
  flex: 0 0 clamp(220px, 23vw, 286px);
  display: grid;
  gap: 12px;
  align-content: start;
  scroll-snap-align: start;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1);
}
.vod-card:hover, .vod-card:focus-visible { color: #fff; transform: translateY(-7px) rotate(-0.6deg); }
.vod-card:focus-visible { outline: none; }
.vod-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, rgb(124 92 255 / 30%), transparent 60%),
    var(--card-2);
  box-shadow: 0 0 0 3px var(--outline), 0 18px 34px -18px rgb(0 0 0 / 85%);
  transition: box-shadow 0.25s;
}
.vod-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, rgb(7 5 24 / 55%));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%);
}
.vod-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s cubic-bezier(.2, .8, .2, 1); }
.vod-card:hover .vod-thumb, .vod-card:focus-visible .vod-thumb {
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px var(--outline), 0 22px 44px -14px rgb(245 197 66 / 50%);
}
.vod-card:hover .vod-thumb img, .vod-card:focus-visible .vod-thumb img { transform: scale(1.07); }
.vod-play {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 58px;
  height: 58px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-ink);
  background: radial-gradient(circle at 35% 30%, #fff6c4, #ffd54a 45%, #f09a3e);
  box-shadow: 0 0 0 4px rgb(7 4 26 / 65%), 0 0 30px rgb(245 197 66 / 65%);
  opacity: 0;
  transform: scale(0.6) rotate(-20deg);
  transition: opacity 0.22s, transform 0.3s cubic-bezier(.3, 1.6, .5, 1);
}
.vod-play svg { width: 28px; height: 28px; fill: currentColor; translate: 2px 0; }
.vod-card:hover .vod-play, .vod-card:focus-visible .vod-play { opacity: 1; transform: none; }
.vod-number {
  position: absolute;
  z-index: 1;
  left: 10px;
  top: 10px;
  padding: 1px 8px 3px;
  border-radius: 6px;
  font-family: var(--font-pixel);
  font-size: 0.86rem;
  color: var(--gold-light);
  background: rgb(7 4 26 / 78%);
  box-shadow: 0 0 0 1px rgb(255 231 160 / 22%);
}
.vod-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  padding: 0 2px;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.35;
  text-wrap: pretty;
}
.vod-title.is-loading {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--card) 20%, var(--raised) 50%, var(--card) 80%) 0 0 / 300% 100%;
  animation: vod-skeleton 1.4s linear infinite;
}
@keyframes vod-skeleton { to { background-position: -150% 0; } }
.vod-arrow {
  position: absolute;
  z-index: 4;
  top: calc(28px + (clamp(220px, 23vw, 286px) * 9 / 16) / 2);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--gold-light);
  background: var(--raised);
  box-shadow: 0 0 0 3px var(--outline), inset 0 0 0 1px var(--border-strong), 0 10px 24px -8px rgb(0 0 0 / 80%);
  translate: 0 -50%;
  transition: transform 0.15s, background 0.15s;
}
.vod-arrow:hover { background: var(--violet-deep); transform: scale(1.08); }
.vod-arrow .icon { width: 24px; height: 24px; }
.vod-arrow.is-prev { left: 6px; }
.vod-arrow.is-prev .icon { rotate: 180deg; }
.vod-arrow.is-next { right: 6px; }

.zone-viewer {
  position: relative;
  height: clamp(380px, 64vh, 680px);
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 58%, rgb(124 92 255 / 22%), transparent 72%),
    radial-gradient(ellipse 90% 70% at 50% 40%, #1d1752 0%, #110c33 58%, #070518 100%);
  box-shadow: 0 0 0 3px var(--outline), inset 0 0 0 1px var(--border-strong), 0 40px 80px -40px rgb(0 0 0 / 80%);
  isolation: isolate;
}
.zone-viewer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent),
    radial-gradient(1px 1px at 28% 72%, #d8d0ff 50%, transparent),
    radial-gradient(1.5px 1.5px at 44% 12%, #ffe7a0 50%, transparent),
    radial-gradient(1px 1px at 63% 26%, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 82% 14%, #d8d0ff 50%, transparent),
    radial-gradient(1px 1px at 91% 62%, #fff 50%, transparent),
    radial-gradient(1px 1px at 7% 84%, #ffe7a0 50%, transparent),
    radial-gradient(1.5px 1.5px at 74% 88%, #fff 50%, transparent);
  opacity: 0.7;
}
.zone-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; outline: none; opacity: 0; transition: opacity 0.9s; }
.zone-viewer.is-ready .zone-canvas { opacity: 1; }
.zone-canvas.is-grabbing { cursor: grabbing; }
.zone-canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--gold); }
.zone-when { position: absolute; left: clamp(16px, 3vw, 28px); top: clamp(14px, 2.6vw, 24px); pointer-events: none; }
.zone-day {
  margin: 0;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 3px 0 var(--outline), 3px 0 0 var(--outline), -3px 0 0 var(--outline), 0 -3px 0 var(--outline), 0 0 26px rgb(245 197 66 / 40%);
}
.zone-date { margin: 8px 0 0; font-family: var(--font-pixel); font-size: 1.02rem; color: var(--violet-light); text-shadow: 0 2px 0 var(--outline); }
.zone-date::first-letter { text-transform: uppercase; }
.zone-tools { position: absolute; right: clamp(12px, 2.4vw, 22px); top: clamp(12px, 2.4vw, 22px); display: grid; gap: 10px; }
.zone-tool {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  background: var(--raised);
  box-shadow: 0 0 0 3px var(--outline), inset 0 -4px 0 rgb(0 0 0 / 28%), inset 0 0 0 1px var(--border-strong);
  transition: transform 0.12s, background 0.15s, color 0.15s;
}
.zone-tool:hover { background: var(--violet-deep); transform: translateY(-2px); }
.zone-tool .icon { width: 22px; height: 22px; }
.zone-tool[aria-pressed="true"] { color: var(--gold-ink); background: linear-gradient(180deg, #ffe680, #f7c23a 55%, #f0a43a); }
.zone-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 20px;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  color: var(--violet-light);
}
.zone-loading p { margin: 0; }
.zone-loading-bar { position: relative; width: min(260px, 70vw); height: 12px; background: #0d0a2c; box-shadow: 0 0 0 3px var(--outline), inset 0 0 0 1px var(--border-strong); }
.zone-loading-bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 4%);
  background: repeating-linear-gradient(-45deg, rgb(255 255 255 / 22%) 0 6px, transparent 6px 12px), linear-gradient(180deg, #ffe680, #f0a43a);
  transition: width 0.25s;
}
.zone-loading.is-error .zone-loading-bar { display: none; }
.zone-loading.is-error { color: var(--muted); }
.zone-timeline { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); margin-top: 26px; }
.zone-play {
  position: relative;
  flex: none;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--gold-ink);
  background: radial-gradient(circle at 35% 30%, #fff6c4, #ffd54a 45%, #f09a3e);
  box-shadow: 0 0 0 3px var(--outline), inset 0 -5px 0 rgb(176 96 15 / 70%), 0 0 28px rgb(245 197 66 / 35%);
  transition: transform 0.15s, filter 0.15s;
}
.zone-play:hover:not(:disabled) { transform: scale(1.06); filter: brightness(1.06); }
.zone-play:disabled { filter: grayscale(0.8) brightness(0.6); cursor: default; }
.zone-play svg { width: 26px; height: 26px; fill: currentColor; }
.zone-play-icon { translate: 2px 0; }
.zone-pause-icon, .zone-play.is-playing .zone-play-icon { display: none; }
.zone-play.is-playing .zone-pause-icon { display: block; }
.zone-track { position: relative; flex: 1; min-width: 0; padding-bottom: 26px; }
.zone-slider {
  --progress: 0%;
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.zone-slider:disabled { cursor: default; opacity: 0.55; }
.zone-slider::-webkit-slider-runnable-track {
  height: 12px;
  background: linear-gradient(90deg, #f7c23a, #ffe680) 0 0 / var(--progress) 100% no-repeat, #1a1546;
  box-shadow: 0 0 0 3px var(--outline), inset 0 0 0 1px var(--border-strong);
}
.zone-slider::-moz-range-track { height: 12px; background: #1a1546; box-shadow: 0 0 0 3px var(--outline), inset 0 0 0 1px var(--border-strong); }
.zone-slider::-moz-range-progress { height: 12px; background: linear-gradient(90deg, #f7c23a, #ffe680); }
.zone-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -7px;
  background: linear-gradient(180deg, #fff6c4, #f7c23a 60%, #f09a3e);
  box-shadow: 0 0 0 3px var(--outline), 0 0 16px rgb(245 197 66 / 70%);
  transform: rotate(45deg) scale(0.78);
}
.zone-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid var(--outline);
  border-radius: 0;
  background: linear-gradient(180deg, #fff6c4, #f7c23a 60%, #f09a3e);
  box-shadow: 0 0 16px rgb(245 197 66 / 70%);
  transform: rotate(45deg);
}
.zone-ticks { position: absolute; inset: 34px 13px 0; pointer-events: none; }
.zone-ticks i { position: absolute; top: 0; width: 2px; height: 7px; background: var(--border-strong); translate: -1px 0; }
.zone-ticks span {
  position: absolute;
  top: 9px;
  left: 0;
  translate: -50% 0;
  white-space: nowrap;
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  font-style: normal;
  color: var(--faint);
}
.zone-count { flex: none; margin: 0 0 26px; min-width: 4.6em; text-align: right; font-family: var(--font-pixel); color: var(--faint); }
.zone-stat { margin: 6px 0 0; text-align: center; color: var(--muted); }
.zone-stat strong { font-family: var(--font-pixel); font-size: 1.2rem; color: var(--gold-light); }
.zone-delta { color: var(--positive); font-size: 0.95rem; }
.zone-delta.is-down { color: #ff9b7a; }

@media (max-width: 640px) {
  .vod-list { gap: 18px; }
  .vod-row { --perch: 112px; --px: 6px; }
  .vod-top { flex-wrap: wrap; padding-right: 0; }
  .btn-youtube { margin-left: 0; }
  .vod-rail { padding-right: 16px; }
  .vod-card { flex-basis: 64vw; }
  .vod-arrow { display: none; }
  .zone-viewer { height: 62vh; min-height: 340px; border-radius: 14px; }
  .zone-tool { width: 38px; height: 38px; }
  .zone-play { width: 50px; height: 50px; }
  .zone-count { display: none; }
}

@media (max-width: 1179px) {
  .topbar-status { display: none; }
  .hero-status { display: flex; }
  .hero-inner { padding-top: max(116px, 13svh); }
}
@media (max-width: 760px) {
  .nav a { display: none; }
  .nav a[href='#joueurs'] { display: inline-flex; }
  .summary { grid-template-columns: 1fr; }
  .pd { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "stage" "info"; }
  .pd-stage { min-height: 320px; }
  .shot.is-featured::before, .shot.is-featured::after { width: 76px; height: 22px; }
  .shot.is-featured::before { left: -8px; }
  .shot.is-featured::after { right: -8px; }
  .banner { --unit: 5.6px; }
  .banner.is-solo { --unit: 7px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-inner { padding-top: 112px; }
  .btn { font-size: 1.05rem; padding: 11px 18px 14px; }
  .toolbar { gap: 14px; }
  .search { max-width: none; }
  .player-grid { gap: 22px 18px; }
  .player-grid > .player { flex-basis: calc((100% - 18px) / 2); }
  .player { padding: 0 10px 14px; }
  .player-figure { height: 176px; margin: 0 -10px 12px; }
  .player-figure img { height: 150px; }
  .player-name { font-size: 1.15rem; }
  .player-desc { -webkit-line-clamp: 2; }
  .oeuvre { right: 0; top: 36%; }
  .oeuvre-cube .mini-cube { --s: 18px; margin: 8px 10px 3px; }
  .group-title::before, .group-title::after { flex-basis: 60px; }
  .banner { --unit: 4.4px; padding: 50px 10px 24px; }
  .banner-stage { flex-wrap: wrap; row-gap: 28px; }
  .banner-member { flex: 0 0 calc(50% - 10px); }
  .banner-name { font-size: 1.15rem; }
  .banner.is-solo { --unit: 6.4px; }
  .banner.is-solo .banner-member { flex: 0 1 auto; flex-direction: column; gap: 14px; text-align: center; }
  .banner.is-solo .banner-plate { align-items: center; margin: 0; }
  .banner.is-solo :is(.banner-badges, .player-links) { justify-content: center; }
  .banner.is-solo .banner-name { font-size: 2rem; }
  .banner-ribbon::before, .banner-ribbon::after { width: 36px; }
  .topbar .btn-small span { display: none; }
  .v1-story { font-size: 1.04rem; }
  .lb-nav { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); translate: none; }
  .lb-img { max-height: calc(100dvh - 190px); }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}
@media (max-width: 340px) {
  .player-grid > .player { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .rain-drop { animation: none !important; transform: translate(0, calc(var(--rest) * var(--fall, 900px))) rotate(var(--spin)); }
}
