@font-face {
  font-family: 'Orbitron';
  src: url('/fonts/orbitron-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('/fonts/rajdhani-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('/fonts/rajdhani-600-latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('/fonts/rajdhani-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #02010c;
  --abyss: #07031c;
  --indigo: #0e0241;
  --indigo-raised: #170d3b;
  --indigo-high: #290f68;
  --violet-deep: #552896;
  --violet: #8b6cff;
  --violet-soft: #a58bff;
  --lavender: #c2bcf7;
  --moon: #e6d7ff;
  --ice: #5f8dfd;
  --ice-light: #8fd0ff;
  --twitch: #1345aa;
  --text: #d9d3f2;
  --text-muted: #9a91c4;
  --text-dim: #6e6699;
  --line: rgba(139, 108, 255, 0.22);
  --line-strong: rgba(139, 108, 255, 0.42);
  --line-ice: rgba(95, 141, 253, 0.55);
  --panel-top: rgba(14, 6, 52, 0.86);
  --panel-bottom: rgba(3, 1, 20, 0.92);
  --glow-violet: 0 0 24px rgba(139, 108, 255, 0.35);
  --glow-ice: 0 0 18px rgba(95, 141, 253, 0.45);
  --radius: 10px;
  --radius-small: 6px;
  --header-height: 72px;
  --content: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: 'Orbitron', 'Segoe UI', sans-serif;
  --font-body: 'Rajdhani', 'Segoe UI', sans-serif;
  --wow: #f2b64d;
  --lol: #47c4e6;
  --cs2: #ec8b43;
  --death-knight: #c41e3a;
  --hunter: #aad372;
  --rogue: #fff468;
  --priest: #ffffff;
  --druid: #ff7c0a;
  --demon-hunter: #a330c9;
  --paladin: #f48cba;
  --warrior: #c69b6d;
  --shaman: #0070dd;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.55;
  background-color: var(--void);
  background-image:
    radial-gradient(ellipse 80% 50% at 85% -5%, rgba(85, 40, 150, 0.45), transparent 60%),
    radial-gradient(ellipse 60% 45% at 5% 30%, rgba(41, 15, 104, 0.5), transparent 65%),
    radial-gradient(ellipse 70% 40% at 60% 105%, rgba(19, 69, 170, 0.28), transparent 60%),
    linear-gradient(180deg, var(--abyss), var(--void) 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(230, 215, 255, 0.8), transparent),
    radial-gradient(1px 1px at 72% 12%, rgba(143, 208, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 38% 64%, rgba(194, 188, 247, 0.6), transparent),
    radial-gradient(1px 1px at 88% 48%, rgba(230, 215, 255, 0.7), transparent),
    radial-gradient(1px 1px at 22% 82%, rgba(143, 208, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 58% 32%, rgba(165, 139, 255, 0.6), transparent),
    radial-gradient(1px 1px at 94% 86%, rgba(230, 215, 255, 0.5), transparent),
    radial-gradient(1px 1px at 4% 52%, rgba(194, 188, 247, 0.6), transparent);
  background-size: 620px 620px;
  opacity: 0.7;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--ice-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--moon);
}

:focus-visible {
  outline: 2px solid var(--ice-light);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--moon);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
  hyphens: auto;
}

p {
  margin: 0;
}

code {
  padding: 0.1em 0.45em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(14, 2, 65, 0.6);
  color: var(--ice-light);
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.85em;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-small);
  background: var(--moon);
  color: var(--void);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-neon {
  width: 32px;
  height: 32px;
  stroke: url(#neon);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px rgba(139, 108, 255, 0.75));
}

.icon-flip {
  transform: scaleX(-1);
}

.kicker {
  color: var(--ice-light);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(320px, 70%);
  margin: 18px 0;
}

.ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}

.ornament span:last-child {
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.ornament i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ice-light);
  background: rgba(95, 141, 253, 0.35);
  box-shadow: var(--glow-ice);
  transform: rotate(45deg);
}

.gradient-text,
.hero-title,
.page-head h1 {
  background: linear-gradient(180deg, #ffffff 10%, var(--moon) 45%, var(--violet-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(139, 108, 255, 0.45));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: rgba(14, 2, 65, 0.55);
  color: var(--moon);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  border-color: var(--violet-soft);
  color: #ffffff;
  box-shadow: var(--glow-violet);
  transform: translateY(-1px);
}

.button-primary {
  border-color: rgba(143, 208, 255, 0.6);
  background: linear-gradient(135deg, rgba(95, 141, 253, 0.9), rgba(139, 108, 255, 0.9) 55%, rgba(85, 40, 150, 0.95));
  color: #ffffff;
  box-shadow: 0 0 22px rgba(95, 141, 253, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.button-primary:hover {
  border-color: var(--ice-light);
  box-shadow: 0 0 30px rgba(95, 141, 253, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ice-light);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

button.text-link {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.text-link .icon {
  transition: transform 0.2s ease;
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.text-link:hover .icon-flip {
  transform: scaleX(-1) translateX(3px);
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(139, 108, 255, 0.07) 62% 64%, transparent 64% 70%, rgba(95, 141, 253, 0.05) 70% 71%, transparent 71%),
    linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(194, 188, 247, 0.08);
  isolation: isolate;
}

.panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice-light), var(--violet), transparent);
  opacity: 0.7;
}

a.panel {
  color: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

a.panel:hover {
  border-color: var(--line-strong);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5), 0 0 34px rgba(139, 108, 255, 0.22), inset 0 1px 0 rgba(194, 188, 247, 0.12);
  transform: translateY(-3px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
.page-inner .site-header,
body:not(.page-start) .site-header {
  border-bottom-color: var(--line);
  background: rgba(4, 2, 18, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  color: var(--moon);
}

.brand-mark {
  flex: none;
  width: 34px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(95, 141, 253, 0.65));
}

.brand-name {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #ffffff, var(--lavender));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-small);
  background: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
}

.nav-link.is-active {
  text-shadow: 0 0 14px rgba(143, 208, 255, 0.7);
}

.icon-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-group {
  position: relative;
}

.nav-group.is-open .icon-chevron {
  transform: rotate(180deg);
}

.nav-group-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(7, 3, 28, 0.97);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--glow-violet);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-group.is-open .nav-group-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-group-menu a {
  padding: 10px 12px;
  border-radius: var(--radius-small);
  color: var(--text);
  font-weight: 600;
}

.nav-group-menu a:hover,
.nav-group-menu a[aria-current='page'] {
  background: rgba(139, 108, 255, 0.14);
  color: #ffffff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding: 9px 16px;
  border: 1px solid rgba(143, 208, 255, 0.45);
  border-radius: var(--radius-small);
  background: rgba(19, 69, 170, 0.35);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.92rem;
  box-shadow: 0 0 16px rgba(95, 141, 253, 0.25);
}

.nav-cta:hover {
  color: #ffffff;
  background: rgba(19, 69, 170, 0.6);
  box-shadow: var(--glow-ice);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 14px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 92, 122, 0.6);
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.16);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(255, 45, 85, 0.35);
}

.live-badge[hidden] {
  display: none;
}

.live-badge:hover {
  color: #ffffff;
  background: rgba(255, 45, 85, 0.3);
}

.live-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2d55;
  box-shadow: 0 0 8px #ff2d55;
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: rgba(14, 2, 65, 0.6);
  color: var(--moon);
  cursor: pointer;
}

.menu-toggle .icon {
  width: 22px;
  height: 22px;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded='true'] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(92vh, 880px);
  margin-top: calc(var(--header-height) * -1);
  padding: calc(var(--header-height) + 40px) var(--gutter) 90px;
  overflow: hidden;
  text-align: center;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media,
.hero-shade {
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}

.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-video.is-playing {
  opacity: 1;
}

.hero-shade {
  background:
    radial-gradient(ellipse 60% 55% at 50% 48%, rgba(7, 3, 28, 0.25), rgba(7, 3, 28, 0.75) 70%),
    linear-gradient(180deg, rgba(2, 1, 12, 0.55) 0%, rgba(14, 2, 65, 0.35) 45%, transparent 100%),
    linear-gradient(90deg, rgba(85, 40, 150, 0.35), transparent 30% 70%, rgba(85, 40, 150, 0.35));
  mix-blend-mode: normal;
}

.hero-shade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(41, 15, 104, 0.35);
  mix-blend-mode: color;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 1100px;
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(1.9rem, 8.4vw, 5.6rem);
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
}

.hero-title-left {
  justify-self: end;
}

.hero-title-dash {
  padding-left: 0.03em;
}

.hero-title-right {
  justify-self: start;
  margin-right: -0.03em;
}

.hero-ornament {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(620px, 90%);
  margin: 26px 0 22px;
}

.hero-ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 188, 247, 0.7));
  box-shadow: 0 0 8px rgba(139, 108, 255, 0.6);
}

.hero-ornament span:last-child {
  background: linear-gradient(90deg, rgba(194, 188, 247, 0.7), transparent);
}

.hero-diamond {
  width: 58px;
  filter: drop-shadow(0 0 14px rgba(95, 141, 253, 0.9)) drop-shadow(0 0 30px rgba(139, 108, 255, 0.6));
  animation: diamond-pulse 5s ease-in-out infinite;
}

@keyframes diamond-pulse {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 14px rgba(95, 141, 253, 0.9)) drop-shadow(0 0 30px rgba(139, 108, 255, 0.6)); }
  50% { transform: translateY(-4px); filter: drop-shadow(0 0 20px rgba(143, 208, 255, 1)) drop-shadow(0 0 42px rgba(139, 108, 255, 0.8)); }
}

.hero-lead {
  max-width: 48ch;
  margin-bottom: 30px;
  color: var(--moon);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(139, 108, 255, 0.6);
}

.hero .actions {
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--lavender);
  transform: translateX(-50%);
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

.section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 72px var(--gutter) 0;
}

.section-tight {
  padding-top: 36px;
}

main > :last-child,
main > div:last-child > :last-child {
  padding-bottom: 96px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin-top: 8px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.section-lead {
  max-width: 60ch;
  margin-top: 10px;
  color: var(--text-muted);
}

.muted-note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.source-note {
  margin-top: 22px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.page-head {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 90% at 85% 0%, rgba(85, 40, 150, 0.45), transparent 70%),
    linear-gradient(180deg, rgba(14, 2, 65, 0.6), transparent);
}

.page-head-banner {
  background:
    linear-gradient(90deg, rgba(2, 1, 12, 0.95) 0%, rgba(7, 3, 28, 0.75) 45%, rgba(7, 3, 28, 0.2) 100%),
    linear-gradient(0deg, var(--void), transparent 55%),
    url('/img/twitch-banner.webp') center 40% / cover no-repeat;
}

.page-head-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 72px var(--gutter) 56px;
}

.page-head h1 {
  margin-top: 12px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
}

.page-head .lead {
  max-width: 62ch;
  margin-bottom: 26px;
  color: var(--text);
  font-size: 1.2rem;
}

.page-head .lead:last-child {
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tabs a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.tabs a:hover {
  border-color: var(--line-strong);
  color: #ffffff;
}

.tabs a[aria-current='page'] {
  border-color: var(--line-ice);
  background: rgba(95, 141, 253, 0.16);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(95, 141, 253, 0.25);
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feed-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.feed-card-wide {
  max-width: 900px;
}

.feed-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.feed-head p {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.feed-head h2,
.feed-head h3 {
  font-size: 1.05rem;
}

.feed-head h2 a,
.feed-head h3 a {
  color: var(--moon);
}

.feed-head h2 a:hover,
.feed-head h3 a:hover {
  color: #ffffff;
}

.game-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(2, 1, 12, 0.6);
  box-shadow: 0 0 16px -4px currentColor, inset 0 0 14px -6px currentColor;
}

.game-wow { color: var(--wow); }
.game-lol { color: var(--lol); }
.game-cs2 { color: var(--cs2); }

.feed-list {
  display: grid;
  flex: 1;
  align-content: start;
  margin-top: 8px;
}

.feed-item {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 32px 14px 0;
  border-bottom: 1px solid rgba(139, 108, 255, 0.12);
  color: var(--text);
}

.feed-item:last-child {
  border-bottom: 0;
}

.feed-item time {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.feed-item strong {
  color: var(--moon);
  font-weight: 700;
  line-height: 1.3;
}

.feed-snippet {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.feed-arrow {
  position: absolute;
  top: 18px;
  right: 4px;
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  transition: color 0.2s ease, transform 0.2s ease;
}

.feed-item:hover strong {
  color: #ffffff;
}

.feed-item:hover .feed-arrow {
  color: var(--ice-light);
  transform: translate(2px, -2px);
}

.feed-empty {
  padding: 18px 0;
  color: var(--text-muted);
}

.feed-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.92rem;
}

.feed-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.feed-foot a .icon {
  width: 15px;
  height: 15px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 22px 22px;
}

.entry-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: radial-gradient(circle at 50% 35%, rgba(95, 141, 253, 0.25), rgba(14, 2, 65, 0.6) 70%);
  box-shadow: inset 0 0 18px rgba(139, 108, 255, 0.25), 0 0 20px rgba(139, 108, 255, 0.18);
}

.entry-card h3 {
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.entry-card p {
  flex: 1;
  color: var(--text-muted);
}

.entry-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--ice-light);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.entry-card:hover .entry-cta .icon {
  transform: translateX(3px);
}

.entry-cta .icon {
  transition: transform 0.2s ease;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 10px 16px;
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: radial-gradient(circle at 50% 40%, var(--indigo-high), var(--void) 75%);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.85);
  transition: transform 0.5s ease, filter 0.3s ease;
}

.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 1, 12, 0.35) 0, transparent 30%, transparent 55%, rgba(2, 1, 12, 0.8));
  box-shadow: inset 0 0 0 1px rgba(194, 188, 247, 0.06);
  pointer-events: none;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(230, 215, 255, 0.5);
  border-radius: 50%;
  background: rgba(7, 3, 28, 0.55);
  color: #ffffff;
  box-shadow: 0 0 26px rgba(139, 108, 255, 0.5), inset 0 0 14px rgba(139, 108, 255, 0.35);
  transform: translate(-50%, -50%) scale(0.92);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.icon-play-solid {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(2, 1, 12, 0.8);
  line-height: 1.5;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.video-body {
  display: grid;
  gap: 8px;
  padding: 0 6px;
}

.video-title {
  display: -webkit-box;
  min-height: 2.5em;
  overflow: hidden;
  color: var(--moon);
  font-size: 1.1rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.video-game {
  margin-right: 10px;
  padding: 0 7px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.video-meta > :not(.video-game) + *::before {
  content: '·';
  margin: 0 8px;
  color: var(--text-dim);
}

.video-card:hover .video-thumb img {
  filter: saturate(1.05) brightness(1);
  transform: scale(1.05);
}

.video-card:hover .video-play {
  border-color: #ff6b86;
  background: #ff0033;
  box-shadow: 0 0 30px rgba(255, 0, 51, 0.55);
  transform: translate(-50%, -50%) scale(1);
}

.video-card:focus-visible .video-play {
  transform: translate(-50%, -50%) scale(1);
}

.video-empty {
  grid-column: 1 / -1;
}

@media (max-width: 1080px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .video-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .video-grid::-webkit-scrollbar {
    display: none;
  }

  .video-card {
    scroll-snap-align: start;
  }

  .video-empty {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-thumb img,
  .video-play {
    transition: none;
  }

  .video-card:hover .video-thumb img {
    transform: none;
  }
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  min-height: 340px;
  overflow: hidden;
}

.cta-band-art {
  background:
    linear-gradient(90deg, transparent 60%, var(--panel-bottom)),
    url('/img/twitch-character.webp') center 20% / cover no-repeat;
}

.cta-band-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 44px 44px 44px 24px;
}

.cta-band-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.cta-band-copy .ornament {
  margin: 6px 0;
}

.cta-band-copy p:not(.kicker) {
  max-width: 46ch;
  margin-bottom: 14px;
  color: var(--text-muted);
}

.cta-band-copy p.social-note {
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.social-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(14, 2, 65, 0.55);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.social-chips a:hover {
  color: #ffffff;
  border-color: rgba(143, 208, 255, 0.6);
  box-shadow: var(--glow-ice);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.social-icons a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: rgba(14, 2, 65, 0.55);
  color: var(--moon);
}

.social-icons a:hover {
  color: #ffffff;
  border-color: rgba(143, 208, 255, 0.6);
  box-shadow: var(--glow-ice);
}

.social-icons .icon {
  width: 20px;
  height: 20px;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--void);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 108, 255, 0.2);
}

.player-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(7, 3, 28, 0.35), rgba(2, 1, 12, 0.9) 75%),
    url('/img/twitch-banner.webp') center / cover no-repeat;
  filter: saturate(1.1);
}

