:root {
  --bg: #f2efe7;
  --bg-2: #ebe6da;
  --surface: #faf8f2;
  --surface-2: #e8e3d8;
  --surface-3: #ddd7ca;
  --ink: #10110f;
  --ink-soft: #3f423d;
  --muted: #74776f;
  --line: rgba(16,17,15,.13);
  --line-strong: rgba(16,17,15,.28);
  --accent: #c8ff3f;
  --accent-ink: #151b08;
  --accent-2: #ff6d48;
  --success: #2a8c61;
  --danger: #c84642;
  --shadow-sm: 0 10px 28px rgba(23,25,19,.08);
  --shadow: 0 24px 65px rgba(23,25,19,.13);
  --shadow-lg: 0 42px 100px rgba(23,25,19,.20);
  --radius-xs: 10px;
  --radius-sm: 15px;
  --radius: 22px;
  --radius-lg: 32px;
  --header-bg: rgba(242,239,231,.90);
  --ease: cubic-bezier(.22,.78,.24,1);
}
html[data-theme="dark"] {
  --bg: #11120f;
  --bg-2: #191a16;
  --surface: #1b1d18;
  --surface-2: #23251f;
  --surface-3: #2d3028;
  --ink: #f2f0e8;
  --ink-soft: #d0d0c6;
  --muted: #92958a;
  --line: rgba(242,240,232,.12);
  --line-strong: rgba(242,240,232,.25);
  --accent: #c8ff3f;
  --accent-ink: #101507;
  --accent-2: #ff7957;
  --success: #6cd9a7;
  --danger: #ff7770;
  --shadow-sm: 0 12px 32px rgba(0,0,0,.22);
  --shadow: 0 26px 70px rgba(0,0,0,.34);
  --shadow-lg: 0 46px 110px rgba(0,0,0,.48);
  --header-bg: rgba(17,18,15,.90);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 82% 6%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 24rem),
    radial-gradient(circle at 6% 48%, color-mix(in srgb, var(--accent-2) 7%, transparent), transparent 28rem);
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
input, textarea, select { color: var(--ink); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .9em; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }

.shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.shell-wide { width: min(1540px, calc(100% - 32px)); margin-inline: auto; }
.narrow-shell { max-width: 970px; }
.site-main { min-height: 68vh; }
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  z-index: 200;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 82px;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  background: var(--header-bg);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 10px 34px rgba(20,20,16,.04);
}
.nav-shell {
  width: min(1440px, calc(100% - 40px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-media {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
}
.brand-media img { width: 100%; height: 100%; object-fit: cover; }
.brand-glyph {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--ink);
  display: block;
  overflow: hidden;
  transform: rotate(-4deg);
  transition: transform .3s var(--ease);
}
.brand:hover .brand-glyph { transform: rotate(0deg) scale(1.04); }
.brand-glyph i { position: absolute; background: var(--accent); border-radius: 99px; }
.brand-glyph i:first-child { width: 18px; height: 7px; left: 7px; top: 10px; transform: rotate(35deg); }
.brand-glyph i:last-child { width: 8px; height: 18px; right: 8px; bottom: 7px; transform: rotate(35deg); }
.brand-name { font-weight: 870; letter-spacing: -.045em; font-size: 20px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.desktop-nav { display: flex; align-items: center; gap: 7px; }
.desktop-nav a {
  position: relative;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  transition: color .2s ease, background .2s ease;
}
.desktop-nav a:hover, .desktop-nav a.active { color: var(--ink); background: color-mix(in srgb, var(--surface) 86%, transparent); }
.desktop-nav a.active::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); left: 50%; bottom: 2px; transform: translateX(-50%); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.round-control, .round-action {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s ease, background .25s ease;
}
.round-control:hover, .round-action:hover { transform: translateY(-3px) rotate(3deg); border-color: var(--line-strong); }
.profile-control { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 760; max-width: 170px; }
.profile-control > span { flex: 0 0 31px; width: 31px; height: 31px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 11px; }
.profile-control b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-text-button { border: 0; background: transparent; padding: 10px 8px; font-size: 12px; font-weight: 760; cursor: pointer; color: var(--muted); }
.nav-text-button:hover { color: var(--ink); }
.inline-form { display: inline; }
.mobile-menu-button, .mobile-menu { display: none; }

/* Buttons */
.button {
  position: relative;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 790;
  letter-spacing: -.015em;
  cursor: pointer;
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s ease, border-color .28s ease, color .28s ease;
}
.button::after { content: ""; position: absolute; inset: auto -30% -120% -30%; height: 110%; background: rgba(255,255,255,.22); transform: rotate(-8deg); transition: bottom .45s var(--ease); pointer-events: none; }
.button:hover::after { bottom: 110%; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.button-primary:hover { background: var(--accent); color: var(--accent-ink); box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 24%, transparent); }
.button-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button-secondary:hover { border-color: var(--line-strong); background: var(--surface-2); }
.button-ghost { background: transparent; border-color: var(--line); }
.button-ghost:hover { background: var(--surface); border-color: var(--line-strong); }
.button-danger { background: color-mix(in srgb, var(--danger) 8%, transparent); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 28%, transparent); }
.button-danger:hover { background: var(--danger); color: #fff; }
.button-small { min-height: 38px; border-radius: 10px; padding: 0 13px; font-size: 11px; }
.button-large { min-height: 56px; padding: 0 24px; border-radius: 15px; }
.button-xl { min-height: 61px; padding: 0 26px; border-radius: 17px; font-size: 14px; }
.button-block { width: 100%; }

/* Shared type */
.eyebrow, .section-label, .hero-kicker, .panel-heading > div > span, .auth-panel-head > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .17em;
}
.eyebrow i, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-2) 13%, transparent); }
.section-bar { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.section-bar h2, .catalog-toolbar h2 { margin: 7px 0 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.02; letter-spacing: -.055em; font-weight: 780; }
.section-bar > p { max-width: 370px; margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.section-bar > a { color: var(--muted); font-size: 12px; font-weight: 780; padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 780; transition: color .2s ease, transform .25s var(--ease); }
.back-link:hover { color: var(--ink); transform: translateX(-3px); }

/* Home hero */
.home-hero { padding: 88px 0 100px; min-height: 720px; display: flex; flex-direction: column; justify-content: center; }
.hero-kicker { margin-bottom: 28px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr); align-items: center; gap: clamp(42px, 7vw, 110px); }
.hero-copy-2026 h1 {
  margin: 0;
  max-width: 830px;
  font-size: clamp(58px, 7.6vw, 112px);
  line-height: .86;
  letter-spacing: -.075em;
  font-weight: 790;
}
.hero-copy-2026 h1 em { display: inline-block; margin-top: .10em; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.065em; color: var(--accent-2); }
.hero-copy-2026 > p { max-width: 620px; margin: 31px 0 0; color: var(--ink-soft); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; }
.hero-cta-row { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 34px; }
.hero-microcopy { display: flex; gap: 0; flex-wrap: wrap; margin-top: 42px; border-top: 1px solid var(--line); max-width: 640px; }
.hero-microcopy span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; padding: 13px 20px 0 0; margin-right: 20px; position: relative; }
.hero-microcopy span:not(:last-child)::after { content: "/"; position: absolute; right: -2px; color: var(--line-strong); }
.hero-stack { position: relative; min-height: 570px; perspective: 1400px; }
.hero-stack::before { content: ""; position: absolute; width: 76%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); right: 7%; top: 8%; opacity: .72; filter: saturate(.8); transform: scale(.98); }
.hero-stack::after { content: ""; position: absolute; inset: 9% 3% 5% 13%; border: 1px solid var(--line-strong); border-radius: 50%; transform: rotate(-13deg); pointer-events: none; }
.hero-poster { position: absolute; display: block; width: 245px; aspect-ratio: .76; overflow: hidden; border-radius: 19px; border: 6px solid var(--surface); background: var(--surface); box-shadow: var(--shadow-lg); transform-style: preserve-3d; will-change: transform; transition: box-shadow .3s ease; }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease), filter .4s ease; }
.hero-poster > span { position: absolute; inset: auto 8px 8px 8px; padding: 12px 13px; border-radius: 12px; background: rgba(13,14,12,.82); color: #f6f3ea; backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-poster b { font-size: 11px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-poster small { font-size: 8px; color: rgba(255,255,255,.66); white-space: nowrap; }
.hero-poster:hover { box-shadow: 0 48px 100px rgba(17,18,15,.28); z-index: 8; }
.hero-poster:hover img { transform: scale(1.045); filter: saturate(1.1); }
.hero-poster-1 { left: 5%; top: 12%; transform: rotate(-10deg); z-index: 2; animation: posterFloatA 7.3s ease-in-out infinite; }
.hero-poster-2 { right: 6%; top: 3%; transform: rotate(9deg) scale(.93); z-index: 3; animation: posterFloatB 8.2s ease-in-out infinite; }
.hero-poster-3 { left: 31%; bottom: 2%; transform: rotate(2deg) scale(.89); z-index: 4; animation: posterFloatC 6.6s ease-in-out infinite; }
@keyframes posterFloatA { 50% { translate: 4px -13px; rotate: 1.5deg; } }
@keyframes posterFloatB { 50% { translate: -6px 14px; rotate: -2deg; } }
@keyframes posterFloatC { 50% { translate: 8px -9px; rotate: 1deg; } }
.hero-empty-art { position: absolute; inset: 15% 9%; background: var(--ink); border-radius: 40px; color: var(--bg); display: grid; place-items: center; font-size: clamp(55px, 8vw, 100px); font-weight: 900; letter-spacing: -.08em; transform: rotate(4deg); overflow: hidden; }
.hero-empty-art i { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.24); width: 380px; height: 380px; }
.hero-empty-art i:nth-child(3) { width: 250px; height: 250px; }
.hero-empty-art i:nth-child(4) { width: 120px; height: 120px; background: var(--accent); border: 0; mix-blend-mode: difference; }

