:root {
  color-scheme: dark;
  --bg: #070b12;
  --panel: #0d131e;
  --panel-raised: #111a28;
  --line: #1e2a3b;
  --line-bright: #2a3d58;
  --text: #edf4ff;
  --muted: #8391a5;
  --dim: #536174;
  --blue: #55a9ff;
  --blue-bright: #83c0ff;
  --blue-soft: #10243b;
  --lime: #c4f764;
  --warn: #f2c56b;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 50% -30%, #12223a 0, transparent 42%), var(--bg); }
button, input, select, textarea { font: inherit; }
button, a, select, input, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label:has(input:focus-visible) { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only, .honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; clip-path: inset(50%) !important; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-160%); padding: 11px 15px; background: var(--blue); color: #06101c; border-radius: 8px; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.topbar { position: sticky; top: 0; z-index: 20; height: 76px; border-bottom: 1px solid rgba(125, 151, 184, .13); background: rgba(7, 11, 18, .91); backdrop-filter: blur(18px); }
.topbar-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; width: min(1200px, calc(100% - 56px)); height: 100%; margin: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #35577e; border-radius: 10px; background: linear-gradient(140deg, #132e4c, #0c1727); color: var(--blue-bright); font-size: 18px; font-weight: 800; box-shadow: inset 0 0 14px rgba(68, 159, 255, .1); }
.brand-name { color: #ebf4ff; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.brand-name span { color: var(--blue); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 7px; height: 100%; }
.nav-link { position: relative; height: 100%; padding: 0 15px; border: 0; background: transparent; color: #8693a6; font-size: 12px; font-weight: 700; cursor: pointer; transition: color .16s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link.is-active::after { position: absolute; right: 15px; bottom: -1px; left: 15px; height: 2px; background: var(--blue); content: ''; box-shadow: 0 0 12px rgba(85, 169, 255, .8); }
.profile-shortcut { justify-self: end; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 10px 4px 5px; border: 1px solid transparent; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; }
.profile-shortcut:hover { border-color: var(--line); background: #0d131e; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #2d4663; border-radius: 10px; background: #142237; color: var(--blue-bright); font-size: 12px; font-weight: 800; }
.profile-shortcut-copy { display: grid; gap: 1px; }
.profile-shortcut-copy strong { font-size: 11px; }
.profile-shortcut-copy small { color: var(--muted); font-size: 9px; }
.chevron { margin-left: 4px; color: #708095; font-size: 15px; }

.site-main { width: min(1200px, calc(100% - 56px)); min-height: calc(100vh - 144px); margin: 0 auto; padding: 31px 0 74px; }
.page { animation: appear .28s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.hero { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; min-height: 323px; padding: 44px 48px 42px; overflow: hidden; border: 1px solid #202f42; border-radius: 17px; background: radial-gradient(ellipse at 82% 52%, rgba(28, 79, 132, .25), transparent 35%), linear-gradient(112deg, #0d1521 0%, #0a111b 55%, #0d1927 100%); }
.hero::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(117, 162, 209, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(117, 162, 209, .045) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, #000, transparent 85%); content: ''; }
.hero-copy { position: relative; z-index: 1; align-self: center; max-width: 485px; padding-bottom: 7px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #8292a7; font: 10px/1.4 var(--mono); letter-spacing: .11em; }
.status-dot, .footer-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(196, 247, 100, .6); }
.hero h1, .search-copy h1, .settings-intro h1 { margin: 18px 0 13px; font-size: clamp(34px, 4.1vw, 49px); line-height: 1.1; letter-spacing: -.065em; font-weight: 700; }
.hero h1 span, .search-copy h1 span, .settings-intro h1 span { color: var(--blue); }
.hero-copy > p { max-width: 418px; margin: 0; color: #9ba8b9; font-size: 13px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 41px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { border-color: #73b7ff; background: var(--blue); color: #07121f; box-shadow: 0 5px 19px rgba(50, 143, 244, .18); }
.button-primary:hover:not(:disabled) { background: var(--blue-bright); }
.button-quiet { border-color: #273548; background: rgba(9, 15, 24, .4); color: #d0dbea; }
.button-quiet:hover { border-color: #405875; }
.button-outline { border-color: #314056; background: transparent; color: #cbd7e6; }
.button-outline:hover:not(:disabled) { border-color: var(--blue); color: var(--blue-bright); }
.button:disabled { cursor: not-allowed; opacity: .56; }
.hero-art { position: absolute; inset: 0 0 0 51%; display: grid; place-items: center; opacity: .94; }
.hero-orbit { position: absolute; width: 270px; height: 270px; border: 1px solid rgba(83, 163, 246, .21); border-radius: 50%; transform: rotate(-24deg) scaleY(.63); }
.orbit-one { box-shadow: 0 0 40px rgba(28, 123, 220, .08), inset 0 0 32px rgba(28, 123, 220, .06); }
.orbit-two { width: 204px; height: 204px; border-color: rgba(130, 192, 255, .19); transform: rotate(38deg) scaleY(.56); }
.hero-center { display: grid; place-items: center; width: 112px; height: 112px; border: 1px solid rgba(102, 180, 255, .45); border-radius: 28px; background: linear-gradient(140deg, rgba(39, 91, 145, .38), rgba(12, 24, 39, .8)); box-shadow: 0 0 44px rgba(50, 149, 255, .19), inset 0 0 32px rgba(67, 156, 241, .13); transform: rotate(-8deg); }
.hero-center span { margin-top: 9px; color: #c2e0ff; font-size: 30px; font-weight: 800; letter-spacing: -.08em; }
.hero-center small { margin-top: -14px; color: #7c9cbe; font: 8px var(--mono); letter-spacing: .13em; }
.hero-spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 11px 3px rgba(84, 170, 255, .46); }
.spark-one { top: 27%; right: 23%; }.spark-two { bottom: 21%; left: 21%; width: 4px; height: 4px; background: var(--lime); box-shadow: 0 0 9px 3px rgba(196, 247, 100, .4); }
.hero-coordinate, .hero-index { position: absolute; color: #61758d; font: 8px/1.7 var(--mono); letter-spacing: .07em; }
.hero-coordinate { top: 27px; right: 31px; }.hero-index { right: 34px; bottom: 28px; display: flex; align-items: center; gap: 7px; }.hero-index i { width: 29px; height: 1px; background: #42698f; }
.hero-footnote { position: absolute; right: 48px; bottom: 15px; left: 48px; display: flex; justify-content: space-between; color: #65768a; font: 8px var(--mono); letter-spacing: .11em; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 35px 0 17px; }
.section-heading h2 { margin: 7px 0 0; font-size: 21px; letter-spacing: -.04em; }
.eyebrow-line { display: inline-block; width: 25px; height: 1px; background: #354b65; }
.muted { color: #586b81; }
.performance-indicator, .session-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #233348; border-radius: 7px; background: rgba(13, 22, 34, .7); color: #90a0b4; font: 9px var(--mono); letter-spacing: .04em; }
.performance-indicator .status-dot, .session-tag .status-dot { width: 5px; height: 5px; }
.content-columns { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; gap: 17px; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.game-card { overflow: hidden; border: 1px solid #1d2939; border-radius: 13px; background: linear-gradient(180deg, #0d141e, #0a1018); transition: border-color .18s ease, transform .18s ease; }
.game-card:hover { transform: translateY(-2px); border-color: #344b67; }
.game-art { position: relative; height: 169px; overflow: hidden; background: #0b1420; }
.game-art::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(114, 161, 210, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(114, 161, 210, .055) 1px, transparent 1px); background-size: 26px 26px; content: ''; }
.freezeria-art { background: radial-gradient(ellipse at 50% 78%, rgba(96, 145, 218, .34), transparent 48%), linear-gradient(135deg, #111b2b, #11141b 68%); }
.pizza-art { background: radial-gradient(ellipse at 50% 78%, rgba(213, 78, 47, .33), transparent 48%), linear-gradient(135deg, #241411, #11141b 68%); }
.burger-art { background: radial-gradient(ellipse at 50% 78%, rgba(190, 131, 44, .32), transparent 48%), linear-gradient(135deg, #201c0f, #11141b 68%); }
.pancake-art { background: radial-gradient(ellipse at 50% 78%, rgba(225, 172, 63, .3), transparent 48%), linear-gradient(135deg, #211d10, #11141b 68%); }
.food-emoji { position: absolute; z-index: 2; top: 49%; left: 50%; font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 72px; line-height: 1; filter: drop-shadow(0 11px 16px rgba(0, 0, 0, .45)); transform: translate(-50%, -50%) rotate(-7deg); }
.food-caption { position: absolute; z-index: 2; right: 0; bottom: 12px; left: 0; color: #a9b7c7; font: 8px var(--mono); letter-spacing: .18em; text-align: center; text-shadow: 0 1px 8px #000; }
.drift-art { background: radial-gradient(ellipse at 50% 113%, rgba(41, 128, 211, .4), transparent 54%), linear-gradient(135deg, #0b1623, #0c1726 55%, #111927); }
.art-label { position: absolute; z-index: 4; top: 12px; left: 14px; color: #7891ad; font: 8px var(--mono); letter-spacing: .1em; }
.drift-track { position: absolute; top: -33px; left: 50%; width: 190px; height: 248px; border-right: 1px solid rgba(97, 169, 236, .24); border-left: 1px solid rgba(97, 169, 236, .24); background: linear-gradient(90deg, rgba(24, 63, 101, .04), rgba(31, 88, 140, .11), rgba(24, 63, 101, .04)); transform: translateX(-50%) perspective(160px) rotateX(13deg); }
.drift-track i { position: absolute; top: 0; bottom: 0; width: 1px; background: repeating-linear-gradient(to bottom, rgba(143, 195, 242, .32), rgba(143, 195, 242, .32) 13px, transparent 13px, transparent 24px); }
.drift-track i:first-child { left: 33.33%; }.drift-track i:last-child { left: 66.66%; }
.drift-car { position: absolute; z-index: 2; bottom: 32px; left: calc(50% - 12px); width: 24px; height: 38px; border: 1px solid #a7d5ff; border-radius: 6px 6px 8px 8px; background: linear-gradient(90deg, #3579b8, #80c3ff 45%, #3279b8); box-shadow: 0 0 16px rgba(78, 171, 255, .63); transform: skewY(-2deg); }
.drift-car::before { position: absolute; top: 8px; left: 4px; width: 14px; height: 10px; border: 1px solid #cbebff; border-radius: 4px 4px 2px 2px; background: #173653; content: ''; }.drift-car::after { position: absolute; right: -3px; bottom: 6px; left: -3px; height: 4px; background: #94d2ff; box-shadow: 0 3px 12px #58abff; content: ''; }
.drift-gate { position: absolute; z-index: 1; left: 50%; width: 23px; height: 5px; border-radius: 3px; background: #ff7a77; box-shadow: 0 0 10px rgba(255, 95, 94, .65); transform: translateX(-55%); }.gate-a { top: 54px; margin-left: -44px; }.gate-b { top: 91px; margin-left: 50px; width: 28px; background: #b3e86c; box-shadow: 0 0 10px rgba(182, 241, 109, .48); }
.art-hud { position: absolute; z-index: 3; right: 13px; bottom: 11px; left: 13px; display: flex; justify-content: space-between; color: #6d86a1; font: 8px var(--mono); letter-spacing: .09em; }
.circuit-art { display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(20, 62, 105, .46), transparent 49%), linear-gradient(145deg, #101a29, #0b111b 72%); }
.circuit-ring { position: absolute; width: 123px; height: 123px; border: 1px solid rgba(75, 160, 244, .22); border-radius: 50%; }.ring-a { transform: scaleY(.52) rotate(25deg); }.ring-b { width: 166px; height: 166px; border-color: rgba(95, 167, 236, .18); transform: scaleY(.43) rotate(-33deg); }
.circuit-pulse { z-index: 1; width: 25px; height: 25px; border: 1px solid #a4d6ff; border-radius: 50%; background: #398bd7; box-shadow: 0 0 24px 5px rgba(54, 154, 247, .57); }
.circuit-orbit { position: absolute; z-index: 2; width: 6px; height: 6px; border: 1px solid #c7e7ff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }.orbit-a { top: 59px; left: calc(50% + 43px); }.orbit-b { bottom: 52px; left: calc(50% - 57px); width: 4px; height: 4px; background: var(--lime); border-color: #e3ffbd; box-shadow: 0 0 7px var(--lime); }
.circuit-time { position: absolute; z-index: 3; top: 50%; left: 50%; color: rgba(231, 244, 255, .9); font: 22px var(--mono); letter-spacing: -.07em; transform: translate(-50%, -50%); }.circuit-time span { color: var(--blue); }
.game-card-body { padding: 16px 16px 13px; }
.game-title-line { display: flex; align-items: center; justify-content: space-between; }
.game-category { color: #75889f; font: 8px var(--mono); letter-spacing: .11em; }
.game-card h3 { margin: 5px 0 0; font-size: 16px; letter-spacing: -.03em; }
.favorite-toggle { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #28384d; border-radius: 9px; background: #0d1724; color: #8ea5be; font-size: 18px; cursor: pointer; }.favorite-toggle:hover { border-color: #75b7f3; color: #c8e5ff; }.favorite-toggle[aria-pressed="true"] { border-color: #4e7395; background: #142b41; color: var(--blue-bright); }
.game-card-body > p { min-height: 37px; margin: 10px 0 14px; color: #8d9bad; font-size: 10px; line-height: 1.75; }
.game-card-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #202a37; }
.game-meta { color: #63748a; font: 8px var(--mono); letter-spacing: .04em; }.text-button, .rail-link { display: inline-flex; align-items: center; gap: 8px; padding: 3px 0; border: 0; background: none; color: var(--blue-bright); font-size: 10px; font-weight: 800; cursor: pointer; text-decoration: none; }.text-button:hover, .rail-link:hover { color: #c1e3ff; }
.profile-rail { display: grid; gap: 11px; }
.rail-card { padding: 14px; border: 1px solid #1e2b3b; border-radius: 11px; background: linear-gradient(145deg, rgba(14, 22, 33, .98), rgba(10, 16, 24, .98)); }
.rail-heading { display: flex; align-items: center; gap: 10px; }.rail-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #304d6a; border-radius: 9px; background: #132337; color: var(--blue-bright); font-size: 12px; font-weight: 800; }.rail-heading h3 { margin: 4px 0 0; font-size: 11px; }
.guest-card > p { margin: 12px 0 10px; color: #8593a6; font-size: 9px; line-height: 1.75; }.guest-card .rail-link { padding-top: 9px; border-top: 1px solid #222f40; font-size: 9px; }
.rail-section-title { display: flex; align-items: center; justify-content: space-between; }.rail-section-title h3 { margin: 0; font-size: 10px; }.rail-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid #27384c; border-radius: 6px; background: #121d2a; color: #9bb0c7; font: 9px var(--mono); }
.rail-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }.rail-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #bac8d9; font-size: 9px; }.rail-list button, .rail-list a { border: 0; background: none; color: inherit; font-size: inherit; text-align: left; cursor: pointer; text-decoration: none; }.rail-list button:hover, .rail-list a:hover { color: var(--blue-bright); }.empty-rail { color: #6e7d91 !important; line-height: 1.6; }
.lightweight-note { display: flex; align-items: center; gap: 11px; margin-top: 16px; padding: 12px 15px; border: 1px solid #1b2a3b; border-radius: 9px; background: rgba(11, 18, 27, .68); color: #8190a3; font-size: 9px; line-height: 1.6; }.lightweight-note strong { color: #c2cfdd; }.note-glyph { display: inline-grid; place-items: center; flex: 0 0 auto; width: 23px; height: 23px; border: 1px solid #344c66; border-radius: 7px; color: var(--blue); font-size: 13px; }

.game-screen { padding-top: 2px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin: 3px 0 20px; padding: 5px 0; border: 0; background: none; color: #91a0b3; font-size: 10px; cursor: pointer; }.back-link:hover { color: var(--blue-bright); }
.game-screen-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }.game-screen-heading h1 { margin: 7px 0 0; font-size: 30px; letter-spacing: -.06em; }
.game-player-card { overflow: hidden; border: 1px solid #24354a; border-radius: 13px; background: #080e17; }
.game-player-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 0 14px; border-bottom: 1px solid #1d2b3c; color: #768aa1; font: 8px var(--mono); letter-spacing: .09em; }
.game-player-shell { width: min(100%, 640px); aspect-ratio: 4 / 3; margin: 0 auto; background: #070b12; }
.game-player-host { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; background: #080e17; }
.game-player-host ruffle-player { display: block; width: 100%; height: 100%; }
.game-loading { margin: 0; color: #8fa2b9; font-size: 11px; text-align: center; }
.game-player-host .game-load-error { max-width: 420px; margin: 20px; color: #ffb3aa; font-size: 11px; line-height: 1.7; text-align: center; }
.game-controls-row .session-notice { margin: 0; }
.game-save-note { margin: 6px 0 0 31px; color: #718198; font-size: 9px; line-height: 1.6; }
.play-frame { position: relative; min-height: 340px; overflow: hidden; border: 1px solid #24354a; border-radius: 13px; background: #080e17; }.play-frame-top { position: absolute; z-index: 3; top: 0; right: 0; left: 0; display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(95, 127, 165, .14); color: #75879e; font: 8px var(--mono); letter-spacing: .1em; }.frame-right { color: #53667c; }.frame-right i { color: var(--blue); font-style: normal; }
.drift-play-area { position: relative; min-height: 340px; padding-top: 34px; background: radial-gradient(ellipse at 50% 105%, rgba(20, 83, 145, .26), transparent 54%), #080e17; }
#drift-canvas { display: block; width: min(100%, 720px); height: auto; max-height: 430px; margin: 0 auto; }
.game-overlay { position: absolute; inset: 34px 0 0; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 28px; background: rgba(7, 11, 18, .73); text-align: center; }.game-overlay.is-hidden { display: none; }.overlay-kicker { color: var(--blue); font: 9px var(--mono); letter-spacing: .16em; }.game-overlay h2 { margin: 9px 0; font-size: 24px; letter-spacing: -.05em; }.game-overlay p { max-width: 385px; margin: 0 0 20px; color: #a0adbc; font-size: 11px; line-height: 1.7; }
.drift-hud { position: absolute; right: 16px; bottom: 13px; left: 16px; display: flex; justify-content: space-between; color: #8091a7; font: 8px var(--mono); letter-spacing: .09em; pointer-events: none; }.drift-hud strong { margin-left: 6px; color: #c5e3ff; font-size: 11px; }
.game-controls-row { display: flex; align-items: center; justify-content: space-between; min-height: 47px; }.touch-controls { display: flex; align-items: center; gap: 7px; }.touch-controls > span { margin-right: 4px; color: #75879c; font: 8px var(--mono); letter-spacing: .12em; }.touch-controls button { width: 36px; height: 31px; border: 1px solid #2b3d54; border-radius: 7px; background: #0f1926; color: #b1d8ff; font-size: 15px; cursor: pointer; }.touch-controls button:hover { border-color: var(--blue); }
.session-notice { display: flex; align-items: center; gap: 8px; color: #76869a; font-size: 9px; }.session-notice .note-glyph { width: 19px; height: 19px; font-size: 11px; }
.tap-play-area { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 340px; padding: 54px 22px 25px; text-align: center; background: radial-gradient(ellipse at center, rgba(22, 68, 116, .25), transparent 46%); }.tap-metrics { display: flex; align-items: center; justify-content: center; gap: 40px; }.tap-metric { display: grid; gap: 6px; }.metric-label { color: #8091a7; font: 8px var(--mono); letter-spacing: .12em; }.tap-metric > strong { color: #eaf5ff; font: 30px/1 var(--mono); letter-spacing: -.08em; }.tap-metric small { margin-left: 4px; color: #7890ab; font: 10px var(--mono); letter-spacing: 0; }.tap-instructions { display: grid; justify-items: center; gap: 12px; margin: 19px 0 14px; }.tap-instructions p { min-height: 17px; margin: 0; color: #9aa9bb; font-size: 10px; }.tap-signal { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid #2b415c; border-radius: 50%; background: #101c2b; }.tap-signal span { width: 13px; height: 13px; border-radius: 50%; background: #45617e; }.tap-signal.is-waiting span { background: var(--warn); box-shadow: 0 0 13px rgba(242, 197, 107, .6); }.tap-signal.is-go span { background: var(--lime); box-shadow: 0 0 16px 3px rgba(196, 247, 100, .54); }.tap-signal.is-done span { background: var(--blue); box-shadow: 0 0 13px rgba(85, 169, 255, .55); }
.tap-target { width: min(290px, 100%); min-height: 58px; border: 1px solid #4e99d9; border-radius: 10px; background: #15304b; color: #e1f1ff; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .14s ease, transform .14s ease; }.tap-target:hover:not(:disabled) { transform: translateY(-1px); background: #1b4167; }.tap-target:disabled { border-color: #554e3e; background: #27261f; color: #c2b48f; cursor: wait; }.tap-target.is-go { border-color: #d2ff85; background: #c4f764; color: #09120a; box-shadow: 0 0 27px rgba(196, 247, 100, .3); }
.tap-round-label { margin-top: 15px; color: #6e8095; font: 8px var(--mono); letter-spacing: .1em; }.tap-round-label span { margin: 0 5px; color: var(--blue); }

.page-topline { display: flex; align-items: center; justify-content: space-between; }
.search-page, .settings-page { padding-top: 8px; }
.search-shell { position: relative; width: min(820px, 100%); margin: 44px auto 0; padding: 31px 50px 27px; overflow: hidden; border: 1px solid #22344a; border-radius: 15px; background: radial-gradient(ellipse at 50% 15%, rgba(32, 93, 150, .17), transparent 48%), linear-gradient(145deg, #0d1724, #0a1019 75%); }
.search-shell::before { position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, #438fd0, transparent); content: ''; }.search-mark { position: absolute; top: 29px; right: 46px; display: grid; place-items: center; width: 65px; height: 65px; border: 1px solid rgba(83, 169, 255, .34); border-radius: 19px; background: rgba(20, 43, 67, .5); color: var(--blue-bright); font-size: 33px; transform: rotate(8deg); }.search-mark i { position: absolute; right: 13px; bottom: 16px; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.search-copy { max-width: 520px; }.search-copy h1 { margin: 12px 0; font-size: 39px; }.search-copy > p { max-width: 420px; margin: 0; color: #98a7ba; font-size: 11px; line-height: 1.8; }
.search-form { display: grid; grid-template-columns: 22px minmax(0, 1fr) 128px 104px; align-items: center; gap: 7px; min-height: 55px; margin-top: 27px; padding: 5px; border: 1px solid #314760; border-radius: 10px; background: #080e17; box-shadow: 0 7px 25px rgba(0, 0, 0, .15); }.search-input-icon { padding-left: 7px; color: #86bff4; font-size: 19px; }.search-form input, .search-form select { min-width: 0; height: 41px; border: 0; outline: 0; background: transparent; color: #eaf3ff; font-size: 11px; }.search-form input::placeholder { color: #64758a; }.search-form select { padding: 0 5px; border-left: 1px solid #27364a; color: #aab9ca; font-size: 9px; }.search-form select option { background: #101722; }.search-submit { min-height: 41px; padding: 0 12px; font-size: 10px; }
.search-helper { min-height: 16px; margin: 10px 1px 0; color: #72849a; font-size: 9px; }
.provider-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 14px; border-top: 1px solid #202c3b; color: #718197; font: 8px var(--mono); letter-spacing: .08em; }.provider-strip > span { color: #53657b; }.provider-strip > div { display: flex; align-items: center; gap: 7px; }.provider-strip i { display: grid; place-items: center; width: 23px; height: 18px; border: 1px solid #344860; border-radius: 5px; color: #c2d2e4; font: 7px var(--mono); font-style: normal; letter-spacing: 0; }.provider-strip b { color: #46607c; font-weight: 400; }
.search-boundary { display: flex; gap: 11px; margin-top: 19px; padding: 14px; border: 1px solid #293345; border-radius: 9px; background: rgba(11, 16, 25, .7); }.boundary-icon { display: grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; border: 1px solid #364258; border-radius: 7px; color: var(--blue-bright); font-size: 12px; }.search-boundary strong { font-size: 10px; }.search-boundary p { margin: 4px 0 0; color: #8996a8; font-size: 9px; line-height: 1.7; }
.search-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: min(820px, 100%); margin: 20px auto 0; padding: 0 3px; }.search-footer-grid p { margin: 7px 0 0; color: #7e8da1; font-size: 9px; line-height: 1.75; }

.settings-intro { margin: 33px 0 26px; }.settings-intro h1 { margin: 0 0 11px; font-size: 39px; }.settings-intro p { margin: 0; color: #93a2b4; font-size: 11px; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: start; gap: 17px; }.settings-stack { display: grid; gap: 13px; }.settings-card { padding: 19px 21px; border: 1px solid #1e2c3c; border-radius: 12px; background: linear-gradient(142deg, rgba(14, 22, 33, .96), rgba(10, 16, 24, .99)); }.settings-card-heading { display: flex; align-items: center; gap: 11px; }.settings-icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid #344b64; border-radius: 10px; background: #142235; color: #b5d5f5; font-size: 14px; }.settings-icon-blue { border-color: #345a7d; background: #11243a; color: var(--blue-bright); }.settings-card-heading h2 { margin: 4px 0 0; font-size: 15px; letter-spacing: -.03em; }.state-pill { margin-left: auto; padding: 5px 7px; border: 1px solid #354455; border-radius: 5px; color: #afbdcc; font: 8px var(--mono); letter-spacing: .08em; }.state-pill-blue { border-color: #355d81; color: var(--blue-bright); }
.settings-card > p { max-width: 650px; margin: 13px 0; color: #91a0b1; font-size: 10px; line-height: 1.75; }.profile-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 17px; padding: 12px 0; border-top: 1px solid #202c3b; border-bottom: 1px solid #202c3b; }.profile-facts div { display: grid; gap: 5px; }.profile-facts span { color: #667990; font: 8px var(--mono); letter-spacing: .08em; }.profile-facts strong { font-size: 10px; font-weight: 600; }
.google-config { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px; border: 1px solid #222e3d; border-radius: 9px; background: rgba(8, 13, 20, .64); }.google-config > div { display: flex; align-items: center; gap: 10px; }.google-mark { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #364455; border-radius: 8px; background: #151d28; color: #d1dce9; font-weight: 800; }.google-config strong, .google-config small { display: block; }.google-config strong { font-size: 10px; }.google-config small { margin-top: 3px; color: #7d8da0; font-size: 8px; }.google-config .button { min-height: 30px; padding: 0 9px; font-size: 8px; }.small-help { margin: 10px 0 0 !important; color: #718198 !important; font-size: 9px !important; }
.toggle-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 17px; padding: 12px 0 0; border-top: 1px solid #202c3b; cursor: pointer; }.toggle-row strong, .toggle-row small { display: block; }.toggle-row strong { font-size: 10px; }.toggle-row small { margin-top: 4px; color: #78889c; font-size: 9px; }.toggle-row input { position: absolute; right: 0; width: 42px; height: 24px; opacity: 0; cursor: pointer; }.toggle-ui { position: relative; flex: 0 0 auto; width: 39px; height: 22px; border: 1px solid #3a4a5e; border-radius: 14px; background: #212b39; transition: background .15s ease, border-color .15s ease; }.toggle-ui::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #9cabbc; content: ''; transition: transform .15s ease, background .15s ease; }.toggle-row input:checked + .toggle-ui { border-color: #4085c4; background: #1b4a73; }.toggle-row input:checked + .toggle-ui::after { transform: translateX(17px); background: #c6e4ff; }.toggle-row input:focus-visible + .toggle-ui { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.save-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }.save-actions .button { min-height: 36px; }.import-button { position: relative; cursor: pointer; }.save-limitations { display: grid; gap: 0; border-top: 1px solid #202c3b; }.save-limitations > div { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid #202c3b; }.limit-mark { flex: 0 0 auto; padding-top: 2px; color: #5f82a5; font: 8px var(--mono); }.save-limitations p { margin: 0; color: #8492a4; font-size: 9px; line-height: 1.65; }.save-limitations strong { color: #b8c8d8; font-weight: 700; }.inline-status { min-height: 14px; margin: 9px 0 0 !important; color: var(--blue-bright) !important; font-size: 9px !important; }.inline-status.is-error { color: #ff9b91 !important; }
.email-status { display: flex; align-items: flex-start; gap: 8px; margin: 11px 0 16px; padding: 10px; border: 1px solid #413c30; border-radius: 8px; background: rgba(51, 43, 28, .24); color: #c8b98f; font-size: 9px; line-height: 1.5; }.status-dot-warn { margin-top: 3px; background: var(--warn); box-shadow: 0 0 8px rgba(242, 197, 107, .4); }
.email-status.is-ready { border-color: #2d4c3d; background: rgba(22, 55, 38, .23); color: #b8d8bc; }.email-status.is-ready .status-dot { margin-top: 3px; background: var(--lime); box-shadow: 0 0 8px rgba(196, 247, 100, .38); }
.request-form { display: grid; gap: 13px; }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.request-form label { display: grid; gap: 6px; color: #aebdcd; font-size: 9px; font-weight: 700; }.request-form label > span { display: inline; margin-left: 4px; color: #61758a; font: 7px var(--mono); }.request-form input, .request-form select, .request-form textarea { width: 100%; min-height: 37px; padding: 9px 10px; border: 1px solid #2b394b; border-radius: 7px; background: #080e16; color: #e1ebf7; font-size: 10px; }.request-form textarea { min-height: 82px; resize: vertical; }.request-form input::placeholder, .request-form textarea::placeholder { color: #58697d; }.request-form select { color: #aab9ca; }.field-note { color: #6f8094; font-size: 8px; font-weight: 400; }.request-form > .button { justify-self: start; min-height: 37px; }
.settings-aside { position: sticky; top: 96px; padding: 17px; border: 1px solid #1e2b3b; border-radius: 11px; background: linear-gradient(150deg, #0e1724, #0b111a); }.aside-stamp { position: relative; display: grid; place-items: center; width: 100%; height: 116px; margin-bottom: 18px; overflow: hidden; border: 1px solid #26394e; border-radius: 8px; background: radial-gradient(ellipse at center, rgba(50, 125, 192, .2), transparent 60%), #0a121d; }.aside-stamp::before, .aside-stamp::after { position: absolute; width: 155px; height: 80px; border: 1px solid rgba(86, 161, 228, .24); border-radius: 50%; transform: rotate(-25deg); content: ''; }.aside-stamp::after { transform: rotate(25deg); }.aside-stamp > span { z-index: 1; color: #c8e5ff; font-size: 27px; font-weight: 800; letter-spacing: -.1em; }.aside-stamp i { position: absolute; z-index: 2; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }.aside-stamp i:nth-of-type(1) { top: 32px; right: 46px; }.aside-stamp i:nth-of-type(2) { bottom: 31px; left: 45px; background: var(--lime); box-shadow: 0 0 8px var(--lime); }.aside-stamp i:nth-of-type(3) { right: 55px; bottom: 28px; width: 3px; height: 3px; }.settings-aside > p { margin: 12px 0 17px; color: #8998aa; font-size: 9px; line-height: 1.8; }.settings-aside .rail-link { padding-top: 12px; border-top: 1px solid #233142; font-size: 9px; }

.site-footer { display: flex; align-items: center; justify-content: space-between; width: min(1200px, calc(100% - 56px)); min-height: 68px; margin: 0 auto; border-top: 1px solid rgba(125, 151, 184, .13); color: #607187; font: 8px var(--mono); letter-spacing: .09em; }.footer-brand { gap: 7px; }.footer-brand .brand-mark { width: 24px; height: 24px; border-radius: 7px; font-size: 13px; }.footer-brand .brand-name { color: #a8b7c9; font-size: 9px; }.site-footer > span:last-child { display: inline-flex; align-items: center; gap: 8px; }.footer-dot { width: 5px; height: 5px; }

@media (max-width: 920px) {
  .hero { min-height: 302px; padding-left: 33px; }.hero-art { left: 54%; }.content-columns { grid-template-columns: minmax(0, 1fr) 225px; gap: 12px; }.game-grid { gap: 11px; }.profile-rail { gap: 9px; }.rail-card { padding: 12px; }.settings-layout { grid-template-columns: minmax(0, 1fr) 200px; }
}
@media (max-width: 720px) {
  .topbar { height: 66px; }.topbar-inner, .site-main, .site-footer { width: min(100% - 32px, 560px); }.topbar-inner { grid-template-columns: auto 1fr auto; }.brand-mark { width: 30px; height: 30px; }.brand-name { font-size: 11px; }.main-nav { gap: 0; justify-content: flex-end; }.nav-link { padding: 0 8px; font-size: 10px; }.nav-link.is-active::after { right: 8px; left: 8px; }.profile-shortcut { margin-left: 8px; padding-right: 4px; }.profile-shortcut-copy, .chevron { display: none; }.avatar { width: 30px; height: 30px; }.site-main { min-height: calc(100vh - 130px); padding-top: 17px; }.hero { grid-template-columns: 1fr; min-height: 300px; padding: 33px 25px 39px; }.hero-copy { max-width: 390px; }.hero h1 { font-size: clamp(34px, 8.5vw, 43px); }.hero-copy > p { max-width: 340px; font-size: 11px; }.hero-art { inset: 0 0 0 48%; opacity: .43; }.hero-orbit { width: 220px; height: 220px; }.hero-center { width: 87px; height: 87px; border-radius: 22px; }.hero-center span { font-size: 24px; }.hero-coordinate { right: 18px; }.hero-footnote { right: 24px; left: 24px; font-size: 7px; }.hero-footnote span:last-child { display: none; }.section-heading { align-items: flex-start; gap: 10px; margin-top: 27px; }.section-heading h2 { font-size: 18px; }.section-heading > .performance-indicator { align-self: center; padding: 7px; font-size: 7px; }.content-columns { grid-template-columns: 1fr; }.game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.profile-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }.rail-card { min-width: 0; }.guest-card { grid-column: span 3; }.list-card { grid-column: span 1; }.rail-heading h3 { font-size: 10px; }.rail-card .rail-section-title h3 { font-size: 9px; }.lightweight-note { font-size: 8px; }.game-art { height: 142px; }.game-card-body { padding: 12px 11px 10px; }.game-card h3 { font-size: 14px; }.game-card-body > p { min-height: 48px; font-size: 9px; }.game-meta { font-size: 7px; }.text-button { gap: 4px; font-size: 9px; }.favorite-toggle { flex: 0 0 auto; width: 28px; height: 28px; }
  .search-page, .settings-page { padding-top: 4px; }.page-topline .eyebrow { font-size: 8px; }.page-topline .session-tag { padding: 7px; font-size: 7px; }.search-shell { margin-top: 27px; padding: 25px 20px 20px; }.search-mark { top: 19px; right: 20px; width: 49px; height: 49px; border-radius: 15px; font-size: 27px; }.search-copy h1 { font-size: 34px; }.search-copy > p { max-width: 330px; font-size: 10px; }.search-form { grid-template-columns: 19px minmax(0, 1fr) 95px; gap: 4px; }.search-form select { grid-column: 2; grid-row: 2; height: 30px; border-left: 0; border-top: 1px solid #27364a; }.search-submit { grid-column: 3; grid-row: 1 / span 2; min-height: 46px; }.search-input-icon { grid-column: 1; grid-row: 1; }.search-form input { grid-column: 2; grid-row: 1; }.provider-strip { align-items: flex-start; flex-direction: column; }.provider-strip > div { flex-wrap: wrap; }.search-footer-grid { gap: 14px; }.search-footer-grid p { font-size: 8px; }
  .settings-intro { margin: 27px 0 19px; }.settings-intro h1 { font-size: 34px; }.settings-layout { grid-template-columns: 1fr; }.settings-aside { position: static; display: grid; grid-template-columns: 70px 1fr; column-gap: 12px; align-items: center; }.aside-stamp { grid-row: span 3; width: 70px; height: 70px; margin: 0; }.aside-stamp::before, .aside-stamp::after { width: 90px; height: 46px; }.aside-stamp > span { font-size: 19px; }.settings-aside > p { margin: 6px 0; font-size: 8px; }.settings-aside .rail-link { padding-top: 7px; font-size: 8px; }.settings-card { padding: 16px; }.settings-card > p { font-size: 9px; }.form-row { gap: 8px; }.request-form input, .request-form select, .request-form textarea { font-size: 9px; }.game-controls-row { align-items: flex-start; flex-direction: column; gap: 7px; padding: 9px 0; }.session-notice { font-size: 8px; }
}
@media (max-width: 430px) {
  .topbar-inner, .site-main, .site-footer { width: calc(100% - 24px); }.topbar-inner { grid-template-columns: auto 1fr auto; }.brand { gap: 6px; }.brand-mark { width: 27px; height: 27px; border-radius: 8px; font-size: 14px; }.brand-name { font-size: 9px; }.nav-link { padding: 0 5px; font-size: 9px; }.nav-link.is-active::after { right: 5px; left: 5px; }.profile-shortcut { margin-left: 4px; }.avatar { width: 27px; height: 27px; }.hero { padding-right: 17px; padding-left: 19px; }.hero-art { left: 42%; opacity: .35; }.hero-footnote { right: 18px; left: 18px; }.hero-actions { gap: 7px; }.hero-actions .button { min-height: 37px; padding: 0 10px; font-size: 9px; }.section-heading h2 { font-size: 16px; }.section-heading .eyebrow { font-size: 8px; }.performance-indicator { gap: 5px; font-size: 6px !important; }.game-grid { grid-template-columns: 1fr; }.game-card { display: grid; grid-template-columns: 39% 1fr; min-height: 145px; }.game-art { height: 100%; min-height: 145px; }.game-card-body { display: flex; flex-direction: column; justify-content: center; padding: 11px 10px; }.game-card-body > p { min-height: unset; margin: 7px 0 8px; }.game-card-bottom { margin-top: auto; gap: 6px; }.drift-track { width: 145px; }.profile-rail { grid-template-columns: 1fr 1fr; }.guest-card { grid-column: span 2; }.list-card { min-height: 98px; }.search-copy h1 { font-size: 31px; }.search-form { grid-template-columns: 15px minmax(0, 1fr) 81px; }.search-form select { font-size: 8px; }.search-submit { padding: 0 7px; font-size: 9px; }.search-footer-grid { grid-template-columns: 1fr; gap: 11px; }.form-row { grid-template-columns: 1fr; }.google-config { align-items: flex-start; flex-direction: column; }.google-config .button { margin-left: 38px; }.site-footer { gap: 8px; }.site-footer > span { font-size: 6px; }.footer-brand .brand-name { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.tap-signal.is-go span { background: var(--blue-bright); box-shadow: 0 0 16px 3px rgba(85, 169, 255, .54); }
.tap-target.is-go { border-color: #b4dcff; background: var(--blue); color: #07121f; box-shadow: 0 0 27px rgba(85, 169, 255, .34); }

/* Compact arcade layout inspired by the supplied game-library reference. */
:root { --lime: #55ef35; --lime-soft: #14270e; }
body { background: radial-gradient(ellipse at 50% 0, rgba(21, 53, 91, .24), transparent 48%), #06090e; }
.topbar { height: 72px; border-bottom-color: rgba(89, 144, 196, .2); background: rgba(5, 8, 13, .96); }
.topbar-inner, .site-main, .site-footer { width: min(1760px, calc(100% - 64px)); }
.brand-mark { border-color: #20633a; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #34ee57, #0d8429 72%); color: #05140b; box-shadow: 0 0 21px rgba(39, 237, 77, .2); }
.brand-name span { color: var(--lime); }
.nav-link.is-active::after { background: var(--blue); box-shadow: 0 0 13px rgba(85, 169, 255, .75); }
.site-main { min-height: calc(100vh - 140px); padding-top: 24px; }
.arcade-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.arcade-heading h1 { margin: 9px 0 0; font-size: clamp(27px, 3.4vw, 39px); line-height: 1.03; letter-spacing: -.055em; }
.arcade-heading h1 span { color: var(--blue); }
.arcade-heading-side { display: flex; align-items: center; gap: 18px; }
.arcade-heading-side > p { max-width: 275px; margin: 0; color: #8c9aac; font-size: 11px; line-height: 1.6; }
.arcade-toolbar { position: sticky; top: 72px; z-index: 12; display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: center; gap: 16px; margin: 0 -8px; padding: 11px 8px; border-top: 1px solid rgba(61, 87, 115, .25); border-bottom: 1px solid rgba(61, 87, 115, .35); background: rgba(6, 9, 14, .97); }
.arcade-search { display: flex; align-items: center; gap: 9px; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #21374d; border-radius: 11px; background: #0b111a; color: var(--blue-bright); box-shadow: inset 0 0 16px rgba(37, 109, 169, .06); }
.arcade-search:focus-within { border-color: #398de0; box-shadow: 0 0 0 3px rgba(49, 144, 233, .12); }
.arcade-search > span { font-size: 21px; line-height: 1; }
.arcade-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.arcade-search input::placeholder { color: #738196; }
.arcade-search kbd { display: grid; place-items: center; flex: 0 0 auto; min-width: 19px; height: 20px; border: 1px solid #304257; border-radius: 5px; color: #77879b; font: 10px var(--mono); }
.arcade-controls { display: flex; align-items: center; gap: 10px; }
.filter-group { display: flex; align-items: center; gap: 5px; }
.filter-chip, .favorite-filter { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 35px; padding: 0 11px; border: 1px solid transparent; border-radius: 8px; background: #111923; color: #9cabbc; font-size: 10px; font-weight: 750; white-space: nowrap; cursor: pointer; transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease; }
.filter-chip:hover, .favorite-filter:hover { border-color: #31516e; color: #e8f4ff; transform: translateY(-1px); }
.filter-chip.is-selected { border-color: #357cbb; background: #112a42; color: #bfe2ff; box-shadow: inset 0 -2px var(--blue); }
.favorite-filter { border-color: #2b3948; background: #0b1119; }
.favorite-filter span { color: #ffcf58; font-size: 15px; }
.favorite-filter.is-selected { border-color: #7e6429; background: #2b2311; color: #ffe092; }
.sort-control { display: inline-flex; align-items: center; gap: 7px; min-height: 35px; padding: 0 8px 0 10px; border-left: 1px solid #263444; color: #74849a; font: 9px var(--mono); }
.sort-control select { max-width: 110px; border: 0; outline: 0; background: transparent; color: #c3d0df; font: 10px var(--sans); cursor: pointer; }
.sort-control option { background: #111923; }
.catalog-status { display: flex; align-items: center; justify-content: space-between; min-height: 33px; color: #77889e; font: 9px var(--mono); letter-spacing: .04em; }
.clear-filters { border: 0; background: none; color: var(--blue-bright); font-size: 9px; font-weight: 700; cursor: pointer; }
.clear-filters:hover { color: white; }
.game-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.game-card { display: block; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid #1c2a39; border-radius: 12px; background: #0a1018; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.game-card:hover, .game-card:focus-within { transform: translateY(-3px); border-color: #268ee8; box-shadow: 0 8px 27px rgba(17, 98, 166, .19), 0 0 0 1px rgba(74, 164, 243, .18); }
.game-art { position: relative; height: auto; aspect-ratio: 1; overflow: hidden; background: #131d29; }
.game-art::before { position: absolute; z-index: 1; inset: 45% 0 0; background: linear-gradient(transparent, rgba(3, 7, 12, .66)); content: ''; pointer-events: none; }
.game-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, filter .2s ease; }
.game-card:hover .game-art img { transform: scale(1.04); filter: saturate(1.08); }
.art-tag { position: absolute; z-index: 2; top: 9px; left: 9px; padding: 5px 7px; border: 1px solid rgba(220, 240, 255, .3); border-radius: 6px; background: rgba(5, 12, 19, .72); color: #e2f3ff; font: 7px var(--mono); letter-spacing: .07em; backdrop-filter: blur(7px); }
.game-card .favorite-toggle { position: absolute; z-index: 3; top: 8px; right: 8px; width: 32px; height: 32px; border-color: rgba(229, 241, 255, .35); border-radius: 50%; background: rgba(7, 13, 20, .78); color: #eff7ff; font-size: 18px; backdrop-filter: blur(6px); }
.game-card .favorite-toggle[aria-pressed="true"] { border-color: #eec552; background: rgba(56, 43, 9, .88); color: #ffd65b; }
.card-play { position: absolute; z-index: 2; bottom: 10px; left: 10px; display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid rgba(199, 232, 255, .8); border-radius: 7px; background: var(--blue); color: #06111c; font-size: 10px; font-weight: 850; opacity: .92; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 0, 0, .25); transition: transform .15s ease, background .15s ease, opacity .15s ease; }
.card-play:hover { transform: translateY(-1px); background: #a1d5ff; opacity: 1; }
.card-play span { font-size: 9px; }
.game-card-body { padding: 10px 11px 12px; }
.game-card-body h3 { overflow: hidden; margin: 0 0 5px; font-size: clamp(11px, .9vw, 14px); letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.game-card-body .game-category { overflow: hidden; color: #72859a; font: 7px var(--mono); letter-spacing: .07em; text-overflow: ellipsis; white-space: nowrap; }
.content-columns { display: block; margin-top: 21px; }
.profile-rail { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.rail-card { min-width: 0; padding: 14px 16px; background: #0a111a; }
.guest-card > p { max-width: 460px; font-size: 9px; }
.rail-list { max-height: 88px; overflow: auto; }
.lightweight-note { margin-top: 15px; }
.empty-games { display: grid; justify-items: center; gap: 8px; min-height: 230px; align-content: center; border: 1px dashed #26384a; border-radius: 13px; background: radial-gradient(ellipse, rgba(27, 70, 108, .15), transparent 60%); text-align: center; }
.empty-games > span { color: #6da9df; font-size: 32px; }
.empty-games h2 { margin: 2px 0; font-size: 19px; }
.empty-games p { margin: 0 0 9px; color: #8393a5; font-size: 11px; }
.empty-games .button { min-height: 35px; font-size: 10px; }
.game-screen { padding-top: 3px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #28425a; border-radius: 8px; background: #0d1722; color: #c0dcf5; font-size: 10px; font-weight: 750; cursor: pointer; }
.back-link:hover { border-color: var(--blue); background: #132439; }
.game-screen-heading { margin: 17px 0 15px; }
.game-screen-heading h1 { margin: 7px 0 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.045em; }
.game-player-card { max-width: 1080px; margin: 0 auto; border-color: #263c52; box-shadow: 0 15px 55px rgba(0, 0, 0, .34); }
.game-player-shell { width: min(100%, 960px); max-width: none; aspect-ratio: 4 / 3; }
.game-player-host ruffle-player { display: block; width: 100%; height: 100%; }
.game-controls-row { max-width: 1080px; margin: 0 auto; }
.game-controls-row .button { flex: 0 0 auto; }

@media (max-width: 1250px) {
  .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
}
@media (max-width: 1050px) {
  .topbar-inner, .site-main, .site-footer { width: calc(100% - 40px); }
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .arcade-toolbar { grid-template-columns: minmax(170px, 1fr); gap: 9px; }
  .arcade-controls { flex-wrap: wrap; justify-content: space-between; }
}
@media (max-width: 720px) {
  .topbar { height: 64px; }
  .topbar-inner, .site-main, .site-footer { width: calc(100% - 28px); max-width: 1760px; }
  .topbar-inner { grid-template-columns: auto 1fr auto; }
  .site-main { padding-top: 17px; }
  .arcade-heading { align-items: start; flex-direction: column; gap: 9px; margin-bottom: 12px; }
  .arcade-heading h1 { font-size: 29px; }
  .arcade-heading-side { width: 100%; justify-content: space-between; gap: 10px; }
  .arcade-heading-side > p { max-width: 260px; font-size: 9px; }
  .arcade-heading-side .performance-indicator { padding: 7px; font-size: 7px; }
  .arcade-toolbar { top: 64px; margin-right: -6px; margin-left: -6px; padding: 8px 6px; }
  .arcade-search { height: 38px; }
  .arcade-controls { gap: 6px; }
  .filter-group { flex: 1 1 100%; }
  .filter-chip, .favorite-filter { min-height: 32px; padding: 0 8px; font-size: 9px; }
  .sort-control { margin-left: auto; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .game-card { border-radius: 9px; }
  .game-card-body { padding: 8px 8px 9px; }
  .game-card-body h3 { font-size: 10px; }
  .game-card-body .game-category { font-size: 6px; }
  .art-tag { top: 6px; left: 6px; padding: 4px 5px; font-size: 6px; }
  .game-card .favorite-toggle { top: 5px; right: 5px; width: 28px; height: 28px; font-size: 16px; }
  .card-play { bottom: 6px; left: 6px; min-height: 28px; padding: 0 8px; font-size: 8px; }
  .profile-rail { grid-template-columns: 1fr 1fr; gap: 8px; }
  .guest-card { grid-column: span 2; }
  .rail-card { padding: 11px; }
  .game-player-card, .game-controls-row { max-width: 100%; }
  .game-player-shell { width: min(100%, 760px); }
  .game-controls-row { flex-direction: column; align-items: start; }
}
@media (max-width: 470px) {
  .topbar-inner, .site-main, .site-footer { width: calc(100% - 22px); }
  .brand { gap: 5px; }
  .brand-name { font-size: 8px; }
  .brand-mark { width: 25px; height: 25px; font-size: 13px; }
  .nav-link { padding-right: 4px; padding-left: 4px; font-size: 8px; }
  .nav-link.is-active::after { right: 4px; left: 4px; }
  .profile-shortcut { margin-left: 2px; }
  .avatar { width: 25px; height: 25px; }
  .arcade-heading h1 { font-size: 26px; }
  .arcade-heading-side > p { max-width: 190px; }
  .performance-indicator { max-width: 134px; font-size: 6px !important; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .game-card-body h3 { font-size: 11px; }
  .game-card-body .game-category { font-size: 6px; }
  .filter-group { gap: 3px; }
  .filter-chip { padding: 0 6px; font-size: 8px; }
  .sort-control { font-size: 8px; }
  .sort-control select { max-width: 89px; font-size: 9px; }
  .game-player-top { padding: 0 9px; font-size: 7px; }
  .game-player-shell { aspect-ratio: 1 / 1; }
  .site-footer > span:nth-child(2) { display: none; }
}
@media (hover: none) {
  .card-play { opacity: 1; }
}

/* The three page controls are visible, keyboard-friendly tabs. */
.main-nav { justify-self: center; display: flex; align-items: center; justify-content: center; gap: 4px; width: max-content; height: auto; padding: 5px; border: 1px solid #1d354d; border-radius: 13px; background: #080d14; box-shadow: inset 0 1px rgba(221, 239, 255, .035), 0 5px 24px rgba(0, 0, 0, .22); }
.nav-link { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; color: #8fa4bb; font-size: 11px; font-weight: 760; white-space: nowrap; transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.nav-link:hover:not(.is-active) { border-color: #233c54; background: #0d1722; color: #e7f3ff; }
.nav-link.is-active { border-color: #3689d0; background: linear-gradient(135deg, #133453, #0b1d30); color: #c9e7ff; box-shadow: inset 0 0 0 1px rgba(120, 191, 248, .12), 0 0 16px rgba(50, 135, 207, .13); }
.nav-link.is-active::after { display: none; }
.nav-link:focus-visible { outline: 2px solid #74bdff; outline-offset: 2px; }
.page[role="tabpanel"]:focus-visible { outline: 1px solid rgba(85, 169, 255, .55); outline-offset: 7px; }
@media (max-width: 720px) {
  .main-nav { gap: 3px; padding: 3px; border-radius: 10px; }
  .nav-link { height: 32px; padding: 0 9px; font-size: 9px; }
}
@media (max-width: 470px) {
  .main-nav { gap: 2px; padding: 3px; }
  .nav-link { height: 30px; padding: 0 6px; font-size: 8px; }
}