.player-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.player-consent p {
  max-width: 44ch;
  color: var(--text-muted);
  font-size: 1rem;
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.featured {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  --class-color: var(--death-knight);
}

.featured-visual {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 460px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--class-color) 30%, transparent), transparent 65%),
    linear-gradient(180deg, rgba(14, 2, 65, 0.4), rgba(2, 1, 12, 0.9));
  border-right: 1px solid var(--line);
}

.featured-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.featured-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  align-self: stretch;
}

.featured-diamond {
  width: 120px;
  filter: drop-shadow(0 0 22px rgba(95, 141, 253, 0.8));
}

.class-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--class-color) 55%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--class-color) 12%, rgba(2, 1, 12, 0.85));
  box-shadow:
    0 0 16px color-mix(in srgb, var(--class-color) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--class-color);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.14em;
  -webkit-font-smoothing: antialiased;
  transform: translateZ(0);
}

.featured-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 34px;
}

.featured-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.featured-top h2 {
  margin-top: 8px;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--class-color);
  text-shadow: 0 0 22px color-mix(in srgb, var(--class-color) 45%, transparent);
}

.featured-realm,
.roster-realm {
  color: var(--text-muted);
  font-weight: 600;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.live-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ice-light);
  box-shadow: var(--glow-ice);
}

.live-pill.is-partial i {
  background: var(--wow);
  box-shadow: 0 0 10px var(--wow);
}

.stat-row,
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.stat-row div,
.stat-strip div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(2, 1, 12, 0.5);
}

.stat-strip {
  margin-bottom: 26px;
}

.stat-row dd.stat-peak {
  margin-top: 2px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}