/* Continue */
.continue-section { padding: 18px 0 95px; }
.continue-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(310px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 4px 1px 12px; }
.continue-rail::-webkit-scrollbar { display: none; }
.continue-card { min-width: 0; scroll-snap-align: start; display: grid; grid-template-columns: 76px minmax(0,1fr) 38px; align-items: center; gap: 15px; padding: 9px; border-radius: 17px; border: 1px solid var(--line); background: var(--surface); transition: transform .3s var(--ease), border-color .25s ease, box-shadow .3s ease; }
.continue-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.continue-card img { width: 76px; height: 76px; border-radius: 11px; object-fit: cover; }
.continue-card div { min-width: 0; }
.continue-card span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue-card strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue-card > b { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 9px; transition: transform .25s var(--ease), background .25s ease; }
.continue-card:hover > b { transform: rotate(8deg) scale(1.08); background: var(--accent-2); color: #fff; }

/* Catalog */
.catalog-section { padding: 26px 0 125px; }
.catalog-toolbar { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; padding: 30px 0 29px; border-top: 1px solid var(--line-strong); }
.search-command { width: min(430px, 40vw); height: 52px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; transition: border .2s ease, box-shadow .2s ease, transform .2s ease; }
.search-command:focus-within { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.search-command > span { text-align: center; color: var(--muted); font-size: 20px; }
.search-command input { min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-command input::placeholder { color: var(--muted); }
.search-command button { height: 36px; margin-right: 7px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: 10px; font-weight: 800; cursor: pointer; }
.poster-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 38px 16px; }
.poster-card { min-width: 0; }
.poster-media { position: relative; display: block; aspect-ratio: .78; overflow: hidden; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); transform: translateZ(0); isolation: isolate; }
.poster-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255,255,255,.26), transparent 45%); opacity: 0; transition: opacity .25s ease; pointer-events: none; z-index: 2; }
.poster-media:hover::after { opacity: 1; }
.poster-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s ease; }
.poster-card:hover .poster-media img { transform: scale(1.055); filter: saturate(1.08) contrast(1.02); }
.poster-play { position: absolute; right: 13px; bottom: 13px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 10px; z-index: 3; box-shadow: 0 8px 24px rgba(0,0,0,.16); transform: scale(.85) rotate(-8deg); opacity: 0; transition: transform .35s var(--ease), opacity .25s ease; }
.poster-card:hover .poster-play { opacity: 1; transform: scale(1) rotate(0); }
.poster-copy { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 3px 0; }
.poster-copy > div { min-width: 0; }
.poster-copy h3 { margin: 0; font-size: 15px; letter-spacing: -.035em; line-height: 1.25; font-weight: 780; }
.poster-copy h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.poster-copy p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; max-width: 250px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.play-count { flex: none; color: var(--muted); font-size: 9px; font-weight: 760; white-space: nowrap; padding-top: 2px; }
.pagination { margin-top: 60px; display: flex; justify-content: center; gap: 7px; }
.pagination a { min-width: 40px; height: 40px; padding: 0 9px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; font-weight: 780; background: var(--surface); }
.pagination a:hover, .pagination a.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Game detail */
.game-detail { padding: 56px 0 100px; }
.game-detail-grid { display: grid; grid-template-columns: minmax(300px, .74fr) minmax(0, 1.26fr); gap: clamp(54px, 8vw, 115px); align-items: center; margin-top: 38px; }
.game-cover-wrap { max-width: 480px; justify-self: center; width: 100%; }
.game-cover { position: relative; width: 100%; aspect-ratio: .78; border-radius: 25px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform-style: preserve-3d; will-change: transform; }
.game-cover::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.22); border-radius: inherit; pointer-events: none; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-caption { display: flex; justify-content: space-between; gap: 20px; padding-top: 12px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.game-detail-copy h1 { margin: 13px 0 22px; font-size: clamp(58px, 7vw, 104px); line-height: .91; letter-spacing: -.072em; font-weight: 790; max-width: 780px; }
.game-lead { max-width: 650px; color: var(--ink-soft); font-size: clamp(17px, 1.8vw, 22px); line-height: 1.62; margin: 0; }
.game-action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.game-action-row form { display: contents; }
.game-status-strip { margin-top: 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.game-status-strip > div { padding: 20px 20px 20px 0; display: flex; gap: 12px; align-items: flex-start; }
.game-status-strip > div + div { border-left: 1px solid var(--line); padding-left: 22px; }
.game-status-strip strong { display: block; font-size: 11px; margin-bottom: 3px; }
.game-status-strip p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.status-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-top: 4px; }
.status-dot.saved { background: var(--success); box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 13%, transparent); }
.related-section { padding: 35px 0 125px; }
.mini-poster-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.mini-poster { display: grid; grid-template-columns: 82px 1fr; gap: 13px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: transform .28s var(--ease), border-color .2s ease, box-shadow .28s ease; }
.mini-poster:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.mini-poster img { width: 82px; height: 82px; border-radius: 9px; object-fit: cover; }
.mini-poster span { min-width: 0; }
.mini-poster strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-poster small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }

