:root {
  color-scheme: dark;
  --bg: #0d0c13;
  --panel: #17151f;
  --panel-light: #211e2a;
  --text: #f6f3fb;
  --muted: #a29cac;
  --purple: #a37aff;
  --pink: #ff6cad;
  --line: rgba(255, 255, 255, 0.08);
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.home-audio-prompt { position: fixed; z-index: 10001; top: 12px; left: 50%; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 24px); padding: 10px 12px; transform: translateX(-50%); border: 1px solid #a37aff88; border-radius: 12px; background: #17151fee; box-shadow: 0 8px 32px #0008; color: #eee8ff; font-size: 12px; }
.home-audio-prompt[hidden] { display: none; }
.home-audio-prompt button { border: 0; border-radius: 8px; padding: 8px 11px; background: #a47aff; color: #151020; cursor: pointer; font-size: 11px; font-weight: 800; white-space: nowrap; }
.home-audio-prompt button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.page-shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }

.topbar {
  height: 78px; display: flex; align-items: center; gap: 42px; padding: 0 max(32px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid var(--line); background: rgba(13, 12, 19, .92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 22px "Space Grotesk", sans-serif; letter-spacing: -1.3px; white-space: nowrap; }
.brand-logo { display: block; width: 44px; height: 36px; flex: 0 0 auto; object-fit: contain; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; padding-left: 2px; border-radius: 9px; font-size: 12px; color: #fff; background: linear-gradient(140deg, #b080ff, #7445ea); box-shadow: 0 5px 20px #925dff40; }
.brand-light { color: #b49aff; }
.main-nav { display: flex; gap: 30px; align-items: center; height: 100%; }
.nav-link { display: grid; align-items: center; height: 100%; color: #9893a1; font-size: 13px; font-weight: 600; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { content: ""; height: 2px; position: absolute; bottom: 0; left: 0; right: 0; background: var(--purple); border-radius: 4px 4px 0 0; }
.search-box { margin-left: auto; width: 245px; height: 39px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #15131b; color: #888391; }
.search-icon { font-size: 21px; line-height: 1; transform: rotate(-20deg); }
.search-box input { background: transparent; border: 0; outline: 0; color: var(--text); min-width: 0; flex: 1; font-size: 12px; }
.search-box input::placeholder { color: #85808d; }
.search-box kbd { border: 1px solid #393542; border-radius: 4px; font-size: 10px; padding: 2px 5px; color: #96909e; }
.mobile-search { display: none; }

.hero { min-height: 432px; margin-top: 36px; overflow: hidden; border: 1px solid rgba(191, 158, 255, .1); border-radius: 22px; position: relative; display: flex; align-items: center; background: radial-gradient(ellipse at 76% 52%, #462b7838, transparent 37%), linear-gradient(110deg, #17141f 0%, #181522 53%, #211831 100%); }
.hero-copy { width: 56%; padding: 53px 0 52px 64px; position: relative; z-index: 1; }
.eyebrow, .section-kicker { color: #aa91de; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #b38aff; box-shadow: 0 0 12px #ad80ff; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 16px; font: 700 clamp(42px, 5.5vw, 66px)/.99 "Space Grotesk", sans-serif; letter-spacing: -3.9px; }
h1 span { color: #bca1ff; }
.hero-copy > p { max-width: 400px; margin-bottom: 23px; color: #aca6b5; font-size: 14px; line-height: 1.75; }
.primary-button, .banner-button { display: inline-flex; align-items: center; gap: 23px; background: #a47aff; color: #151020; border-radius: 9px; padding: 12px 16px; font-weight: 800; font-size: 12px; transition: transform .2s, background .2s; }
.primary-button:hover, .banner-button:hover { transform: translateY(-2px); background: #b594ff; }
.primary-button span { font-size: 15px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: #898391; font-size: 11px; }
.hero-note > span { color: #bb9aff; font-size: 14px; }
.hero-note i { width: 3px; height: 3px; border-radius: 50%; background: #625d6a; margin: 0 2px; }
.hero-art { position: absolute; inset: 0 0 0 49%; overflow: hidden; background: radial-gradient(ellipse at 56% 48%, #9b58ff1c, transparent 55%); }
.hero-orbit { position: absolute; width: 360px; height: 360px; border: 1px solid #b89aff14; border-radius: 50%; left: 27%; top: 7%; }
.orbit-two { width: 270px; height: 270px; left: 39%; top: 18%; border-color: #b89aff20; }
.hero-tile { position: absolute; display: grid; place-items: center; border: 1px solid #ffffff18; border-radius: 27px; box-shadow: 0 26px 75px #09071077, inset 0 1px #ffffff21; }
.tile-front { width: 156px; height: 174px; left: 40%; top: 27%; transform: rotate(-8deg); font-size: 86px; background: linear-gradient(145deg, #ff70ae, #8146d8 75%); }
.tile-back { width: 116px; height: 130px; left: 17%; top: 20%; transform: rotate(13deg); font-size: 63px; background: linear-gradient(145deg, #ffc867, #f16d80 80%); }
.tile-small { width: 79px; height: 82px; left: 67%; top: 61%; transform: rotate(12deg); font-size: 39px; border-radius: 19px; background: linear-gradient(145deg, #58d9dc, #4857c9); }
.hero-spark { position: absolute; color: #d0b6ff; text-shadow: 0 0 16px #bd86ff; }
.spark-one { top: 14%; left: 63%; font-size: 27px; }.spark-two { top: 72%; left: 23%; font-size: 36px; }.spark-three { top: 23%; left: 76%; font-size: 20px; }
.hero-label { position: absolute; bottom: 27px; right: 30px; color: #aaa2b3; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; display: flex; align-items: center; gap: 8px; }
.label-dot { width: 5px; height: 5px; border-radius: 50%; background: #ff7ba6; box-shadow: 0 0 10px #ff7ba6; }

.categories-section { padding-top: 54px; }
.section-heading, .games-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-kicker { margin-bottom: 7px; font-size: 9px; letter-spacing: 1.5px; }
h2 { margin-bottom: 0; font: 700 25px "Space Grotesk", sans-serif; letter-spacing: -.8px; }
.category-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.category-button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #ffffff12; background: #16141c; color: #a6a0ae; border-radius: 8px; padding: 9px 12px; cursor: pointer; font-size: 11px; font-weight: 600; transition: .18s ease; }
.category-button:hover, .category-button.selected { background: #322744; color: #e9dbff; border-color: #986be766; }
.category-button span { font-size: 13px; }
.games-section { padding-top: 48px; }
.games-heading { align-items: flex-end; margin-bottom: 18px; }
.games-heading h2 { font-size: 24px; }
.heading-spark { color: #b493ff; font-size: 19px; }
.game-count { color: #817c88; font-size: 11px; padding-bottom: 3px; }
.game-load-sentinel { height: 1px; }
.load-more-games { display: block; margin: 20px auto 0; min-height: 44px; padding: 0 18px; border: 1px solid #ffffff24; border-radius: 9px; background: var(--panel-light); color: var(--text); font-weight: 700; cursor: pointer; }
.load-more-games:focus-visible, .search-box input:focus-visible { outline: 2px solid #cfb8ff; outline-offset: 3px; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px 17px; }
.game-card { min-width: 0; cursor: pointer; outline: 0; }
.game-art { height: 154px; border-radius: 13px; position: relative; overflow: hidden; display: grid; place-items: center; border: 1px solid #ffffff13; isolation: isolate; transition: transform .22s ease, border-color .22s ease; }
.game-card:hover .game-art, .game-card:focus-visible .game-art { transform: translateY(-4px); border-color: #c3a5ff75; }
.game-art::before, .game-art::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.game-art::before { width: 175px; height: 175px; left: -42px; bottom: -122px; background: #ffffff17; }
.game-art::after { width: 116px; height: 116px; right: -32px; top: -55px; border: 1px solid #ffffff30; }
.art-emoji { font-size: 64px; filter: drop-shadow(0 13px 14px #07061077); transform: translateY(-2px); transition: transform .2s; }
.game-card:hover .art-emoji { transform: translateY(-6px) scale(1.04); }
.game-art .art-label { position: absolute; left: 13px; bottom: 12px; font: 700 12px "Space Grotesk", sans-serif; color: #fff; text-shadow: 0 2px 8px #0008; }
.game-tag { position: absolute; top: 10px; left: 10px; padding: 5px 7px; border: 1px solid #ffffff22; border-radius: 5px; background: #0d0c13a8; color: #f2eaff; font-size: 8px; letter-spacing: .5px; font-weight: 700; text-transform: uppercase; }
.game-play { position: absolute; right: 11px; bottom: 11px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #f6f0ff; color: #23163b; font-size: 10px; opacity: 0; transform: translateY(4px); transition: .2s; }
.game-card:hover .game-play, .game-card:focus-visible .game-play { opacity: 1; transform: translateY(0); }
.game-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 1px 0; }
.game-info h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px "DM Sans", sans-serif; }
.library-section { margin-top: 42px; padding-bottom: 44px; border-top: 1px solid var(--line); }
.library-intro { max-width: 540px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.library-count { color: #aaa2b6; font-size: 12px; font-weight: 700; }
.library-art-hexgl { background: #101722; }
.library-art-hexgl::before, .library-art-hexgl::after { display: none; }
.library-art-hexgl .library-thumbnail { object-position: center; }
.library-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.library-art-wbwwb { background: radial-gradient(circle at 50% 45%, #fed74d 0 4%, #161925 4.4% 19%, transparent 19.4%), linear-gradient(145deg, #17273a, #4e2d46 60%, #181722); }
.library-art-wbwwb .art-emoji { color: #fff1ba; font-size: 54px; text-shadow: 0 0 30px #ffcf4b88; }
.library-card .game-info { display: block; }
.library-card .game-info h3 { margin-bottom: 5px; }
.library-card .game-category { color: var(--muted); font-size: 11px; }
.library-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; }
.library-note a { color: #c1a5ff; text-decoration: underline; text-underline-offset: 3px; }
.game-category { color: #888290; font-size: 10px; white-space: nowrap; }
.empty-state { margin: 28px 0; padding: 40px 20px; color: var(--muted); text-align: center; border: 1px dashed #34303e; border-radius: 12px; }

.bottom-banner { display: flex; align-items: center; gap: 17px; margin-top: 62px; padding: 22px 27px; border: 1px solid #a880ec26; border-radius: 15px; background: linear-gradient(105deg, #231a32, #17151f 75%); }
.banner-icon { width: 48px; height: 48px; display: grid; place-items: center; font-size: 24px; border-radius: 13px; background: #a17bff22; }
.bottom-banner h2 { font-size: 19px; }
.banner-button { margin-left: auto; padding: 10px 13px; gap: 16px; }
.footer { display: flex; align-items: center; justify-content: space-between; padding-block: 31px; margin-top: 25px; color: #817c89; font-size: 10px; }
.footer-brand { font-size: 16px; color: var(--text); }.footer-brand .brand-logo { width: 34px; height: 28px; }.footer a:last-child:hover { color: #d9c4ff; }
.offline-status { display: inline-flex; align-items: center; gap: 7px; }
.offline-status::before { width: 7px; height: 7px; flex: 0 0 7px; content: ""; border-radius: 50%; background: #58c99b; box-shadow: 0 0 9px #58c99b77; }
.offline-status.offline-mode::before { background: #efbd68; box-shadow: 0 0 9px #efbd6877; }
.offline-status.offline-unavailable::before { background: #d97683; box-shadow: 0 0 9px #d9768377; }

.game-modal { position: fixed; inset: 0; z-index: 10; display: none; align-items: center; justify-content: center; padding: 20px; }
.game-modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: #08070cd9; backdrop-filter: blur(9px); }
.modal-panel { position: relative; width: min(850px, 100%); max-height: min(92vh, 900px); overflow: auto; padding: 23px; border: 1px solid #ffffff1c; border-radius: 17px; background: #17151f; box-shadow: 0 25px 100px #0009; animation: modal-in .2s ease-out; }
.modal-panel:has(.memory-game) { width: min(740px, 100%); max-height: 96dvh; display: flex; flex-direction: column; overflow: hidden; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.modal-header h2 { font-size: 22px; }
.close-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #211e2a; color: #c2bccb; cursor: pointer; font-size: 23px; }
.close-button:hover { background: #342a43; color: white; }
.game-stage { position: relative; min-height: 300px; padding: 22px; display: flex; align-items: center; justify-content: center; border: 1px solid #ffffff0d; border-radius: 12px; background: radial-gradient(ellipse at center, #29223a, #111016 78%); }
.modal-hint { margin: 13px 0 0; color: #a29cac; text-align: center; font-size: 11px; }
.play-button, .game-action { border: 0; border-radius: 8px; padding: 10px 15px; color: #171220; background: #b393ff; cursor: pointer; font-weight: 700; font-size: 12px; }
.play-button:hover, .game-action:hover { background: #c5aeff; }
.game-result { min-height: 24px; margin-top: 12px; color: #d5c4ff; text-align: center; font-size: 13px; font-weight: 600; }
.ttt-board { display: grid; grid-template-columns: repeat(3, 76px); gap: 8px; }
.ttt-cell { width: 76px; height: 76px; border: 1px solid #ffffff17; border-radius: 10px; background: #211e2a; color: #d0b7ff; cursor: pointer; font-size: 31px; font-weight: 700; }
.ttt-cell:hover { background: #30273f; }
.rps-options { display: flex; justify-content: center; gap: 12px; }
.rps-option, .mole { width: 74px; height: 74px; border: 1px solid #ffffff18; border-radius: 14px; background: #211e2a; cursor: pointer; font-size: 35px; transition: .15s; }
.rps-option:hover, .mole:hover { transform: translateY(-3px); background: #352a47; }
.rps-round { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 5vw, 35px); margin-bottom: 21px; }
.rps-side { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; justify-items: center; gap: 5px 11px; }
.rps-score { color: #e5d7ff; font: 700 42px/1 "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
.rps-pick { width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid #ffffff18; border-radius: 14px; background: #211e2a; font-size: 39px; }
.rps-label { grid-column: 1 / -1; color: #aaa2b3; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.rps-versus { color: #9289a1; font: 700 12px "Space Grotesk", sans-serif; }
.memory-game { width: min(100%, 700px); gap: 12px; }
.memory-hud { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.memory-hud > * { padding: 7px 10px; border: 1px solid #ffffff14; border-radius: 8px; background: #211e2a; color: #ded4f3; font-size: 11px; }
.memory-hud strong { color: #d3b9ff; }
.modal-panel:has(.memory-game) .game-stage { min-height: 0; padding: 10px; flex: 1; }
.modal-panel:has(.memory-game) .modal-hint { margin-top: 8px; }
.memory-grid { width: min(100%, 520px, max(140px, calc(100dvh - 310px))); aspect-ratio: 1; display: grid; grid-template-columns: repeat(var(--memory-size, 6), minmax(0, 1fr)); gap: clamp(2px, .8vw, 7px); }
.memory-card { min-width: 0; aspect-ratio: 1; padding: 0; border: 1px solid #ffffff17; border-radius: clamp(3px, 1vw, 9px); background: linear-gradient(145deg, #342849, #24202e); color: #e8ddff; cursor: pointer; font-size: clamp(20px, 7vw, 44px); }
.memory-card.matched { background: #233b39; border-color: #66cba775; cursor: default; }
.memory-card.memory-free { background: #302b3c; color: #e6c66d; border-style: dashed; }
.mole-grid { display: grid; grid-template-columns: repeat(3, 70px); gap: 9px; }
.mole { width: 70px; height: 70px; border-radius: 50%; font-size: 28px; }
.snake-canvas { width: min(360px, 100%); height: auto; border: 1px solid #ffffff15; border-radius: 8px; background: #101016; }
.game-column { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.game-score { color: #c8b3f2; font-size: 12px; font-weight: 700; }
.rps-wrap { width: min(100%, 400px); text-align: center; }
.board-2048 { display: grid; grid-template-columns: repeat(4, 62px); gap: 7px; padding: 8px; border-radius: 10px; background: #393044; }
.board-controls { display: flex; gap: 7px; }
.board-controls .game-action { min-width: 40px; padding: 8px; font-size: 15px; }
.tile-2048 { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 7px; background: #51485a; color: #fff; font: 700 20px "Space Grotesk", sans-serif; }
.tile-value-2 { background: #84749a; }.tile-value-4 { background: #9c81ae; }.tile-value-8 { background: #d98772; }.tile-value-16 { background: #dc715e; }.tile-value-32 { background: #dc5d65; }.tile-value-64 { background: #c74768; }.tile-value-128, .tile-value-256, .tile-value-512, .tile-value-1024, .tile-value-2048 { background: #a57ae6; font-size: 17px; }
.reflex-target { width: min(260px, 100%); height: 175px; border: 1px solid #ffffff19; border-radius: 14px; background: #312a3e; color: #eee7fb; cursor: pointer; font: 700 20px "Space Grotesk", sans-serif; transition: background .12s; }
.reflex-target.ready { background: #47b980; color: #10271c; }
.reflex-target:hover { filter: brightness(1.1); }
.f1-lights { display: flex; gap: 12px; padding: 16px 19px; border: 1px solid #ffffff20; border-radius: 18px; background: #211c27; box-shadow: 0 10px 35px #0005; }
.f1-bulb { width: 34px; aspect-ratio: 1; border-radius: 50%; background: #38272b; border: 2px solid #5a4147; transition: background .12s, box-shadow .12s; }
.f1-bulb.lit { background: #ff334f; border-color: #ff6476; box-shadow: 0 0 19px #ff263caa; }
.lights-target { min-width: 220px; padding: 16px 22px; border: 1px solid #ffffff18; border-radius: 10px; background: #332936; color: #f5edf6; cursor: pointer; font: 700 15px "Space Grotesk", sans-serif; }
.lights-target:hover { filter: brightness(1.12); }
.lights-target.race-go { background: #38bc7a; color: #10271b; }
.target-setting { display: flex; align-items: center; gap: 10px; color: #bbb3c5; font-size: 12px; font-weight: 600; }
.target-select { padding: 8px 10px; border: 1px solid #ffffff1c; border-radius: 8px; background: #211e2a; color: #f6f3fb; font: inherit; }
.stopwatch-clock { min-width: 230px; padding: 20px; border: 1px solid #ffffff14; border-radius: 12px; background: #101016; color: #dfd0ff; text-align: center; font: 600 52px "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: 2px; }
.circle-canvas { display: block; width: min(420px, 100%); height: 270px; border: 1px solid #ffffff20; border-radius: 11px; background: radial-gradient(ellipse at center, #201c2a, #111016 82%); cursor: crosshair; touch-action: none; }
.circle-controls { display: flex; justify-content: center; }
.circle-controls .game-action { min-width: 90px; }
.game-column > .reflex-target { width: 176px; height: 176px; display: grid; place-items: center; border: 5px solid #79659a; border-radius: 50%; background: radial-gradient(circle, #383047 55%, #292337 57%); color: #eee7fb; cursor: pointer; font: 700 20px "Space Grotesk", sans-serif; box-shadow: 0 0 0 9px #ffffff08, 0 12px 32px #0005; transition: background .12s, border-color .12s, box-shadow .12s; touch-action: manipulation; user-select: none; }
.game-column > .reflex-target.ready { border-color: #a0f2c2; background: radial-gradient(circle, #66d995 55%, #37b779 57%); color: #10271b; box-shadow: 0 0 0 9px #47b98022, 0 0 35px #47b98070; }
.game-column > .reflex-target:focus-visible { outline: 3px solid #cfb8ff; outline-offset: 7px; }
.stopwatch-settings { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.stopwatch-players { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; }
.stopwatch-player { min-width: min(230px, 100%); display: flex; flex: 1 1 200px; flex-direction: column; align-items: center; gap: 9px; padding: 14px; border: 1px solid #ffffff14; border-radius: 12px; background: #211e2a; }
.stopwatch-player-label { color: #c8b3f2; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.stopwatch-player .stopwatch-clock { width: 100%; min-width: 0; padding: 15px 10px; font-size: 42px; }
.stopwatch-result { min-height: 18px; color: #d5c4ff; text-align: center; font-size: 11px; font-weight: 600; }
.arcade-canvas, .blocks-canvas, .carrom-canvas { display: block; width: min(440px, 100%); height: auto; border: 1px solid #ffffff20; border-radius: 10px; background: #101016; touch-action: none; }
.bubble-canvas { display: block; width: min(360px, 100%); height: auto; border: 1px solid #ffffff30; border-radius: 14px; background: #101522; box-shadow: 0 10px 30px #10233d30; touch-action: none; }
.ping-breaker-canvas { display: block; width: min(440px, 100%); height: auto; border: 1px solid #ffffff25; border-radius: 10px; background: #101016; touch-action: none; }
.arcade-settings { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; color: #d2c9dd; font-size: 11px; }
.arcade-settings label { display: flex; align-items: center; gap: 6px; }
.arcade-settings input { width: 90px; accent-color: #b393ff; }
.difference-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.difference-canvas { width: 100%; height: auto; border: 1px solid #ffffff25; border-radius: 8px; cursor: crosshair; }
.arrow-board { display: grid; grid-template-columns: repeat(var(--arrow-grid-size, 7), minmax(0, 1fr)); gap: 4px; width: min(100%, 420px); aspect-ratio: 1; box-sizing: border-box; padding: 8px; border: 1px solid #ffffff17; border-radius: 10px; background: #272335; }
.arrow-hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: min(100%, 420px); }
.arrow-score { color: #c6b5ee; font-size: 12px; font-weight: 800; white-space: nowrap; }
.arrow-lives { color: #ff7187; font-size: 16px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
.arrow-piece, .arrow-empty { width: 100%; aspect-ratio: 1; border: 1px solid #ffffff0d; border-radius: 7px; font-size: clamp(14px, 4vw, 24px); }
.arrow-piece { background: linear-gradient(145deg,#7053b2,#4a3c76); color: #fff; cursor: pointer; transition: transform .12s,background .12s; }
.arrow-piece:hover { transform: scale(1.07); background: #986fe3; }
.arrow-empty { background: #17151f; }
.arrow-level-label { color: #d8c6ff; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-align: center; }
.arrow-next-button { min-width: 160px; }
.liquid-sort-game { width: min(100%, 440px); }
.liquid-sort-heading { color: #d8c6ff; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-align: center; }
.liquid-tubes { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: clamp(10px, 4vw, 22px); width: 100%; padding: 12px 4px; }
.liquid-tube { display: flex; flex-direction: column; align-items: center; gap: 5px; width: clamp(46px, 12vw, 58px); padding: 0; border: 0; background: transparent; cursor: pointer; }
.liquid-glass { display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 2px; width: 100%; height: 148px; overflow: hidden; padding: 5px; border: 2px solid #d9d7eeaa; border-top: 3px solid #d9d7ee55; border-radius: 8px 8px 16px 16px; background: linear-gradient(90deg,#ffffff13,#ffffff02 35%,#ffffff17 72%,#ffffff04); box-shadow: inset 0 0 12px #0003, 0 8px 14px #0002; transition: border-color .15s,transform .15s; }
.liquid-tube.selected .liquid-glass { border-color: #d1b3ff; transform: translateY(-8px); box-shadow: 0 0 0 3px #b88cff33,0 10px 20px #0004; }
.liquid-layer { flex: 0 0 calc(25% - 2px); border-radius: 4px; background: linear-gradient(100deg,#ffffff33,var(--liquid-color) 28%,var(--liquid-color) 78%,#0002); box-shadow: inset 0 -2px 3px #0002; }
.liquid-tube-number { color: #8d839a; font-size: 10px; font-weight: 700; }
.blocks-canvas { width: 240px; }
.block-controls { display: flex; gap: 8px; }
.block-controls .game-action { min-width: 42px; }
.chess-game { width: min(100%, 480px); }
.chess-controls { width: min(100%, 440px); display: grid; gap: 9px; }
.chess-modes { display: flex; justify-content: center; gap: 8px; }
.chess-mode-button { min-width: 100px; padding: 8px 12px; }
.chess-mode-button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #4d9fc8; }
.chess-clocks { display: flex; justify-content: space-between; gap: 8px; }
.chess-clock { min-width: 0; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid #ffffff20; border-radius: 9px; background: #211e2a; color: #ded4f3; }
.chess-clock[hidden] { display: none !important; }
.chess-clock span { overflow: hidden; font-size: 9px; font-weight: 800; letter-spacing: .5px; text-overflow: ellipsis; white-space: nowrap; }
.chess-clock strong { color: #fff; font: 700 20px/1 "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
.chess-clock.active { border-color: #69c99b; box-shadow: 0 0 0 2px #69c99b30; }
.chess-board { width: min(100%, 38dvh, 440px); aspect-ratio: 1; display: grid; grid-template: repeat(8, minmax(0, 1fr)) / repeat(8, minmax(0, 1fr)); border: 5px solid #735b45; border-radius: 8px; overflow: hidden; }
.chess-cell { width: 100%; height: 100%; min-width: 0; min-height: 0; aspect-ratio: auto; border: 0; padding: 0; font-size: clamp(20px, 4vh, 38px); line-height: 1; cursor: pointer; }
.chess-cell.light { background: #dfcba7; color: #29242c; }.chess-cell.dark { background: #856849; color: #f4ebd8; }
.chess-cell.selected { box-shadow: inset 0 0 0 4px #bd95ff; }.chess-cell.target { box-shadow: inset 0 0 0 4px #75dba5; }
.fruit-balance-game { width: min(100%, 500px); gap: 9px; padding: 12px; border: 1px solid #ffffff19; border-radius: 16px; background: linear-gradient(155deg,#1e352b,#15221d); }
.fruit-turn { min-height: 18px; margin: 0; color: #d5f0dc; font-size: 13px; }
.fruit-canvas { display: block; width: min(440px, 100%); height: auto; border: 1px solid #ffffff1c; border-radius: 12px; background: #192a21; touch-action: none; }
.fruit-scales { width: 100%; }
.fruit-balance-game .game-result { min-height: 18px; margin: 0; color: #e3eadf; }
.fruit-balance-game .game-action { min-width: 180px; background: #b8e3a3; }
.modal-panel:has(.fruit-balance-game), .modal-panel:has(.fruit-balance-game) .game-outcome { animation: none; }
.modal-panel:has(.fruit-balance-game) .game-outcome { backdrop-filter: none; }
.fruit-ninja-game { width: min(100%, 460px); gap: 8px; }
.fruit-ninja-hud { width: min(440px,100%); display: flex; justify-content: space-between; gap: 8px; }
.fruit-ninja-hud strong { min-width: 74px; padding: 8px 12px; border: 1px solid #ffffff20; border-radius: 9px; background: #172333; color: #e5f3ff; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.fruit-ninja-hud strong:last-child { color: #ffb5bb; }
.fruit-ninja-canvas { display: block; width: min(440px,100%); height: auto; border: 1px solid #ffffff20; border-radius: 14px; background: #101b27; touch-action: none; }
.fruit-ninja-game .game-result { min-height: 18px; margin: 0; }
.fruit-ninja-game .game-action { min-width: 170px; }
.table-tennis-game { width: min(100%, 500px); gap: 8px; }
.table-tennis-score { width: min(460px,100%); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.table-tennis-score strong { min-width: 44px; padding: 5px 10px; border: 1px solid #ffffff24; border-radius: 8px; background: #172333; color: #f2fff8; text-align: center; font: 700 23px/1.1 "Space Grotesk",sans-serif; font-variant-numeric: tabular-nums; }
.table-tennis-score span { color: #b8d0d8; font-size: 10px; font-weight: 800; letter-spacing: .7px; }
.table-tennis-play-area { position: relative; width: min(460px,100%); }
.table-tennis-canvas { display: block; width: min(460px,100%); height: auto; border: 2px solid #d5af83; border-radius: 13px; background: #146f73; touch-action: none; }
.table-tennis-game .game-result { min-height: 18px; margin: 0; }
.table-tennis-game .game-action { min-width: 150px; background: #a9e4ca; }
.table-tennis-serve { position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%,-50%); box-shadow: 0 5px 20px #092b37aa; }
.table-tennis-serve:disabled { visibility: hidden; }
.carrom-canvas { width: min(400px, 100%); cursor: crosshair; }
.pool-canvas { display: block; width: min(420px, 100%); height: auto; border: 1px solid #ffffff20; border-radius: 10px; background: #101016; touch-action: none; }
.sudoku-game { width: min(100%, 520px); gap: 9px; }
.sudoku-toolbar { display: flex; width: 100%; justify-content: space-between; gap: 10px; }
.sudoku-toolbar .target-select { min-width: 145px; }
.sudoku-board { width: min(100%, 432px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); border: 2px solid #a98aff; border-radius: 6px; overflow: hidden; background: #292335; }
.sudoku-cell { min-width: 0; padding: 0; border: 0; border-right: 1px solid #ffffff20; border-bottom: 1px solid #ffffff20; background: #211e2a; color: #eee8ff; cursor: pointer; font: 600 clamp(14px, 3.5vw, 22px) "Space Grotesk", sans-serif; }
.sudoku-cell:nth-child(3n) { border-right: 2px solid #a98aff; }
.sudoku-cell:nth-child(9n) { border-right: 0; }
.sudoku-cell:nth-child(n+19):nth-child(-n+27), .sudoku-cell:nth-child(n+46):nth-child(-n+54) { border-bottom: 2px solid #a98aff; }
.sudoku-cell:nth-child(n+73) { border-bottom: 0; }
.sudoku-cell.given { color: #cab9f4; background: #292435; }
.sudoku-cell.selected { background: #6747a0; box-shadow: inset 0 0 0 2px #d2baff; }
.sudoku-cell.same-number { background: #3a3150; }
.sudoku-cell.conflict { background: #673846; color: #ffb7be; }
.sudoku-keypad { display: grid; grid-template-columns: repeat(9, minmax(30px, 1fr)); gap: 5px; width: min(100%, 432px); }
.sudoku-keypad .game-action { padding: 8px 3px; }
.sudoku-game > .game-action { min-width: 140px; }
.ludo-game, .ladder-game { width: 100%; gap: 10px; }
.ludo-board { width: min(100%, 480px); aspect-ratio: 1; display: grid; grid-template: repeat(16, 1fr) / repeat(16, 1fr); position: relative; overflow: hidden; border: 4px solid #e1cfad; border-radius: 9px; background: #2a2634; box-shadow: 0 12px 30px #0005; }
.ludo-square { grid-area: auto; border: 1px solid #ffffff08; }
.ludo-home-red { background: #ed6a72; }
.ludo-home-blue { background: #579be1; }
.ludo-track { background: #f2eadc; border-color: #d3c9ba; }
.ludo-start-red { background: #ed6a72; }
.ludo-start-blue { background: #579be1; }
.ludo-lane-red { background: #ed6a72; }
.ludo-lane-blue { background: #579be1; }
.ludo-token { z-index: 1; align-self: center; justify-self: center; width: 82%; height: 82%; min-width: 11px; min-height: 11px; padding: 0; border: 2px solid #fff; border-radius: 50%; color: #fff; font-size: clamp(7px, 1.7vw, 11px); font-weight: 800; box-shadow: 0 2px 5px #0007; }
.ludo-token-red { background: #d84253; }
.ludo-token-blue { background: #2876c2; }
.ludo-token:disabled { cursor: default; opacity: .92; }
.ludo-token.movable { cursor: pointer; outline: 2px solid #ffe783; outline-offset: 1px; }
.ludo-status-player { color: #d5c4ff; }
.ladder-game { width: min(100%, 640px); }
.ladder-board { width: min(100%, 540px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: repeat(10, minmax(0, 1fr)); overflow: hidden; border: 3px solid #d8bd8f; border-radius: 9px; background: #211e2a; }
.ladder-tile { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 2px 3px; border: 1px solid #ffffff18; background: #29253a; }
.ladder-tile:nth-child(4n), .ladder-tile:nth-child(4n+1) { background: #352b43; }
.ladder-tile.snake-start { background: #653b49; }
.ladder-tile.ladder-start { background: #315b50; }
.ladder-number { color: #ddd3e9; font: 600 clamp(7px, 1.7vw, 11px) "Space Grotesk", sans-serif; }
.ladder-symbol { align-self: center; font-size: clamp(8px, 2vw, 16px); line-height: 1; }
.ladder-pawns { min-height: 12px; overflow: hidden; font-size: clamp(7px, 1.5vw, 10px); line-height: 1; }
.retro-game { width: 100%; gap: 9px; }
.retro-canvas { display: block; width: min(100%, 520px); height: auto; aspect-ratio: 26 / 15; border: 1px solid #ffffff25; border-radius: 10px; background: #101016; image-rendering: pixelated; touch-action: none; }
.retro-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.retro-controls .game-action { min-width: 54px; touch-action: none; }
.game-action:focus-visible, .category-button:focus-visible, .close-button:focus-visible, .sudoku-cell:focus-visible { outline: 2px solid #cfb8ff; outline-offset: 2px; }
@media (max-width: 420px) {
  .f1-lights { gap: 7px; padding: 12px; }
  .f1-bulb { width: 27px; }
  .stopwatch-clock { min-width: 190px; font-size: 44px; }
  .circle-canvas { height: 230px; }
  .arrow-board { grid-template-columns: repeat(var(--arrow-grid-size, 7), minmax(0, 1fr)); gap: 3px; }.arrow-piece, .arrow-empty { width: 100%; height: auto; }
  .chess-board { width: min(100%, 440px); grid-template-columns: repeat(8, minmax(0, 1fr)); }.chess-cell { width: 100%; height: auto; font-size: clamp(22px, 8vw, 34px); }
  .sudoku-toolbar { align-items: stretch; flex-direction: column; }
  .sudoku-cell { font-size: 16px; }
  .sudoku-keypad { gap: 3px; }
  .sudoku-keypad .game-action { font-size: 11px; }
  .memory-hud { gap: 5px; }
  .memory-hud > * { padding: 6px 7px; font-size: 10px; }
  .memory-grid { width: min(100%, 440px, max(140px, calc(100dvh - 285px))); }
}
@media (max-width: 360px) {
  .chess-board { width: min(100%, 440px); grid-template-columns: repeat(8, minmax(0, 1fr)); border-width: 4px; }.chess-cell { width: 100%; height: auto; font-size: clamp(20px, 7vw, 28px); }
}

@media (max-width: 900px) {
  .topbar { gap: 28px; padding-inline: 25px; }
  .main-nav { gap: 19px; }
  .page-shell { width: min(100% - 48px, 720px); }
  .hero { min-height: 400px; }
  .hero-copy { width: 64%; padding-left: 40px; }
  .hero-art { left: 49%; opacity: .84; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
  .game-art { height: 145px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .category-list { justify-content: flex-start; }
}
@media (min-width: 621px) and (max-width: 1050px) {
  .topbar { height: auto; min-height: 76px; flex-wrap: wrap; gap: 8px 24px; padding: 8px 24px 0; }
  .main-nav { order: 3; width: 100%; height: 34px; gap: 24px; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; height: 34px; }
  .search-box { width: min(245px, 32vw); }
}
@media (max-width: 620px) {
  .topbar { height: auto; min-height: 63px; flex-wrap: wrap; gap: 8px 12px; padding: 9px 12px 0; }
  .brand { gap: 6px; font-size: 18px; }.brand-logo { width: 34px; height: 28px; }
  .main-nav { order: 3; width: 100%; height: 36px; display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; height: 36px; font-size: 11px; }
  .search-box { width: min(180px, calc(100vw - 170px)); min-width: 130px; height: 36px; margin-left: auto; padding-inline: 8px; }
  .search-box kbd { display: none; }
  .page-shell { width: calc(100% - 36px); }
  .hero { min-height: 420px; margin-top: 18px; align-items: flex-start; }
  .hero-copy { width: 100%; padding: 33px 24px; }
  h1 { font-size: 53px; }
  .hero-copy > p { max-width: 330px; font-size: 13px; }
  .hero-art { left: 0; top: 220px; opacity: .8; }
  .hero-tile.tile-front { width: 113px; height: 125px; font-size: 63px; left: 43%; top: 17%; border-radius: 21px; }
  .hero-tile.tile-back { width: 83px; height: 95px; font-size: 48px; left: 23%; top: 9%; border-radius: 20px; }
  .hero-tile.tile-small { width: 59px; height: 61px; font-size: 31px; left: 68%; top: 52%; }
  .hero-orbit { width: 260px; height: 260px; left: 26%; top: 4%; }.orbit-two { width: 195px; height: 195px; left: 38%; top: 16%; }
  .hero-label { bottom: 15px; right: 15px; font-size: 8px; }
  .categories-section { padding-top: 27px; }
  .section-heading { gap: 17px; }
  h2 { font-size: 23px; }
  .category-list { gap: 7px; }
  .category-button { padding: 8px 10px; }
  .games-section { padding-top: 28px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 12px; }
  .game-art { height: clamp(120px, 38vw, 165px); }
  .art-emoji { font-size: 57px; }
  .game-info h3 { font-size: 12px; }.game-category { font-size: 9px; }
  .bottom-banner { margin-top: 43px; padding: 16px; gap: 12px; }
  .banner-icon { width: 40px; height: 40px; font-size: 20px; }.bottom-banner h2 { font-size: 16px; }
  .bottom-banner .section-kicker { font-size: 7px; }.banner-button { font-size: 10px; gap: 8px; padding: 9px; }
  .footer { gap: 10px; flex-wrap: wrap; padding-block: 25px; }.footer > span:last-of-type { order: 3; width: 100%; }
  .modal-panel { padding: 17px; }.game-stage { min-height: 265px; padding: 15px; }
}
@media (max-width: 380px) {
  .brand { font-size: 17px; }
  .search-box { width: min(160px, calc(100vw - 155px)); min-width: 120px; }.search-box input { font-size: 11px; }
  .game-info { align-items: flex-start; flex-direction: column; gap: 3px; }
  .category-button { font-size: 10px; }
}

:root {
  color-scheme: light;
  --bg: #eaf6ff;
  --panel: #f8fcff;
  --panel-light: #e2f2fc;
  --text: #19344c;
  --muted: #627f96;
  --purple: #318fc2;
  --pink: #45add8;
  --line: rgba(50, 117, 158, .16);
}

body { background: linear-gradient(180deg, #f5fbff 0, #eaf6ff 58%, #f4faff 100%); color: var(--text); }
.topbar { border-color: #cfe4f2; background: rgba(247, 252, 255, .94); }
.brand-mark { background: linear-gradient(140deg, #62c4e9, #318fc2); box-shadow: 0 5px 16px #318fc222; }
.brand-light, h1 span { color: #318fc2; }
.nav-link { color: #617d94; }
.nav-link:hover, .nav-link.active { color: #19344c; }
.nav-link.active::after { background: #45add8; }
.search-box { border-color: #cfe4f2; background: #fff; color: #607d94; }
.search-box input { color: #19344c; }
.search-box input::placeholder, .search-box kbd { color: #718ca1; }
.search-box kbd { border-color: #cfdfeb; }
.hero { border-color: #c7e3f2; background: radial-gradient(ellipse at 76% 52%, #bceaff88, transparent 40%), linear-gradient(110deg, #f8fcff 0%, #e9f6fd 55%, #dceffc 100%); }
.hero-art { background: radial-gradient(ellipse at 56% 48%, #9ddcf233, transparent 58%); }
.hero-orbit { border-color: #6db7d433; }
.orbit-two { border-color: #6db7d455; }
.eyebrow, .section-kicker { color: #3f8bb5; }
.live-dot { background: #45add8; box-shadow: 0 0 9px #45add855; }
.hero-copy > p { color: #58758b; }
.primary-button, .banner-button { background: #57b9df; color: #10364e; }
.primary-button:hover, .banner-button:hover { background: #7acced; }
.hero-note, .hero-note > span { color: #527c96; }
.hero-note i { background: #8fb6cd; }
.hero-label { color: #54758b; }
.hero-spark { color: #4b9bc1; text-shadow: none; }
.label-dot { background: #45add8; box-shadow: none; }
.category-button { border-color: #cfe4f2; background: #f8fcff; color: #58758b; }
.category-button:hover, .category-button.selected { border-color: #82c7e5; background: #d9f0fc; color: #174365; }
.heading-spark { color: #389dce; }
.game-count, .game-category { color: #66839a; }
.game-art { border-color: #c6dfed; }
.game-card:hover .game-art, .game-card:focus-visible .game-art { border-color: #66b7dc; }
.game-tag { border-color: #ffffffbb; background: #f8fcffe8; color: #24445b; }
.game-info h3 { color: #19344c; }
.game-play { background: #f8fcff; color: #174365; }
.empty-state { border-color: #adcfe2; color: #627f96; }
.bottom-banner { border-color: #b8deef; background: linear-gradient(105deg, #dff3fc, #f8fcff 78%); }
.banner-icon { background: #b9e6f7; }
.footer { color: #66839a; }
.footer a:last-child:hover { color: #247fae; }
.offline-status::before { box-shadow: none; }
.game-modal .modal-backdrop { background: #19344c66; }
.modal-panel { border-color: #c6dfed; background: #f8fcff; box-shadow: 0 25px 75px #1a4a6640; }
.close-button { border-color: #cfe4f2; background: #eaf6ff; color: #355c75; }
.close-button:hover { background: #d9f0fc; color: #19344c; }
.game-stage { border-color: #d4e8f3; background: radial-gradient(ellipse at center, #eff9ff, #e2f2fc 78%); }
.modal-hint { color: #617f96; }
.play-button, .game-action { background: #66c2e5; color: #10364e; }
.play-button:hover, .game-action:hover { background: #8bd5f0; }
.game-action:disabled { cursor: not-allowed; opacity: .55; }
.game-result, .game-score { color: #316d94; }
.ttt-cell, .rps-option, .mole, .rps-pick { border-color: #c9dfec; background: #f4faff; }
.ttt-cell { color: #397fa7; }
.ttt-cell:hover, .rps-option:hover, .mole:hover { background: #dff3fc; }
.rps-score { color: #286487; }
.rps-label, .rps-versus { color: #66839a; }
.memory-hud > * { border-color: #cfe4f2; background: #f1f9fe; color: #355c75; }
.memory-hud strong { color: #2879a5; }
.memory-card { border-color: #c3deed; background: linear-gradient(145deg, #d9eef9, #edf8fe); color: #265c7c; }
.memory-card.matched { border-color: #7ec9b1; background: #ddf5ed; }
.memory-card.memory-free { background: #fff4d5; color: #765b14; }
.chess-clock { border-color: #cfe4f2; background: #f1f9fe; color: #355c75; }
.chess-clock strong { color: #19344c; }
.chess-clock.active { border-color: #55b98b; background: #e4f8ef; box-shadow: 0 0 0 2px #55b98b30; }
.chess-mode-button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #318fc2; }
.mole { color: #24445b; }
.board-2048 { background: #c7e3f2; }
.tile-2048 { background: #b2cbd9; color: #23465d; }
.tile-value-2 { background: #f0f8fc; }.tile-value-4 { background: #d8eff9; }.tile-value-8 { background: #b6e4f5; }.tile-value-16 { background: #92d3ef; }.tile-value-32 { background: #70bfdf; }.tile-value-64 { background: #4da7cf; }.tile-value-128, .tile-value-256, .tile-value-512, .tile-value-1024, .tile-value-2048 { background: #318fc2; color: #fff; }
.game-column > .reflex-target { border-color: #91b7ca; background: radial-gradient(circle, #e4f3fb 55%, #d0e8f4 57%); color: #31576e; box-shadow: 0 0 0 8px #6a9bb218; }
.game-column > .reflex-target.ready { border-color: #48aa78; background: radial-gradient(circle, #83ddb0 55%, #65c796 57%); color: #17472f; box-shadow: 0 0 0 8px #48aa7822; }
.f1-lights { border-color: #cbdfea; background: #e4f1f8; box-shadow: 0 8px 25px #31566a1c; }
.stopwatch-clock { border-color: #cfe4f2; background: #eef8fd; color: #286487; }
.stopwatch-player { border-color: #cfe4f2; background: #f0f8fd; }
.stopwatch-player-label { color: #397fa7; }
.stopwatch-result { color: #316d94; }
.target-setting { color: #496a80; }
.target-select { border-color: #c3dce9; background: #fff; color: #24445b; }
.circle-canvas { border-color: #c4dfed; background: radial-gradient(ellipse at center, #f8fcff, #e5f3fa 82%); }
.sudoku-board { border-color: #61add3; background: #d3eaf5; }
.sudoku-cell { border-color: #c5dce8; background: #f6fbfe; color: #24445b; }
.sudoku-cell.given { background: #e6f2f8; color: #426c86; }
.sudoku-cell.selected { background: #b7e3f5; box-shadow: inset 0 0 0 2px #318fc2; }
.sudoku-cell.same-number { background: #d6eef9; }
.sudoku-cell.conflict { background: #ffe2e4; color: #9e4350; }
.modal-panel:has(.memory-game) .game-stage { background: #eaf6ff; }
.game-outcome { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 12px; background: #0a0c1677; text-align: center; animation: modal-in .18s ease-out; }
.game-outcome-card { display: grid; justify-items: center; gap: 8px; width: min(320px, 100%); max-height: 100%; overflow: auto; padding: 18px 20px; border: 1px solid #ffffff40; border-radius: 14px; background: #ddecf5; box-shadow: 0 16px 48px #0007; }
.game-outcome h3 { margin: 0; color: #19344c; font: 700 24px/1.15 "Space Grotesk", sans-serif; }
.game-outcome p { max-width: 280px; margin: 0 0 3px; color: #496a80; font-size: 12px; line-height: 1.5; }
.game-outcome-label { color: #318fc2; font-size: 10px; font-weight: 800; letter-spacing: 1.7px; }
.game-outcome-loss .game-outcome-label { color: #bd5365; }
.game-outcome-result .game-outcome-label { color: #4985a7; }
.modal-panel { width: min(1240px, 100%); max-height: 94dvh; padding: 20px; }
.modal-header { margin-bottom: 14px; }
.game-view-layout { display: grid; grid-template-columns: minmax(0, 1fr) 238px; align-items: start; gap: 17px; }
.game-main { min-width: 0; }
.game-stage { width: 100%; min-height: 0; aspect-ratio: 16 / 9; padding: 12px; overflow: auto; }
.game-column { max-width: 100%; max-height: 100%; gap: 8px; }
.game-column canvas, .game-stage .game-column > * { max-width: 100%; }
.modal-hint { margin-top: 9px; text-align: left; line-height: 1.5; }
.quick-pick { min-width: 0; padding: 15px; border: 1px solid #cfe4f2; border-radius: 12px; background: #f0f8fd; }
.recommendation-heading .section-kicker { margin-bottom: 5px; }
.recommendation-heading h3 { margin: 0; color: #19344c; font: 700 16px "Space Grotesk", sans-serif; }
.quick-game-card, .more-game-card { width: 100%; display: flex; align-items: center; gap: 11px; padding: 0; border: 0; background: transparent; color: #19344c; text-align: left; cursor: pointer; }
.quick-game-card { flex-direction: column; align-items: stretch; margin-top: 14px; }
.recommendation-art { display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid #c6dfed; border-radius: 10px; }
.recommendation-art > span { font-size: 35px; filter: drop-shadow(0 4px 4px #18344c30); }
.quick-game-card .recommendation-art { width: 100%; height: 124px; }
.quick-game-card .recommendation-art > span { font-size: 54px; }
.recommendation-details { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.recommendation-details strong { overflow: hidden; color: #19344c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.recommendation-details > span { color: #66839a; font-size: 10px; }
.quick-game-card:hover .recommendation-details strong, .more-game-card:hover .recommendation-details strong { color: #247fae; }
.quick-next { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; padding: 9px 10px; border: 1px solid #b9ddec; border-radius: 8px; background: #e1f3fc; color: #286487; cursor: pointer; font-size: 10px; font-weight: 700; }
.quick-next:hover { background: #d0edfa; }
.quick-next span { font-size: 16px; }
.more-games { margin-top: 17px; padding-top: 13px; border-top: 1px solid #d4e8f3; }
.more-games-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.more-game-card { min-width: 0; padding: 7px; border: 1px solid #d4e8f3; border-radius: 9px; background: #f3faff; transition: background .15s, border-color .15s; }
.more-game-card:hover { border-color: #82c7e5; background: #e7f6fd; }
.more-game-card .recommendation-art { width: 48px; height: 48px; border-radius: 7px; }
.more-game-card .recommendation-art > span { font-size: 26px; }
.modal-panel:has(.memory-game) { width: min(1240px, 100%); max-height: 94dvh; display: block; overflow: auto; }
.modal-panel:has(.memory-game) .game-stage { min-height: 0; padding: 12px; flex: initial; }
.modal-panel:has(.memory-game) .modal-hint { margin-top: 9px; }
.memory-grid { width: min(100%, 410px, calc(100dvh - 400px)); }
@media (max-width: 900px) {
  .game-view-layout { grid-template-columns: minmax(0, 1fr) 205px; gap: 12px; }
  .quick-pick { padding: 12px; }
  .quick-game-card .recommendation-art { height: 100px; }
  .more-games-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .modal-panel, .modal-panel:has(.memory-game) { width: 100%; max-height: 96dvh; padding: 14px; }
  .game-view-layout { grid-template-columns: minmax(0, 1fr); }
  .quick-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  .quick-pick .recommendation-heading { grid-column: 1 / -1; }
  .quick-game-card { grid-column: 1; flex-direction: row; align-items: center; margin-top: 0; }
  .quick-game-card .recommendation-art { width: 66px; height: 56px; }
  .quick-game-card .recommendation-art > span { font-size: 30px; }
  .quick-next { width: auto; margin-top: 0; }
  .more-games-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-game-card { padding: 5px; }
  .more-game-card .recommendation-art { width: 38px; height: 38px; }
  .more-game-card .recommendation-art > span { font-size: 21px; }
  .more-game-card .recommendation-details strong { font-size: 10px; }
  .game-page .game-stage { aspect-ratio: auto; overflow: visible; padding: 12px; }
  .game-page .game-column { max-height: none; }
  .memory-grid { width: min(100%, calc(100dvh - 380px)); }
}
  .game-page { min-height: 100vh; }
  .game-page-topbar { width: min(1240px, calc(100% - 40px)); min-height: 72px; display: flex; align-items: center; justify-content: space-between; margin-inline: auto; border-bottom: 1px solid #d4e8f3; }
  .game-page .brand-light { color: #318fc2; }
  .back-to-games { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #cfe4f2; border-radius: 9px; background: #f8fcff; color: #286487; font-size: 12px; font-weight: 700; }
  .back-to-games:hover { background: #e1f3fc; }
  .game-page-shell { width: min(1240px, calc(100% - 40px)); margin: 28px auto 0; }
  .game-page .game-modal { position: static; inset: auto; z-index: auto; display: block; padding: 0; }
  .game-page .game-modal .modal-backdrop { display: none; }
  .game-page .modal-panel, .game-page .modal-panel:has(.memory-game) { width: 100%; max-height: none; display: block; overflow: visible; padding: 22px; animation: none; }
  .game-page .modal-header h1 { margin: 0; font: 700 24px/1.2 "Space Grotesk", sans-serif; letter-spacing: -.7px; }
  .game-page .modal-header .section-kicker { margin-bottom: 5px; }
  .game-page .back-button { text-decoration: none; }
  .game-page .game-main { min-width: 0; }
  .game-page .game-stage { min-height: 0; }
  .game-page .modal-hint { margin-bottom: 0; }
.game-information { display: grid; grid-template-columns: minmax(0, 2fr) minmax(190px, 1fr); gap: 28px; margin-top: 25px; padding-top: 20px; border-top: 1px solid #ffffff16; color: var(--muted); font-size: 13px; line-height: 1.7; }
.game-information h2, .game-information h3 { color: var(--text); font-family: "Space Grotesk", sans-serif; }
.game-information h2 { font-size: 19px; }
.game-information h3 { margin: 18px 0 4px; font-size: 15px; }
.game-information p { margin-bottom: 9px; }
.game-information a { color: #80cfff; text-decoration: underline; text-underline-offset: 3px; }
.game-page .game-information a { color: #2379a4; }
.game-guide-related ul { padding-left: 20px; }
.game-guide-category { margin-top: 17px; }
.trust-page { min-height: 55vh; max-width: 900px; padding-block: 70px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.trust-page h1 { margin-bottom: 24px; color: var(--text); font-size: clamp(34px, 5vw, 52px); }
.trust-page h2 { margin-top: 32px; margin-bottom: 10px; color: var(--text); }
.trust-page a:not(.primary-button) { color: #80cfff; text-decoration: underline; text-underline-offset: 3px; }
  .game-page-footer { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
  @media (max-width: 620px) {
    .game-page-topbar, .game-page-shell, .game-page-footer { width: calc(100% - 24px); }
    .game-page-shell { margin-top: 14px; }
    .game-page .modal-panel, .game-page .modal-panel:has(.memory-game) { padding: 14px; }
    .game-page .modal-header h1 { font-size: 21px; }
  .game-information { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .trust-page { padding-block: 42px; font-size: 14px; }
  .trust-page h1 { letter-spacing: -1.5px; }
  }
@media (max-width: 620px) {
  .game-page { width: 100%; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  .game-page-topbar, .game-page-footer { display: none; }
  .game-page-shell { width: 100%; height: 100%; margin: 0; }
  .mobile-game-feed:not([hidden]) {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
  }
  .mobile-game-feed::-webkit-scrollbar { display: none; }
  .mobile-game-slide {
    width: 100%;
    height: 100%;
    min-height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .game-page .game-modal { display: none; }
  .game-page .game-modal .modal-backdrop { display: none; }
  .game-page .modal-panel, .game-page .modal-panel:has(.memory-game) { width: 100%; height: 100%; max-height: none; display: flex; flex-direction: column; overflow: hidden; gap: 0; padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); border: 0; border-radius: 0; box-shadow: none; }
  .game-page .modal-header { flex: 0 0 auto; margin-bottom: 6px; }
  .game-page .modal-header h1 { font-size: 18px; }
  .game-page .game-view-layout { display: flex; flex: 1 1 auto; flex-direction: column; align-items: stretch; min-height: 0; gap: 0; }
  .game-page .game-main { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
  .game-page .game-stage { flex: 1 1 auto; width: 100%; min-height: 0; max-height: 100%; aspect-ratio: auto; overflow: hidden; padding: 4px; }
  .game-page .game-column { width: 100%; max-height: 100%; gap: 4px; }
  .game-page .game-stage canvas { max-width: 100%; max-height: 100%; }
  .game-page .modal-hint, .game-page .quick-pick, .game-page .more-games, .game-page .game-information { display: none; }
  .game-page .chess-game { gap: 4px; }
  .game-page .chess-board { width: min(100%, 39dvh, 440px); }
  .game-page .fruit-canvas { width: min(100%, 44dvh, 440px); }
  .game-page .fruit-ninja-canvas { width: min(100%, calc((100dvh - 190px) * .786), 440px); }
  .game-page .table-tennis-canvas { width: min(100%, 460px); }
  .game-page .memory-grid { width: min(100%, calc(100dvh - 110px)); max-height: 100%; }
  .game-page .mobile-game-slide .modal-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .game-page .mobile-game-slide .modal-header { flex: 0 0 auto; margin-bottom: 8px; }
  .game-page .mobile-game-slide .modal-header h1 { font-size: 19px; }
  .game-page .mobile-game-slide .game-view-layout { display: flex; flex: 1 1 auto; flex-direction: column; align-items: stretch; min-height: 0; gap: 0; }
  .game-page .mobile-game-slide .game-main { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
  .game-page .mobile-game-slide .game-stage {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    max-height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    padding: 4px;
  }
  .game-page .mobile-game-slide .game-column { width: 100%; max-height: 100%; gap: 3px; }
  .game-page .mobile-game-slide .game-stage canvas { max-width: 100%; max-height: 100%; }
  .game-page .mobile-game-slide .sudoku-keypad { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 2px; }
  .game-page .mobile-game-slide .sudoku-keypad .game-action { min-width: 0; padding-inline: 0; }
  .game-page .mobile-game-slide .game-result { margin-top: 0; }
  .game-page .mobile-game-slide .modal-hint,
  .game-page .mobile-game-slide .quick-pick,
  .game-page .mobile-game-slide .more-games { display: none; }
  .game-page .mobile-game-slide .chess-board { grid-template: repeat(8, minmax(0, 1fr)) / repeat(8, minmax(0, 1fr)); width: min(100%, 42vh); }
  .game-page .mobile-game-slide .chess-cell { width: 100%; aspect-ratio: auto; height: 100%; font-size: clamp(20px, 8vw, 32px); }
  .game-page .mobile-game-slide .memory-grid { width: min(100%, calc(100dvh - 150px)); max-height: 100%; }
}
  @media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

  :root {
    color-scheme: dark;
    --bg: #080d1b;
    --panel: #111a2e;
    --panel-light: #18243c;
    --text: #eef5ff;
    --muted: #a4b3cb;
    --purple: #aa8bff;
    --pink: #ff6ba8;
    --line: rgba(153, 182, 230, .2);
  }

  body {
    color: var(--text);
    background-color: #080d1b;
    background-image:
      radial-gradient(ellipse at 12% 3%, #642fff1c, transparent 32%),
      radial-gradient(ellipse at 88% 18%, #09c8e112, transparent 30%),
      repeating-linear-gradient(0deg, transparent 0 59px, #91b9f008 60px),
      repeating-linear-gradient(90deg, transparent 0 59px, #91b9f008 60px);
    background-attachment: fixed;
  }

  .topbar {
    border-color: #9bb9ed24;
    background: #080d1be8;
    box-shadow: 0 8px 30px #03071155;
  }
  .brand-mark { background: linear-gradient(140deg, #a98aff, #39d8ec); box-shadow: 0 5px 20px #785bff55; }
  .brand-light, h1 span { color: #68d8f0; }
  .nav-link { color: #a1afc7; }
  .nav-link:hover, .nav-link.active { color: #f2f6ff; }
  .nav-link.active::after { background: linear-gradient(90deg, #b38bff, #42d9ed); box-shadow: 0 0 12px #68c8ff99; }
  .search-box { border-color: #7a92bd55; background: #101a2c; color: #aec1dd; box-shadow: inset 0 1px #ffffff08; }
  .search-box input { color: #f2f6ff; }
  .search-box input::placeholder, .search-box kbd { color: #97a8c3; }
  .search-box kbd { border-color: #526887; }

  .hero {
    border-color: #9c84ff55;
    background: radial-gradient(ellipse at 76% 52%, #8f48ff40, transparent 39%), linear-gradient(115deg, #10192c 0%, #111a31 54%, #1c1740 100%);
    box-shadow: 0 25px 80px #0207119c, inset 0 1px #ffffff12;
  }
  .hero-art { background: radial-gradient(ellipse at 56% 48%, #934aff33, transparent 58%); }
  .hero-art::before {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(ellipse, #25d9e516, transparent 66%);
    content: "";
    animation: arcade-glow 7s ease-in-out infinite alternate;
  }
  .hero-orbit { border-color: #b69aff30; }
  .orbit-two { border-color: #61d9ed45; }
  .eyebrow, .section-kicker { color: #9daeff; }
  .live-dot { background: #5ae6e2; box-shadow: 0 0 12px #5ae6e2; }
  h1 span {
    background: linear-gradient(90deg, #67e0f2 3%, #aa8bff 58%, #ff79bb 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero-copy > p { color: #b0bed5; }
  .primary-button, .banner-button {
    border: 1px solid #bcb1ff80;
    background: linear-gradient(105deg, #a88aff, #65d6eb);
    color: #11152a;
    box-shadow: 0 8px 24px #7157e64d, inset 0 1px #ffffff80;
  }
  .primary-button:hover, .banner-button:hover { background: linear-gradient(105deg, #bba6ff, #7be5f2); }
  .hero-note, .hero-note > span { color: #aebbd2; }
  .hero-note i { background: #7587a5; }
  .hero-label { color: #bac9e1; }
  .hero-spark { color: #7fe9f3; text-shadow: 0 0 18px #68d8f0; }
  .label-dot { background: #ff6eae; box-shadow: 0 0 12px #ff6eae; }

  .category-button {
    border-color: #7286ae55;
    background: #101a2c;
    color: #b0bed5;
    box-shadow: inset 0 1px #ffffff08;
  }
  .category-button:hover, .category-button.selected {
    border-color: #9a82ff;
    background: linear-gradient(120deg, #372b62, #14374b);
    color: #f5f3ff;
    box-shadow: 0 0 18px #8a69ff30;
  }
  .heading-spark { color: #6de4eb; }
  .game-count, .game-category { color: #9aabc5; }
  .game-card { transition: transform .2s ease; }
  .game-card:hover, .game-card:focus-visible { transform: translateY(-3px); }
  .game-art {
    border-color: #a9b9df40;
    box-shadow: 0 9px 24px #03081555, inset 0 1px #ffffff1c;
  }
  .game-card:hover .game-art, .game-card:focus-visible .game-art {
    border-color: #b5a0ff;
    box-shadow: 0 14px 35px #16103b88, 0 0 0 1px #b59dff66;
  }
  .game-tag { border-color: #ffffff55; background: #0b1120d9; color: #f4f4ff; }
  .game-info h3 { color: #edf4ff; }
  .game-play { background: #ebfaff; color: #17223c; box-shadow: 0 0 18px #7ce5ff55; }
  .empty-state { border-color: #7286ae77; color: #a4b3cb; }
  .bottom-banner {
    border-color: #a68aff55;
    background: linear-gradient(105deg, #201942, #111a2e 76%);
    box-shadow: 0 12px 35px #03081566;
  }
  .banner-icon { background: linear-gradient(145deg, #a88aff55, #55dcec35); }
  .footer { color: #9aaac4; }
  .footer a:last-child:hover { color: #71dff0; }
  .offline-status::before { box-shadow: 0 0 10px #58c99b77; }

  .game-modal .modal-backdrop { background: #030711d9; }
  .modal-panel {
    border-color: #879dc933;
    background: linear-gradient(145deg, #111a2d, #0c1323);
    box-shadow: 0 25px 100px #000b, 0 0 50px #5944a31a;
  }
  .close-button { border-color: #7186aa66; background: #18243b; color: #e0eaff; }
  .close-button:hover { background: #293958; color: #fff; }
  .game-stage {
    border-color: #7186aa44;
    background: radial-gradient(ellipse at 50% 45%, #1b2941, #0b1120 78%);
    box-shadow: inset 0 1px #ffffff08;
  }
  .modal-hint { color: #a7b7d0; }
  .play-button, .game-action {
    border: 1px solid #86ddec88;
    background: linear-gradient(110deg, #9b83ff, #5bd7e8);
    color: #10182b;
    box-shadow: inset 0 1px #ffffff77;
  }
  .play-button:hover, .game-action:hover { background: linear-gradient(110deg, #b19eff, #7be5f2); }
  .game-action:disabled { border-color: #50627f; background: #26334a; color: #8799b7; }
  .game-result, .game-score { color: #a9e9f3; }
  .ttt-cell, .rps-option, .mole, .rps-pick {
    border-color: #7186aa66;
    background: linear-gradient(145deg, #1b2941, #121c30);
    color: #d8caff;
    box-shadow: inset 0 1px #ffffff0b;
  }
  .ttt-cell:hover, .rps-option:hover, .mole:hover { background: #28395a; }
  .rps-score { color: #e0d7ff; }
  .rps-label, .rps-versus { color: #a9b7ce; }
  .memory-hud > * { border-color: #7186aa66; background: #17243a; color: #d6e7ff; }
  .memory-hud strong { color: #bba7ff; }
  .memory-card { border-color: #8b78d588; background: linear-gradient(145deg, #352d58, #1d2942); color: #eff6ff; }
  .memory-card.matched { border-color: #63d4ae; background: #1c443f; }
  .memory-card.memory-free { background: #4b4023; color: #ffe38b; }
  .chess-clock { border-color: #7186aa66; background: #17243a; color: #c8d8ef; }
  .chess-clock strong { color: #f4f7ff; }
  .chess-clock.active { border-color: #5fd6a7; background: #173b3a; box-shadow: 0 0 0 2px #5fd6a733; }
  .chess-mode-button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #93e5f0; }
  .chess-cell.light { background: #c6d4e5; color: #1a263a; }
  .chess-cell.dark { background: #46637e; color: #f5f7ff; }
  .chess-cell.selected { box-shadow: inset 0 0 0 4px #c4a0ff; }
  .chess-cell.target { box-shadow: inset 0 0 0 4px #6ae2b0; }
  .target-setting { color: #b5c4dc; }
  .target-select { border-color: #7186aa66; background: #16233a; color: #e5efff; }
  .sudoku-board { border-color: #77d9ed; background: #17243b; }
  .sudoku-cell { border-color: #617797; background: #111c30; color: #eff6ff; }
  .sudoku-cell.given { background: #1b2a43; color: #9fcbed; }
  .sudoku-cell.selected { background: #493c78; box-shadow: inset 0 0 0 2px #b79cff; }
  .sudoku-cell.same-number { background: #293955; }
  .sudoku-cell.conflict { background: #572c46; color: #ffc2d0; }
  .game-outcome { background: #08101f77; backdrop-filter: blur(2px); }
  .game-outcome-card { border-color: #7286ae66; background: #152137; }
  .game-outcome h3 { color: #f1f5ff; }
  .game-outcome p { color: #bfcee3; }
  .game-outcome-label { color: #72dbea; }

.bubble-hub-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding: 26px 30px;
  border: 1px solid #8e73d255;
  border-radius: 16px;
  background: radial-gradient(ellipse at 82% 50%, #865df128, transparent 38%), linear-gradient(110deg, var(--panel), var(--panel-light));
}
.bubble-hub-promo h2 { margin-bottom: 8px; }
.bubble-hub-promo p:not(.section-kicker) { max-width: 580px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.bubble-hub-promo .section-kicker { margin-bottom: 9px; }
.game-guide-faq { margin-top: 20px; }
.game-guide-faq h3 { margin-bottom: 10px; }
.game-guide-faq details, .bubble-faq details {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.game-guide-faq summary, .bubble-faq summary { padding: 12px 14px; color: var(--text); font-weight: 700; cursor: pointer; }
.game-guide-faq details p, .bubble-faq details p { margin: 0; padding: 0 14px 14px; color: var(--muted); }
.game-guide-copy > ul { padding-left: 20px; }

.contact-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 84% 8%, #8b5cff1b, transparent 29%),
    radial-gradient(ellipse at 7% 50%, #43d5e910, transparent 35%),
    var(--bg);
}
.contact-page .topbar { position: relative; }
.contact-shell { padding-top: 36px; }
.contact-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  min-height: 380px;
  overflow: hidden;
  border: 1px solid #a68aff45;
  border-radius: 22px;
  background: radial-gradient(ellipse at 76% 45%, #8b61ed2e, transparent 37%), linear-gradient(120deg, var(--panel), var(--panel-light));
  box-shadow: 0 24px 70px #0807182a, inset 0 1px #ffffff12;
}
.contact-hero-copy { z-index: 1; align-self: center; padding: 48px 0 48px 54px; }
.contact-hero-copy .section-kicker { margin-bottom: 17px; }
.contact-hero h1 {
  max-width: 580px;
  margin-bottom: 17px;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -3px;
}
.contact-hero h1 span {
  background: linear-gradient(100deg, #a58aff, #5edbe9 85%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-hero-copy > p:not(.section-kicker) { max-width: 470px; margin-bottom: 23px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.contact-hero .primary-button { gap: 14px; }
.contact-hero-art { position: relative; min-height: 340px; }
.contact-orbit { position: absolute; top: 50%; left: 50%; aspect-ratio: 1; border: 1px solid #a58aff24; border-radius: 50%; transform: translate(-50%, -50%); }
.contact-orbit-one { width: min(320px, 90%); }
.contact-orbit-two { width: min(220px, 65%); border-color: #57d9e444; }
.contact-art-controller {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 142px;
  height: 142px;
  place-items: center;
  border: 1px solid #ffffff35;
  border-radius: 34px;
  background: linear-gradient(145deg, #a47aff, #4bc5d6);
  box-shadow: 0 24px 65px #58439c66, inset 0 1px #ffffff88;
  font-size: 74px;
  transform: translate(-50%, -50%) rotate(-9deg);
}
.contact-art-bubble {
  position: absolute;
  top: 21%;
  right: 12%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid #ffffff54;
  border-radius: 18px;
  background: #fa70b5;
  box-shadow: 0 12px 30px #fc59a455;
  color: #fff;
  font-size: 23px;
  transform: rotate(12deg);
}
.contact-art-spark { position: absolute; top: 25%; left: 13%; color: #6de1ed; font-size: 35px; text-shadow: 0 0 16px #68d8f0; }
.contact-art-label { position: absolute; right: 18px; bottom: 29px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1.6px; }
.contact-content { padding-block: 55px 42px; }
.contact-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 19px; }
.contact-section-heading h2, .contact-founder h2 { font-size: 27px; }
.contact-section-heading > p { max-width: 350px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card {
  position: relative;
  display: flex;
  min-height: 225px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--panel), var(--panel-light));
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.contact-card::after { position: absolute; right: -40px; bottom: -74px; width: 170px; height: 170px; border: 1px solid #a47aff2b; border-radius: 50%; content: ""; }
.contact-card:hover, .contact-card:focus-visible { transform: translateY(-4px); border-color: #a47aff88; box-shadow: 0 15px 38px #211b3c22; }
.contact-card:focus-visible, .contact-founder-link:focus-visible, .bubble-play-link:focus-visible { outline: 2px solid #a47aff; outline-offset: 3px; }
.contact-card-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 18px; border: 1px solid #a47aff44; border-radius: 12px; background: #a47aff20; color: #9977e9; font-size: 20px; }
.contact-card-social .contact-card-icon { border-color: #58d5e944; background: #58d5e91b; color: #2496ac; }
.contact-card-kicker { margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.contact-card strong { color: var(--text); font: 700 20px "Space Grotesk", sans-serif; }
.contact-card-detail { margin-top: 5px; color: var(--muted); font-size: 12px; }
.contact-card-action { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 19px; color: #8d6ed9; font-size: 12px; font-weight: 800; }
.contact-card-social .contact-card-action { color: #1d8da5; }
.contact-founder {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 52px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff08;
}
.founder-avatar { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid #a47aff55; border-radius: 17px; background: linear-gradient(145deg, #a47aff44, #58d5e922); color: var(--text); font: 700 16px "Space Grotesk", sans-serif; }
.contact-founder .section-kicker { margin-bottom: 5px; }
.contact-founder h2 { margin-bottom: 5px; font-size: 18px; }
.contact-founder p:last-child { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.contact-founder strong { color: var(--text); }
.contact-founder-link { display: inline-flex; align-items: center; gap: 8px; color: #8d6ed9; font-size: 11px; font-weight: 800; white-space: nowrap; }
.contact-footer { padding-bottom: 26px; }

.bubble-hub { padding-top: 36px; padding-bottom: 20px; }
.bubble-hub-hero {
  position: relative;
  display: flex;
  min-height: 310px;
  align-items: center;
  overflow: hidden;
  padding: 40px 50px;
  border: 1px solid #718ee055;
  border-radius: 21px;
  background: radial-gradient(ellipse at 80% 47%, #38cde826, transparent 35%), linear-gradient(112deg, var(--panel), var(--panel-light));
}
.bubble-hub-copy { position: relative; z-index: 1; max-width: 56%; }
.bubble-hub-copy h1 { margin-bottom: 14px; font-size: clamp(40px, 5vw, 56px); letter-spacing: -2.8px; }
.bubble-hub-copy h1 span { color: #40b9cf; }
.bubble-hub-copy > p:not(.section-kicker) { max-width: 450px; margin-bottom: 21px; color: var(--muted); line-height: 1.75; }
.bubble-hub-art { position: absolute; inset: 0 0 0 60%; }
.bubble-hub-art span { position: absolute; display: grid; width: 83px; height: 83px; place-items: center; border: 1px solid #ffffff77; border-radius: 50%; background: linear-gradient(145deg, #ffffff50, #8b75f033); box-shadow: 0 15px 32px #142b4930, inset 0 2px #ffffff9e; font-size: 51px; }
.bubble-hub-art span:nth-child(1) { top: 24%; left: 20%; transform: rotate(-12deg); }
.bubble-hub-art span:nth-child(2) { top: 43%; left: 47%; transform: rotate(13deg); }
.bubble-hub-art span:nth-child(3) { top: 20%; left: 67%; transform: rotate(8deg); }
.bubble-hub-art span:nth-child(4) { top: 63%; left: 24%; transform: rotate(10deg); }
.bubble-hub-art i { position: absolute; top: 20%; right: 9%; color: #ed8dbc; font-size: 30px; }
.bubble-hub-copy-block { max-width: 900px; padding-block: 48px 30px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.bubble-hub-copy-block h2, .bubble-info-card h2, .bubble-faq h2 { margin-bottom: 13px; color: var(--text); font-size: 26px; }
.bubble-hub-copy-block p:last-child { margin-bottom: 0; }
.bubble-hub-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bubble-info-card { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, var(--panel), var(--panel-light)); color: var(--muted); font-size: 13px; line-height: 1.75; }
.bubble-info-card h2 { font-size: 22px; }
.bubble-info-card h3 { margin: 20px 0 6px; color: var(--text); font: 700 16px "Space Grotesk", sans-serif; }
.bubble-info-card ul, .bubble-info-card ol { padding-left: 21px; }
.bubble-info-card li { padding-left: 3px; margin-block: 5px; }
.bubble-info-card strong { color: var(--text); }
.bubble-tip-card { border-color: #8e73d255; background: radial-gradient(ellipse at 100% 0, #8b61ed1a, transparent 45%), linear-gradient(145deg, var(--panel), var(--panel-light)); }
.bubble-play-link { display: inline-flex; gap: 8px; margin-top: 9px; color: #3a91b5; font-weight: 800; }
.bubble-faq { max-width: 820px; padding-block: 44px 30px; }
.bubble-faq h2 { margin-bottom: 16px; }

@media (max-width: 720px) {
  .bubble-hub-promo { align-items: flex-start; flex-direction: column; padding: 21px; }
  .contact-shell, .bubble-hub { padding-top: 18px; }
  .contact-hero { grid-template-columns: 1fr; min-height: 0; }
  .contact-hero-copy { padding: 32px 25px 0; }
  .contact-hero h1 { font-size: clamp(38px, 9vw, 54px); }
  .contact-hero-art { min-height: 220px; }
  .contact-art-controller { width: 104px; height: 104px; border-radius: 27px; font-size: 55px; }
  .contact-orbit-one { width: 210px; }
  .contact-orbit-two { width: 150px; }
  .contact-art-bubble { top: 12%; right: 21%; }
  .contact-art-spark { top: 16%; left: 22%; }
  .contact-content { padding-block: 37px 29px; }
  .contact-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .contact-section-heading > p { max-width: none; }
  .contact-cards, .bubble-hub-columns { grid-template-columns: 1fr; }
  .contact-founder { grid-template-columns: auto 1fr; gap: 13px; padding: 17px; }
  .contact-founder-link { grid-column: 2; }
  .bubble-hub-hero { min-height: 0; align-items: flex-start; padding: 30px 24px; }
  .bubble-hub-copy { max-width: 100%; }
  .bubble-hub-art { display: none; }
  .bubble-hub-copy-block { padding-top: 34px; }
}
@media (max-width: 420px) {
  .contact-hero-copy { padding-inline: 20px; }
  .contact-hero h1 { letter-spacing: -2px; }
  .contact-card { min-height: 210px; }
  .contact-founder { align-items: start; }
  .bubble-hub-hero { padding-inline: 19px; }
  .bubble-hub-copy h1 { letter-spacing: -2px; }
}
  .game-outcome-loss .game-outcome-label { color: #ff83a6; }
  .game-outcome-result .game-outcome-label { color: #a9c4e2; }

  .quick-pick { border-color: #7286ae55; background: #111c30; }
  .recommendation-heading h3 { color: #e8f0ff; }
  .quick-game-card, .more-game-card { color: #e8f0ff; }
  .recommendation-art { border-color: #8ca3cc66; }
  .recommendation-details strong { color: #e8f0ff; }
  .recommendation-details > span { color: #9eafca; }
  .quick-game-card:hover .recommendation-details strong, .more-game-card:hover .recommendation-details strong { color: #75dff0; }
  .quick-next { border-color: #7297c277; background: #172b43; color: #bdefff; }
  .quick-next:hover { background: #203b59; }
  .more-games { border-color: #647a9d66; }
  .more-game-card { border-color: #647a9d66; background: #152137; }
  .more-game-card:hover { border-color: #7adced; background: #1a2b45; }
  .game-page-topbar { border-color: #768bac44; }
  .game-page .brand-light { color: #68d8f0; }
  .back-to-games { border-color: #7186aa66; background: #111c30; color: #bfefff; }
  .back-to-games:hover { background: #1d304c; }

  @keyframes arcade-glow {
    from { opacity: .45; transform: scale(.92); }
    to { opacity: .9; transform: scale(1.08); }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-art::before { animation: none; }
  }

  @media (max-width: 620px) {
    .hero { min-height: 600px; }
    .hero-copy { padding: 32px 22px; }
    h1 { font-size: clamp(32px, 10vw, 40px); letter-spacing: -2.2px; }
    .hero-art { top: 320px; opacity: .65; }
  }

  .slot-game { width: min(100%, 440px); padding: 24px; border: 1px solid #ffcb7366; border-radius: 20px; background: radial-gradient(ellipse at 50% 0, #e8498d35, transparent 55%), linear-gradient(145deg, #261638, #10182c); box-shadow: 0 15px 45px #070714aa, inset 0 1px #ffffff20; }
  .slot-title { color: #ffe58d; font: 800 clamp(20px, 5vw, 30px)/1 "Space Grotesk", sans-serif; letter-spacing: 3px; text-shadow: 0 0 18px #ffbe4f88; }
  .slot-reels { width: 100%; display: flex; justify-content: center; gap: clamp(7px, 2vw, 14px); padding: 12px; border: 2px solid #f2bd5d; border-radius: 14px; background: #080c18; box-shadow: inset 0 0 24px #0009, 0 0 20px #f2bd5d24; }
  .slot-reel { width: min(88px, 26vw); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #f7d58177; border-radius: 12px; background: linear-gradient(145deg, #f9f0dc, #d5b7e6); font-size: clamp(39px, 11vw, 64px); box-shadow: inset 0 2px #fff; }
  .slot-reel.spinning { animation: slot-roll .13s linear infinite alternate; }
  .slot-reel.slot-result { border-color: #fff3a0; box-shadow: 0 0 24px #ffdc51aa, inset 0 0 14px #fff8; }
  .slot-game .game-result { color: #ffe9a4; }
  .slot-game .game-action { min-width: 150px; font-size: 15px; }
  @keyframes slot-roll { from { transform: translateY(-4px); } to { transform: translateY(4px); } }

  .air-hockey-game { width: min(100%, 380px); }
  .air-hockey-canvas { display: block; width: min(300px, 100%); height: auto; border: 2px solid #77dced88; border-radius: 24px; background: #102c43; box-shadow: 0 12px 32px #06152699, 0 0 24px #52cde933; touch-action: none; }
  .air-hockey-game .game-action { min-width: 130px; }

  .jigsaw-game { width: min(100%, 470px); }
  .jigsaw-controls { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
  .jigsaw-controls .target-setting { gap: 8px; }
  .jigsaw-controls .target-select { max-width: min(190px, 45vw); }
  .jigsaw-board { width: min(100%, 390px, 50dvh); aspect-ratio: 1; display: grid; grid-template: repeat(var(--jigsaw-size, 3), minmax(0, 1fr)) / repeat(var(--jigsaw-size, 3), minmax(0, 1fr)); gap: 3px; overflow: hidden; padding: 5px; border: 1px solid #b69aff99; border-radius: 13px; background: #0d1424; box-shadow: 0 12px 36px #03071399, 0 0 24px #896aff20; }
  .jigsaw-tile { min-width: 0; min-height: 0; border: 1px solid #ffffff55; border-radius: 4px; background-repeat: no-repeat; cursor: pointer; transition: transform .14s, border-color .14s, box-shadow .14s; touch-action: manipulation; }
  .jigsaw-tile:hover { z-index: 1; transform: scale(.96); border-color: #8cecf3; }
  .jigsaw-tile.selected { z-index: 2; transform: scale(.92); border: 3px solid #ffdf79; box-shadow: 0 0 18px #ffe27a99; }
  .jigsaw-game .game-result { min-height: 20px; }

  .maze-game { width: min(100%, 400px); }
  .maze-canvas { display: block; width: min(100%, 320px, 38dvh); height: auto; border: 1px solid #75ddeb99; border-radius: 9px; background: #101a2a; box-shadow: 0 8px 25px #03081499, 0 0 20px #5de1d62b; }
  .maze-controls { display: grid; grid-template: repeat(2, 42px) / repeat(3, 48px); gap: 5px; }
  .maze-direction { min-width: 0; padding: 4px; font-size: 17px; touch-action: manipulation; }
  .maze-direction[aria-label="Move up"] { grid-area: 1 / 2; }
  .maze-direction[aria-label="Move left"] { grid-area: 2 / 1; }
  .maze-direction[aria-label="Move down"] { grid-area: 2 / 2; }
  .maze-direction[aria-label="Move right"] { grid-area: 2 / 3; }

  @media (max-width: 620px) {
    .slot-game { padding: 16px; }
    .air-hockey-canvas { width: min(260px, 100%); }
    .jigsaw-board { width: min(100%, 390px, 48dvh); }
    .maze-canvas { width: min(100%, 360px, 42dvh); }
  }

@media (max-width: 620px) {
  .game-page {
    width: 100%;
    height: auto !important;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .game-page-topbar, .game-page-footer { display: flex; }
  .game-page-topbar, .game-page-shell, .game-page-footer { width: calc(100% - 24px); }
  .game-page-topbar { min-height: 60px; }
  .game-page-shell { height: auto; margin: 12px auto; }
  .game-page .mobile-game-feed { display: none !important; }
  .game-page .game-modal { display: block; }
  .game-page .modal-panel, .game-page .modal-panel:has(.memory-game) {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    overflow: visible;
    padding: 14px;
    border: 1px solid #768bac44;
    border-radius: 14px;
  }
  .game-page .modal-header { align-items: flex-start; }
  .game-page .modal-header h1 { font-size: clamp(19px, 5vw, 24px); }
  .game-page .game-view-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .game-page .game-main { min-height: 0; }
  .game-page .game-stage {
    width: 100%;
    min-height: 320px;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    overflow: visible;
    padding: 8px;
  }
  .game-page .game-column { max-height: none; }
  .game-page .game-stage canvas { max-width: 100%; }
  .game-page .modal-hint, .game-page .quick-pick, .game-page .more-games, .game-page .game-information { display: block; }
  .game-page .quick-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .game-page .quick-pick .recommendation-heading { grid-column: 1 / -1; }
  .game-page .quick-game-card { grid-column: 1; flex-direction: row; align-items: center; margin-top: 0; }
  .game-page .quick-game-card .recommendation-art { width: 56px; height: 52px; }
  .game-page .quick-next { width: auto; margin-top: 0; }
  .game-page .game-information { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .game-page .more-games-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-page-footer { flex-wrap: wrap; justify-content: center; gap: 12px; padding-block: 18px; }
}
.game-page .game-stage { overflow: hidden; }
.game-page .game-column {
  max-height: none;
  transform: scale(var(--game-fit-scale, 1));
  transform-origin: center;
}

.game-engagement { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 14px; }
.engagement-button { min-height: 42px; padding: 8px 14px; border: 1px solid #7186aa66; border-radius: 9px; background: #17243a; color: #e8f0ff; cursor: pointer; font-size: 13px; font-weight: 700; }
.engagement-button:hover, .engagement-button[aria-pressed="true"] { border-color: #a98aff; background: #332957; }
.engagement-status { min-height: 1em; color: #a9e9f3; font-size: 12px; }
@media (max-width: 620px) { .game-engagement { margin-bottom: 10px; } }

.event-page { min-height: 100vh; overflow-x: clip; background-color: #080d1b; }
.event-topbar { position: static; gap: 30px; }
.event-shell { width: min(1040px, calc(100% - 40px)); margin: 48px auto 30px; }
.event-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, 680px); margin: 0 auto 28px; }
.event-picker-link { display: flex; flex-direction: column; gap: 4px; padding: 13px 16px; border: 1px solid #7286ae55; border-radius: 12px; background: #111a2e; color: #edf4ff; text-decoration: none; transition: border-color .15s, background .15s, transform .15s; }
.event-picker-link:hover { transform: translateY(-2px); border-color: #aa8bff; }
.event-picker-link.is-active { border-color: #aa8bff; background: linear-gradient(120deg,#372b6244,#14374b55); box-shadow: 0 0 18px #8a69ff22; }
.event-picker-link span { color: #9daeff; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
.event-picker-link strong { font: 700 15px "Space Grotesk",sans-serif; }
.event-rewards { margin: 0 auto 28px; padding: 17px; border: 1px solid #8371c655; border-radius: 16px; background: linear-gradient(120deg,#17152c,#101a2b 58%,#18202d); box-shadow: 0 12px 35px #0308153d; }
.event-rewards-heading { margin-bottom: 12px; text-align: center; }
.event-rewards-heading .section-kicker { margin: 0 0 4px; }
.event-rewards-heading h2 { margin: 0; color: #eef2ff; font: 700 17px "Space Grotesk",sans-serif; }
.event-reward-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.event-reward { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px; border: 1px solid #7286ae33; border-radius: 10px; background: #ffffff06; }
.event-reward-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 9px; font-size: 13px; font-weight: 900; }
.event-reward-icon.royal { border: 1px solid #ffd76a55; background: #b1832924; color: #ffd76a; font-size: 19px; }
.event-reward-icon.og, .event-reward-icon.elite { border: 1px solid #c4a0ff55; background: #7b4bd222; color: #c4a0ff; }
.event-reward strong { color: #f0ebff; font-size: 11px; letter-spacing: .5px; }
.event-reward p { margin: 3px 0 0; color: #a4b3cb; font-size: 10px; line-height: 1.4; }
.event-reward .bricks-royal-status { margin-top: 6px; color: #ffd76a; font-size: 10px; font-weight: 700; }
.event-intro { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.event-intro h1 { margin: 0 0 12px; font: 700 clamp(36px, 6vw, 58px)/1.05 "Space Grotesk", sans-serif; letter-spacing: -2px; }
.event-intro > p:not(.section-kicker) { color: #b0bed5; font-size: 16px; line-height: 1.7; }
.event-timer { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 12px; padding: 12px 20px; border: 1px solid #7286ae55; border-radius: 12px; background: #101a2c; }
.event-timer span, .event-board-heading > span { color: #9daeff; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.event-timer strong { color: #fff; font: 700 19px "Space Grotesk", sans-serif; }
.event-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.event-layout[hidden] { display: none; }
.event-layout.is-joining { grid-template-columns: minmax(0, 520px); justify-content: center; }
.event-layout.has-player { grid-template-columns: minmax(0, 760px); justify-content: center; }
.event-layout.has-player #event-join-card[hidden] { display: none !important; }
.event-layout.is-joining .event-contestant { text-align: center; }
.event-layout.is-joining .event-card-heading { justify-content: center; }
.event-layout.is-joining .event-private-note { max-width: 400px; margin-inline: auto; }
.event-layout.has-player .event-challenge { width: 100%; }
.event-bricks-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, .8fr); gap: 16px; }
.event-bricks-card { min-width: 0; }
.preview-pill { padding: 6px 9px; border: 1px solid #9b84ff66; border-radius: 999px; color: #cdbdff; background: #7a5bd222; font-size: 10px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
.preview-timer { border-color: #9b84ff44; }
.preview-timer strong { color: #d2c3ff; }
.bricks-hud { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0; color: #aebbd2; font-size: 13px; }
.bricks-hud strong { margin-left: 4px; color: #f1f4ff; font-size: 16px; font-variant-numeric: tabular-nums; }
.bricks-no-limit { color: #b9a7f6; font-size: 10px; font-weight: 900; letter-spacing: .7px; white-space: nowrap; }
.bricks-canvas { display: block; width: 100%; height: auto; border: 1px solid #7286ae55; border-radius: 12px; background: #10182e; touch-action: none; }
.bricks-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.bricks-actions > span { color: #a4b3cb; font-size: 11px; }
.bricks-profile-summary { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid #7286ae55; border-radius: 10px; background: #ffffff08; color: #aebbd2; font-size: 12px; overflow-wrap: anywhere; }
.bricks-profile-summary[hidden] { display: none; }
.bricks-profile-summary strong { color: #f3efff; font-size: 16px; }
.event-preview-note { margin: 12px 0 0; color: #8795ad; font-size: 11px; line-height: 1.55; }
.event-preview-note a { color: #a995ff; }
.event-bricks-profile { align-self: start; }
.event-bricks-layout:has(.event-bricks-card[hidden]) { grid-template-columns: minmax(0, 1fr); }
.event-bricks-layout:has(.event-bricks-card[hidden]) .event-bricks-profile { grid-column: 1; width: min(100%, 520px); justify-self: center; }
.event-bricks-card[hidden], .event-leaderboard[hidden] { display: none !important; }
.event-bricks-layout + .event-leaderboard { margin-top: 16px; }
.bricks-card-tools { display: flex; align-items: center; gap: 8px; }
.bricks-exit[hidden] { display: none; }
.bricks-scroll-lock { overflow: hidden; overscroll-behavior: none; }
.bricks-play-mode { position: fixed; inset-inline: 0; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none; touch-action: none; }
.bricks-play-mode .event-bricks-card { position: fixed; z-index: 9999; inset: 0; box-sizing: border-box; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; gap: 8px; width: 100%; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0; overflow: hidden; padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border: 0; border-radius: 0; }
.bricks-play-mode .event-card-heading { margin: 0; }
.bricks-play-mode .event-card-heading h2 { font-size: 18px; }
.bricks-play-mode .bricks-hud { margin: 0; }
.bricks-play-mode .bricks-canvas { justify-self: center; align-self: center; width: min(100%, calc((100dvh - 190px) * 1.5)); height: auto; max-height: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.bricks-play-mode .bricks-actions { min-width: 0; margin: 0; }
.bricks-play-mode .bricks-actions .event-primary-button { width: auto; min-width: 150px; flex: 0 0 auto; margin: 0; }
.bricks-play-mode .bricks-actions > span { flex: 1 1 160px; }
.bricks-play-mode .event-status { min-height: 0; margin: 0; }
.bricks-play-mode .event-preview-note { display: none; }
@media (max-height: 560px) {
  .bricks-play-mode .event-bricks-card { gap: 4px; padding-block: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-bottom)); }
  .bricks-play-mode .bricks-actions > span, .bricks-play-mode .preview-pill { display: none; }
  .bricks-play-mode .event-status { font-size: 10px; line-height: 1.2; }
}
.event-card { min-width: 0; padding: 22px; border: 1px solid #7286ae55; border-radius: 16px; background: linear-gradient(145deg, #111c30, #0d1525); box-shadow: 0 12px 35px #03081555; }
.event-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.event-card-heading .section-kicker { margin: 0 0 5px; }
.event-card-heading h2 { margin: 0; font: 700 22px "Space Grotesk", sans-serif; }
.event-private-note, .event-instructions { color: #aab9d0; font-size: 13px; line-height: 1.65; }
.event-primary-button, .event-secondary-button { min-height: 44px; padding: 10px 15px; border: 1px solid #a99aff88; border-radius: 9px; background: linear-gradient(105deg, #a88aff, #65d6eb); color: #11152a; cursor: pointer; font-weight: 800; }
.event-primary-button { width: 100%; margin-top: 9px; }
.event-primary-button:disabled, .event-secondary-button:disabled { opacity: .55; cursor: not-allowed; }
.event-profile { margin-top: 18px; }
.event-profile label { display: block; margin-bottom: 6px; color: #dceaff; font-size: 12px; font-weight: 700; }
.event-profile-row { display: flex; gap: 8px; }
.event-profile-row input { min-width: 0; flex: 1; border: 1px solid #526887; border-radius: 8px; padding: 10px; background: #0b1220; color: #f2f6ff; }
.event-profile > p { color: #aab9d0; font-size: 12px; }
.event-profile > p strong { color: #91e9f3; }
.event-sign-out { border: 0; padding: 4px 0; background: none; color: #9daeff; cursor: pointer; font-size: 12px; text-decoration: underline; }
.event-status { min-height: 1.4em; margin: 12px 0 0; color: #9daeff; font-size: 12px; line-height: 1.5; }
.reflex-event-target { width: 100%; min-height: 150px; margin-top: 5px; border: 1px solid #5ddfd888; border-radius: 14px; background: linear-gradient(145deg, #172d43, #12383d); color: #eaffff; cursor: pointer; font: 700 clamp(20px, 4vw, 28px) "Space Grotesk", sans-serif; transition: background .15s, transform .15s; touch-action: manipulation; }
.reflex-event-target:not(:disabled):active { transform: scale(.99); }
.reflex-event-target.is-ready { border-color: #80ffb0; background: linear-gradient(145deg, #158753, #0d704f); color: #fff; box-shadow: 0 0 30px #34e98b44; }
.reflex-event-target:disabled { cursor: not-allowed; opacity: .6; }
.event-leaderboard { margin-top: 16px; }
.event-board-heading { margin-bottom: 16px; }
.event-table-wrap { overflow-x: auto; }
.event-table-wrap table { width: 100%; border-collapse: collapse; text-align: left; }
.event-table-wrap th, .event-table-wrap td { padding: 12px 10px; border-bottom: 1px solid #7286ae33; }
.event-table-wrap th { color: #9daeff; font-size: 10px; letter-spacing: .7px; text-transform: uppercase; }
.event-table-wrap td { color: #e1eaff; font-size: 13px; }
.event-table-wrap tr > :first-child { width: 60px; }
.event-table-wrap .event-player-name { font-weight: 800; }
.event-name-tag { display: inline-flex; align-items: center; margin-right: 7px; padding: 2px 6px; border: 1px solid currentColor; border-radius: 5px; font-size: 9px; font-weight: 900; letter-spacing: .55px; line-height: 1.4; white-space: nowrap; vertical-align: 1px; }
.event-tag-og, .event-tag-elite { color: #c4a0ff; background: #7b4bd21e; }
.event-tag-royal { color: #ffd76a; background: #aa771c22; }
.event-og-name, .event-rank-gold .event-player-name.event-og-name { color: #d0b2ff !important; }
.event-podium-card h4.event-og-name { color: #d0b2ff; }
.event-rank-gold .event-player-name, .event-rank-gold > td:first-child { color: #ffd76a; }
.event-rank-silver .event-player-name, .event-rank-silver > td:first-child { color: #d8e0ee; }
.event-rank-bronze .event-player-name, .event-rank-bronze > td:first-child { color: #d99464; }
.event-rank-gold { background: linear-gradient(90deg, #f8c94d0f, transparent 70%); }
.event-rank-silver { background: linear-gradient(90deg, #c5d3e20b, transparent 70%); }
.event-rank-bronze { background: linear-gradient(90deg, #d184570d, transparent 70%); }
.event-results { display: grid; gap: 22px; margin-top: 8px; padding: 22px; border: 1px solid #8b7a4d88; border-radius: 16px; background: radial-gradient(ellipse at 50% 0%, #92763a35, transparent 52%), linear-gradient(145deg, #171d2b, #101624 70%); color: #f5f1e5; }
.event-results[hidden] { display: none; }
.event-results-showcase { width: 100%; min-height: 112px; display: flex; align-items: center; gap: 16px; padding: 16px 22px; border: 1px solid #d6bb6955; border-radius: 12px; background: linear-gradient(110deg, #202b3d, #182033 56%, #332b20); color: #f5f1e5; cursor: pointer; font: inherit; text-align: left; transition: border-color .16s, background .16s, transform .16s; }
.event-results-showcase:hover { border-color: #e7c96f99; background: linear-gradient(110deg, #253247, #1c263b 56%, #3a3022); }
.event-results-showcase:focus-visible { outline: 2px solid #a4fff1; outline-offset: 3px; }
.event-results-showcase:active { transform: translateY(1px); }
.event-results-showcase img { width: 78px; height: 78px; flex: 0 0 auto; object-fit: contain; padding: 7px; border: 1px solid #ffffff22; border-radius: 12px; background: #0b1220; }
.event-results-showcase > div { flex: 1; }
.event-results-showcase .section-kicker { margin: 0 0 4px; color: #e7c96f; }
.event-results-showcase h3 { margin: 0; font: 700 clamp(22px, 4vw, 30px)/1.15 "Space Grotesk", sans-serif; }
.event-results-action { flex: 0 0 auto; color: #9daeff; font-size: 12px; font-weight: 800; }
.event-results-details[hidden] { display: none; }
.event-podium { display: grid; justify-items: center; gap: 18px; }
.event-podium-card { width: min(100%, 300px); display: grid; justify-items: center; align-content: center; padding: 20px 22px; border: 1px solid #c8d3e044; border-radius: 14px; background: linear-gradient(150deg, #202c3e, #151e2e); text-align: center; }
.event-podium-winner { min-height: 220px; border-color: #f0cb6588; background: radial-gradient(ellipse at 50% 0%, #f0c85b24, transparent 66%), linear-gradient(150deg, #302a20, #191f2b); box-shadow: 0 12px 40px #0005, 0 0 32px #e6bc4820; }
.event-podium-medal { font-size: 30px; line-height: 1; }
.event-podium-label { margin: 9px 0 5px; color: #e7c96f; font-size: 10px; font-weight: 900; letter-spacing: 1.3px; text-transform: uppercase; }
.event-podium-card h4 { margin: 0; color: #fff; font: 700 22px/1.25 "Space Grotesk", sans-serif; overflow-wrap: anywhere; }
.event-podium-id { margin: 5px 0 12px; color: #9bacc7; font-size: 11px; }
.event-podium-time { padding: 7px 12px; border: 1px solid #83e4dc44; border-radius: 8px; background: #0c373655; color: #a4fff1; font: 700 17px "Space Grotesk", sans-serif; }
.event-podium-runners-up { width: min(100%, 650px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.event-podium-place-2 { border-color: #bccbe055; }
.event-podium-place-2 .event-podium-label { color: #d7e0ef; }
.event-podium-place-3 { border-color: #c5855c66; }
.event-podium-place-3 .event-podium-label { color: #e2a675; }
.event-results-empty { margin: 0; color: #b0bed5; text-align: center; }
.event-footnote { max-width: 760px; margin: 16px auto; color: #899ab5; font-size: 11px; line-height: 1.6; text-align: center; }
.event-footer { justify-content: center; gap: 18px; padding: 20px; }
.event-notification-stack { position: fixed; z-index: 10002; top: 12px; right: 12px; display: grid; gap: 8px; width: min(360px, calc(100vw - 24px)); pointer-events: none; }
.event-notification-toast { padding: 12px 14px; border: 1px solid #74efb188; border-radius: 10px; background: linear-gradient(120deg, #102a2aee, #17243cee); box-shadow: 0 8px 28px #0008; color: #e8fff6; font-size: 13px; font-weight: 700; line-height: 1.45; animation: event-toast-in .2s ease-out; }
@keyframes event-toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.main-nav a[href="/event-bricks.html"], .main-nav a[href="./event-bricks.html"] { display: inline-flex; align-items: center; gap: 7px; }
.event-nav-badge { padding: 3px 5px; border: 1px solid #53f0a177; border-radius: 5px; background: #11593c55; color: #8bffc0; font-size: 8px; font-weight: 900; letter-spacing: .5px; }
.event-nav-badge[data-phase="upcoming"] { border-color: #e7bb5577; background: #604a1a55; color: #ffdf85; }
.event-nav-badge[data-phase="review"] { border-color: #e7bb5577; background: #604a1a55; color: #ffdf85; }
.event-nav-badge[data-phase="results"] { border-color: #8b9bb355; background: #26324677; color: #bdc9dd; }
.multiplayer-marquee { position: relative; z-index: 2; overflow: hidden; border-bottom: 1px solid #a37aff55; background: linear-gradient(90deg, #201638, #132c43 50%, #261839); }
.multiplayer-marquee a { min-width: 0; min-height: 42px; display: flex; align-items: center; gap: 16px; padding: 7px max(18px, calc((100% - 1180px) / 2)); color: #f5efff; }
.multiplayer-marquee-badge { flex: 0 0 auto; border: 1px solid #b69aff75; border-radius: 5px; padding: 4px 7px; background: #a37aff25; color: #d3baff; font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.multiplayer-marquee-viewport { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; }
.multiplayer-marquee-track { width: max-content; display: flex; align-items: center; gap: 64px; animation: multiplayer-marquee 25s linear infinite; }
.multiplayer-marquee-track > span { color: #d9d3e6; font-size: 12px; font-weight: 600; }
.multiplayer-marquee-action { flex: 0 0 auto; color: #aee8f5; font-size: 11px; font-weight: 800; white-space: nowrap; }
@keyframes multiplayer-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .multiplayer-marquee-track { animation: none; } }
.event-profile-summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 12px; margin-top: 16px; padding: 12px; border: 1px solid #7286ae44; border-radius: 10px; background: #0b1322; }
.event-profile-summary > strong { color: #eff7ff; }
.event-profile-summary > span { grid-column: 1; color: #aab9d0; font-size: 11px; }
.event-profile-summary > span b { color: #91e9f3; }
.event-profile-summary .event-sign-out { grid-column: 2; grid-row: 1 / span 2; }
.event-personal-best { margin: 12px 0 0; padding: 11px 13px; border: 1px solid #68dfd455; border-radius: 9px; background: #10363766; color: #9cf4e8; font-size: 13px; font-weight: 800; }
.event-card[hidden], .event-profile[hidden], .event-profile-summary[hidden] { display: none; }
@media (max-width: 620px) {
  .event-rewards { padding: 13px; }
  .event-reward-list { grid-template-columns: minmax(0,1fr); gap: 7px; }
  .event-reward { padding: 9px; }
  .event-results { gap: 16px; padding: 14px; }
  .bricks-hud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; font-size: 11px; }
  .bricks-hud strong { font-size: 13px; }
  .event-bricks-layout { grid-template-columns: minmax(0, 1fr); }
  .event-picker { gap: 7px; margin-bottom: 22px; }
  .event-picker-link { padding: 11px 12px; }
  .event-picker-link strong { font-size: 13px; }
  .event-results-showcase { min-height: 88px; justify-content: flex-start; gap: 12px; padding: 12px; }
  .event-results-showcase img { width: 60px; height: 60px; }
  .event-podium-winner { min-height: 190px; }
  .event-podium-runners-up { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .event-podium-card { width: 100%; padding: 16px; }
  .event-layout.has-player { grid-template-columns: minmax(0, 1fr); }
  .event-layout.has-player .event-challenge { padding: 16px; }
  .event-profile-summary { grid-template-columns: minmax(0, 1fr) auto; padding: 10px; }
  .reflex-event-target { min-height: 190px; margin-top: 8px; touch-action: manipulation; }
  .event-personal-best { font-size: 12px; }
}
@media (max-width: 760px) {
  .multiplayer-marquee a { gap: 9px; padding-inline: 10px; }
  .multiplayer-marquee-track { gap: 28px; animation-duration: 20s; }
  .multiplayer-marquee-track > span { font-size: 11px; }
  .multiplayer-marquee-action { font-size: 10px; }
  .event-topbar { height: auto; min-height: 66px; gap: 14px; padding-inline: 14px; }
  .event-topbar .main-nav { gap: 14px; overflow-x: auto; }
  .event-topbar .nav-link { flex: 0 0 auto; font-size: 11px; }
  .event-shell { width: calc(100% - 24px); margin-top: 30px; }
  body.event-page { overflow-x: hidden; }
  .event-notification-stack { top: 8px; right: 8px; left: 8px; width: auto; }
  .event-notification-toast { padding: 10px 12px; font-size: 12px; text-align: center; }
  .event-layout { grid-template-columns: minmax(0, 1fr); }
  .event-card { padding: 17px; }
  .event-table-wrap th, .event-table-wrap td { padding: 10px 7px; font-size: 11px; }
  .event-intro > p:not(.section-kicker), .event-private-note, .event-instructions { text-align: left; }
  .event-intro > p:not(.section-kicker) { font-size: 14px; line-height: 1.6; }
  .event-reward p { font-size: 12px; line-height: 1.5; }
  .event-reward strong { font-size: 12px; }
  .event-board-heading { align-items: flex-start; }
  .event-board-heading > span { max-width: 115px; text-align: right; line-height: 1.4; }
}

/* Desktop library shelf and Trigger Originals honeycomb */
.library-section { margin-top: 32px; padding-top: 34px; border-top: 1px solid var(--line); }
.library-section .games-heading { align-items: flex-start; }
.library-grid { display: grid; max-width: 872px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 26px; }
.library-card { width: 100%; min-width: 0; }
.library-card .game-art { height: auto; aspect-ratio: 3 / 4; border-radius: 14px; }
.library-thumbnail { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; transition: transform .3s ease; }
.library-art-wbwwb::before { z-index: -1; inset: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(180deg, #10121a22 30%, #11131be8 100%); }
.library-art-wbwwb::after { display: none; }
.library-art-subway { background: radial-gradient(ellipse at 50% 38%, #ffe16e55, transparent 30%), linear-gradient(160deg, #85d8f5, #3576b2 58%, #193253); }
.library-art-subway::before { width: 150%; height: 58%; left: -25%; bottom: -31%; border-radius: 50%; background: repeating-linear-gradient(90deg, transparent 0 24%, #d9f1ff5c 25% 26%, transparent 27% 50%), linear-gradient(#344b68, #17253d); }
.library-art-subway::after { width: 70px; height: 70px; right: 22px; top: 78px; border: 0; background: #fff1b5aa; box-shadow: 0 0 35px #fff2b588; }
.library-art-subway .art-emoji { z-index: 1; font-size: 76px; filter: drop-shadow(0 9px 7px #101b3477); }
.library-art-subway .art-label { z-index: 1; }
.library-art-subway .game-tag { z-index: 2; }
.library-art-subway .library-thumbnail { object-position: center 35%; }
.library-art-subway::before, .library-art-subway::after { display: none; }
.library-card:hover .library-thumbnail, .library-card:focus-visible .library-thumbnail { transform: scale(1.045); }
.library-card .game-tag { z-index: 1; }
.library-card .game-info { display: block; }
.library-card .game-info h3 { white-space: normal; line-height: 1.4; }
.library-note { margin: 16px 0 0; color: var(--muted); font-size: 11px; }
.library-note a { color: #508fbd; text-decoration: underline; text-underline-offset: 3px; }
.originals-section { margin-top: 22px; padding-top: 33px; border-top: 1px solid var(--line); }
#originals .game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; gap: 8px 2px; padding: 12px 0 58px; }
#originals .game-card { position: relative; min-width: 0; isolation: isolate; }
#originals .game-card:nth-child(12n + 2), #originals .game-card:nth-child(12n + 4), #originals .game-card:nth-child(12n + 6),
#originals .game-card:nth-child(12n + 8), #originals .game-card:nth-child(12n + 10), #originals .game-card:nth-child(12n + 12) { transform: translateY(48px); }
#originals .game-art { height: 164px; border-radius: 0; border: 0; clip-path: polygon(25% 2%, 75% 2%, 100% 50%, 75% 98%, 25% 98%, 0 50%); filter: drop-shadow(0 5px 8px #18273822); }
#originals .game-art::before { width: 130px; height: 130px; left: -20px; bottom: -92px; }
#originals .game-art::after { width: 78px; height: 78px; right: -21px; top: -37px; }
#originals .art-emoji { font-size: 49px; transform: translateY(-10px); }
#originals .game-card:hover .art-emoji { transform: translateY(-14px) scale(1.04); }
#originals .game-tag { top: 25px; left: 50%; max-width: calc(100% - 38px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transform: translateX(-50%); padding: 4px 6px; font-size: 7px; }
#originals .art-label { display: none; }
#originals .game-play { top: 22px; right: 28px; bottom: auto; opacity: .9; }
#originals .game-info { position: absolute; z-index: 2; right: 16%; bottom: 27px; left: 16%; display: block; padding: 0; text-align: center; pointer-events: none; }
#originals .game-info h3 { display: -webkit-box; overflow: hidden; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 11px; line-height: 1.2; color: #fff; text-shadow: 0 1px 5px #000b; }
#originals .game-category { display: none; }
#originals .game-card:focus-visible { outline: 2px solid #389dce; outline-offset: 2px; border-radius: 8px; }
@media (min-width: 621px) and (max-width: 1050px) {
  #originals .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #originals .game-card:nth-child(12n + 2), #originals .game-card:nth-child(12n + 4), #originals .game-card:nth-child(12n + 6), #originals .game-card:nth-child(12n + 8), #originals .game-card:nth-child(12n + 10), #originals .game-card:nth-child(12n + 12) { transform: none; }
  #originals .game-card:nth-child(4n + 2), #originals .game-card:nth-child(4n + 4) { transform: translateY(40px); }
}
@media (max-width: 620px) {
  .library-grid { max-width: 100%; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px; padding: 2px 0 12px; }
  #originals .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 0; padding-bottom: 8px; }
  #originals .game-card:nth-child(n) { transform: none; }
  #originals .game-art { height: clamp(103px, 30vw, 138px); }
  #originals .art-emoji { font-size: clamp(35px, 10vw, 47px); }
  #originals .game-info { right: 14%; bottom: 19px; left: 14%; }
  #originals .game-info h3 { font-size: 10px; }
  #originals .game-tag { top: 18px; max-width: calc(100% - 28px); font-size: 6px; }
  #originals .game-play { top: 15px; right: 19px; width: 22px; height: 22px; }
}
@media (max-width: 380px) {
  #originals .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Restore the original rectangular Trigger Originals cards. */
#originals .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px 17px; padding: 0; }
#originals .game-card { isolation: auto; }
#originals .game-card:nth-child(n) { transform: none; }
#originals .game-art { height: 154px; border: 1px solid #ffffff13; border-radius: 13px; clip-path: none; filter: none; }
#originals .game-art::before { width: 175px; height: 175px; left: -42px; bottom: -122px; border-radius: 50%; }
#originals .game-art::after { display: block; width: 116px; height: 116px; right: -32px; top: -55px; border: 1px solid #ffffff30; border-radius: 50%; }
#originals .art-emoji { font-size: 64px; transform: translateY(-2px); }
#originals .game-card:hover .art-emoji { transform: translateY(-6px) scale(1.04); }
#originals .game-tag { top: 10px; left: 10px; max-width: none; overflow: visible; transform: none; padding: 5px 7px; font-size: 8px; white-space: normal; }
#originals .art-label { display: initial; }
#originals .game-play { top: auto; right: 11px; bottom: 11px; width: 28px; height: 28px; }
#originals .game-info { position: static; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 1px 0; text-align: left; pointer-events: auto; }
#originals .game-info h3 { display: block; overflow: hidden; white-space: nowrap; -webkit-line-clamp: initial; font-size: 13px; line-height: normal; color: var(--text); text-shadow: none; }
#originals .game-category { display: initial; }
#originals .game-card:focus-visible { outline: 0; border-radius: 0; }
@media (min-width: 621px) and (max-width: 900px) {
  #originals .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
  #originals .game-art { height: 145px; }
}
@media (max-width: 620px) {
  #originals .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 12px; padding-bottom: 0; }
  #originals .game-art { height: clamp(120px, 38vw, 165px); }
  #originals .art-emoji { font-size: 57px; }
  #originals .game-info { align-items: flex-start; flex-direction: column; gap: 3px; }
  #originals .game-info h3 { font-size: 12px; }
  #originals .game-category { font-size: 9px; }
}
@media (max-width: 380px) {
  #originals .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.event-instructions { margin-top: 8px; padding: 10px 12px; border: 1px solid #ffffff14; border-radius: 10px; background: #ffffff06; color: #aab9d0; font-size: 13px; line-height: 1.65; }
.event-instructions strong { color: #f1edff; }
.event-instructions ol { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 5px 0 0; padding-left: 20px; }
.event-reward:first-child { border-color: #ffdb674d; background: linear-gradient(110deg,#ffdb6712,transparent); }
