:root {
  --bg: #070b18;
  --bg-deep: #040711;
  --surface: #10172a;
  --surface-2: #151f38;
  --surface-3: #1b2747;
  --line: rgba(141, 171, 229, .20);
  --line-strong: rgba(0, 180, 255, .46);
  --text: #f7fbff;
  --muted: #aab7d1;
  --blue: #00b4ff;
  --cyan: #00e6ff;
  --lime: #66ff66;
  --yellow: #ffd400;
  --orange: #ff8a00;
  --pink: #ff5cd7;
  --purple: #a855f7;
  --danger: #ff4f64;
  --shadow: 0 22px 70px rgba(0, 0, 0, .34);
  --glow: 0 0 30px rgba(0, 230, 255, .22);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shell: min(1520px, calc(100% - 44px));
  --header-height: 90px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(0, 180, 255, .18), transparent 29rem),
    radial-gradient(circle at 92% 2%, rgba(102, 255, 102, .08), transparent 24rem),
    linear-gradient(180deg, #090e22 0, var(--bg) 32rem, var(--bg-deep) 100%);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
  z-index: -1;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
svg { display: block; }
main { width: var(--shell); margin: 0 auto; min-height: 64vh; }
.sr-only { position: absolute !important; 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; z-index: 9999; left: 12px; top: -60px; padding: 12px 16px; border-radius: 10px; background: var(--yellow); color: #07101f; font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 11, 24, .86);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(115, 158, 236, .13);
}
.header-shell, .nav-shell, .footer-shell { width: var(--shell); margin: 0 auto; }
.header-shell { height: var(--header-height); display: grid; grid-template-columns: 370px minmax(280px, 680px) auto; gap: 28px; align-items: center; }
.brand { display: inline-flex; align-items: center; width: min(350px, 100%); min-width: 0; }
.brand img { display: block; width: 100%; max-height: 78px; object-fit: contain; object-position: left center; }
.global-search { position: relative; display: flex; align-items: center; height: 48px; border: 1px solid rgba(137, 174, 242, .24); border-radius: 16px; background: rgba(16, 24, 46, .86); box-shadow: inset 0 1px rgba(255,255,255,.03); transition: .2s; }
.global-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,180,255,.12), 0 0 24px rgba(0,180,255,.12); }
.global-search__icon { width: 44px; display: grid; place-items: center; color: var(--muted); }
.global-search__icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.global-search input { flex: 1; min-width: 0; height: 100%; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 15px; }
.global-search input::placeholder { color: #7f8da9; }
.global-search kbd { margin-right: 12px; min-width: 27px; padding: 2px 7px; text-align: center; color: #8d9ab5; background: #0b1123; border: 1px solid #293451; border-radius: 7px; box-shadow: inset 0 -1px rgba(255,255,255,.04); }
.search-suggestions { position: absolute; top: calc(100% + 10px); left: 0; right: 0; max-height: 420px; overflow: auto; background: #0e162b; border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; }
.search-suggestion { display: grid; grid-template-columns: 54px 1fr auto; gap: 11px; align-items: center; padding: 8px; border-radius: 11px; }
.search-suggestion:hover, .search-suggestion[aria-selected="true"] { background: var(--surface-3); }
.search-suggestion img { width: 54px; height: 36px; object-fit: cover; border-radius: 7px; }
.search-suggestion strong { display: block; font-size: 14px; }
.search-suggestion small { color: var(--muted); }
.search-suggestion > span:last-child { color: var(--cyan); font-size: 20px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; white-space: nowrap; }
.icon-action, .random-button { display: inline-flex; align-items: center; gap: 8px; height: 43px; padding: 0 14px; border: 1px solid rgba(115, 158, 236, .24); border-radius: 13px; background: rgba(16, 24, 46, .72); color: #dbe7ff; cursor: pointer; transition: .18s; font-weight: 700; font-size: 14px; }
.icon-action:hover, .random-button:hover { border-color: var(--blue); color: #fff; transform: translateY(-1px); background: #152342; }
.icon-action svg, .random-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.icon-action svg { fill: transparent; }
.random-button { color: #08111f; border-color: transparent; background: linear-gradient(135deg, var(--yellow), var(--orange)); box-shadow: 0 9px 24px rgba(255,138,0,.16); }
.random-button svg { stroke: #08111f; }
.menu-button { position: relative; z-index: 220; display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px; cursor: pointer; }
.menu-button span { display: block; height: 2px; margin: 5px 0; border-radius: 99px; background: #fff; transition: transform .2s, opacity .2s; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.main-nav { border-top: 1px solid rgba(115, 158, 236, .08); }
.nav-shell { display: flex; align-items: center; height: 55px; gap: 6px; }
.nav-shell > a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border-radius: 11px; color: #b8c6df; font-weight: 750; font-size: 14px; transition: .18s; }
.nav-shell > a:hover { color: #fff; background: var(--surface-2); }
.nav-shell > a:first-child { color: var(--cyan); background: rgba(0,180,255,.10); border: 1px solid rgba(0,180,255,.22); }
.nav-shell svg { width: 18px; height: 18px; fill: currentColor; }
.nav-shell > a:first-child svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-categories { display: flex; align-items: center; gap: 4px; margin-left: auto; overflow: hidden; }
.nav-categories a { padding: 7px 10px; color: #8795b1; font-size: 13px; border-radius: 9px; }
.nav-categories a:hover { color: #fff; background: var(--surface-2); }

/* Shared */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--cyan); text-transform: uppercase; letter-spacing: .14em; font-weight: 850; font-size: 12px; }
.eyebrow i { width: 25px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--lime)); border-radius: 9px; box-shadow: 0 0 12px var(--cyan); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 850; border: 1px solid transparent; transition: .18s; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: #07101f; background: linear-gradient(135deg, var(--yellow), var(--orange)); box-shadow: 0 13px 30px rgba(255, 138, 0, .22); }
.button--primary:hover { box-shadow: 0 17px 34px rgba(255, 138, 0, .28); }
.button--outline { color: #e8f4ff; background: rgba(8, 14, 31, .56); border-color: rgba(0, 180, 255, .55); }
.button--outline:hover { background: rgba(0,180,255,.10); border-color: var(--cyan); }
.button__play { display: grid; place-items: center; width: 24px; height: 24px; color: #fff; background: #091323; border-radius: 50%; font-size: 10px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); font-size: clamp(21px, 2vw, 28px); letter-spacing: -.025em; }
.section-heading h2 > span { font-size: .9em; filter: drop-shadow(0 0 12px rgba(255,212,0,.3)); }
.section-link { color: #9fb0cc; font-size: 14px; font-weight: 800; transition: .18s; }
.section-link:hover { color: var(--cyan); }
.section-link--button { border: 0; background: none; cursor: pointer; }
.game-section { margin: 42px 0; }
.game-row { display: grid; grid-auto-columns: minmax(205px, 1fr); grid-auto-flow: column; gap: 14px; overflow-x: auto; padding: 3px 3px 16px; scroll-snap-type: x proximity; scrollbar-color: #243354 transparent; scrollbar-width: thin; }
.game-row .game-card { scroll-snap-align: start; }
.game-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.game-card { position: relative; min-width: 0; border: 1px solid rgba(132, 167, 230, .18); border-radius: var(--radius); background: linear-gradient(180deg, rgba(22,32,59,.94), rgba(12,18,34,.98)); overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.15); transition: transform .22s, border-color .22s, box-shadow .22s; }
.game-card:hover { transform: translateY(-5px); border-color: rgba(0,230,255,.65); box-shadow: 0 18px 46px rgba(0,0,0,.28), 0 0 26px rgba(0,230,255,.12); }
.game-card__link { display: block; }
.game-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #0a1020; }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.game-card:hover .game-card__media img { transform: scale(1.045); }
.game-card__media::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(transparent, rgba(4,7,15,.72)); pointer-events: none; }
.game-card__play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 48px; height: 48px; transform: translate(-50%,-42%) scale(.72); display: grid; place-items: center; color: #07101f; background: linear-gradient(135deg, var(--yellow), var(--orange)); border-radius: 50%; opacity: 0; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: .2s; }
.game-card__play svg { width: 21px; fill: currentColor; margin-left: 3px; }
.game-card:hover .game-card__play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.game-badge { position: absolute; z-index: 3; top: 9px; left: 9px; padding: 4px 8px; border-radius: 8px; backdrop-filter: blur(10px); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .045em; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.game-badge--hot { color: #fff4dc; background: rgba(158,50,4,.82); border: 1px solid rgba(255,138,0,.6); }
.game-badge--new { left: auto; right: 9px; color: #07150c; background: rgba(102,255,102,.9); }
.game-card__body { padding: 13px 14px 14px; }
.game-card__body h3 { overflow: hidden; margin: 0 34px 4px 0; color: #fff; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.game-card__body p { display: flex; align-items: center; gap: 7px; margin: 0; overflow: hidden; color: #8fa0bd; font-size: 12px; white-space: nowrap; }
.game-card__body p i { width: 4px; height: 4px; flex: 0 0 auto; border-radius: 50%; background: var(--lime); }
.favorite-button { position: absolute; z-index: 5; right: 9px; bottom: 10px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: #b7c4da; background: rgba(7,12,25,.76); cursor: pointer; transition: .18s; }
.favorite-button:hover { color: #fff; background: #202e50; }
.favorite-button svg { width: 17px; fill: transparent; stroke: currentColor; stroke-width: 1.8; }
.favorite-button[aria-pressed="true"] { color: #ff6686; }
.favorite-button[aria-pressed="true"] svg { fill: currentColor; }

/* Homepage */
.hero-section { position: relative; margin: 28px 0 34px; overflow: hidden; border: 1px solid rgba(0,180,255,.22); border-radius: 32px; background: linear-gradient(115deg, rgba(14,24,55,.98), rgba(13,19,43,.92) 50%, rgba(15,23,55,.96)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.04); }
.hero-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 72% 42%, rgba(0,230,255,.20), transparent 24rem), radial-gradient(circle at 90% 20%, rgba(102,255,102,.10), transparent 18rem), linear-gradient(120deg, transparent 58%, rgba(0,180,255,.08)); }
.hero-section::after { content: ""; position: absolute; inset: 0; opacity: .42; background-image: radial-gradient(circle, rgba(255,255,255,.55) 1px, transparent 1.5px); background-size: 62px 62px; mask-image: linear-gradient(90deg, transparent 35%, #000); }
.hero-shell { position: relative; z-index: 2; min-height: 455px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; padding: 50px clamp(34px, 5vw, 80px); }
.hero-copy { max-width: 680px; }
.hero-copy h1 { margin: 12px 0 17px; max-width: 650px; font-family: var(--display); font-size: clamp(48px, 5.5vw, 82px); line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.hero-copy h1 em { display: block; color: transparent; font-style: normal; background: linear-gradient(110deg, var(--yellow), var(--orange)); -webkit-background-clip: text; background-clip: text; text-shadow: 0 12px 40px rgba(255,138,0,.15); }
.hero-copy > p { max-width: 590px; margin: 0; color: #b8c7df; font-size: clamp(16px, 1.35vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; margin: 27px 0 0; padding: 0; list-style: none; color: #8d9dbb; font-size: 13px; }
.hero-points li { display: flex; gap: 5px; }
.hero-points b { color: #fff; }
.hero-visual { position: relative; min-height: 390px; display: grid; place-items: center; }
.hero-mark { position: relative; z-index: 3; width: min(390px, 73%); filter: drop-shadow(0 30px 45px rgba(0,0,0,.42)) drop-shadow(0 0 24px rgba(0,230,255,.16)); animation: heroFloat 5s ease-in-out infinite; }
.hero-orbit { position: absolute; border: 2px solid rgba(0,230,255,.24); border-radius: 50%; transform: rotate(-18deg); box-shadow: inset 0 0 25px rgba(0,230,255,.06), 0 0 28px rgba(0,230,255,.06); }
.hero-orbit--one { width: 92%; height: 52%; }
.hero-orbit--two { width: 76%; height: 77%; border-color: rgba(102,255,102,.16); transform: rotate(23deg); }
.floating-chip { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(9,15,35,.78); backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0,0,0,.24); color: #eaf5ff; font-size: 12px; font-weight: 800; }
.chip--racing { top: 13%; left: 10%; transform: rotate(-5deg); }
.chip--puzzle { top: 18%; right: 3%; transform: rotate(5deg); }
.chip--two { bottom: 16%; left: 2%; transform: rotate(3deg); }
.chip--action { bottom: 9%; right: 8%; transform: rotate(-4deg); }
.pixel { position: absolute; z-index: 1; width: 16px; height: 16px; border-radius: 4px; box-shadow: 0 0 20px currentColor; }
.pixel--1 { top: 9%; right: 28%; color: var(--lime); background: currentColor; transform: rotate(13deg); }
.pixel--2 { bottom: 8%; left: 27%; color: var(--blue); background: currentColor; transform: rotate(-14deg); }
.pixel--3 { top: 49%; right: 0; color: var(--yellow); background: currentColor; width: 11px; height: 11px; }
@keyframes heroFloat { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.recent-section { scroll-margin-top: 160px; }
.category-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; margin: 46px 0; }
.category-strip a { min-width: 0; display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; align-items: center; padding: 14px; border: 1px solid rgba(128,163,227,.16); border-radius: 16px; background: linear-gradient(145deg, rgba(22,32,59,.8), rgba(10,16,31,.9)); transition: .18s; }
.category-strip a:hover { transform: translateY(-3px); border-color: var(--blue); background: #152443; box-shadow: 0 12px 24px rgba(0,0,0,.2), 0 0 18px rgba(0,180,255,.08); }
.category-strip span { grid-row: 1 / 3; font-size: 26px; }
.category-strip b { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.category-strip small { color: #7f8eaa; font-size: 11px; }
.all-games-block { position: relative; min-height: 320px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin: 62px 0 80px; padding: 42px clamp(28px, 5vw, 72px); overflow: hidden; border: 1px solid rgba(102,255,102,.22); border-radius: 28px; background: radial-gradient(circle at 80% 45%, rgba(0,230,255,.18), transparent 24rem), linear-gradient(130deg, rgba(19,29,58,.95), rgba(8,14,30,.98)); }
.all-games-block::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border: 2px solid rgba(102,255,102,.13); border-radius: 50%; }
.all-games-block__copy { position: relative; z-index: 3; max-width: 600px; }
.all-games-block h2 { margin: 10px 0 10px; font-family: var(--display); font-size: clamp(35px, 4vw, 58px); letter-spacing: -.045em; }
.all-games-block p { max-width: 560px; margin: 0 0 24px; color: var(--muted); font-size: 17px; }
.mini-card-stack { position: relative; min-height: 250px; }
.mini-card-stack img { position: absolute; width: min(330px, 70%); aspect-ratio: 16/10; object-fit: cover; border: 3px solid rgba(255,255,255,.11); border-radius: 20px; box-shadow: 0 24px 50px rgba(0,0,0,.35); transform: translate(calc(var(--stack-index) * 34px), calc(var(--stack-index) * 8px)) rotate(calc((var(--stack-index) - 1.5) * 4deg)); right: calc(var(--stack-index) * 12px); top: calc(var(--stack-index) * 6px); }

/* Browse / favorites */
.browse-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 35px 0 28px; padding: 32px 36px; border: 1px solid rgba(0,180,255,.18); border-radius: 24px; background: linear-gradient(135deg, rgba(17,28,57,.94), rgba(11,18,38,.94)); }
.browse-hero h1 { margin: 8px 0 2px; font-family: var(--display); font-size: clamp(34px, 4vw, 55px); letter-spacing: -.045em; }
.browse-hero p { margin: 0; color: var(--muted); }
.browse-count { display: flex; align-items: baseline; gap: 8px; }
.browse-count b { color: var(--yellow); font-family: var(--display); font-size: 45px; line-height: 1; }
.browse-count span { color: var(--muted); font-weight: 700; }
.browse-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 25px; margin-bottom: 70px; }
.filter-panel { align-self: start; position: sticky; top: 165px; max-height: calc(100vh - 185px); overflow: auto; padding: 13px; border: 1px solid var(--line); border-radius: 18px; background: rgba(14,21,41,.86); }
.filter-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 7px 9px; }
.filter-panel__head h2 { margin: 0; font-size: 15px; }
.filter-panel__head button { display: none; border: 0; background: none; color: #fff; font-size: 30px; cursor: pointer; }
.filter-panel > a { display: grid; grid-template-columns: 22px 1fr auto; gap: 7px; align-items: center; min-height: 39px; padding: 7px 9px; border-radius: 10px; color: #a8b5cc; font-size: 13px; font-weight: 700; }
.filter-panel > a:hover, .filter-panel > a.is-active { color: #fff; background: #1a2a4c; }
.filter-panel > a.is-active { box-shadow: inset 3px 0 var(--cyan); }
.filter-panel > a b { min-width: 25px; padding: 2px 6px; border-radius: 999px; color: #7585a2; background: #0a1020; text-align: center; font-size: 10px; }
.browse-results { min-width: 0; }
.browse-toolbar { display: flex; align-items: center; justify-content: flex-end; min-height: 46px; margin-bottom: 16px; }
.browse-toolbar form { display: flex; align-items: center; gap: 9px; }
.browse-toolbar label { color: var(--muted); font-size: 13px; font-weight: 700; }
.browse-toolbar select { height: 41px; min-width: 150px; padding: 0 34px 0 12px; color: #e9f3ff; border: 1px solid var(--line); border-radius: 11px; background: #111a31; }
.filter-toggle { display: none; margin-right: auto; height: 41px; padding: 0 14px; color: #fff; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; }
.filter-backdrop { display: none; }
.empty-state { display: grid; place-items: center; min-height: 460px; padding: 40px; text-align: center; border: 1px dashed rgba(128,163,227,.28); border-radius: 24px; background: rgba(13,19,37,.55); }
.empty-state img { width: 150px; filter: grayscale(.1); }
.empty-state h2 { margin: 10px 0 0; font-size: 30px; }
.empty-state p { margin: 2px 0 20px; color: var(--muted); }
.favorite-results { margin-bottom: 75px; }
.favorite-results .empty-state[hidden] { display: none; }

/* Game page */
.game-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 24px 0 15px; color: #8190ab; font-size: 13px; }
.game-breadcrumbs a:hover { color: var(--cyan); }
.game-breadcrumbs b { color: #c9d7ed; }
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 325px; gap: 18px; align-items: start; }
.player-main { min-width: 0; }
.player-titlebar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 15px 13px 20px; border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; background: rgba(17,25,48,.94); }
.player-titlebar h1 { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.03em; }
.player-titlebar p { margin: 1px 0 0; color: #8fa0bb; font-size: 13px; }
.player-titlebar__actions { display: flex; gap: 7px; }
.player-titlebar__actions button, .player-toolbar button { display: inline-flex; align-items: center; gap: 7px; min-height: 39px; padding: 0 11px; color: #b8c7df; border: 1px solid rgba(126,161,224,.18); border-radius: 10px; background: #0c1429; cursor: pointer; font-size: 12px; font-weight: 750; }
.player-titlebar__actions button:hover, .player-toolbar button:hover { color: #fff; border-color: var(--blue); }
.player-titlebar__actions svg, .player-toolbar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.player-titlebar__actions button[data-favorite-toggle][aria-pressed="true"] { color: #ff6686; }
.player-titlebar__actions button[data-favorite-toggle][aria-pressed="true"] svg { fill: currentColor; }
.game-frame-shell { --game-ratio: 16/9; position: relative; aspect-ratio: var(--game-ratio); min-height: 420px; overflow: hidden; background: #02040a; border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.game-frame { display: block; width: 100%; height: 100%; border: 0; background: #02040a; }
.player-loading { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; background: radial-gradient(circle, #101b39, #050814 70%); transition: opacity .35s, visibility .35s; }
.player-loading img { width: min(180px, 25%); animation: loadPulse 1.5s ease-in-out infinite; }
.player-loading span { color: #a9b8d1; font-size: 13px; font-weight: 700; }
.player-loading.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes loadPulse { 0%,100% { transform: scale(.95); filter: drop-shadow(0 0 10px rgba(0,230,255,.15)); } 50% { transform: scale(1.03); filter: drop-shadow(0 0 30px rgba(0,230,255,.35)); } }
.game-unavailable { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; background: #080d1d; }
.game-unavailable img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .15; filter: blur(4px); }
.game-unavailable > div { position: relative; z-index: 2; }
.player-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0 0 18px 18px; background: rgba(17,25,48,.94); }
.player-toolbar > div { display: flex; gap: 7px; }
.player-toolbar .fullscreen-button { color: #07101f; border-color: transparent; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.player-toolbar .fullscreen-button svg { stroke: #07101f; }
.game-frame-shell:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; min-height: 0; background: #000; }
body.theater-mode .player-layout { display: block; }
body.theater-mode .game-info-card { display: none; }
body.theater-mode .game-frame-shell { max-height: calc(100vh - 225px); }
.game-info-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #111a33, #0d1428); box-shadow: 0 16px 35px rgba(0,0,0,.16); }
.game-info-card > img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.game-info-card__body { padding: 17px; }
.game-info-card__labels { display: flex; flex-wrap: wrap; gap: 6px; }
.game-info-card__labels a { padding: 4px 8px; color: var(--cyan); border: 1px solid rgba(0,230,255,.25); border-radius: 999px; background: rgba(0,180,255,.08); font-size: 10px; font-weight: 800; }
.game-info-card h2 { margin: 17px 0 5px; font-size: 18px; }
.game-info-card h3 { margin: 16px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); }
.game-info-card p { margin: 0; color: #9dacC7; font-size: 13px; }
.game-info-card dl { margin: 19px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.game-info-card dl div { display: flex; justify-content: space-between; gap: 15px; margin: 7px 0; font-size: 11px; }
.game-info-card dt { color: #71819e; }
.game-info-card dd { margin: 0; text-align: right; color: #d9e6f9; font-weight: 700; }
.game-description { display: grid; grid-template-columns: 1fr 240px; align-items: center; min-height: 270px; margin: 35px 0; padding: 35px 42px; overflow: hidden; border: 1px solid rgba(0,180,255,.17); border-radius: 24px; background: radial-gradient(circle at 92% 50%, rgba(0,230,255,.14), transparent 18rem), rgba(13,20,40,.72); }
.game-description h2 { margin: 8px 0 7px; font-family: var(--display); font-size: 34px; }
.game-description p { max-width: 850px; margin: 0; color: #a9b7cd; }
.game-description__mark { display: grid; place-items: center; }
.game-description__mark img { width: 190px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.4)); }
.not-found { display: grid; place-items: center; min-height: 650px; text-align: center; }
.not-found h1 { margin: 10px 0 0; font-size: 45px; }
.not-found p { margin: 0 0 20px; color: var(--muted); }

/* Content pages */
.content-card { max-width: 950px; margin: 45px auto 85px; padding: clamp(28px, 5vw, 65px); border: 1px solid var(--line); border-radius: 28px; background: rgba(14,21,41,.82); box-shadow: var(--shadow); }
.content-card h1 { margin: 12px 0 14px; font-family: var(--display); font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.05em; }
.content-card .lead { color: #d3e1f4; font-size: 21px; }
.content-card h2 { margin: 32px 0 6px; font-size: 23px; }
.content-card p { color: #aab8cf; }
.draft-label { display: inline-flex; padding: 5px 9px; color: #171005; background: var(--yellow); border-radius: 8px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.notice { margin-top: 30px !important; padding: 16px 18px; border: 1px solid rgba(255,212,0,.25); border-radius: 14px; background: rgba(255,212,0,.06); }

/* Footer */
.site-footer { margin-top: 40px; border-top: 1px solid rgba(129,161,220,.13); background: rgba(4,7,15,.72); }
.footer-shell { min-height: 170px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 35px 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 58px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { font-size: 17px; }
.footer-brand span { color: #7f8ea9; font-size: 12px; }
.footer-shell nav { display: flex; gap: 23px; color: #9eadc5; font-size: 13px; font-weight: 700; }
.footer-shell nav a:hover { color: var(--cyan); }
.footer-shell > p { grid-column: 1 / -1; margin: 0; color: #66738c; font-size: 11px; }
.toast-region { position: fixed; z-index: 1000; right: 20px; bottom: 20px; display: grid; gap: 9px; }
.toast { max-width: 330px; padding: 12px 15px; color: #eaf5ff; border: 1px solid rgba(0,230,255,.3); border-radius: 12px; background: #111c35; box-shadow: var(--shadow); animation: toastIn .25s ease; font-size: 13px; font-weight: 700; }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } }

/* Responsive */
@media (max-width: 1280px) {
  .header-shell { grid-template-columns: 290px minmax(250px, 1fr) auto; gap: 17px; }
  .brand { width: 280px; }
  .icon-action span { display: none; }
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav-categories { display: none; }
}
@media (max-width: 1020px) {
  :root { --shell: min(100% - 30px, 1520px); --header-height: 76px; }
  .header-shell { grid-template-columns: 230px minmax(220px, 1fr) auto; }
  .brand { width: 220px; }
  .random-button span { display: none; }
  .main-nav .nav-shell { overflow-x: auto; scrollbar-width: none; }
  .main-nav .nav-shell::-webkit-scrollbar { display: none; }
  .nav-shell > a { flex: 0 0 auto; }
  .hero-shell { min-height: 420px; padding: 40px; }
  .hero-copy h1 { font-size: clamp(44px, 7vw, 68px); }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .player-layout { grid-template-columns: minmax(0, 1fr); }
  .game-info-card { display: grid; grid-template-columns: 280px 1fr; }
  .game-info-card > img { height: 100%; }
  .game-info-card__body { padding: 20px; }
  .game-frame-shell { min-height: 380px; }
}
@media (max-width: 780px) {
  :root { --shell: calc(100% - 22px); }
  .site-header { position: sticky; }
  .header-shell { height: 74px; grid-template-columns: 185px 1fr auto; gap: 10px; }
  .brand { width: 180px; }
  .global-search { grid-column: 1 / -1; grid-row: 2; height: 45px; }
  .header-shell { height: auto; min-height: 74px; padding: 8px 0 10px; }
  .header-actions { grid-column: 3; grid-row: 1; }
  .icon-action, .random-button { width: 40px; height: 40px; justify-content: center; padding: 0; }
  .menu-button { display: block; }
  body.menu-open { overflow: hidden; }
  .main-nav { position: fixed; z-index: 210; top: 0; right: 0; bottom: 0; width: min(330px, 88vw); transform: translateX(105%); padding-top: 85px; border: 0; background: #0a1021; box-shadow: -20px 0 60px rgba(0,0,0,.45); transition: transform .25s ease; }
  .main-nav.is-open { transform: translateX(0); }
  .nav-shell { width: auto; height: auto; display: grid; padding: 15px; }
  .nav-shell > a { height: 47px; padding: 0 15px; }
  .hero-section { margin-top: 18px; }
  .hero-shell { grid-template-columns: 1fr; padding: 35px 28px 24px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .hero-actions, .hero-points { justify-content: center; }
  .hero-copy h1 { margin-left: auto; margin-right: auto; }
  .hero-visual { min-height: 310px; }
  .hero-mark { width: min(310px, 72%); }
  .game-row { grid-auto-columns: minmax(190px, 50vw); }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .all-games-block { grid-template-columns: 1fr; text-align: center; padding: 38px 28px 25px; }
  .all-games-block__copy { margin: auto; }
  .mini-card-stack { min-height: 260px; margin-top: 20px; }
  .mini-card-stack img { left: 50%; right: auto; transform: translate(calc(-50% + var(--stack-index) * 13px), calc(var(--stack-index) * 10px)) rotate(calc((var(--stack-index) - 1.5) * 4deg)); }
  .browse-layout { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; align-items: center; }
  .filter-panel { position: fixed; z-index: 400; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); max-height: none; border-radius: 0 18px 18px 0; transform: translateX(-105%); transition: transform .22s; }
  .filter-panel.is-open { transform: translateX(0); }
  .filter-panel__head button { display: block; }
  .filter-backdrop { position: fixed; z-index: 390; inset: 0; background: rgba(0,0,0,.62); }
  .filter-backdrop.is-open { display: block; }
  .game-info-card { grid-template-columns: 210px 1fr; }
  .game-description { grid-template-columns: 1fr; padding: 30px; }
  .game-description__mark { display: none; }
  .footer-shell { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-shell nav { justify-content: center; }
}
@media (max-width: 540px) {
  :root { --shell: calc(100% - 16px); }
  .header-shell { grid-template-columns: 150px 1fr auto; }
  .brand { width: 145px; }
  .random-button { display: none; }
  .hero-section { border-radius: 22px; }
  .hero-shell { padding: 30px 18px 18px; }
  .hero-copy h1 { font-size: 45px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .hero-points { gap: 9px 14px; }
  .hero-visual { min-height: 255px; }
  .floating-chip { padding: 6px 8px; font-size: 10px; }
  .game-row { grid-auto-columns: 72vw; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .game-card { border-radius: 14px; }
  .game-card__body { padding: 10px; }
  .game-card__body h3 { font-size: 13px; }
  .game-card__body p { font-size: 10px; }
  .favorite-button { right: 6px; bottom: 7px; width: 29px; height: 29px; }
  .category-strip { gap: 8px; }
  .category-strip a { grid-template-columns: 30px 1fr; padding: 11px; }
  .category-strip span { font-size: 21px; }
  .category-strip b { font-size: 12px; }
  .browse-hero { align-items: center; padding: 24px 20px; }
  .browse-count { display: none; }
  .browse-hero h1 { font-size: 38px; }
  .browse-toolbar { justify-content: space-between; }
  .browse-toolbar label { display: none; }
  .browse-toolbar select { min-width: 130px; }
  .player-titlebar { align-items: flex-start; padding: 12px; }
  .player-titlebar p { display: none; }
  .player-titlebar__actions button span { display: none; }
  .player-titlebar__actions button { width: 38px; padding: 0; justify-content: center; }
  .game-frame-shell { min-height: 280px; }
  .player-toolbar button span { display: none; }
  .player-toolbar button { width: 40px; padding: 0; justify-content: center; }
  .player-toolbar .fullscreen-button { width: 44px; }
  .game-info-card { grid-template-columns: 1fr; }
  .game-info-card > img { height: auto; }
  .game-description { padding: 26px 20px; }
  .footer-shell nav { flex-wrap: wrap; }
  .toast-region { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

/* RC03: remote play and Made by Humans + AI footer mark */
.game-badge--remote{top:auto;right:auto;bottom:9px;left:9px;color:#e8fbff;border:1px solid rgba(0,230,255,.52);background:rgba(5,38,73,.88)}
.footer-shell{grid-template-columns:minmax(240px,1fr) minmax(180px,270px) auto}
.humans-ai-mark{display:block;justify-self:center;width:min(260px,100%);padding:3px;border-radius:17px;opacity:.76;transition:opacity .22s ease,transform .22s ease,filter .22s ease}
.humans-ai-mark picture,.humans-ai-mark img{display:block;width:100%;height:auto}
.humans-ai-mark:hover,.humans-ai-mark:focus-visible{opacity:1;transform:translateY(-2px);filter:drop-shadow(0 0 13px rgba(0,180,255,.2))}
@media(max-width:900px){.footer-shell{grid-template-columns:1fr auto}.humans-ai-mark{grid-column:1/-1;grid-row:2}.footer-shell>p{grid-row:3}}
@media(max-width:680px){.footer-shell{grid-template-columns:1fr}.humans-ai-mark{grid-column:auto;grid-row:auto;width:min(250px,90%)}.footer-shell>p{grid-row:auto}.game-badge--remote{font-size:9px}}


/* RC03.1 chess viewport hotfix */
.game-frame-shell--chess-arena { aspect-ratio: auto; height: clamp(780px, 86vh, 900px); min-height: 780px; }
body.theater-mode .game-frame-shell--chess-arena { height: calc(100vh - 225px); min-height: 560px; max-height: none; }
@media (max-width: 900px) { .game-frame-shell--chess-arena { height: 740px; min-height: 740px; } }
@media (max-width: 560px) { .game-frame-shell--chess-arena { height: 680px; min-height: 680px; } }
.game-frame-shell--chess-arena:fullscreen { width: 100vw; height: 100vh; min-height: 0; }


/* RC04: professional HTMLGames catalog */
.game-badge--pro{top:auto;bottom:9px;left:9px;color:#07101f;border:1px solid rgba(255,212,0,.75);background:linear-gradient(135deg,rgba(255,212,0,.96),rgba(255,138,0,.96))}
.game-badge--remote + .game-badge--pro{left:auto;right:9px}
.provider-note{display:grid;gap:3px;margin-top:17px;padding:12px 13px;border:1px solid rgba(0,230,255,.2);border-radius:12px;background:rgba(0,180,255,.06)}
.provider-note b{color:#fff;font-size:12px}.provider-note span{color:#8fa0bb;font-size:11px;line-height:1.45}.provider-note a{color:var(--cyan);text-decoration:underline;text-underline-offset:2px}
@media(max-width:680px){.game-badge--pro{font-size:9px}.provider-note{padding:10px}}


/* RC05: High Scores */
.game-badge--score{top:auto;right:9px;bottom:9px;left:auto;color:#fff4b5;border:1px solid rgba(255,212,0,.58);background:rgba(56,39,8,.9)}
.game-badge--remote~.game-badge--score{right:9px}.game-badge--pro~.game-badge--score{bottom:38px}
.score-callout{display:flex;align-items:center;gap:11px;margin-top:17px;padding:12px 13px;border:1px solid rgba(255,212,0,.25);border-radius:12px;background:rgba(255,212,0,.07)}
.score-callout>span{font-size:25px;filter:drop-shadow(0 0 10px rgba(255,212,0,.4))}.score-callout div{display:grid;gap:1px}.score-callout b{font-size:12px}.score-callout a{color:var(--yellow);font-size:11px;font-weight:800}.score-callout a:hover{text-decoration:underline}
.score-modal[hidden]{display:none}.score-modal{position:fixed;z-index:1200;inset:0;display:grid;place-items:center;padding:18px}.score-modal__backdrop{position:absolute;inset:0;background:rgba(2,5,13,.82);backdrop-filter:blur(8px)}.score-modal__card{position:relative;width:min(470px,100%);padding:32px;border:1px solid rgba(255,212,0,.35);border-radius:24px;text-align:center;background:linear-gradient(160deg,#172342,#0a1021);box-shadow:0 30px 100px rgba(0,0,0,.6),0 0 45px rgba(255,212,0,.1)}.score-modal__trophy{display:block;font-size:52px}.score-modal h2{margin:6px 0;font-family:var(--display);font-size:31px}.score-modal p{margin:0 0 20px;color:#b8c6dd}.score-modal p strong{color:var(--yellow)}.score-modal form{display:grid;gap:10px;text-align:left}.score-modal label{display:grid;gap:6px;font-size:12px;font-weight:850}.score-modal input{height:48px;padding:0 14px;color:#fff;border:1px solid var(--line-strong);border-radius:12px;background:#091226;outline:0}.score-modal small{color:#8493ae;line-height:1.4}.score-modal form>div{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:8px}.score-modal-open{overflow:hidden}
.scores-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:30px;align-items:center;margin:35px 0 22px;padding:38px;border:1px solid rgba(255,212,0,.19);border-radius:28px;background:radial-gradient(circle at 8% 10%,rgba(255,212,0,.12),transparent 26rem),linear-gradient(135deg,rgba(21,30,58,.97),rgba(9,15,32,.98));box-shadow:var(--shadow)}.scores-hero h1{margin:8px 0 8px;font-family:var(--display);font-size:clamp(46px,6vw,76px);line-height:.95;letter-spacing:-.055em}.scores-hero p{max-width:690px;margin:0;color:#afbdd4;font-size:17px}.score-profile{padding:20px;border:1px solid rgba(0,230,255,.18);border-radius:18px;background:rgba(5,11,25,.55)}.score-profile>label{display:block;margin-bottom:8px;font-size:12px;font-weight:850;color:#dcecff}.score-profile>div{display:grid;grid-template-columns:1fr auto;gap:8px}.score-profile input{min-width:0;height:48px;padding:0 13px;color:#fff;border:1px solid rgba(0,180,255,.34);border-radius:12px;background:#091226;outline:0}.score-profile input:focus{border-color:var(--cyan);box-shadow:0 0 0 3px rgba(0,230,255,.1)}.score-profile small{display:block;margin-top:8px;color:#7686a2;font-size:11px;line-height:1.4}
.score-tools{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:20px 0}.score-tools label{display:grid;gap:6px;min-width:min(420px,100%)}.score-tools label span{color:#96a6bf;font-size:12px;font-weight:800}.score-tools input{height:46px;padding:0 14px;color:#fff;border:1px solid var(--line);border-radius:13px;background:var(--surface);outline:0}.score-tools input:focus{border-color:var(--cyan)}.score-tools>span{color:#8f9db7;font-size:13px}.score-tools>span b{color:var(--yellow);font-size:18px}
.score-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:60px}.leaderboard-card{scroll-margin-top:165px;overflow:hidden;border:1px solid rgba(128,160,218,.18);border-radius:20px;background:linear-gradient(180deg,rgba(21,31,56,.96),rgba(10,16,31,.98));box-shadow:0 15px 38px rgba(0,0,0,.18)}.leaderboard-card[hidden]{display:none}.leaderboard-card>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border-bottom:1px solid rgba(128,160,218,.13)}.leaderboard-card>header>a:first-child{display:flex;align-items:center;gap:12px;min-width:0}.leaderboard-card header img{width:82px;height:54px;object-fit:cover;border-radius:10px}.leaderboard-card header span{min-width:0}.leaderboard-card header small,.leaderboard-card header strong{display:block}.leaderboard-card header small{color:#91a0b9;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.leaderboard-card header strong{overflow:hidden;color:#fff;font-size:16px;white-space:nowrap;text-overflow:ellipsis}.leaderboard-play{flex:0 0 auto;color:var(--yellow);font-size:12px;font-weight:850}.leaderboard-table-wrap{overflow-x:auto}.leaderboard-table{width:100%;border-collapse:collapse}.leaderboard-table th,.leaderboard-table td{padding:10px 14px;border-bottom:1px solid rgba(128,160,218,.09);text-align:left;font-size:12px}.leaderboard-table th{color:#7f8fa9;text-transform:uppercase;letter-spacing:.08em;font-size:9px}.leaderboard-table th:last-child,.leaderboard-table td:last-child{text-align:right;font-variant-numeric:tabular-nums;font-weight:850}.rank{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;color:#9eabc0;background:#202b43;font-size:11px;font-weight:900}.rank--1{color:#271b00;background:linear-gradient(135deg,#fff07a,#ffb000)}.rank--2{color:#17202b;background:linear-gradient(135deg,#f7fbff,#9aaec5)}.rank--3{color:#281309;background:linear-gradient(135deg,#efb17a,#9c562c)}.leaderboard-empty{padding:28px;text-align:center}.leaderboard-empty>span{font-size:30px}.leaderboard-empty b{display:block;margin-top:5px}.leaderboard-empty p{margin:3px 0 10px;color:#7f8ea8;font-size:12px}.leaderboard-empty a{color:var(--cyan);font-size:12px;font-weight:850}.no-score-results{margin:30px 0 70px;padding:35px;text-align:center;border:1px dashed var(--line);border-radius:18px;color:#98a8c2}
@media(max-width:900px){.scores-hero{grid-template-columns:1fr}.score-grid{grid-template-columns:1fr}.score-tools{align-items:stretch;flex-direction:column}.score-tools label{width:100%}.score-tools>span{align-self:flex-end}}
@media(max-width:540px){.scores-hero{padding:26px 20px}.scores-hero h1{font-size:48px}.score-profile>div{grid-template-columns:1fr}.score-profile .button{width:100%}.leaderboard-card>header{padding:10px}.leaderboard-card header img{width:66px;height:44px}.leaderboard-table th,.leaderboard-table td{padding:9px 10px}.score-modal__card{padding:25px 19px}.score-modal form>div{grid-template-columns:1fr}.game-badge--score{font-size:9px}}

/* RC07.1: Classic Roulette uses a portrait reflow on narrow screens; give it a full-height frame. */
.game-frame-shell--classic-javascript-roulette { aspect-ratio: auto; height: clamp(680px, 78vh, 800px); min-height: 680px; }
body.theater-mode .game-frame-shell--classic-javascript-roulette { height: calc(100vh - 225px); min-height: 560px; max-height: none; }
.game-frame-shell--classic-javascript-roulette:fullscreen { width: 100vw; height: 100vh; min-height: 0; }
@media (max-width: 900px) { .game-frame-shell--classic-javascript-roulette { height: 720px; min-height: 720px; } }
@media (max-width: 560px) { .game-frame-shell--classic-javascript-roulette { height: 700px; min-height: 700px; } }