/* Player */
.player-page .site-footer { display: none; }
.player-page .site-header { background: var(--header-bg); border-bottom-color: var(--line); }
.play-stage { padding: 28px 0 44px; }
.play-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; margin-bottom: 14px; }
.play-title-group { display: flex; align-items: center; gap: 22px; min-width: 0; }
.play-title-group > div { min-width: 0; }
.play-title-group h1 { margin: 2px 0 0; font-size: clamp(22px, 2.2vw, 33px); line-height: 1.1; letter-spacing: -.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 620px; }
.play-controls { display: flex; align-items: center; gap: 8px; }
.save-indicator { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 9px; font-weight: 800; }
.save-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: savePulse 2.2s ease-in-out infinite; }
.save-indicator.is-saved span { background: var(--success); }
@keyframes savePulse { 50% { opacity: .35; transform: scale(.75); } }
.player-frame { position: relative; height: min(74vh, 820px); min-height: 560px; border-radius: 23px; overflow: hidden; background: #080906; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 28px 70px rgba(0,0,0,.25); isolation: isolate; }
.player-frame::before { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.06); border-radius: inherit; pointer-events: none; z-index: 6; }
.j2me-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0a0b08; display: block; z-index: 1; }
.player-loading, .player-error { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #eeeade; background: #0a0b08; transition: opacity .45s var(--ease), visibility .45s ease; }
.player-loading[hidden], .player-error[hidden] { display: none !important; }
.player-loading.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.player-loading strong, .player-error h2 { margin: 18px 0 7px; font-size: 19px; letter-spacing: -.035em; }
.player-loading p, .player-error p { margin: 0; color: #8c9184; font-size: 11px; max-width: 380px; }
.loading-mark { display: flex; align-items: flex-end; gap: 5px; height: 34px; }
.loading-mark i { display: block; width: 7px; height: 18px; border-radius: 999px; background: var(--accent); animation: loadingBars 1s ease-in-out infinite; }
.loading-mark i:nth-child(2) { height: 30px; animation-delay: .12s; }
.loading-mark i:nth-child(3) { height: 23px; animation-delay: .24s; }
@keyframes loadingBars { 50% { transform: scaleY(.45); opacity: .55; } }
.player-error > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); color: var(--accent-2); font-size: 19px; }
.player-error .button { margin-top: 18px; }
.play-footnote { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 4px 0; color: var(--muted); }
.play-footnote p { margin: 0; font-size: 9px; display: flex; align-items: center; gap: 8px; }
.play-footnote strong { color: var(--ink-soft); }
.j2me-player:fullscreen { width: 100vw; height: 100vh; background: #050505; }

/* Auth */
.auth-page .site-footer { margin-top: 0; }
.auth-layout { min-height: calc(100vh - 82px); padding: 70px 0 95px; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(45px, 8vw, 120px); align-items: center; }
.auth-story h1 { margin: 15px 0 26px; font-size: clamp(55px, 6.5vw, 92px); line-height: .91; letter-spacing: -.07em; max-width: 720px; }
.auth-story h1 em { font-family: Georgia, "Times New Roman", serif; color: var(--accent-2); font-weight: 400; }
.auth-story > p { color: var(--ink-soft); font-size: 17px; line-height: 1.65; max-width: 590px; }
.auth-proof { margin-top: 42px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.auth-proof span { padding: 15px 12px 0 0; color: var(--muted); font-size: 10px; }
.auth-proof b { color: var(--ink); display: block; margin-bottom: 5px; font-size: 9px; letter-spacing: .1em; }
.auth-panel { border: 1px solid var(--line); background: var(--surface); border-radius: 26px; padding: clamp(26px,4vw,48px); box-shadow: var(--shadow); }
.auth-panel-head h2 { margin: 7px 0 8px; font-size: 34px; letter-spacing: -.055em; }
.auth-panel-head p { margin: 0 0 27px; color: var(--muted); font-size: 11px; }
.form-stack { display: grid; gap: 15px; }
.form-stack label, .admin-form > label { display: grid; gap: 8px; font-size: 10px; font-weight: 820; color: var(--ink-soft); }
.form-stack input, .admin-form input[type="text"], .admin-form input[type="email"], .admin-form textarea, .admin-form select {
  width: 100%;
  min-height: 53px;
  padding: 0 15px;
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  transition: border .2s ease, background .2s ease, box-shadow .2s ease;
}
.form-stack input:focus, .admin-form input[type="text"]:focus, .admin-form input[type="email"]:focus, .admin-form textarea:focus, .admin-form select:focus { border-color: var(--line-strong); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent); background: var(--surface); }
.admin-form textarea { min-height: 120px; padding-top: 13px; resize: vertical; }
.auth-foot { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 10px; }
.auth-foot a { color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Library */
.library-header { padding: 78px 0 50px; border-bottom: 1px solid var(--line-strong); }
.library-header > div:first-of-type { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.library-header h1 { margin: 12px 0 8px; font-size: clamp(55px,7vw,94px); line-height: .92; letter-spacing: -.07em; }
.library-header p { color: var(--muted); max-width: 580px; margin: 0; font-size: 14px; }
.library-summary { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 35px; }
.library-summary span { color: var(--muted); font-size: 10px; }
.library-summary b { color: var(--ink); font-size: 17px; margin-right: 4px; }
.library-block { padding: 65px 0 25px; }
.compact-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.count-chip { display: inline-flex; min-height: 31px; align-items: center; padding: 0 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 9px; font-weight: 800; }
.history-list { border-top: 1px solid var(--line); }
.history-item { display: grid; grid-template-columns: 58px minmax(0,1fr) auto 36px; gap: 15px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); transition: padding .25s var(--ease), background .2s ease; }
.history-item:hover { padding-left: 10px; padding-right: 10px; background: var(--surface); }
.history-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 9px; }
.history-item > div { min-width: 0; }
.history-item strong { display: block; font-size: 12px; }
.history-item span, .history-item time { color: var(--muted); font-size: 9px; }
.history-item > b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 8px; }
.empty-line { padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

/* Admin */
.admin-body { background: var(--bg); }
.admin-shell { padding: 62px 0 110px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 46px; }
.admin-heading > div:first-child { max-width: 820px; }
.admin-heading h1 { margin: 13px 0 13px; font-size: clamp(52px,6vw,86px); line-height: .92; letter-spacing: -.07em; font-weight: 790; }
.admin-heading h1 em { font-family: Georgia, "Times New Roman", serif; color: var(--accent-2); font-weight: 400; }
.admin-heading p { margin: 0; max-width: 650px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.admin-heading .back-link + h1 { margin-top: 28px; }
.admin-heading-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }
.stat-card { min-height: 180px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 20px; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .2s ease, background .2s ease; }
.stat-card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--surface-2); }
.stat-card > span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .15em; font-weight: 830; }
.stat-card strong { margin-top: auto; font-size: clamp(42px,5vw,67px); line-height: .85; letter-spacing: -.065em; font-weight: 760; }
.stat-card small { margin-top: 10px; color: var(--muted); font-size: 9px; }
.admin-panel { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.panel-heading { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 25px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 4px 0 0; font-size: 25px; letter-spacing: -.05em; }
.panel-heading > a { color: var(--muted); font-size: 10px; font-weight: 800; }
.panel-heading > a:hover { color: var(--ink); }
.panel-heading-compact { min-height: 80px; }
.admin-game-list { display: grid; }
.admin-game-row { display: grid; grid-template-columns: 62px minmax(0,1fr) auto auto; align-items: center; gap: 16px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.admin-game-row:last-child { border-bottom: 0; }
.admin-game-row:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.admin-game-thumb { display: block; width: 62px; height: 62px; border-radius: 10px; overflow: hidden; }
.admin-game-thumb img, .admin-game-row > img { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; }
.grow { min-width: 0; }
.grow strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.status { display: inline-flex; align-items: center; gap: 7px; width: max-content; min-height: 29px; padding: 0 10px; border-radius: 999px; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; border: 1px solid var(--line); color: var(--muted); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--success); border-color: color-mix(in srgb, var(--success) 27%, transparent); background: color-mix(in srgb, var(--success) 7%, transparent); }
.status.draft { color: var(--muted); }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; min-width: 800px; border-collapse: collapse; }
.data-table th { padding: 13px 17px; text-align: left; color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; border-bottom: 1px solid var(--line); }
.data-table td { padding: 13px 17px; border-bottom: 1px solid var(--line); font-size: 10px; color: var(--muted); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.table-game { display: flex; align-items: center; gap: 12px; min-width: 235px; }
.table-game img { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; }
.table-game > div { min-width: 0; }
.table-game strong { display: block; color: var(--ink); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.table-game a { display: inline-block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.metric-number { color: var(--ink); font-size: 13px; font-weight: 760; }
.table-actions { display: flex; justify-content: flex-end; gap: 5px; white-space: nowrap; }
.table-actions form { display: inline; }

/* Admin forms/settings */
.form-panel { padding: clamp(22px,4vw,44px); }
.admin-form { display: grid; gap: 24px; }
.admin-form > label > span { color: var(--muted); font-weight: 600; float: right; }
.form-section-title, .settings-section-copy { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding-top: 12px; border-top: 1px solid var(--line); }
.form-section-title > span, .settings-section-copy > span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .1em; padding-top: 4px; }
.form-section-title h2, .settings-section-copy h2 { margin: 0; font-size: 20px; letter-spacing: -.045em; }
.form-section-title p, .settings-section-copy p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.upload-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.dropzone { position: relative; min-height: 190px; padding: 22px; border: 1px dashed var(--line-strong); border-radius: 17px; background: var(--bg); display: flex!important; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 5px!important; overflow: hidden; cursor: pointer; transition: border-color .25s ease, background .25s ease, transform .3s var(--ease); }
.dropzone:hover, .dropzone.is-dragging { transform: translateY(-4px); border-color: var(--ink); background: var(--surface-2); }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-icon { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 14px; }
.dropzone strong { font-size: 13px; color: var(--ink); }
.dropzone small { color: var(--muted); font-size: 9px; }
.dropzone em { max-width: 100%; font-style: normal; font-size: 9px; color: var(--accent-2); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-note { display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: start; padding: 14px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line)); }
.upload-note > span { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.upload-note p { margin: 1px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.upload-note strong { color: var(--ink); }
.switch-row { min-height: 74px; display: flex!important; align-items: center; justify-content: space-between; gap: 22px!important; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row > span { display: grid; gap: 3px; }
.switch-row strong { color: var(--ink); font-size: 11px; }
.switch-row small { color: var(--muted); font-size: 9px; font-weight: 550; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { position: relative; flex: 0 0 46px; width: 46px; height: 26px; border-radius: 999px; background: var(--surface-3); transition: background .25s ease; }
.switch-row i::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.14); transition: transform .28s var(--ease), background .2s ease; }
.switch-row input:checked + i { background: var(--accent); }
.switch-row input:checked + i::after { transform: translateX(20px); background: var(--accent-ink); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.form-alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: 12px; font-size: 10px; line-height: 1.55; }
.form-alert.error { color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.form-alert > span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--danger) 12%, transparent); font-weight: 900; }
.current-media { display: grid; grid-template-columns: 80px minmax(0,1fr) auto; gap: 15px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.current-media img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.current-media > div { min-width: 0; }
.current-media > div > span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.current-media strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.current-media small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-section { display: grid; gap: 18px; }
.settings-section + .settings-section { margin-top: 26px; }
.branding-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.branding-card { min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 10px; background: var(--bg); display: grid; gap: 9px; }
.branding-card-wide { grid-column: 1 / -1; }
.branding-preview { min-height: 140px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.branding-preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-preview img { object-fit: contain; padding: 17px; }
.favicon-preview { min-height: 140px; }
.favicon-preview img { width: 60px; height: 60px; object-fit: contain; }
.og-preview { aspect-ratio: 1200 / 630; }
.og-preview img { object-fit: cover; }
.compact-upload { position: relative; min-width: 0; display: grid!important; gap: 2px!important; padding: 11px; border: 1px dashed var(--line); border-radius: 10px; cursor: pointer; overflow: hidden; }
.compact-upload:hover { border-color: var(--line-strong); background: var(--surface); }
.compact-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.compact-upload strong { font-size: 9px; }
.compact-upload small { color: var(--muted); font-size: 8px; }
.compact-upload em { color: var(--accent-2); font-style: normal; font-size: 8px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.remove-check { display: flex!important; align-items: center; gap: 7px!important; color: var(--muted); font-size: 8px!important; cursor: pointer; padding: 0 3px; }
.remove-check input { accent-color: var(--danger); }

/* States, toast, footer */
.empty-state { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 42px; border: 1px dashed var(--line-strong); border-radius: 20px; background: var(--surface); }
.empty-state > span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 15px; }
.empty-state h3 { margin: 17px 0 6px; font-size: 25px; letter-spacing: -.05em; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.toast-stack { position: fixed; right: 20px; top: 95px; z-index: 500; display: grid; gap: 8px; width: min(360px, calc(100vw - 40px)); }
.toast { display: grid; grid-template-columns: 7px 1fr; gap: 10px; align-items: center; min-height: 48px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); font-size: 10px; font-weight: 650; animation: toastIn .45s var(--ease) both; transition: opacity .35s ease, transform .35s var(--ease); }
.toast > span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.toast-error > span { background: var(--danger); }
.toast.leave { opacity: 0; transform: translateY(-12px); pointer-events: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.site-footer { margin-top: 80px; border-top: 1px solid var(--line-strong); }
.footer-grid { min-height: 240px; display: grid; grid-template-columns: 1.2fr .6fr .7fr; gap: 40px; align-items: start; padding: 52px 0; }
.footer-brand strong { font-size: 25px; letter-spacing: -.055em; }
.footer-brand p { max-width: 390px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.footer-links { display: grid; gap: 8px; font-size: 10px; font-weight: 760; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-meta { display: grid; gap: 5px; justify-items: end; color: var(--muted); font-size: 9px; }

/* Error */
.error-page { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 80px 0; }
.error-code { color: var(--accent-2); font-size: 12px; font-weight: 900; letter-spacing: .2em; }
.error-page h1 { margin: 15px 0 10px; font-size: clamp(55px,8vw,110px); line-height: .9; letter-spacing: -.075em; }
.error-page p { color: var(--muted); margin: 0 0 25px; }

/* Reveal + interaction */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.stagger-grid > .reveal:nth-child(2), .delay-1 { transition-delay: .07s; }
.stagger-grid > .reveal:nth-child(3), .delay-2 { transition-delay: .14s; }
.stagger-grid > .reveal:nth-child(4), .delay-3 { transition-delay: .21s; }
.delay-4 { transition-delay: .28s; }.delay-5 { transition-delay: .35s; }.delay-6 { transition-delay: .42s; }.delay-7 { transition-delay: .49s; }

/* Responsive */
@media (max-width: 1120px) {
  .hero-layout { grid-template-columns: 1fr .82fr; gap: 42px; }
  .hero-stack { min-height: 500px; }
  .hero-poster { width: 205px; }
  .poster-grid, .compact-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .mini-poster-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .game-detail-grid { gap: 58px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .hide-tablet { display: none!important; }
  .mobile-menu-button { display: grid; }
  .mobile-menu { position: absolute; top: calc(100% - 1px); left: 20px; right: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); padding: 8px; opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .mobile-menu.open { display: grid; opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a, .mobile-menu button { width: 100%; min-height: 48px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 11px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 760; cursor: pointer; }
  .mobile-menu a:hover, .mobile-menu button:hover { background: var(--surface-2); }
  .mobile-menu form { margin: 0; }
  .home-hero { padding-top: 65px; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy-2026 h1 { max-width: 820px; }
  .hero-stack { min-height: 510px; max-width: 630px; width: 100%; margin-inline: auto; }
  .hero-poster { width: 230px; }
  .catalog-toolbar { grid-template-columns: 1fr; align-items: start; }
  .search-command { width: 100%; }
  .game-detail-grid { grid-template-columns: .8fr 1.2fr; gap: 35px; }
  .game-detail-copy h1 { font-size: clamp(46px,7.5vw,72px); }
  .auth-layout { grid-template-columns: 1fr; min-height: auto; }
  .auth-story { max-width: 760px; }
  .auth-panel { max-width: 650px; width: 100%; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-heading-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { justify-items: start; }
  .play-toolbar { align-items: flex-start; flex-direction: column; }
  .play-controls { width: 100%; }
  .save-indicator { margin-right: auto; }
}
@media (max-width: 720px) {
  .shell { width: min(100% - 30px, 1240px); }
  .shell-wide { width: min(100% - 18px, 1540px); }
  .nav-shell { width: calc(100% - 24px); gap: 12px; }
  .site-header { height: 72px; }
  .brand-name { max-width: 145px; font-size: 17px; }
  .profile-control b { display: none; }
  .profile-control { padding-right: 4px; }
  .hide-mobile { display: none!important; }
  .home-hero { min-height: auto; padding: 57px 0 75px; }
  .hero-kicker { margin-bottom: 20px; }
  .hero-copy-2026 h1 { font-size: clamp(50px,16vw,78px); }
  .hero-copy-2026 > p { margin-top: 24px; font-size: 15px; }
  .hero-stack { min-height: 430px; margin-top: 10px; }
  .hero-poster { width: 42vw; max-width: 190px; border-width: 4px; border-radius: 15px; }
  .hero-poster-1 { left: 2%; top: 15%; }.hero-poster-2 { right: 1%; top: 5%; }.hero-poster-3 { left: 31%; bottom: 0; }
  .hero-microcopy { gap: 0; }
  .hero-microcopy span { font-size: 8px; }
  .continue-section { padding-bottom: 70px; }
  .continue-rail { grid-auto-columns: minmax(285px, 86vw); }
  .catalog-section { padding-bottom: 90px; }
  .catalog-toolbar { padding-top: 24px; }
  .poster-grid, .compact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 10px; }
  .poster-media { border-radius: 14px; }
  .poster-copy { display: block; }
  .play-count { display: block; padding-top: 6px; }
  .game-detail { padding-top: 35px; }
  .game-detail-grid { grid-template-columns: 1fr; margin-top: 25px; }
  .game-cover-wrap { max-width: min(72vw, 380px); }
  .game-detail-copy h1 { font-size: clamp(52px,14vw,78px); }
  .game-status-strip { grid-template-columns: 1fr; }
  .game-status-strip > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .game-action-row .button, .game-action-row form { flex: 1 1 100%; }
  .game-action-row form .button { width: 100%; }
  .mini-poster-grid { grid-template-columns: 1fr; }
  .player-frame { min-height: 500px; height: 72svh; border-radius: 18px; box-shadow: none; contain: layout paint; }
  .player-frame::before { display: none; }
  .player-page .site-header { box-shadow: none; }
  .play-title-group { width: 100%; }
  .play-title-group .back-link { display: none; }
  .play-title-group h1 { max-width: calc(100vw - 45px); }
  .round-action { width: 38px; height: 38px; }
  .play-controls .button { min-height: 38px; }
  .desktop-help { display: none!important; }
  .auth-layout { padding: 48px 0 72px; gap: 40px; }
  .auth-story h1 { font-size: clamp(50px,15vw,76px); }
  .auth-proof { grid-template-columns: 1fr; border-top: 0; gap: 7px; }
  .auth-proof span { padding: 10px 0; border-top: 1px solid var(--line); }
  .auth-proof b { display: inline; margin-right: 8px; }
  .library-header { padding-top: 50px; }
  .library-header h1 { font-size: clamp(50px,15vw,76px); }
  .library-summary { gap: 15px; }
  .history-item { grid-template-columns: 52px minmax(0,1fr) 34px; }
  .history-item time { display: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-card { min-height: 145px; padding: 15px; }
  .admin-shell { padding-top: 44px; }
  .admin-heading h1 { font-size: clamp(49px,14vw,72px); }
  .admin-heading-actions { width: 100%; }
  .admin-heading-actions .button { flex: 1; }
  .admin-game-row { grid-template-columns: 58px minmax(0,1fr) auto; gap: 11px; }
  .admin-game-row .status { display: none; }
  .admin-game-thumb, .admin-game-thumb img, .admin-game-row > img { width: 58px; height: 58px; }
  .form-panel { padding: 18px; }
  .upload-grid, .branding-grid { grid-template-columns: 1fr; }
  .branding-card-wide { grid-column: auto; }
  .current-media { grid-template-columns: 68px 1fr; }
  .current-media img { width: 68px; height: 68px; }
  .current-media .button { grid-column: 1 / -1; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; min-height: 0; }
  .footer-meta { justify-items: start; }
}
@media (max-width: 430px) {
  .nav-actions > .button { display: none; }
  .brand-name { max-width: 175px; }
  .hero-cta-row .button { width: 100%; }
  .hero-stack { min-height: 380px; }
  .poster-grid, .compact-grid { grid-template-columns: 1fr 1fr; }
  .poster-copy h3 { font-size: 13px; }
  .poster-copy p { display: none; }
  .poster-play { width: 38px; height: 38px; right: 9px; bottom: 9px; }
  .section-bar { align-items: flex-start; flex-direction: column; }
  .section-bar h2, .catalog-toolbar h2 { font-size: 34px; }
  .game-cover-wrap { max-width: 86vw; }
  .game-action-row { display: grid; }
  .play-controls { gap: 5px; flex-wrap: wrap; }
  .save-indicator { flex: 1 1 calc(100% - 100px); }
  .player-frame { min-height: 480px; height: 70svh; }
  .stats-grid { gap: 7px; }
  .stat-card strong { font-size: 43px; }
  .admin-heading-actions { display: grid; grid-template-columns: 1fr; }
  .form-actions { grid-template-columns: 1fr; }
}
.player-loading.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.save-indicator.is-saving span { background: var(--accent-2); }
.save-indicator.is-offline span { background: #d3a946; }
.round-action.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Gameplay performance profile ------------------------------------------------
   Keep the site's full visual language everywhere else, but remove expensive
   page-level compositing while a WebAssembly emulator is actively repainting. */
.player-page .page-noise { display: none !important; }
.player-page .site-header.scrolled {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.player-page .play-stage.reveal,
.player-page .player-frame.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
@media (max-width: 760px) {
  .player-page .site-header { position: relative; }
  .player-page .player-frame { isolation: auto; }
}
.player-page::before { display: none !important; }
.player-page { transition: none; }
.player-page .site-header { transition: none; }
