/* Site palette. The arena and maze keep their own palettes. */
html {background:#000;color-scheme:dark}
body[data-view] {background:#000;color:#f4f4f2}
body[data-theme=night] {
  color-scheme:dark;
  --page:#000;--panel:#141414;--line:#4a4e54;--ink:#f4f4f2;--muted:#c9cdd2;
  --accent:#eef0f2;--active:#282a2d;--shadow:0 12px 30px #0006;
  color:var(--ink)
}
body[data-view=home] .game-header .top-actions {display:none}
body[data-view=home] .shell .game-header {grid-template-rows:auto;padding:16px 0}
.game-header {border-bottom:1px solid #4a4e54}
.game-header .anniversary-logo {background:transparent}
body[data-view=home] .home-view {padding-top:clamp(28px,5vw,56px)}
.home-view .game-tile {border-radius:7px;background:linear-gradient(115deg,#18191b,#101011);border:1px solid #4a4e54;color:#f4f4f2;box-shadow:none}
.home-view .game-tile-icon {background:#26282a;border-radius:5px}
.home-view .home-game-number {color:#b9bec4;font-weight:700}
.home-view .game-tile-arrow {color:#c9cdd2}
.home-view .game-tile:is(:hover,:focus-visible) {border-color:#eef0f2;background:#242628}
.home-view .game-tile:focus-visible {outline:2px solid #eef0f2;outline-offset:4px}
body[data-view] .game-header :is(.gorilla-nav-button,.settings-button) {background:#141414;border-color:#4a4e54}
body[data-view] .game-header :is(.gorilla-nav-button,.settings-button):hover {background:#282a2d;border-color:#c9cdd2}
body[data-view] dialog {background:#141414;color:#f4f4f2;border-color:#4a4e54}
body[data-view] dialog :is(.primary-button,.name-submit) {background:#d7dade;color:#111}
body[data-view] dialog :is(.primary-button,.name-submit):hover {background:#eef0f2}
body[data-view] .game-heading h1,body[data-view] .pango-heading h1 {color:#eef0f2}
body[data-view] :is(.leaderboard-panel,.pango-side-rank) {background:#141414;color:#f4f4f2;border-color:#4a4e54}

.scene-option {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:18px 0;font-weight:600}
.scene-option select {min-height:44px;padding:7px 12px;border:1px solid var(--line);border-radius:6px;background:var(--page);color:var(--ink);font:inherit}
.scene-option select:focus-visible {outline:2px solid var(--accent);outline-offset:3px}