.stat-row dt,
.stat-strip dt,
.addon-meta dt,
.fact-list dt,
.spec-list dt {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stat-row dd,
.stat-strip dd {
  margin: 4px 0 0;
  color: var(--moon);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.rating-block > p {
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rating-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rating-list li {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-small);
  background: rgba(139, 108, 255, 0.07);
}

.rating-list li.rating-empty {
  display: block;
  grid-column: 1 / -1;
  color: var(--text-muted);
  background: none;
  padding-left: 0;
}

.rating-tag {
  padding: 2px 8px;
  text-align: center;
  border-radius: 4px;
  background: rgba(95, 141, 253, 0.2);
  color: var(--ice-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rating-tag-blitz {
  background: rgba(165, 139, 255, 0.2);
  color: var(--violet-soft);
}

.rating-spec {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating-list strong {
  min-width: 3.2em;
  color: var(--moon);
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.rating-list-compact {
  column-gap: 8px;
}

.rating-list-compact li {
  gap: 8px;
  padding: 6px 10px;
  font-size: 0.95rem;
}

.rating-list-compact .rating-spec {
  overflow: visible;
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.2;
}

.rating-list-compact .rating-tag {
  padding: 2px 6px;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.roster-card {
  --class-color: var(--moon);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-left: 2px solid var(--class-color);
}

.roster-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.roster-portrait {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--class-color) 60%, transparent);
  border-radius: 10px;
  background: rgba(2, 1, 12, 0.7);
  color: var(--class-color);
  font-family: var(--font-display);
  font-weight: 800;
}

.roster-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roster-class {
  color: var(--class-color);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.roster-card h3 {
  font-size: 1.05rem;
}

.roster-card .text-link {
  margin-top: auto;
  font-size: 0.85rem;
}

.class-death-knight { --class-color: var(--death-knight); }
.class-hunter { --class-color: var(--hunter); }
.class-rogue { --class-color: var(--rogue); }
.class-priest { --class-color: var(--priest); }
.class-druid { --class-color: var(--druid); }
.class-demon-hunter { --class-color: var(--demon-hunter); }
.class-paladin { --class-color: var(--paladin); }
.class-warrior { --class-color: var(--warrior); }
.class-shaman { --class-color: var(--shaman); }

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--lavender);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.chip-button {
  padding: 8px 16px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
}

.chip-button:hover {
  border-color: var(--line-strong);
  color: #ffffff;
}

.chip-button[aria-pressed='true'] {
  border-color: var(--line-ice);
  background: rgba(95, 141, 253, 0.16);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(95, 141, 253, 0.25);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(300px, 100%);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(2, 1, 12, 0.6);
  color: var(--text-muted);
}

.search-field:focus-within {
  border-color: var(--line-ice);
  box-shadow: 0 0 14px rgba(95, 141, 253, 0.25);
}

.search-field input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: none;
  color: var(--moon);
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
}

.search-field input::placeholder {
  color: var(--text-dim);
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.addon-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.addon-card[hidden] {
  display: none;
}

.addon-card > p {
  flex: 1;
  color: var(--text-muted);
}

.addon-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.addon-icon {
  flex: none;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(139, 108, 255, 0.25);
}

.addon-icon-large {
  width: 96px;
  height: 96px;
  border-radius: 16px;
}

.addon-category {
  color: var(--ice-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.addon-card h3 {
  font-size: 1.05rem;
}

.addon-meta {
  display: flex;
  gap: 24px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.addon-meta dd {
  margin: 2px 0 0;
  color: var(--moon);
  font-weight: 700;
}

.addon-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}

.addon-hero h1 {
  margin-top: 6px;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
}

.addon-hero .lead {
  margin: 12px 0 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 20px;
}

.prose-card {
  padding: 28px;
}

.prose-card h2 {
  margin-bottom: 14px;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prose-card h3 {
  margin: 22px 0 12px;
  color: var(--lavender);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prose-card p + p {
  margin-top: 12px;
}

.check-list,
.command-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: '';
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--ice-light);
  background: rgba(95, 141, 253, 0.35);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(95, 141, 253, 0.6);
}

.command-list code {
  font-size: 0.95rem;
}

.path {
  display: inline-block;
  word-break: break-all;
}

.detail-aside {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  padding: 24px;
}

.fact-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.fact-list dd {
  margin: 4px 0 0;
  color: var(--moon);
  font-weight: 600;
}

.back-link {
  margin-top: 32px;
}

.legal {
  max-width: 860px;
}

.legal-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-section h2 {
  margin-bottom: 14px;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p {
  margin-top: 12px;
}

.legal-section ul {
  margin: 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 4px;
}

.legal-section address {
  font-style: normal;
  line-height: 1.6;
}

.legal-section strong {
  color: var(--moon);
}

.legal-stand {
  margin-top: 12px;
  color: var(--text-dim);
}

.error-page {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 60px var(--gutter);
  text-align: center;
}

.error-page .kicker {
  margin-top: 26px;
}

.error-page h1 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.error-page p:not(.kicker) {
  margin-bottom: 28px;
  color: var(--text-muted);
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 900;
  line-height: 1;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 3, 28, 0.6), var(--void));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
}

.footer-brand p {
  max-width: 36ch;
  margin-top: 16px;
  color: var(--text-muted);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col p {
  margin-bottom: 4px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-col a {
  color: var(--text);
  font-weight: 600;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--content);
  margin: 0 auto;
  padding: 20px var(--gutter) 32px;
  border-top: 1px solid rgba(139, 108, 255, 0.12);
  color: var(--text-dim);
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feed-card-wide {
    max-width: none;
  }

  .featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-visual {
    min-height: 340px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-aside {
    position: static;
  }

  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1200px) {
  .header-inner {
    gap: 8px;
  }

  .header-inner .brand {
    min-width: 0;
    margin-right: auto;
    gap: 8px;
  }

  .header-inner .brand-mark {
    width: 28px;
  }

  .header-inner .brand-name {
    font-size: clamp(0.64rem, 2.6vw, 1rem);
    letter-spacing: 0.04em;
  }

  .header-inner .account-menu {
    order: 1;
    margin-left: 0;
  }

  .header-inner .account-chip {
    padding: 8px;
  }

  .header-inner .account-chip span,
  .header-inner .account-chip .icon-chevron {
    display: none;
  }

  .header-inner .sound-toggle,
  .header-inner .menu-toggle {
    order: 2;
    flex: 0 0 36px;
    width: 36px;
    height: 40px;
    margin: 0;
    padding: 8px;
  }

  .header-inner .live-badge {
    flex: none;
    gap: 4px;
    margin: 0;
    font-size: 0.75rem;
  }

  .live-badge {
    margin-left: auto;
    margin-right: 10px;
  }

  .live-badge:not([hidden]) + .menu-toggle {
    margin-left: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 20px var(--gutter) 40px;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background: rgba(4, 2, 18, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .site-header {
    background: rgba(4, 2, 18, 0.98);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav-link {
    justify-content: space-between;
    width: 100%;
    padding: 14px 12px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(139, 108, 255, 0.12);
    border-radius: 0;
  }

  .nav-group-menu {
    position: static;
    right: auto;
    min-width: 0;
    padding: 0 0 8px 12px;
    border: 0;
    background: none;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-group.is-open .nav-group-menu {
    display: grid;
  }

  .nav-cta {
    justify-content: center;
    margin: 20px 0 0;
    padding: 14px;
  }

  .cta-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-band-art {
    min-height: 200px;
    background:
      linear-gradient(180deg, transparent 50%, var(--panel-bottom)),
      url('/img/twitch-character.webp') center 18% / cover no-repeat;
  }

  .cta-band-copy {
    padding: 8px 24px 32px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1.05rem;
  }

  .entry-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding-top: 56px;
  }

  .section-tight {
    padding-top: 28px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-head-inner {
    padding: 48px var(--gutter) 40px;
  }

  .hero-lead {
    letter-spacing: 0.14em;
  }

  .hero .actions .button {
    width: 100%;
  }

  .stat-row,
  .stat-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-body {
    padding: 22px;
  }

  .featured-top {
    flex-direction: column;
  }

  .addon-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-section h2 {
    font-size: 1rem;
  }

  .prose-card {
    padding: 22px 18px;
  }

  .player {
    aspect-ratio: 4 / 5;
  }

  .player.is-loaded {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.actions-center {
  justify-content: center;
}

.error-page .featured-diamond {
  margin: 0 auto;
}

.nowrap {
  white-space: nowrap;
}

.hero-spooky,
.spooky-bats {
  display: none;
}

.theme-halloween {
  --void: #030104;
  --abyss: #0c0409;
  --indigo: #1a0714;
  --indigo-raised: #22091a;
  --indigo-high: #3d0f24;
  --violet-deep: #7a2a0c;
  --violet: #ff7a1a;
  --violet-soft: #ffa04a;
  --lavender: #ffc98f;
  --moon: #ffe6c7;
  --ice: #8dff5a;
  --ice-light: #c3ff9a;
  --text: #f1e4d6;
  --text-muted: #bfa38d;
  --text-dim: #8b7260;
  --line: rgba(255, 122, 26, 0.22);
  --line-strong: rgba(255, 122, 26, 0.45);
  --line-ice: rgba(141, 255, 90, 0.5);
  --panel-top: rgba(28, 8, 20, 0.88);
  --panel-bottom: rgba(6, 2, 6, 0.94);
  --glow-violet: 0 0 24px rgba(255, 122, 26, 0.4);
  --glow-ice: 0 0 18px rgba(141, 255, 90, 0.45);
}

.theme-halloween body {
  background-image:
    radial-gradient(ellipse 80% 50% at 85% -5%, rgba(160, 50, 10, 0.4), transparent 60%),
    radial-gradient(ellipse 60% 45% at 5% 30%, rgba(90, 20, 80, 0.45), transparent 65%),
    radial-gradient(ellipse 70% 40% at 60% 105%, rgba(60, 140, 20, 0.2), transparent 60%),
    linear-gradient(180deg, var(--abyss), var(--void) 60%);
}

.theme-halloween #neon stop:nth-child(1) {
  stop-color: #c3ff9a;
}

.theme-halloween #neon stop:nth-child(2) {
  stop-color: #ff7a1a;
}

.theme-halloween #neon stop:nth-child(3) {
  stop-color: #b04bff;
}

.theme-halloween [id$="-top"][id^="dm"] stop:nth-child(1) {
  stop-color: #fff0cf;
}

.theme-halloween [id$="-top"][id^="dm"] stop:nth-child(2) {
  stop-color: #ffa04a;
}

.theme-halloween [id$="-left"][id^="dm"] stop:nth-child(1) {
  stop-color: #ff7a1a;
}

.theme-halloween [id$="-left"][id^="dm"] stop:nth-child(2) {
  stop-color: #8c2305;
}

.theme-halloween [id$="-right"][id^="dm"] stop:nth-child(1) {
  stop-color: #ffc27a;
}

.theme-halloween [id$="-right"][id^="dm"] stop:nth-child(2) {
  stop-color: #6a1a8c;
}

.theme-halloween .hero-diamond {
  animation-name: diamond-pulse-spooky;
}

@keyframes diamond-pulse-spooky {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 14px rgba(255, 122, 26, 0.9)) drop-shadow(0 0 30px rgba(141, 255, 90, 0.35)); }
  50% { transform: translateY(-4px); filter: drop-shadow(0 0 22px rgba(255, 160, 74, 1)) drop-shadow(0 0 46px rgba(141, 255, 90, 0.55)); }
}

.theme-halloween .brand-mark {
  filter: drop-shadow(0 0 8px rgba(255, 122, 26, 0.7));
}

.theme-halloween .gradient-text,
.theme-halloween .hero-title,
.theme-halloween .page-head h1 {
  filter: drop-shadow(0 0 18px rgba(255, 122, 26, 0.5));
}

.theme-halloween .hero-title {
  animation: spooky-flicker 9s steps(1, end) infinite;
}

@keyframes spooky-flicker {
  0%, 88%, 90%, 94%, 100% { opacity: 1; }
  89% { opacity: 0.35; }
  92% { opacity: 0.6; }
  93% { opacity: 0.15; }
}

.theme-halloween .hero-lead {
  text-shadow: 0 0 18px rgba(255, 122, 26, 0.55);
}

.theme-halloween .button-primary {
  border-color: rgba(255, 180, 110, 0.7);
  background: linear-gradient(135deg, rgba(255, 140, 40, 0.95), rgba(214, 70, 20, 0.95) 55%, rgba(110, 20, 60, 0.95));
  box-shadow: 0 0 22px rgba(255, 122, 26, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.theme-halloween .button-primary:hover {
  border-color: #ffd19a;
  box-shadow: 0 0 32px rgba(255, 122, 26, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.theme-halloween .nav-cta {
  border-color: rgba(141, 255, 90, 0.45);
  background: rgba(40, 90, 10, 0.35);
  box-shadow: 0 0 16px rgba(141, 255, 90, 0.2);
}

.theme-halloween .nav-cta:hover {
  background: rgba(40, 90, 10, 0.6);
}

.theme-halloween .site-header.is-scrolled,
.theme-halloween body:not(.page-start) .site-header {
  background: rgba(8, 2, 6, 0.85);
}

.theme-halloween .hero-media {
  filter: saturate(0.7) brightness(0.8);
}

.theme-halloween .hero-shade {
  background:
    radial-gradient(ellipse 60% 55% at 50% 48%, rgba(10, 2, 6, 0.2), rgba(6, 1, 4, 0.8) 70%),
    linear-gradient(180deg, rgba(3, 1, 4, 0.6) 0%, rgba(40, 8, 10, 0.35) 45%, transparent 100%),
    linear-gradient(90deg, rgba(120, 30, 10, 0.35), transparent 30% 70%, rgba(40, 110, 20, 0.25));
}

.theme-halloween .hero-shade::after {
  background: rgba(150, 55, 10, 0.55);
}

.theme-halloween .hero-spooky,
.theme-halloween .spooky-bats {
  display: block;
}

.hero-spooky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-moon {
  position: absolute;
  top: calc(var(--header-height) + 16px);
  right: 6%;
  width: clamp(90px, 11vw, 170px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 34%, rgba(255, 255, 255, 0.35), transparent 30%),
    radial-gradient(circle at 62% 60%, rgba(120, 40, 0, 0.35), transparent 22%),
    radial-gradient(circle at 30% 70%, rgba(120, 40, 0, 0.25), transparent 16%),
    radial-gradient(circle, #ffd08a, #ff8a24 60%, #c24a0a);
  box-shadow: 0 0 60px rgba(255, 122, 26, 0.55), 0 0 160px rgba(255, 90, 10, 0.35);
  opacity: 0.85;
  animation: moon-glow 6s ease-in-out infinite;
}

@keyframes moon-glow {
  0%, 100% { box-shadow: 0 0 60px rgba(255, 122, 26, 0.55), 0 0 160px rgba(255, 90, 10, 0.35); }
  50% { box-shadow: 0 0 80px rgba(255, 140, 40, 0.7), 0 0 220px rgba(255, 90, 10, 0.45); }
}

.hero-fog span {
  position: absolute;
  left: -30%;
  width: 160%;
  height: 45%;
  background:
    radial-gradient(ellipse 25% 60% at 20% 60%, rgba(200, 255, 180, 0.12), transparent 70%),
    radial-gradient(ellipse 30% 55% at 55% 50%, rgba(255, 240, 230, 0.1), transparent 70%),
    radial-gradient(ellipse 22% 60% at 85% 65%, rgba(200, 255, 180, 0.1), transparent 70%);
  filter: blur(18px);
  animation: fog-drift 38s linear infinite alternate;
}

.hero-fog span:first-child {
  bottom: 4%;
}

.hero-fog span:last-child {
  bottom: 22%;
  opacity: 0.7;
  animation-duration: 52s;
  animation-direction: alternate-reverse;
}

@keyframes fog-drift {
  from { transform: translateX(-8%); }
  to { transform: translateX(8%); }
}

.hero-embers span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  box-shadow:
    8vw 10vh 2px 0 rgba(255, 150, 50, 0.9),
    17vw 24vh 2px 0 rgba(141, 255, 90, 0.8),
    26vw 6vh 2px 0 rgba(255, 120, 30, 0.8),
    34vw 30vh 2px 0 rgba(255, 180, 90, 0.7),
    43vw 14vh 2px 0 rgba(141, 255, 90, 0.7),
    52vw 34vh 2px 0 rgba(255, 150, 50, 0.9),
    61vw 8vh 2px 0 rgba(255, 110, 20, 0.8),
    70vw 22vh 2px 0 rgba(141, 255, 90, 0.8),
    79vw 12vh 2px 0 rgba(255, 170, 70, 0.8),
    88vw 28vh 2px 0 rgba(255, 130, 40, 0.9),
    95vw 5vh 2px 0 rgba(141, 255, 90, 0.7);
  animation: embers-rise 14s linear infinite;
}

.hero-embers span:last-child {
  left: 4vw;
  animation-duration: 19s;
  animation-delay: -8s;
}

@keyframes embers-rise {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 0.8; }
  100% { transform: translateY(-70vh); opacity: 0; }
}

.cobweb {
  position: absolute;
  top: var(--header-height);
  width: clamp(120px, 18vw, 240px);
  height: auto;
  fill: none;
  stroke: rgba(255, 240, 225, 0.28);
  stroke-width: 1;
  filter: drop-shadow(0 0 3px rgba(255, 240, 225, 0.25));
}

.cobweb-left {
  left: 0;
}

.cobweb-right {
  right: 0;
  transform: scaleX(-1);
}

.bat {
  position: absolute;
  width: 64px;
  height: auto;
  fill: #14060c;
  filter: drop-shadow(0 0 2px rgba(255, 170, 90, 0.9)) drop-shadow(0 0 10px rgba(255, 122, 26, 0.6));
  animation: bat-flap 0.28s ease-in-out infinite alternate;
}

@keyframes bat-flap {
  from { transform: scaleY(1); }
  to { transform: scaleY(0.45); }
}

.bat-hero-a,
.bat-hero-b,
.bat-hero-c,
.bat-page-a,
.bat-page-b {
  left: -80px;
  animation:
    bat-flap 0.28s ease-in-out infinite alternate,
    bat-fly 16s linear infinite;
}

.bat-hero-a {
  top: 22%;
}

.bat-hero-b {
  top: 34%;
  width: 44px;
  animation-delay: 0s, -6s;
  animation-duration: 0.22s, 21s;
}

.bat-hero-c {
  top: 14%;
  width: 36px;
  animation-delay: 0s, -13s;
  animation-duration: 0.2s, 26s;
}

@keyframes bat-fly {
  0% { translate: 0 0; }
  20% { translate: 30vw -40px; }
  40% { translate: 60vw 30px; }
  60% { translate: 105vw -20px; }
  100% { translate: 105vw -20px; }
}

.spooky-bats {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  pointer-events: none;
}

.bat-page-a {
  top: 40%;
  width: 52px;
  animation-duration: 0.26s, 34s;
  animation-delay: 0s, 8s;
}

.bat-page-b {
  top: 68%;
  width: 40px;
  animation-duration: 0.2s, 47s;
  animation-delay: 0s, 22s;
}

.theme-halloween .hero-content {
  z-index: 1;
}

.theme-halloween .site-footer {
  background: linear-gradient(180deg, rgba(20, 4, 10, 0.6), var(--void));
}

.theme-halloween .panel::before {
  background: linear-gradient(90deg, transparent, rgba(255, 140, 50, 0.7), transparent);
}

@media (max-width: 700px) {
  .hero-moon {
    right: 5%;
    top: calc(var(--header-height) + 10px);
    width: 84px;
  }

  .bat-hero-c,
  .bat-page-b {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spooky-bats,
  .hero-spooky .bat,
  .hero-embers {
    display: none;
  }

  .theme-halloween .hero-title {
    animation: none;
  }
}

.pumpkin {
  position: absolute;
  display: none;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(255, 122, 26, 0.55)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.6));
}

.theme-halloween .pumpkin {
  display: block;
}

.pumpkin-stem {
  fill: #3f6d1d;
}

.pumpkin-ridge {
  fill: none;
  stroke: rgba(120, 35, 5, 0.55);
  stroke-width: 2;
}

.pumpkin-face {
  filter: drop-shadow(0 0 4px #ffd35a) drop-shadow(0 0 10px #ff9a2e);
  animation: candle-flicker 2.6s steps(1, end) infinite;
}

@keyframes candle-flicker {
  0%, 100% { opacity: 1; }
  12% { opacity: 0.82; }
  18% { opacity: 1; }
  47% { opacity: 0.7; }
  52% { opacity: 0.95; }
  76% { opacity: 0.78; }
  81% { opacity: 1; }
}

.pumpkin-left {
  left: 5%;
  bottom: 70px;
  width: clamp(80px, 9vw, 130px);
}

.pumpkin-right {
  right: 6%;
  bottom: 84px;
  width: clamp(90px, 11vw, 160px);
}

.pumpkin-small {
  right: calc(6% + clamp(80px, 10vw, 150px));
  bottom: 70px;
  width: clamp(50px, 5vw, 76px);
}

.pumpkin-small .pumpkin-face {
  animation-duration: 1.9s;
}

.site-footer {
  position: relative;
}

.footer-pumpkin {
  top: -46px;
  right: 6%;
  width: 72px;
}

.spider {
  width: 30px;
  height: auto;
  fill: #120509;
  filter: drop-shadow(0 0 2px rgba(255, 170, 90, 0.8)) drop-shadow(0 0 6px rgba(255, 122, 26, 0.45));
}

.spider-legs {
  fill: none;
  stroke: #120509;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spider-eye {
  fill: #ff2a1a;
  filter: drop-shadow(0 0 2px #ff2a1a);
}

.spider-drop {
  position: absolute;
  top: calc(var(--header-height) - 30px);
  animation: spider-drop 11s ease-in-out infinite;
}

.spider-drop::before {
  content: '';
  position: absolute;
  bottom: calc(100% - 12px);
  left: 50%;
  width: 1px;
  height: 320px;
  background: linear-gradient(180deg, transparent, rgba(255, 240, 225, 0.45));
}

.spider-drop-left {
  left: clamp(40px, 6vw, 90px);
}

.spider-drop-right {
  right: clamp(60px, 8vw, 120px);
  animation-duration: 15s;
  animation-delay: -6s;
}

@keyframes spider-drop {
  0%, 12% { transform: translateY(0); }
  32%, 52% { transform: translateY(140px); }
  58% { transform: translateY(128px); }
  64%, 70% { transform: translateY(140px); }
  92%, 100% { transform: translateY(0); }
}

.spider-drop .spider-legs,
.spider-crawl .spider-legs {
  transform-origin: 50% 55%;
  animation: spider-wiggle 0.18s ease-in-out infinite alternate;
}

@keyframes spider-wiggle {
  from { transform: scaleX(1); }
  to { transform: scaleX(0.9); }
}

.spider-crawl {
  position: absolute;
  top: var(--header-height);
  left: 0;
  animation: spider-crawl 17s ease-in-out infinite;
}

.spider-crawl .spider {
  width: 22px;
  transform: rotate(135deg);
}

@keyframes spider-crawl {
  0%, 8% { transform: translate(10px, 10px); }
  30% { transform: translate(70px, 70px); }
  36%, 44% { transform: translate(70px, 70px); }
  62% { transform: translate(120px, 120px); }
  70%, 76% { transform: translate(120px, 120px); }
  100% { transform: translate(10px, 10px); }
}

@media (max-width: 700px) {
  .pumpkin-left {
    bottom: 96px;
    width: 64px;
  }

  .pumpkin-right {
    bottom: 96px;
    width: 72px;
  }

  .pumpkin-small,
  .spider-drop-right {
    display: none;
  }

  .footer-pumpkin {
    width: 56px;
    top: -36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spider-drop,
  .spider-crawl {
    display: none;
  }

  .pumpkin-face {
    animation: none;
  }
}

.hero-pumpkin-wrap {
  display: none;
}

.theme-halloween .hero-diamond {
  display: none;
}

.theme-halloween .hero-ornament .hero-pumpkin-wrap {
  display: block;
  flex: none;
  height: auto;
  background: none;
  box-shadow: none;
  animation: pumpkin-float 5s ease-in-out infinite;
}

.hero-pumpkin {
  display: block;
  width: 104px;
  cursor: pointer;
  height: auto;
  overflow: visible;
  transition: transform 0.25s ease-out;
  filter: drop-shadow(0 0 16px rgba(255, 122, 26, 0.75)) drop-shadow(0 0 36px rgba(141, 255, 90, 0.25));
}

.hero-pumpkin .pumpkin-face {
  transition: transform 0.18s ease-out;
}

@keyframes pumpkin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}



.theme-halloween .site-header {
  border-bottom-color: rgba(141, 255, 90, 0.5);
}

.theme-halloween .brand {
  position: relative;
}

.theme-halloween .brand::before {
  content: '';
  position: absolute;
  top: -14px;
  left: -1px;
  z-index: 1;
  width: 36px;
  height: 27px;
  background: url('/img/halloween-hat.svg') no-repeat center / contain;
  transform: rotate(-8deg);
  filter: drop-shadow(0 0 5px rgba(255, 122, 26, 0.5));
  pointer-events: none;
}

.theme-halloween .nav-link:hover,
.theme-halloween .nav-link.is-active {
  color: #ffd9b0;
}

.theme-halloween .nav-link.is-active {
  position: relative;
  text-shadow: 0 0 14px rgba(255, 122, 26, 0.85);
}

.theme-halloween .nav-link.is-active::after {
  content: '';
  position: absolute;
  top: 55%;
  left: 50%;
  width: 28px;
  height: 90px;
  margin-left: -14px;
  background: url('/img/halloween-spider.svg') no-repeat center top / contain;
  transform-origin: 50% 0;
  animation: nav-spider-swing 3.6s ease-in-out infinite;
  filter: drop-shadow(0 0 2px rgba(255, 190, 120, 0.95)) drop-shadow(0 0 6px rgba(255, 122, 26, 0.7));
  pointer-events: none;
}

@keyframes nav-spider-swing {
  0%, 100% { transform: rotate(-9deg) translateY(0); }
  25% { transform: rotate(0deg) translateY(6px); }
  50% { transform: rotate(9deg) translateY(0); }
  75% { transform: rotate(0deg) translateY(6px); }
}

.theme-halloween .hero-spooky {
  clip-path: inset(var(--header-height) 0 0 0);
}

.theme-halloween .nav-group-menu a[aria-current='page'] {
  background: rgba(255, 122, 26, 0.16);
}

@media (max-width: 700px) {
  .theme-halloween .pumpkin-small {
    display: none;
  }

  .hero-pumpkin {
    width: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-halloween .hero-pumpkin-wrap,
  .theme-halloween .nav-link.is-active::after {
    animation: none;
  }
}


.pumpkin-mouth {
  transform-box: fill-box;
  transform-origin: 50% 20%;
}

.hero-pumpkin-wrap.is-laughing {
  animation: pumpkin-laugh-shake 0.14s ease-in-out 10 alternate;
}

.hero-pumpkin-wrap.is-laughing .pumpkin-mouth {
  animation: pumpkin-laugh-mouth 0.14s ease-in-out 10 alternate;
}

.hero-pumpkin-wrap.is-laughing .pumpkin-face {
  filter: drop-shadow(0 0 6px #ffe27a) drop-shadow(0 0 16px #ffb03a);
}

@keyframes pumpkin-laugh-shake {
  from { transform: translateY(0) rotate(-3deg); }
  to { transform: translateY(-6px) rotate(3deg); }
}

@keyframes pumpkin-laugh-mouth {
  from { transform: scaleY(1); }
  to { transform: scaleY(1.55); }
}

@media (prefers-reduced-motion: reduce) {
  .slime-drip,
  .slime-fall {
    animation: none;
  }

  .hero-pumpkin-wrap.is-laughing,
  .hero-pumpkin-wrap.is-laughing .pumpkin-mouth {
    animation: none;
  }
}

.theme-halloween .brand {
  isolation: isolate;
}

.theme-halloween .brand::after {
  content: '';
  position: absolute;
  top: 22px;
  left: -14px;
  z-index: 1;
  width: 60px;
  height: 15px;
  background: url('/img/halloween-broom.svg') no-repeat center / contain;
  transform: rotate(-6deg);
  filter: drop-shadow(0 0 4px rgba(255, 122, 26, 0.45));
  pointer-events: none;
}

.witch {
  position: absolute;
  top: var(--witch-top, 20vh);
  left: 0;
  width: 150px;
  opacity: 0;
  pointer-events: none;
}

.witch-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 2px rgba(255, 180, 100, 0.9)) drop-shadow(0 0 12px rgba(255, 122, 26, 0.55));
}

.witch-body,
.witch-boot {
  fill: #12060d;
}

.witch-face {
  fill: #2f6a22;
}

.witch-eye {
  fill: #d7ff5a;
  filter: drop-shadow(0 0 2px #d7ff5a);
}

.witch-hair {
  fill: none;
  stroke: #12060d;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.witch-band {
  fill: #ff7a1a;
}

.witch-stick {
  fill: none;
  stroke: #5a3314;
  stroke-width: 4;
  stroke-linecap: round;
}

.witch-bristles {
  fill: #b77a24;
}

.witch-bristle-lines {
  fill: none;
  stroke: #7a4d14;
  stroke-width: 1.2;
}

.witch::after {
  content: '';
  position: absolute;
  top: 58%;
  right: 96%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  box-shadow:
    -8px -2px 2px 0 rgba(141, 255, 90, 0.9),
    -22px 4px 2px 0 rgba(255, 160, 60, 0.8),
    -36px -5px 2px 0 rgba(141, 255, 90, 0.6),
    -52px 3px 2px 0 rgba(255, 160, 60, 0.5),
    -70px -3px 2px 0 rgba(141, 255, 90, 0.35),
    -90px 5px 2px 0 rgba(255, 160, 60, 0.2);
}

.witch.is-flying {
  animation: witch-fly 8s linear forwards;
}

.witch.is-flying .witch-svg {
  animation: witch-bob 1.1s ease-in-out infinite alternate;
}

.witch.is-reversed .witch-svg {
  scale: -1 1;
}

.witch.is-reversed::after {
  display: none;
}

.witch.is-reversed.is-flying {
  animation-name: witch-fly-reverse;
}

.witch.is-jumpscare {
  width: min(70vw, 620px);
}

.witch.is-jumpscare.is-flying {
  animation: witch-jumpscare 2.1s cubic-bezier(0.5, 0, 0.6, 1) forwards;
}

@keyframes witch-fly {
  0% { opacity: 1; transform: translate(-200px, 0) rotate(-4deg); }
  50% { transform: translate(50vw, -6vh) rotate(-8deg); }
  100% { opacity: 1; transform: translate(calc(100vw + 60px), 4vh) rotate(-3deg); }
}

@keyframes witch-fly-reverse {
  0% { opacity: 1; transform: translate(calc(-100vw - 60px), 0) rotate(-4deg); }
  50% { transform: translate(-50vw, -6vh) rotate(-8deg); }
  100% { opacity: 1; transform: translate(200px, 4vh) rotate(-3deg); }
}

.witch.is-reversed {
  left: auto;
  right: 0;
}

@keyframes witch-jumpscare {
  0% { opacity: 1; transform: translate(-120%, 10vh) rotate(8deg) scale(0.6); }
  45% { transform: translate(18vw, -4vh) rotate(-6deg) scale(1.15); }
  100% { opacity: 1; transform: translate(calc(100vw + 40px), -30vh) rotate(-16deg) scale(1.3); }
}

@keyframes witch-bob {
  from { transform: translateY(-5px); }
  to { transform: translateY(5px); }
}

.slime {
  display: none;
}

.theme-halloween .slime {
  position: absolute;
  top: calc(100% - 3px);
  left: 0;
  right: 0;
  display: block;
  height: 40px;
  pointer-events: none;
}

.slime-strip {
  display: block;
  width: 100%;
  height: 40px;
  overflow: visible;
  filter: drop-shadow(0 0 5px rgba(141, 255, 90, 0.45)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6));
}

.slime-shine {
  fill: none;
  stroke: rgba(230, 255, 210, 0.55);
  stroke-width: 1;
}

.slime-drip {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: slime-stretch 6s ease-in-out infinite;
}

.slime-drip-1 { animation-duration: 7.5s; animation-delay: -2s; }
.slime-drip-2 { animation-duration: 5.2s; animation-delay: -4s; }
.slime-drip-3 { animation-duration: 8.4s; animation-delay: -1s; }
.slime-drip-4 { animation-duration: 6.6s; animation-delay: -5s; }

@keyframes slime-stretch {
  0%, 100% { transform: scaleY(1); }
  45% { transform: scaleY(1.28); }
  60% { transform: scaleY(1.12); }
}

.slime-fall {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: slime-fall 9s ease-in infinite;
}

.slime-fall-0 { animation-delay: 1s; }
.slime-fall-1 { animation-delay: 3.4s; animation-duration: 11s; }
.slime-fall-2 { animation-delay: 5.8s; animation-duration: 8s; }
.slime-fall-3 { animation-delay: 2.2s; animation-duration: 12s; }
.slime-fall-4 { animation-delay: 7.1s; animation-duration: 10s; }
.slime-fall-5 { animation-delay: 4.6s; animation-duration: 13s; }
.slime-fall-6 { animation-delay: 9.3s; animation-duration: 9.5s; }
.slime-fall-7 { animation-delay: 6.4s; animation-duration: 14s; }

@keyframes slime-fall {
  0% { opacity: 0; transform: translateY(-4px) scale(0.3, 0.2); }
  12% { opacity: 1; transform: translateY(-2px) scale(0.8, 0.9); }
  26% { opacity: 1; transform: translateY(0) scale(0.75, 1.4); }
  30% { opacity: 1; transform: translateY(6px) scale(1, 1); }
  50% { opacity: 0; transform: translateY(300px) scale(0.85, 1.3); }
  100% { opacity: 0; transform: translateY(300px) scale(0.85, 1.3); }
}

.sound-toggle {
  display: none;
}

.theme-halloween .sound-toggle {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: 12px;
  padding: 0;
  border: 1px solid rgba(255, 122, 26, 0.5);
  border-radius: 50%;
  background: rgba(40, 10, 16, 0.7);
  color: #ffd9b0;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 122, 26, 0.25);
}

.theme-halloween .sound-toggle:hover {
  box-shadow: 0 0 18px rgba(255, 122, 26, 0.5);
}

.sound-toggle .icon {
  width: 20px;
  height: 20px;
}

.sound-toggle .icon-sound-on,
.sound-toggle[aria-pressed='true'] .icon-sound-off {
  display: none;
}

.sound-toggle[aria-pressed='true'] .icon-sound-on {
  display: block;
}

.theme-halloween .sound-toggle[aria-pressed='true'] {
  border-color: rgba(141, 255, 90, 0.7);
  color: #c3ff9a;
  box-shadow: 0 0 16px rgba(141, 255, 90, 0.45);
}

@media (max-width: 900px) {
  .theme-halloween .sound-toggle {
    margin-left: auto;
    margin-right: 10px;
  }

  .theme-halloween .sound-toggle + .menu-toggle,
  .theme-halloween .live-badge:not([hidden]) + .sound-toggle {
    margin-left: 0;
  }
}

.pumpkin-brow {
  fill: none;
  stroke: #5a1a03;
  stroke-width: 4.5;
  stroke-linecap: round;
}

.pumpkin-teeth {
  fill: #e8600f;
}

.pumpkin-eye {
  transform-box: fill-box;
  transform-origin: 50% 60%;
}

.hero-pumpkin .pumpkin-eye-right {
  animation: pumpkin-wink 7s ease-in-out infinite;
}

.hero-pumpkin .pumpkin-brow {
  animation: pumpkin-brow 7s ease-in-out infinite;
}

@keyframes pumpkin-wink {
  0%, 90%, 97%, 100% { transform: scaleY(1); }
  92%, 95% { transform: scaleY(0.08); }
}

@keyframes pumpkin-brow {
  0%, 89%, 98%, 100% { transform: translateY(0); }
  92%, 95% { transform: translateY(2px); }
}

.hero-pumpkin-wrap.is-laughing .pumpkin-mouth {
  transform-origin: 50% 10%;
}

@media (prefers-reduced-motion: reduce) {
  .hero-pumpkin .pumpkin-eye-right,
  .hero-pumpkin .pumpkin-brow {
    animation: none;
  }
}

.theme-halloween .site-nav {
  background-color: rgba(8, 2, 6, 0.98);
}

.theme-halloween body.menu-open .site-header {
  background: rgba(8, 2, 6, 0.98);
}

.page-head-spooky {
  display: none;
}

.theme-halloween .page-head {
  background:
    radial-gradient(ellipse 50% 90% at 85% 0%, rgba(160, 50, 10, 0.4), transparent 70%),
    linear-gradient(180deg, rgba(40, 8, 14, 0.6), transparent);
}

.theme-halloween .page-head-banner {
  background:
    linear-gradient(90deg, rgba(3, 1, 4, 0.95) 0%, rgba(12, 3, 8, 0.75) 45%, rgba(12, 3, 8, 0.2) 100%),
    linear-gradient(0deg, var(--void), transparent 55%),
    url('/img/twitch-banner.webp') center 40% / cover no-repeat;
}

.theme-halloween .page-head-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(150, 55, 10, 0.5);
  mix-blend-mode: color;
  pointer-events: none;
}

.theme-halloween .page-head-inner {
  position: relative;
  z-index: 1;
}

.theme-halloween .page-head-spooky {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.cobweb-page {
  top: 0;
  right: 0;
  width: clamp(110px, 14vw, 200px);
  transform: scaleX(-1);
}

.spider-drop-page {
  top: -60px;
  right: clamp(50px, 7vw, 100px);
  animation-duration: 13s;
}

@media (max-width: 900px) {
  .theme-halloween .nav-link.is-active::after {
    display: none;
  }
}

@media (max-width: 700px) {
  .cobweb-page {
    width: 96px;
  }
}

.live-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 92, 122, 0.5);
  border-radius: var(--radius-small);
  background: rgba(255, 45, 85, 0.1);
  color: #ffffff;
  font-weight: 700;
}

.live-note[hidden] {
  display: none;
}

.live-note i {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff2d55;
  box-shadow: 0 0 8px #ff2d55;
  animation: live-pulse 1.6s ease-in-out infinite;
}

.feed-new {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(141, 255, 90, 0.16);
  color: #b6ff8a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.live-note.is-offline {
  border-color: var(--line);
  background: rgba(139, 108, 255, 0.07);
  color: var(--text-muted);
  font-weight: 600;
}

.live-note.is-offline i {
  background: var(--text-dim);
  box-shadow: none;
  animation: none;
}

.stat-row dd.stat-trend {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
}

.stat-row dd.stat-trend[hidden] {
  display: none;
}

.trend-line {
  display: block;
  width: 100%;
  max-width: 160px;
  height: 30px;
  overflow: visible;
}

.trend-line polyline {
  fill: none;
  stroke: var(--ice-light);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.trend-area {
  fill: rgba(143, 208, 255, 0.12);
}

.trend-line circle {
  fill: var(--ice-light);
}

.trend-delta {
  color: var(--text-dim);
}

.trend-delta.is-up {
  color: #7dff9a;
}

.trend-delta.is-down {
  color: #ff8a8a;
}

.account-menu {
  position: relative;
  flex: none;
  margin-left: -8px;
}

.account-menu[hidden],
.account-menu-list[hidden] {
  display: none;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(14, 2, 65, 0.55);
  color: var(--moon);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  max-width: 180px;
}

.account-chip .icon-chevron {
  display: none;
  width: 0.9em;
  height: 0.9em;
  transition: transform 0.2s ease;
}

.account-menu.has-menu .account-chip .icon-chevron {
  display: block;
}

.account-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.account-menu-list::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.account-menu-list a {
  padding: 9px 12px;
  border-radius: var(--radius-small);
  color: var(--text);
  font-weight: 600;
}

.account-menu-list a:hover,
.account-menu-list a:focus-visible {
  background: rgba(139, 108, 255, 0.18);
  color: #ffffff;
}

.account-menu-list a:last-child {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-small) var(--radius-small);
  color: var(--text-muted);
}

@media (hover: hover) {
  .account-menu.has-menu:hover .account-menu-list,
  .account-menu.has-menu:focus-within .account-menu-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .account-menu.has-menu:hover .icon-chevron {
    transform: rotate(180deg);
  }
}

.perk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.perk-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.perk-card h3 {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.perk-card p {
  color: var(--text-muted);
}

.perk-card:target {
  border-color: var(--violet-soft);
  box-shadow: var(--glow-violet);
}

.perk-card-soon {
  border-style: dashed;
}

.subs-thanks {
  margin-bottom: 24px;
  padding: 16px 20px;
  text-align: center;
}

.subs-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 26px 28px;
}

.subs-cta p {
  color: var(--text-muted);
}

.account-card h2 {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.account-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chip:hover {
  color: #ffffff;
  border-color: var(--violet-soft);
  box-shadow: var(--glow-violet);
}

.account-chip + .sound-toggle {
  margin-left: 10px;
}

.account {
  display: grid;
  gap: 20px;
}

.account-guest {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
  padding: 34px 28px;
  text-align: center;
}

.account-guest p,
.account-card p {
  color: var(--text-muted);
}

.account-user {
  display: grid;
  gap: 20px;
}

.account-user[hidden],
.account-guest[hidden],
[data-admin-only][hidden] {
  display: none;
}

.account-profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border: 2px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(160deg, var(--indigo-high), var(--indigo)) padding-box,
    linear-gradient(135deg, var(--violet-soft), var(--violet-deep)) border-box;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.account-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  color: var(--violet-soft);
}

.account-glyph {
  width: 26px;
  height: 26px;
  stroke-width: 1.75;
}

.account-profile-text {
  flex: 1;
  min-width: 180px;
}

.account-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.account-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}

.status-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-tag.is-sub {
  border-color: rgba(143, 208, 255, 0.4);
  background: rgba(143, 208, 255, 0.1);
  color: #a9dcff;
}

.status-tag.is-admin {
  border-color: rgba(245, 196, 107, 0.45);
  background: rgba(245, 196, 107, 0.12);
  color: #f5c46b;
}

.account-small {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.account-note {
  color: var(--text-muted);
  text-align: center;
}

.account .account-error {
  color: #ff8fa3;
}

.account .account-success {
  color: #8ff0b4;
}

.account-banned {
  display: grid;
  gap: 8px;
}

.account-banned[hidden] {
  display: none;
}

.account-view-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 14px 20px;
}

.account-view-switch > p {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wow);
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  overflow: hidden;
}

.segmented button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.segmented button[aria-pressed='true'] {
  background: rgba(139, 108, 255, 0.3);
  color: #ffffff;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.account-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px 24px;
}

.account-card > div {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.account-card > div[hidden] {
  display: none;
}

.account-card h2 {
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


.account-admin {
  padding: 24px;
}

.table-scroll {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-table button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-chip {
    padding: 8px;
  }

  .account-chip span {
    display: none;
  }
}

.nav-cta span {
  white-space: nowrap;
}

@media (min-width: 1321px) {
  .header-inner:has(.account-menu:not([hidden])) {
    gap: 16px;
  }

  .header-inner:has(.account-menu:not([hidden])) .nav-link {
    padding: 10px 10px;
  }

  .header-inner:has(.account-menu:not([hidden])) .nav-cta {
    padding: 9px 11px;
  }

  .header-inner:has(.account-menu:not([hidden])) .nav-cta span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

@media (max-width: 1320px) and (min-width: 901px) {
  .header-inner {
    gap: 16px;
  }

  .nav-link {
    padding: 10px 10px;
  }

  .nav-cta {
    padding: 9px 11px;
  }

  .nav-cta span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .account-chip {
    max-width: 150px;
  }
}

@media (max-width: 1200px) {
  .account-menu {
    order: 1;
    margin-left: auto;
  }

  .sound-toggle,
  .menu-toggle {
    order: 2;
  }

  .header-inner:has(.account-menu:not([hidden])) .menu-toggle,
  .header-inner:has(.account-menu:not([hidden])) .sound-toggle {
    margin-left: 0;
  }
}

@media (max-width: 360px) {
  .header-inner:has(.live-badge:not([hidden])) .brand-name {
    display: none;
  }
}

.games-faq {
  margin-top: 28px;
}

@media (max-width: 1000px) and (min-width: 901px) {
  .header-inner:has(.account-menu:not([hidden])) {
    gap: 8px;
  }

  .header-inner:has(.account-menu:not([hidden])) .nav-link {
    padding: 10px 5px;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .header-inner {
    gap: 10px;
  }

  .nav-link {
    padding: 10px 8px;
    letter-spacing: 0.1em;
  }

  .account-chip {
    padding: 8px;
  }

  .account-chip span,
  .account-menu.has-menu .account-chip .icon-chevron {
    display: none;
  }
}

.account-peters {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.account-peters strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--gold-bright);
  text-shadow: 0 0 18px rgba(255, 200, 87, 0.35);
}

.account-peters span {
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:root {
  --gold: #f2b64d;
  --gold-bright: #ffd27a;
  --gold-deep: #a8681a;
  --reel-size: clamp(84px, 24vw, 140px);
}

.slot {
  position: relative;
}

.slot-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.slot-layout[hidden] {
  display: none;
}

.slot-cabinet {
  position: relative;
  width: min(100%, 620px);
  padding: clamp(18px, 4vw, 30px);
  border: 2px solid rgba(255, 210, 122, 0.55);
  border-radius: 22px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(139, 108, 255, 0.28), transparent 60%),
    linear-gradient(180deg, #1b0d4a, #0a0424 70%, #05021a);
  box-shadow:
    0 0 0 6px rgba(23, 13, 59, 0.9),
    0 0 0 8px rgba(255, 210, 122, 0.25),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(139, 108, 255, 0.25);
  text-align: center;
  isolation: isolate;
}

.slot-layout.is-jackpot .slot-cabinet {
  animation: slot-jackpot-glow 0.45s ease-in-out 8 alternate;
}

.slot-marquee {
  position: relative;
  margin: 0 auto 18px;
  padding: 14px 18px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(41, 15, 104, 0.95), rgba(14, 2, 65, 0.95));
  box-shadow: inset 0 0 0 1px rgba(255, 210, 122, 0.35);
  overflow: hidden;
}

.slot-marquee-lights {
  position: absolute;
  inset: 4px;
  border-radius: 11px;
  background: repeating-linear-gradient(90deg, var(--gold-bright) 0 6px, transparent 6px 18px) top / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, var(--gold-bright) 0 6px, transparent 6px 18px) bottom / 100% 3px no-repeat;
  opacity: 0.85;
  animation: slot-lights 1.2s linear infinite;
  pointer-events: none;
}

.slot-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(255, 200, 87, 0.6), 0 2px 0 var(--gold-deep);
}

.slot-subtitle {
  margin: 2px 0 0;
  color: var(--lavender);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.slot-balance {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 auto 16px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: rgba(2, 1, 12, 0.6);
}

.slot-balance span {
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.slot-balance strong {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.slot-window {
  position: relative;
  padding: clamp(10px, 2.4vw, 16px);
  border-radius: 16px;
  background: linear-gradient(180deg, #2a1608, #120802);
  box-shadow: inset 0 0 0 2px rgba(255, 210, 122, 0.45), inset 0 6px 18px rgba(0, 0, 0, 0.7);
}

.slot-reels {
  display: grid;
  grid-template-columns: repeat(3, var(--reel-size));
  justify-content: center;
  gap: clamp(6px, 2vw, 12px);
}

.slot-reel {
  position: relative;
  height: var(--reel-size);
  border-radius: 10px;
  background: linear-gradient(180deg, #d9d2ff, #ffffff 30%, #ffffff 70%, #cfc6ff);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.slot-reel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 4, 36, 0.55), transparent 28%, transparent 72%, rgba(10, 4, 36, 0.55));
  pointer-events: none;
}

.slot-reel.is-win {
  box-shadow: inset 0 0 0 3px var(--gold-bright), 0 0 24px rgba(255, 210, 122, 0.8);
  animation: slot-win-pulse 0.5s ease-in-out 6 alternate;
}

.slot-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.slot-strip.is-spinning {
  animation: slot-spin 0.32s linear infinite;
}

.slot-strip.is-spinning .slot-symbol {
  filter: blur(2px);
}

.slot-symbol {
  display: block;
  flex: 0 0 var(--reel-size);
  width: var(--reel-size);
  height: var(--reel-size);
  padding: 10%;
  object-fit: contain;
  user-select: none;
}


.slot-result {
  min-height: 1.6em;
  margin: 16px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 700;
  color: var(--text);
}

.slot-result.is-win,
.slot-result.is-jackpot {
  color: var(--gold-bright);
  text-shadow: 0 0 16px rgba(255, 200, 87, 0.55);
}

.slot-result.is-jackpot {
  font-size: clamp(1.3rem, 4.6vw, 1.9rem);
  animation: slot-jackpot-text 0.4s ease-in-out 8 alternate;
}

.slot-result.is-free {
  color: #7ff3c8;
  text-shadow: 0 0 14px rgba(127, 243, 200, 0.5);
}

.slot-banner {
  position: absolute;
  inset: 50% 0 auto;
  z-index: 3;
  margin: 0;
  padding: 14px 10px;
  transform: translateY(-50%) scale(0.6);
  background: linear-gradient(90deg, transparent, rgba(7, 3, 28, 0.92) 12%, rgba(7, 3, 28, 0.92) 88%, transparent);
  color: #7ff3c8;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 0 18px rgba(127, 243, 200, 0.8), 0 2px 0 #0b5c43;
  opacity: 0;
  pointer-events: none;
}

.slot-banner.is-visible {
  animation: slot-banner-pop 1.7s ease forwards;
}

.slot-layout.is-free-spins .slot-cabinet {
  border-color: rgba(127, 243, 200, 0.75);
  box-shadow:
    0 0 0 6px rgba(23, 13, 59, 0.9),
    0 0 0 8px rgba(127, 243, 200, 0.4),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 70px rgba(127, 243, 200, 0.35);
}

.slot-pay-row.is-free-spins {
  border-color: rgba(127, 243, 200, 0.55);
}

.slot-pay-row.is-free-spins strong {
  color: #7ff3c8;
}

.slot-result.is-lose,
.slot-result.is-even {
  color: var(--text-muted);
}

.slot-result.is-error {
  color: #ff8fa3;
  font-family: var(--font-body);
}

.slot-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 16px 22px;
}

.slot-bets {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.slot-bets p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.slot-bets .segmented button {
  min-width: 50px;
  padding: 0 12px;
  font-variant-numeric: tabular-nums;
}

.slot-bets .segmented button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.slot-spin {
  min-width: 170px;
  min-height: 56px;
  padding: 0 28px;
  border: 2px solid rgba(255, 238, 200, 0.85);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #2a1203;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 0 #6b3d0a, 0 0 26px rgba(255, 200, 87, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s ease;
}

.slot-spin:hover:not(:disabled) {
  filter: brightness(1.08);
}

.slot-spin:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #6b3d0a, 0 0 18px rgba(255, 200, 87, 0.4);
}

.slot-spin:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7) brightness(0.7);
}

.slot-spin:focus-visible,
.slot-lever:focus-visible {
  outline: 2px solid var(--ice-light);
  outline-offset: 4px;
}

.slot-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.slot-auto {
  min-height: 56px;
  min-width: 120px;
  padding: 0 18px;
  border: 2px solid rgba(255, 210, 122, 0.55);
  border-radius: 999px;
  background: rgba(23, 13, 59, 0.85);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, filter 0.2s ease;
}

.slot-auto[aria-pressed='true'] {
  background: linear-gradient(180deg, #e0204d, #7a0f2a);
  border-color: #ff9db1;
  color: #ffffff;
}

.slot-auto:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7) brightness(0.7);
}

.slot-auto:focus-visible {
  outline: 2px solid var(--ice-light);
  outline-offset: 4px;
}

.slot-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
}

.slot-lever {
  position: relative;
  align-self: center;
  width: 46px;
  height: 230px;
  margin-left: -6px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.slot-lever::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 40px;
  width: 26px;
  height: 64px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, #3a2a6e, #1b0d4a);
  box-shadow: inset 0 0 0 2px rgba(255, 210, 122, 0.45);
}

.slot-lever-stick {
  position: absolute;
  left: 14px;
  bottom: 70px;
  width: 8px;
  height: 140px;
  border-radius: 4px;
  background: linear-gradient(90deg, #cfcfe6, #7d7a99);
  transform-origin: 50% 100%;
  transition: transform 0.22s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.slot-lever-knob {
  position: absolute;
  top: -22px;
  left: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9db1, #e0204d 55%, #7a0f2a);
  box-shadow: 0 0 16px rgba(224, 32, 77, 0.6);
  transform: translateX(-50%);
}

.slot-lever.is-pulled .slot-lever-stick {
  transform: scaleY(-0.55);
}

.slot-lever:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.coin-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 60;
}

.coin {
  position: absolute;
  top: -40px;
  width: var(--coin-size, 24px);
  height: var(--coin-size, 24px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold-bright) 35%, var(--gold) 60%, var(--gold-deep));
  box-shadow: inset 0 0 0 2px rgba(122, 70, 10, 0.55), 0 0 10px rgba(255, 200, 87, 0.5);
  animation: coin-fall var(--coin-duration, 2s) cubic-bezier(0.3, 0.1, 0.6, 1) var(--coin-delay, 0s) forwards;
}

.coin::after {
  content: 'P';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: calc(var(--coin-size, 24px) * 0.5);
  font-weight: 800;
  color: #7a4a0c;
}

.slot-paytable {
  padding: clamp(20px, 4vw, 32px);
}

.slot-pay-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 24px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.slot-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(2, 1, 12, 0.45);
}

.slot-pay-symbols {
  display: flex;
  gap: 4px;
}

.slot-pay-symbol,
.slot-pay-any {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #f4f1ff;
  object-fit: contain;
  padding: 3px;
}

.slot-pay-any {
  display: grid;
  place-items: center;
  background: rgba(194, 188, 247, 0.12);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 800;
}

.slot-pay-text {
  display: grid;
  justify-items: end;
  text-align: right;
}

.slot-pay-text strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-bright);
}

.slot-pay-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@keyframes slot-spin {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes slot-lights {
  to { background-position: 18px 0, -18px 100%; }
}

@keyframes slot-win-pulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.25); }
}

@keyframes slot-jackpot-glow {
  from { box-shadow: 0 0 0 6px rgba(23, 13, 59, 0.9), 0 0 0 8px rgba(255, 210, 122, 0.25), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(139, 108, 255, 0.25); }
  to { box-shadow: 0 0 0 6px rgba(23, 13, 59, 0.9), 0 0 0 8px rgba(255, 210, 122, 0.9), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 90px rgba(255, 210, 122, 0.7); }
}

@keyframes slot-jackpot-text {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@keyframes slot-banner-pop {
  0% { opacity: 0; transform: translateY(-50%) scale(0.6); }
  15% { opacity: 1; transform: translateY(-50%) scale(1.08); }
  25% { transform: translateY(-50%) scale(1); }
  85% { opacity: 1; transform: translateY(-50%) scale(1); }
  100% { opacity: 0; transform: translateY(-50%) scale(1.1); }
}

@keyframes coin-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate(var(--coin-drift, 0px), 110vh) rotate(var(--coin-spin, 540deg)); opacity: 0; }
}

@media (max-width: 640px) {
  .slot-lever {
    display: none;
  }

  .slot-buttons {
    width: 100%;
  }

  .slot-bets,
  .slot-bets .segmented {
    width: 100%;
  }

  .slot-bets .segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .slot-spin {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slot-marquee-lights,
  .slot-reel.is-win,
  .slot-layout.is-jackpot .slot-cabinet,
  .slot-result.is-jackpot {
    animation: none;
  }

  .slot-lever-stick {
    transition: none;
  }
}

.bop {
  --bop-gold-light: #fff4c2;
  --bop-gold: #ffd27a;
  --bop-gold-mid: #d08b22;
  --bop-gold-dark: #7a4a0c;
  --bop-gold-ring: linear-gradient(135deg, #fff4c2, #ffd27a 22%, #a8681a 45%, #ffe9a8 62%, #c8871f 80%, #6b3d0a);
  --bop-mint: #7ff3c8;
  position: relative;
}

.bop-line-1 { --line-color: #ffd27a; }
.bop-line-2 { --line-color: #7ff3c8; }
.bop-line-3 { --line-color: #ff8fa3; }
.bop-line-4 { --line-color: #8fd0ff; }
.bop-line-5 { --line-color: #c58bff; }
.bop-line-6 { --line-color: #ffb36b; }
.bop-line-7 { --line-color: #a8ff7a; }
.bop-line-8 { --line-color: #ff6bd6; }
.bop-line-9 { --line-color: #ff5a4f; }
.bop-line-10 { --line-color: #f4f1ff; }

.bop-machine {
  display: flex;
  justify-content: center;
}

.bop-machine[hidden] {
  display: none;
}

.bop-cabinet {
  position: relative;
  width: min(100%, 940px);
  padding: clamp(12px, 2.6vw, 26px);
  border: 3px solid transparent;
  border-radius: 28px;
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(139, 108, 255, 0.32), transparent 65%),
    radial-gradient(60% 40% at 50% 100%, rgba(255, 200, 87, 0.12), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #1d0c52, #0c0430 55%, #05021a) padding-box,
    var(--bop-gold-ring) border-box;
  box-shadow:
    0 0 0 6px rgba(12, 4, 48, 0.95),
    0 0 0 7px rgba(255, 210, 122, 0.35),
    0 40px 90px rgba(0, 0, 0, 0.65),
    0 0 90px rgba(139, 108, 255, 0.28);
  container-type: inline-size;
  isolation: isolate;
}

.bop-cabinet.is-feature {
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(127, 243, 200, 0.22), transparent 65%),
    radial-gradient(60% 40% at 50% 100%, rgba(255, 200, 87, 0.16), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #0f2a4d, #081436 55%, #030a1c) padding-box,
    linear-gradient(135deg, #e6fff5, #7ff3c8 25%, #1f8f6a 50%, #c8fff0 70%, #2a7d63) border-box;
  box-shadow:
    0 0 0 6px rgba(4, 16, 40, 0.95),
    0 0 0 7px rgba(127, 243, 200, 0.4),
    0 40px 90px rgba(0, 0, 0, 0.65),
    0 0 110px rgba(127, 243, 200, 0.3);
}

.bop-cabinet.is-celebrating {
  animation: bop-cabinet-pulse 0.5s ease-in-out infinite alternate;
}

.bop-logo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 clamp(10px, 2vw, 18px);
  min-height: clamp(52px, 9cqi, 84px);
}

.bop-logo-flare {
  position: absolute;
  inset: -20% 18%;
  background: radial-gradient(closest-side, rgba(255, 210, 122, 0.35), transparent);
  filter: blur(8px);
  pointer-events: none;
}

.bop-logo-text {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.28em;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7.4cqi, 3.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bop-logo-word {
  background: linear-gradient(100deg, #a8681a 0%, #ffd27a 18%, #fff8dc 24%, #ffd27a 30%, #b8741a 46%, #ffe9a8 62%, #c8871f 78%, #ffd27a 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #4a2405) drop-shadow(0 0 16px rgba(255, 200, 87, 0.45));
  animation: bop-shine 5s linear infinite;
}

.bop-logo-of {
  font-family: var(--font-body);
  font-size: 0.55em;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--violet-soft);
  text-shadow: 0 0 14px rgba(165, 139, 255, 0.8);
}

.bop-feature-badge {
  position: absolute;
  right: 0;
  top: 50%;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(127, 243, 200, 0.6);
  border-radius: 14px;
  background: rgba(3, 14, 32, 0.85);
  box-shadow: 0 0 22px rgba(127, 243, 200, 0.3);
  transform: translateY(-50%);
}

.bop-feature-badge[hidden] {
  display: none;
}

.bop-feature-badge-symbol {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: clamp(40px, 6cqi, 56px);
  aspect-ratio: 1;
  border-radius: 10px;
  background: radial-gradient(circle, rgba(127, 243, 200, 0.25), transparent 70%), #10183a;
  container-type: inline-size;
}

.bop-badge-face {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.bop-feature-badge-label {
  color: var(--bop-mint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bop-feature-badge-count {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.bop-board {
  display: grid;
  grid-template-columns: clamp(22px, 3.4cqi, 32px) minmax(0, 1fr) clamp(22px, 3.4cqi, 32px);
  align-items: stretch;
  gap: clamp(4px, 1cqi, 10px);
}

.bop-markers {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  padding: clamp(5px, 0.9cqi, 9px) 0;
}

.bop-marker-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.bop-marker {
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(16px, 2.4cqi, 22px);
  border-radius: 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--line-color) 85%, #ffffff), var(--line-color) 50%, color-mix(in srgb, var(--line-color) 60%, #000000));
  color: #120626;
  font-family: var(--font-display);
  font-size: clamp(0.58rem, 1.3cqi, 0.74rem);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  cursor: default;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.bop-marker.is-active {
  opacity: 1;
  transform: scale(1.15);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 14px var(--line-color);
}

.bop-window {
  position: relative;
  padding: clamp(5px, 0.9cqi, 9px);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #0a0326, #140845) padding-box,
    var(--bop-gold-ring) border-box;
  border: 3px solid transparent;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 12px 30px rgba(0, 0, 0, 0.5);
}

.bop-cabinet.is-feature .bop-window {
  background:
    linear-gradient(180deg, #04122a, #0a2147) padding-box,
    linear-gradient(135deg, #e6fff5, #7ff3c8 25%, #1f8f6a 50%, #c8fff0 70%, #2a7d63) border-box;
}

.bop-cabinet.is-celebrating .bop-window {
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 210, 122, 0.6);
}

.bop-reels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(3px, 0.7cqi, 7px);
}

.bop-reel {
  position: relative;
  aspect-ratio: 1 / 3;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(120% 40% at 50% 50%, rgba(139, 108, 255, 0.22), transparent 70%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.45)),
    linear-gradient(180deg, #1a0a48, #26116a 50%, #1a0a48);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 122, 0.18);
  container-type: inline-size;
  transition: box-shadow 0.25s ease;
}

.bop-cabinet.is-feature .bop-reel {
  background:
    radial-gradient(120% 40% at 50% 50%, rgba(127, 243, 200, 0.16), transparent 70%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.45)),
    linear-gradient(180deg, #071a3a, #0d2c5a 50%, #071a3a);
}

.bop-reel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(5, 2, 20, 0.6), transparent 14%, transparent 86%, rgba(5, 2, 20, 0.6));
  pointer-events: none;
}

.bop-reel.is-teasing {
  box-shadow: inset 0 0 0 2px var(--bop-gold), 0 0 26px rgba(255, 210, 122, 0.85);
  animation: bop-tease 0.35s ease-in-out infinite alternate;
}

.bop-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.bop-strip.is-spinning {
  animation: bop-spin 0.36s linear infinite;
}

.bop-reel.is-teasing .bop-strip.is-spinning {
  animation-duration: 0.2s;
}

.bop-strip.is-spinning .bop-cell {
  filter: blur(1.6px) brightness(1.05);
}

.bop-cell {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.bop-face {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55));
  user-select: none;
}

.bop-tier-top .bop-face {
  width: 76%;
  height: 76%;
  border-radius: 14%;
  box-shadow: 0 0 0 2px var(--bop-gold), 0 0 0 4px rgba(122, 74, 12, 0.9), 0 0 18px rgba(139, 108, 255, 0.7);
  filter: none;
}

.bop-tier-book .bop-face {
  width: 96%;
  height: 96%;
  filter: drop-shadow(0 0 10px rgba(165, 139, 255, 0.55));
}

.bop-tier-high .bop-face {
  width: 86%;
  height: 86%;
}

.bop-royal {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
}

.bop-royal > span {
  font-size: 54cqi;
  background: var(--royal-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.035em var(--royal-edge);
  filter: drop-shadow(0 0.04em 0 rgba(0, 0, 0, 0.85)) drop-shadow(0 0 0.12em var(--royal-glow));
}

.bop-royal-ten > span {
  font-size: 44cqi;
  letter-spacing: -0.06em;
}

.bop-royal-ace {
  --royal-fill: linear-gradient(180deg, #fff1f3 0%, #ff8fa3 30%, #e0204d 60%, #7a0f2a 100%);
  --royal-edge: #ffd27a;
  --royal-glow: rgba(224, 32, 77, 0.6);
}

.bop-royal-king {
  --royal-fill: linear-gradient(180deg, #ecfff6 0%, #7ff3c8 30%, #17a874 60%, #0a5a3d 100%);
  --royal-edge: #ffd27a;
  --royal-glow: rgba(23, 168, 116, 0.6);
}

.bop-royal-queen {
  --royal-fill: linear-gradient(180deg, #f7eeff 0%, #d4a8ff 30%, #8b45e8 60%, #45137e 100%);
  --royal-edge: #ffd27a;
  --royal-glow: rgba(139, 69, 232, 0.65);
}

.bop-royal-jack {
  --royal-fill: linear-gradient(180deg, #eef8ff 0%, #8fd0ff 30%, #2f7df0 60%, #133c8f 100%);
  --royal-edge: #ffd27a;
  --royal-glow: rgba(47, 125, 240, 0.6);
}

.bop-royal-ten {
  --royal-fill: linear-gradient(180deg, #fff8e0 0%, #ffd27a 30%, #f08a1c 60%, #8a4306 100%);
  --royal-edge: #fff4c2;
  --royal-glow: rgba(240, 138, 28, 0.6);
}

.bop-window.has-win .bop-cell:not(.is-win) {
  opacity: 0.32;
  filter: saturate(0.4);
}

.bop-cell.is-win::before {
  content: '';
  position: absolute;
  inset: 5%;
  border-radius: 14%;
  background: radial-gradient(circle, rgba(255, 210, 122, 0.35), transparent 70%);
  box-shadow: inset 0 0 0 2px rgba(255, 228, 160, 0.9), 0 0 16px rgba(255, 210, 122, 0.75);
  animation: bop-frame 0.7s ease-in-out infinite alternate;
}

.bop-cell.is-win > * {
  position: relative;
  animation: bop-bump 0.7s ease-in-out infinite alternate;
}

.bop-cell.is-landed > * {
  animation: bop-land 0.65s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.bop-lines {
  position: absolute;
  inset: clamp(5px, 0.9cqi, 9px);
  z-index: 4;
  width: calc(100% - 2 * clamp(5px, 0.9cqi, 9px));
  height: calc(100% - 2 * clamp(5px, 0.9cqi, 9px));
  overflow: visible;
  pointer-events: none;
}

.bop-line {
  fill: none;
  stroke: var(--line-color);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  filter: drop-shadow(0 0 4px var(--line-color)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.9));
  animation: bop-draw 0.45s ease-out forwards;
}

.bop-expand {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(70% 30% at 50% 50%, rgba(255, 228, 160, 0.55), transparent 75%),
    linear-gradient(180deg, #3a1a05, #8a5210 50%, #3a1a05);
  box-shadow: inset 0 0 0 3px var(--bop-gold), inset 0 0 26px rgba(255, 210, 122, 0.8);
  clip-path: inset(var(--from-top, 33%) 0 var(--from-bottom, 33%) 0 round 10px);
  transition: clip-path 0.55s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.bop-expand[hidden] {
  display: none;
}

.bop-expand.is-open {
  clip-path: inset(0 0 0 0 round 10px);
}

.bop-expand-rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320%;
  aspect-ratio: 1;
  background: repeating-conic-gradient(from 0deg, rgba(255, 244, 194, 0.28) 0deg 9deg, transparent 9deg 18deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 70%);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: bop-rays 9s linear infinite;
}

.bop-expand-face {
  position: relative;
  width: 96%;
  height: auto;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
  animation: bop-expand-pop 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.bop-expand-face.bop-royal > span {
  font-size: 78cqi;
}

.bop-status {
  min-height: 1.6em;
  margin: clamp(10px, 1.8cqi, 16px) 0 clamp(10px, 1.6cqi, 14px);
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 2.2cqi, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--text);
}

.bop-status.is-win {
  color: var(--bop-gold);
  text-shadow: 0 0 14px rgba(255, 200, 87, 0.55);
}

.bop-status.is-free {
  color: var(--bop-mint);
  text-shadow: 0 0 14px rgba(127, 243, 200, 0.5);
}

.bop-status.is-lose {
  color: var(--text-muted);
}

.bop-status.is-error {
  color: #ff8fa3;
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.bop-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 10px clamp(10px, 2cqi, 22px);
  padding: clamp(10px, 1.6cqi, 14px) clamp(12px, 2.2cqi, 20px);
  border: 1px solid rgba(255, 210, 122, 0.3);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(23, 13, 59, 0.85), rgba(4, 2, 18, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 244, 194, 0.18), 0 10px 26px rgba(0, 0, 0, 0.45);
}

.bop-meter {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.bop-meter > span {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bop-meter strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 2.4cqi, 1.35rem);
  font-weight: 800;
  color: var(--bop-gold);
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bop-meter-win.has-win strong {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 210, 122, 0.9), 0 0 2px var(--bop-gold);
}

.bop-stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.bop-stepper strong {
  min-width: 3.2ch;
}

.bop-stepper button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 210, 122, 0.55);
  border-radius: 50%;
  background: rgba(41, 15, 104, 0.85);
  color: var(--bop-gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease;
}

.bop-stepper button:hover:not(:disabled) {
  background: rgba(85, 40, 150, 0.95);
}

.bop-stepper button:active:not(:disabled) {
  transform: scale(0.9);
}

.bop-stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.bop-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.bop-spin {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(68px, 9cqi, 84px);
  aspect-ratio: 1;
  padding: 0;
  border: 3px solid #fff1c4;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff8dc, var(--bop-gold) 38%, var(--bop-gold-mid) 70%, var(--bop-gold-dark));
  box-shadow: 0 6px 0 #5a2c05, 0 0 0 5px rgba(12, 4, 48, 0.9), 0 0 0 7px rgba(255, 210, 122, 0.5), 0 0 34px rgba(255, 200, 87, 0.55);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s ease;
}

.bop-spin svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: #3a1a03;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s ease;
}

.bop-spin:hover:not(:disabled) {
  filter: brightness(1.08);
}

.bop-spin:hover:not(:disabled) svg {
  transform: rotate(90deg);
}

.bop-spin:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #5a2c05, 0 0 0 5px rgba(12, 4, 48, 0.9), 0 0 0 7px rgba(255, 210, 122, 0.5), 0 0 24px rgba(255, 200, 87, 0.45);
}

.bop-spin.is-spinning svg {
  animation: bop-rotate 0.7s linear infinite;
}

.bop-spin:disabled {
  cursor: not-allowed;
}

.bop-spin:disabled:not(.is-spinning) {
  filter: grayscale(0.75) brightness(0.65);
}

.bop-round {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid rgba(255, 210, 122, 0.55);
  border-radius: 50%;
  background: rgba(23, 13, 59, 0.9);
  color: var(--bop-gold);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.bop-round svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.bop-round:hover:not(:disabled) {
  box-shadow: 0 0 16px rgba(255, 210, 122, 0.45);
}

.bop-turbo[aria-pressed='true'] {
  background: radial-gradient(circle at 35% 30%, #fff8dc, var(--bop-gold) 45%, var(--bop-gold-mid));
  color: #3a1a03;
  box-shadow: 0 0 18px rgba(255, 210, 122, 0.7);
}

.bop-auto[aria-pressed='true'] {
  border-color: #ff9db1;
  background: linear-gradient(180deg, #e0204d, #7a0f2a);
  color: #ffffff;
  font-size: 0.95rem;
}

.bop-round:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7) brightness(0.65);
}

.bop-spin:focus-visible,
.bop-round:focus-visible,
.bop-stepper button:focus-visible {
  outline: 2px solid var(--ice-light);
  outline-offset: 4px;
}

.bop-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
}

.bop-overlay,
.bop-intro {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  align-content: center;
  overflow: hidden;
  border-radius: 25px;
  background: radial-gradient(circle at 50% 45%, rgba(26, 11, 78, 0.96), rgba(3, 1, 14, 0.985) 72%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.bop-overlay[hidden],
.bop-intro[hidden] {
  display: none;
}

.bop-overlay.is-visible,
.bop-intro.is-visible {
  opacity: 1;
}

.bop-overlay-rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160cqi;
  aspect-ratio: 1;
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 122, 0.16) 0deg 8deg, transparent 8deg 16deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 15%, transparent 72%);
  mask-image: radial-gradient(closest-side, #000 15%, transparent 72%);
  transform: translate(-50%, -50%);
  animation: bop-rays 14s linear infinite;
  pointer-events: none;
}

.bop-overlay-inner {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 16px;
  text-align: center;
}

.bop-overlay-inner p {
  margin: 0;
}

.bop-overlay-kicker {
  color: var(--bop-mint);
  font-weight: 700;
  font-size: clamp(0.9rem, 2.2cqi, 1.15rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.bop-overlay-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 10cqi, 5.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fffbe8 0%, #ffd27a 38%, #e08a16 62%, #ffe9a8 80%, #a8681a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 #4a2405) drop-shadow(0 0 26px rgba(255, 200, 87, 0.6));
}

.bop-overlay.is-visible .bop-overlay-title {
  animation: bop-title-in 0.7s cubic-bezier(0.2, 1.5, 0.4, 1) both, bop-title-throb 0.9s ease-in-out 0.7s infinite alternate;
}

.bop-overlay.is-mega .bop-overlay-title {
  background-image: linear-gradient(180deg, #fff0fb 0%, #ff8fd8 35%, #b13be0 65%, #ffd0f2 82%, #6a1594 100%);
  filter: drop-shadow(0 4px 0 #2e0647) drop-shadow(0 0 28px rgba(222, 90, 255, 0.65));
}

.bop-overlay.is-epic .bop-overlay-title {
  background-image: linear-gradient(180deg, #ffffff 0%, #8fd0ff 30%, #7ff3c8 50%, #ffd27a 70%, #ff8fa3 100%);
  filter: drop-shadow(0 4px 0 #0b1f47) drop-shadow(0 0 30px rgba(143, 208, 255, 0.75));
}

.bop-overlay.is-free .bop-overlay-title {
  background-image: linear-gradient(180deg, #f0fff9 0%, #7ff3c8 45%, #19a777 75%, #c8fff0 100%);
  filter: drop-shadow(0 4px 0 #063c2a) drop-shadow(0 0 26px rgba(127, 243, 200, 0.6));
  font-size: clamp(1.8rem, 7.6cqi, 4rem);
}

.bop-overlay-amount {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8.4cqi, 4.4rem);
  font-weight: 900;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(255, 210, 122, 0.9), 0 3px 0 #6b3d0a;
}

.bop-overlay-unit {
  color: var(--bop-gold);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.bop-intro {
  gap: clamp(10px, 2cqi, 22px);
  perspective: 1600px;
}

.bop-tome {
  --page: clamp(112px, 30cqi, 220px);
  position: relative;
  width: calc(var(--page) * 2);
  height: calc(var(--page) * 1.32);
  transform: translateX(calc(var(--page) * -0.5)) scale(0.85);
  transition: transform 0.9s cubic-bezier(0.5, 0, 0.2, 1);
}

.bop-intro.is-visible .bop-tome {
  transform: translateX(calc(var(--page) * -0.5)) scale(1);
}

.bop-intro.is-open .bop-tome {
  transform: translateX(0) scale(1);
}

.bop-tome-page {
  position: absolute;
  top: 0;
  width: var(--page);
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(122, 74, 12, 0.35)),
    linear-gradient(90deg, #e8d7ab, #fff6dc 30%, #f6e6bd);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.bop-tome-page-left {
  left: 0;
  display: grid;
  place-items: center;
  border-radius: 10px 2px 2px 10px;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(122, 74, 12, 0.35)),
    linear-gradient(270deg, #e8d7ab, #fff6dc 30%, #f6e6bd);
  opacity: 0;
  transition: opacity 0.2s ease 0.45s;
}

.bop-intro.is-open .bop-tome-page-left {
  opacity: 1;
}

.bop-tome-ink {
  font-family: var(--font-display);
  font-size: calc(var(--page) * 0.12);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: rgba(122, 74, 12, 0.55);
}

.bop-tome-page-right {
  left: var(--page);
  display: grid;
  place-items: center;
  border-radius: 2px 10px 10px 2px;
}

.bop-tome-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 210, 122, 0.85), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.bop-intro.is-revealed .bop-tome-glow {
  opacity: 1;
  animation: bop-glow 1s ease-in-out infinite alternate;
}

.bop-tome-reveal {
  position: relative;
  display: grid;
  place-items: center;
  width: 82%;
  aspect-ratio: 1;
  container-type: inline-size;
  opacity: 0;
  transform: scale(0.4) rotate(-8deg);
  transition: opacity 0.35s ease, transform 0.7s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.bop-intro.is-revealed .bop-tome-reveal {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.bop-tome-face {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(60, 30, 0, 0.45));
}

.bop-tome-face.bop-royal > span {
  font-size: 72cqi;
}

.bop-tome-leaves {
  position: absolute;
  top: 1.5%;
  left: var(--page);
  width: calc(var(--page) - 3px);
  height: 97%;
}

.bop-tome-leaf {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
}

.bop-intro.is-flipping .bop-tome-leaf {
  animation: bop-leaf 0.62s cubic-bezier(0.45, 0.05, 0.4, 1) forwards;
  animation-delay: calc(var(--leaf-index) * 170ms);
}

.bop-tome-leaf-front,
.bop-tome-leaf-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 2px 8px 8px 2px;
  background: linear-gradient(90deg, #e2cf9f, #fff3d1 25%, #f4e2b4);
  box-shadow: inset 0 0 18px rgba(122, 74, 12, 0.3);
  backface-visibility: hidden;
  container-type: inline-size;
}

.bop-tome-leaf-front > * {
  width: 66%;
  height: 66%;
  opacity: 0.85;
}

.bop-tome-leaf-back {
  transform: rotateY(180deg);
  background: linear-gradient(270deg, #e2cf9f, #fff3d1 25%, #f4e2b4);
}

.bop-tome-cover {
  position: absolute;
  top: -2%;
  left: var(--page);
  z-index: 30;
  width: calc(var(--page) + 4px);
  height: 104%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.95s cubic-bezier(0.6, 0.05, 0.3, 1);
}

.bop-intro.is-open .bop-tome-cover {
  transform: rotateY(-180deg);
}

.bop-tome-cover-front,
.bop-tome-cover-back {
  position: absolute;
  inset: 0;
  border-radius: 4px 14px 14px 4px;
  backface-visibility: hidden;
}

.bop-tome-cover-front {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  align-items: center;
  padding: 12% 8%;
  background:
    radial-gradient(90% 60% at 30% 20%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #5a2cb8, #2f1173 45%, #14053a);
  box-shadow:
    inset 0 0 0 3px #d08b22,
    inset 0 0 0 7px #2a0f63,
    inset 0 0 0 9px #ffd27a,
    inset 10px 0 18px rgba(0, 0, 0, 0.5),
    0 20px 40px rgba(0, 0, 0, 0.6);
}

.bop-tome-title {
  font-family: var(--font-display);
  font-size: calc(var(--page) * 0.1);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff4c2, #ffd27a 45%, #c8871f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #2a0f63);
}

.bop-tome-gem {
  display: grid;
  place-items: center;
  width: 64%;
  aspect-ratio: 1;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(135deg, #fff4c2, #ffd27a 30%, #a8681a 60%, #ffe9a8);
}

.bop-tome-gem img {
  width: 86%;
  height: 86%;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  object-fit: cover;
}

.bop-tome-cover-back {
  transform: rotateY(180deg);
  border-radius: 14px 4px 4px 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(165, 139, 255, 0.35) 0 6%, transparent 7%),
    radial-gradient(circle at 70% 60%, rgba(165, 139, 255, 0.3) 0 5%, transparent 6%),
    radial-gradient(circle at 40% 80%, rgba(255, 210, 122, 0.25) 0 4%, transparent 5%),
    linear-gradient(135deg, #3a1785, #1b0850);
  background-size: 34px 34px, 46px 46px, 38px 38px, auto;
  box-shadow: inset 0 0 0 3px #d08b22, inset -10px 0 18px rgba(0, 0, 0, 0.45);
}

.bop-intro-text {
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.bop-intro.is-revealed .bop-intro-text {
  opacity: 1;
  transform: translateY(0);
}

.bop-intro-text p {
  margin: 0;
}

.bop-intro-kicker {
  color: var(--bop-mint);
  font-size: clamp(0.78rem, 1.8cqi, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.bop-intro-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5cqi, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fffbe8, #ffd27a 45%, #c8871f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #4a2405);
}

.bop-intro-spins {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.6cqi, 1.4rem);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(127, 243, 200, 0.8);
}

.bop-paytable {
  padding: clamp(20px, 4vw, 34px);
}

.bop-pay-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  aspect-ratio: 1;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(139, 108, 255, 0.28), transparent 70%), #160a42;
  box-shadow: inset 0 0 0 1px rgba(255, 210, 122, 0.3);
  container-type: inline-size;
}

.bop-pay-book {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 22px 0 18px;
  padding: 16px;
  border: 1px solid rgba(255, 210, 122, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(85, 40, 150, 0.35), rgba(2, 1, 12, 0.5));
}

.bop-pay-book .bop-pay-symbol {
  width: 92px;
}

.bop-pay-book h3,
.bop-rules h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--bop-gold);
  letter-spacing: 0.06em;
}

.bop-pay-book p,
.bop-rules p {
  margin: 0 0 10px;
  color: var(--text-muted);
}

.bop-pay-book .bop-pay-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.bop-pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bop-pay-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 1, 12, 0.45);
}

.bop-pay-top {
  border-color: rgba(255, 210, 122, 0.55);
  background: linear-gradient(135deg, rgba(255, 210, 122, 0.12), rgba(2, 1, 12, 0.5));
}

.bop-pay-values {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
  margin: 0;
}

.bop-pay-values div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.bop-pay-values dt {
  color: var(--text-muted);
  font-weight: 700;
}

.bop-pay-values dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--bop-gold);
  font-variant-numeric: tabular-nums;
}

.bop-rules {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 26px;
}

.bop-line-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bop-line-preview {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bop-line-number {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--line-color);
  color: #120626;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 900;
}

.bop-line-grid {
  display: grid;
  grid-template-columns: repeat(5, 9px);
  grid-template-rows: repeat(3, 9px);
  gap: 2px;
}

.bop-line-grid i {
  border-radius: 2px;
  background: rgba(194, 188, 247, 0.14);
}

.bop-line-grid i.is-on {
  background: var(--line-color);
  box-shadow: 0 0 6px var(--line-color);
}

@keyframes bop-spin {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

@keyframes bop-shine {
  from { background-position: 100% 0; }
  to { background-position: -160% 0; }
}

@keyframes bop-tease {
  from { box-shadow: inset 0 0 0 2px var(--bop-gold), 0 0 14px rgba(255, 210, 122, 0.5); }
  to { box-shadow: inset 0 0 0 3px #fff4c2, 0 0 34px rgba(255, 210, 122, 1); }
}

@keyframes bop-frame {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

@keyframes bop-bump {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

@keyframes bop-land {
  0% { transform: scale(1); }
  35% { transform: scale(1.28); filter: drop-shadow(0 0 18px rgba(255, 210, 122, 1)); }
  100% { transform: scale(1); }
}

@keyframes bop-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes bop-rays {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes bop-expand-pop {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes bop-rotate {
  to { transform: rotate(360deg); }
}

@keyframes bop-title-in {
  0% { transform: scale(0.2) rotate(-6deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes bop-title-throb {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes bop-glow {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

@keyframes bop-leaf {
  0% { transform: perspective(1400px) rotateY(0deg); opacity: 1; }
  88% { opacity: 1; }
  100% { transform: perspective(1400px) rotateY(-180deg); opacity: 0; }
}

@keyframes bop-cabinet-pulse {
  from { box-shadow: 0 0 0 6px rgba(12, 4, 48, 0.95), 0 0 0 7px rgba(255, 210, 122, 0.35), 0 40px 90px rgba(0, 0, 0, 0.65), 0 0 60px rgba(255, 210, 122, 0.25); }
  to { box-shadow: 0 0 0 6px rgba(12, 4, 48, 0.95), 0 0 0 7px rgba(255, 210, 122, 0.9), 0 40px 90px rgba(0, 0, 0, 0.65), 0 0 120px rgba(255, 210, 122, 0.7); }
}

@container (max-width: 560px) {
  .bop-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .bop-markers {
    display: none;
  }

  .bop-logo {
    flex-direction: column;
    gap: 8px;
  }

  .bop-feature-badge {
    position: static;
    transform: none;
  }

  .bop-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bop-actions {
    grid-column: 1 / -1;
    order: -1;
    gap: 22px;
  }

  .bop-meter > span {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  .bop-stepper {
    gap: 4px;
  }

  .bop-stepper button {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 760px) {
  .bop-rules {
    grid-template-columns: minmax(0, 1fr);
  }

  .bop-pay-book {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bop-logo-word,
  .bop-reel.is-teasing,
  .bop-cell.is-win::before,
  .bop-cell.is-win > *,
  .bop-cell.is-landed > *,
  .bop-expand-rays,
  .bop-expand-face,
  .bop-overlay-rays,
  .bop-overlay.is-visible .bop-overlay-title,
  .bop-cabinet.is-celebrating,
  .bop-spin.is-spinning svg,
  .bop-intro.is-revealed .bop-tome-glow {
    animation: none;
  }

  .bop-line {
    animation: none;
    stroke-dashoffset: 0;
  }

  .bop-expand,
  .bop-tome,
  .bop-tome-cover,
  .bop-tome-reveal {
    transition: none;
  }
}

html.game-locked,
html.game-locked body {
  overflow: hidden;
}

.game-fullscreen .game-stage {
  position: fixed;
  inset: 0;
  z-index: 200;
  justify-content: center;
  justify-content: safe center;
  align-items: center;
  align-items: safe center;
  padding: 12px;
  overflow: auto;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(139, 108, 255, 0.3), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(255, 200, 87, 0.12), transparent 70%),
    var(--void);
}

.game-fullscreen .coin-layer {
  z-index: 210;
}

.game-fullscreen .slot-cabinet {
  --reel-size: clamp(84px, min(24vw, 22vh), 200px);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}

.game-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.game-card-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid rgba(255, 210, 122, 0.35);
  overflow: hidden;
}

.game-card-art::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  aspect-ratio: 1;
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 122, 0.12) 0deg 8deg, transparent 8deg 16deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 10%, transparent 70%);
  mask-image: radial-gradient(closest-side, #000 10%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: transform 0.6s ease;
}

.game-card:hover .game-card-art::before {
  transform: translate(-50%, -50%) rotate(20deg);
}

.game-card-art img {
  position: relative;
  height: 64%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6));
  transition: transform 0.35s ease;
}

.game-card:hover .game-card-art img {
  transform: translateY(-4px) scale(1.04);
}

.game-card-art-book {
  background: radial-gradient(70% 80% at 50% 50%, rgba(139, 108, 255, 0.45), transparent 70%), linear-gradient(180deg, #1d0c52, #07031c);
}

.game-card-art-book img {
  height: 78%;
}

.game-card-art-slot {
  background: radial-gradient(70% 80% at 50% 50%, rgba(255, 200, 87, 0.28), transparent 70%), linear-gradient(180deg, #2a1608, #0a0424);
}

.game-card-art-slot img {
  height: 44%;
  padding: 2%;
  border-radius: 12px;
  background: #f4f1ff;
}

.game-card-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px 22px 24px;
}

.game-card-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--moon);
}

.game-card-body p {
  margin: 0;
  color: var(--text-muted);
}

.games-note {
  margin-top: 22px;
}

.game-card-art-fighter {
  background: radial-gradient(ellipse at center, #38216b, #100925);
}

.fighter-card-logo {
  position: relative;
  display: grid;
  justify-items: center;
  transform: rotate(-4deg);
  line-height: 0.95;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.fighter-card-logo strong {
  color: #ffe14d;
  font-size: clamp(46px, 5vw, 76px);
  text-shadow: 4px 4px #ff4747, 7px 7px #080512;
}

.fighter-card-logo strong + strong {
  color: #fff;
  font-size: clamp(38px, 4vw, 62px);
  text-shadow: 4px 4px #35d6ff, 7px 7px #080512;
}

.fighter-card-logo > span,
.game-beta-label {
  padding: 3px 8px;
  border-radius: 4px;
  background: #ffe14d;
  color: #100925;
  font: 800 12px/1.3 var(--font-body);
  letter-spacing: 0.09em;
}

.fighter-card-logo > span {
  justify-self: end;
  margin-top: 10px;
  transform: rotate(6deg);
}

@media (prefers-reduced-motion: reduce) {
  .game-card-art::before,
  .game-card-art img {
    transition: none;
  }
}

.auto-wrap {
  position: relative;
  display: inline-flex;
}

.auto-menu {
  position: absolute;
  right: -6px;
  bottom: calc(100% + 12px);
  z-index: 20;
  display: grid;
  gap: 8px;
  width: max-content;
  padding: 12px;
  border: 1px solid rgba(255, 210, 122, 0.55);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(41, 15, 104, 0.98), rgba(7, 3, 28, 0.98));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 200, 87, 0.2);
}

.auto-menu[hidden] {
  display: none;
}

.auto-menu::after {
  content: '';
  position: absolute;
  right: 24px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(255, 210, 122, 0.55);
  border-bottom: 1px solid rgba(255, 210, 122, 0.55);
  background: #07031c;
  transform: rotate(45deg);
}

.auto-menu p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.auto-menu-choices {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: auto;
  gap: 6px;
}

.auto-menu-choices button {
  min-width: 44px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(255, 210, 122, 0.5);
  border-radius: 999px;
  background: rgba(23, 13, 59, 0.9);
  color: var(--gold-bright, #ffd27a);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.auto-menu-choices button:hover {
  background: radial-gradient(circle at 35% 30%, #fff8dc, #ffd27a 45%, #d08b22);
  color: #3a1a03;
}

.auto-menu-choices button:active {
  transform: scale(0.94);
}

.auto-menu-choices button:focus-visible {
  outline: 2px solid var(--ice-light);
  outline-offset: 2px;
}

.auto-menu-choices button[data-auto-count='0'] {
  font-size: 1.15rem;
}

.bj-cabinet,
.wheel-cabinet {
  width: min(100%, 680px);
}

.bj-felt {
  display: grid;
  gap: 14px;
  min-height: 330px;
  padding: clamp(14px, 3vw, 22px);
  border: 2px solid rgba(255, 210, 122, 0.45);
  border-radius: 18px 18px 120px 120px / 18px 18px 60px 60px;
  background:
    radial-gradient(90% 70% at 50% 30%, rgba(46, 140, 96, 0.55), transparent 75%),
    linear-gradient(180deg, #0e4a35, #072a1f);
  box-shadow: inset 0 0 0 6px rgba(2, 1, 12, 0.35), inset 0 0 40px rgba(0, 0, 0, 0.55);
}

.bj-felt-text {
  margin: 0;
  color: rgba(255, 210, 122, 0.7);
  font-family: var(--font-display);
  font-size: clamp(0.62rem, 2vw, 0.78rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bj-seat-dealer {
  justify-self: center;
}

.bj-hands {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.bj-seat {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 6px 10px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bj-seat.is-active {
  border-color: rgba(255, 210, 122, 0.7);
  background: rgba(255, 210, 122, 0.08);
}

.bj-seat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-height: 1.6em;
  color: var(--moon);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.bj-total {
  min-width: 2.2em;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(2, 1, 12, 0.65);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.bj-total:empty,
.bj-total[hidden],
.bj-badge[hidden] {
  display: none;
}

.bj-badge {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(139, 108, 255, 0.35);
  color: #ffffff;
  font-size: 0.75rem;
}

.bj-badge.is-blackjack,
.bj-badge.is-win {
  background: var(--gold);
  color: #2a1203;
}

.bj-badge.is-push {
  background: rgba(194, 188, 247, 0.35);
}

.bj-badge.is-lose,
.bj-badge.is-bust {
  background: rgba(255, 143, 163, 0.3);
  color: #ffd0d8;
}

.bj-cards {
  --bj-card-width: clamp(54px, 15vw, 82px);
  display: flex;
  justify-content: center;
  min-height: calc(var(--bj-card-width) * 1.4);
  padding-right: calc(var(--bj-card-width) * 0.45);
}

.bj-card {
  position: relative;
  flex: 0 0 auto;
  width: var(--bj-card-width);
  aspect-ratio: 5 / 7;
  margin-right: calc(var(--bj-card-width) * -0.45);
  border-radius: 8px;
  background: linear-gradient(160deg, #ffffff, #ece8f8);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(23, 13, 59, 0.2);
  color: #170d3b;
  user-select: none;
}

.bj-card.is-red {
  color: #c8143c;
}

.bj-card-corner {
  position: absolute;
  top: 5%;
  left: 8%;
  display: grid;
  justify-items: center;
  line-height: 1;
  font-family: var(--font-display);
  font-size: calc(var(--bj-card-width) * 0.2);
  font-weight: 800;
}

.bj-card-corner b {
  font-weight: inherit;
}

.bj-card-corner i {
  font-style: normal;
  font-size: 0.85em;
}

.bj-card-corner.is-bottom {
  top: auto;
  left: auto;
  right: 8%;
  bottom: 5%;
  transform: rotate(180deg);
}

.bj-card-pip {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: calc(var(--bj-card-width) * 0.5);
}

.bj-card.is-back {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 210, 122, 0.16) 0 4px, transparent 4px 10px),
    linear-gradient(160deg, #3a1d8a, #170d3b);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 0 0 3px rgba(255, 210, 122, 0.6);
}

.bj-card.is-back img {
  width: 62%;
  height: auto;
  border-radius: 50%;
}

.bj-card.is-dealt {
  animation: bj-deal 0.32s cubic-bezier(0.2, 0.8, 0.3, 1.1) both;
}

.bj-card.is-flipped {
  animation: bj-flip 0.4s ease both;
}

@keyframes bj-deal {
  from {
    opacity: 0;
    transform: translate(140px, -180px) rotate(18deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bj-flip {
  from {
    transform: rotateY(90deg);
  }
  to {
    transform: none;
  }
}

.bj-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 16px 22px;
}

.bj-controls [hidden] {
  display: none;
}

.bj-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
  width: 100%;
}

.bj-action {
  min-height: 52px;
  border: 2px solid rgba(255, 238, 200, 0.6);
  border-radius: 999px;
  background: linear-gradient(180deg, #3a1d8a, #1b0d4a);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 5px 0 #0a0424, 0 0 18px rgba(139, 108, 255, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s ease;
}

.bj-action[data-bj-action='stand'] {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #2a1203;
  box-shadow: 0 5px 0 #6b3d0a, 0 0 22px rgba(255, 200, 87, 0.4);
}

.bj-action:hover:not(:disabled) {
  filter: brightness(1.12);
}

.bj-action:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #0a0424;
}

.bj-action:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7) brightness(0.65);
}

.bj-action:focus-visible {
  outline: 2px solid var(--ice-light);
  outline-offset: 4px;
}

.bj-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.bj-rule {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(2, 1, 12, 0.45);
}

.bj-rule strong {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.bj-rule span {
  color: var(--text-muted);
}

.wheel-frame {
  position: relative;
  width: min(100%, 420px);
  margin: 6px auto 0;
  padding-top: 14px;
}

.wheel-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 34px;
  height: 42px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
  transform: translateX(-50%);
}

.wheel-disc {
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(23, 13, 59, 0.9), 0 0 0 8px rgba(255, 210, 122, 0.3), 0 0 50px rgba(139, 108, 255, 0.35);
  will-change: transform;
}

.wheel-svg {
  display: block;
  width: 100%;
  height: auto;
}

.wheel-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

.wheel-label-long {
  font-size: 10.5px;
}

.game-card-art-blackjack {
  background: radial-gradient(70% 80% at 50% 50%, rgba(46, 140, 96, 0.5), transparent 70%), linear-gradient(180deg, #0e4a35, #07031c);
}

.game-card-art-blackjack .bj-cards {
  --bj-card-width: clamp(60px, 18%, 88px);
  position: relative;
  min-height: 0;
}

.game-card-art-blackjack .bj-card:first-child {
  transform: rotate(-8deg);
}

.game-card-art-blackjack .bj-card:last-child {
  transform: rotate(10deg) translateY(4px);
}

.game-card-art-wheel {
  background: radial-gradient(70% 80% at 50% 50%, rgba(255, 200, 87, 0.25), transparent 70%), linear-gradient(180deg, #1d0c52, #07031c);
}

.game-card-art-wheel .wheel-svg {
  position: relative;
  width: auto;
  height: 82%;
  transition: transform 0.6s ease;
}

.game-card:hover .game-card-art-wheel .wheel-svg {
  transform: rotate(30deg);
}

@media (max-width: 640px) {
  .bj-felt {
    min-height: 280px;
    border-radius: 16px 16px 70px 70px / 16px 16px 40px 40px;
  }

  .bj-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bj-card.is-dealt,
  .bj-card.is-flipped {
    animation: none;
  }

  .game-card-art-wheel .wheel-svg {
    transition: none;
  }
}

.bj-felt {
  position: relative;
  overflow: hidden;
}

.bj-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 12px;
  font-size: clamp(0.74rem, 2.3vw, 0.9rem);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bj-action span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.bj-action kbd {
  flex: 0 0 auto;
  min-width: 1.5em;
  padding: 1px 5px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.72em;
  line-height: 1.3;
  opacity: 0.6;
}

@media (hover: none) {
  .bj-action kbd {
    display: none;
  }
}

.bj-chip {
  display: inline-grid;
  place-items: center;
  min-width: 2.3em;
  height: 2.3em;
  padding: 0 4px;
  border: 2px dashed rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: radial-gradient(circle, #e0204d 55%, #9e1235 56%);
  box-shadow: 0 0 0 2px #9e1235, 0 3px 6px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0;
}

.bj-chip:empty {
  display: none;
}

.bj-banner {
  position: absolute;
  inset: 50% 0 auto;
  z-index: 3;
  margin: 0;
  padding: 12px 10px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(7, 3, 28, 0.9) 14%, rgba(7, 3, 28, 0.9) 86%, transparent);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  pointer-events: none;
}

.bj-banner.is-visible {
  animation: bj-banner-pop 2.2s ease forwards;
}

.bj-banner.is-blackjack,
.bj-banner.is-win {
  color: var(--gold-bright);
  text-shadow: 0 0 20px rgba(255, 200, 87, 0.8), 0 2px 0 var(--gold-deep);
}

.bj-banner.is-lose {
  color: #ff8fa3;
  text-shadow: 0 0 16px rgba(255, 80, 120, 0.6);
}

.bj-banner.is-push {
  color: var(--lavender);
}

@keyframes bj-banner-pop {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
  }
  14% {
    opacity: 1;
    transform: translateY(-50%) scale(1.12);
  }
  24% {
    transform: translateY(-50%) scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(1);
  }
}

.bj-history {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.bj-history-entry {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(2, 1, 12, 0.6);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.bj-history-entry:first-child {
  animation: bj-history-in 0.35s ease;
}

.bj-history-entry.is-win {
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 122, 0.5);
}

.bj-history-entry.is-blackjack {
  background: var(--gold);
  color: #2a1203;
}

.bj-history-entry.is-lose {
  color: #ff8fa3;
  box-shadow: inset 0 0 0 1px rgba(255, 143, 163, 0.35);
}

@keyframes bj-history-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

.wheel-frame {
  padding-top: 22px;
}

.wheel-rim {
  position: relative;
  margin: 5%;
}

.wheel-lights {
  position: absolute;
  inset: -5%;
  z-index: 1;
  width: 110%;
  max-width: none;
  height: 110%;
  pointer-events: none;
}

.wheel-light {
  fill: var(--gold-bright);
  filter: drop-shadow(0 0 3px rgba(255, 210, 122, 0.9));
  animation: wheel-blink 1.4s steps(1) infinite;
}

.wheel-light.is-odd {
  animation-delay: 0.7s;
}

.wheel-frame.is-ready .wheel-light {
  animation-duration: 0.9s;
}

.wheel-frame.is-ready .wheel-light.is-odd {
  animation-delay: 0.45s;
}

.wheel-frame.is-spinning .wheel-light {
  animation-duration: 0.24s;
}

.wheel-frame.is-spinning .wheel-light.is-odd {
  animation-delay: 0.12s;
}

.wheel-frame.is-jackpot .wheel-light {
  fill: #ffffff;
  animation-duration: 0.18s;
}

@keyframes wheel-blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.wheel-pointer {
  top: 4px;
  transform-origin: 50% 20%;
}

.wheel-pointer.is-flick {
  animation: wheel-flick 0.14s ease-out;
}

@keyframes wheel-flick {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }
  35% {
    transform: translateX(-50%) rotate(-16deg);
  }
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
}

.wheel-svg path {
  transition: filter 0.3s ease;
}

.wheel-svg path.is-winner {
  animation: wheel-winner 0.6s ease-in-out 6 alternate;
  filter: brightness(1.45) drop-shadow(0 0 6px rgba(255, 210, 122, 0.9));
}

@keyframes wheel-winner {
  from {
    filter: brightness(1.1);
  }
  to {
    filter: brightness(1.7) drop-shadow(0 0 8px rgba(255, 210, 122, 1));
  }
}

.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 28%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.wheel-frame.is-ready .wheel-hub {
  box-shadow: 0 0 0 0 rgba(255, 210, 122, 0.7);
  animation: wheel-hub-pulse 1.6s ease-out infinite;
}

.wheel-hub:disabled {
  cursor: default;
}

.wheel-hub:focus-visible {
  outline: 2px solid var(--ice-light);
  outline-offset: 4px;
}

@keyframes wheel-hub-pulse {
  to {
    box-shadow: 0 0 0 18px rgba(255, 210, 122, 0);
  }
}

.wheel-banner {
  position: absolute;
  inset: 50% -4% auto;
  z-index: 4;
  margin: 0;
  padding: 14px 10px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(7, 3, 28, 0.92) 12%, rgba(7, 3, 28, 0.92) 88%, transparent);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 0 22px rgba(255, 200, 87, 0.85), 0 2px 0 var(--gold-deep);
  pointer-events: none;
}

.wheel-banner.is-visible {
  animation: bj-banner-pop 2.6s ease forwards;
}

.wheel-banner.is-jackpot {
  color: #ffffff;
  text-shadow: 0 0 26px rgba(255, 210, 122, 1), 0 0 50px rgba(255, 200, 87, 0.8), 0 2px 0 var(--gold-deep);
}

.wheel-countdown {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.wheel-countdown strong {
  margin-left: 4px;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .wheel-light,
  .wheel-svg path.is-winner,
  .wheel-frame.is-ready .wheel-hub,
  .bj-history-entry:first-child {
    animation: none;
  }
}

.wheel-sub,
.game-sub {
  margin: -6px auto 10px;
  padding: 8px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--text-muted);
  font-weight: 700;
}

.wheel-sub a,
.game-sub a {
  color: var(--gold-bright);
}

.wheel-sub.is-active,
.game-sub.is-active {
  border: 1px solid rgba(255, 210, 122, 0.6);
  background: linear-gradient(90deg, rgba(255, 210, 122, 0.08), rgba(139, 108, 255, 0.18), rgba(255, 210, 122, 0.08));
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px rgba(255, 200, 87, 0.5);
}

.game-sub {
  margin: 0 auto 14px;
  text-align: center;
}

.game-sub[hidden],
[data-bj-sub-bet][hidden] {
  display: none;
}
