/* Sidebar-led AIM/WARMUP shell based on the approved Ember concept. */
html[data-site-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0a0a;
  --panel: #151110;
  --panel-2: #1c1513;
  --line: #4b342c;
  --text: #f6f0ee;
  --muted: #b2a49e;
  --lime: #ff825b;
  --cyan: #ffad82;
  --amber: #ff9a70;
  --red: #fa665d;
}

html[data-site-theme="dark"] body {
  background: radial-gradient(ellipse at 72% -10%, #35180f 0, transparent 44%), #0c0a0a;
}

/* Shared shell palette tokens: Ember is the reference; each other theme owns its surfaces and accents. */
html[data-site-theme="dark"] {
  --shell-bg:#0c0a0a; --shell-surface:#151110; --shell-surface-2:#1c1513; --shell-topbar-start:#17100f; --shell-topbar-end:#0e0c0c;
  --shell-frame:#4b342c; --shell-frame-soft:#56392d; --shell-frame-strong:#704531;
  --shell-hover:#261610; --shell-hover-edge:#70453188; --shell-hover-text:#fff6f1;
  --shell-accent:#ff825b; --shell-accent-2:#ff865d; --shell-accent-3:#ff744e;
  --shell-accent-soft:#ff966d; --shell-accent-warm:#ffad82; --shell-accent-gold:#ffad62;
  --shell-active-text:#170d09; --shell-text:#f3eae5; --shell-muted:#b2a49e;
  --shell-secondary:#e7dfdc; --shell-divider:#382923; --shell-track:#604238;
  --shell-shadow:#ff75422c; --shell-wash:#ff825b22; --shell-grid:#ff825b22;
  --shell-hero:#171111; --shell-hero-2:#100e0e; --shell-hero-3:#090a0c; --shell-promo:#391d16; --shell-ink:#05080b;
}
html[data-site-theme="arena"] {
  --shell-bg:#06131f; --shell-surface:#0a1b29; --shell-surface-2:#0d2233; --shell-topbar-start:#0a1b29; --shell-topbar-end:#06131f;
  --shell-frame:#244258; --shell-frame-soft:#28516b; --shell-frame-strong:#08bdf4;
  --shell-hover:#102a3a; --shell-hover-edge:#08bdf477; --shell-hover-text:#f2f7fb;
  --shell-accent:#08bdf4; --shell-accent-2:#25c8f5; --shell-accent-3:#008fc4;
  --shell-accent-soft:#83e4ff; --shell-accent-warm:#9af64b; --shell-accent-gold:#ffc83d;
  --shell-active-text:#06131f; --shell-text:#f2f7fb; --shell-muted:#a5b5c2;
  --shell-secondary:#c3d1dc; --shell-divider:#244258; --shell-track:#28516b;
  --shell-shadow:#08bdf433; --shell-wash:#08bdf422; --shell-grid:#08bdf422;
  --shell-hero:#0a1b29; --shell-hero-2:#081724; --shell-hero-3:#06131f; --shell-promo:#0d2d40; --shell-ink:#06131f;
}
html[data-site-theme="blackgreen"] {
  --shell-bg:#050706; --shell-surface:#0b0e0c; --shell-surface-2:#111512; --shell-topbar-start:#0b100c; --shell-topbar-end:#080b09;
  --shell-frame:#303832; --shell-frame-soft:#39483b; --shell-frame-strong:#9af64b;
  --shell-hover:#111b12; --shell-hover-edge:#9af64b66; --shell-hover-text:#f0f4f0;
  --shell-accent:#9af64b; --shell-accent-2:#a8ff61; --shell-accent-3:#72bf31;
  --shell-accent-soft:#b8ff7e; --shell-accent-warm:#9af64b; --shell-accent-gold:#c1f77d;
  --shell-active-text:#071006; --shell-text:#f0f4f0; --shell-muted:#a0aaa2;
  --shell-secondary:#d5dfdc; --shell-divider:#27342b; --shell-track:#425247;
  --shell-shadow:#9af64b22; --shell-wash:#9af64b20; --shell-grid:#9af64b20;
  --shell-hero:#101711; --shell-hero-2:#080b09; --shell-hero-3:#050706; --shell-promo:#152719; --shell-ink:#050706;
}
html[data-site-theme="vandal"] {
  --shell-bg:#050706; --shell-surface:#151518; --shell-surface-2:#2b2a2f; --shell-topbar-start:#1b1a1e; --shell-topbar-end:#151518;
  --shell-frame:#3b3a40; --shell-frame-soft:#4a484f; --shell-frame-strong:#ff2b3d;
  --shell-hover:#242328; --shell-hover-edge:#ff2b3d88; --shell-hover-text:#f3f1f3;
  --shell-accent:#ff2b3d; --shell-accent-2:#ff4352; --shell-accent-3:#d91f30;
  --shell-accent-soft:#ff6570; --shell-accent-warm:#ff8189; --shell-accent-gold:#ff8189;
  --shell-active-text:#151518; --shell-text:#f3f1f3; --shell-muted:#b5b2b7;
  --shell-secondary:#d5d2d6; --shell-divider:#343338; --shell-track:#4a484f;
  --shell-shadow:#ff2b3d2c; --shell-wash:#ff2b3d22; --shell-grid:#ff2b3d20;
  --shell-hero:#1b1a1e; --shell-hero-2:#151518; --shell-hero-3:#101013; --shell-promo:#242328; --shell-ink:#101013;
}

.app-shell {
  width: calc(100% - 24px);
  max-width: none;
  display: grid;
  grid-template-columns: clamp(238px, 14.45vw, 272px) minmax(0, 1fr) clamp(238px, 14.45vw, 272px);
  grid-template-rows: 68px minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 20px;
  row-gap: 14px;
  margin: 20px auto;
}

.topbar {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: 68px;
  padding: 7px 12px;
  justify-content: flex-start;
  gap: 14px;
  border: 1px solid var(--shell-frame);
  background: linear-gradient(110deg, var(--shell-topbar-start), var(--shell-topbar-end) 68%);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

/* Earlier HUD rules keep the header as a two-row grid; restore the intended
   single-row layout so language follows Home and login stays at the far edge. */
html[data-site-theme] .app-shell > .topbar {
  display: flex !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  height: 68px !important;
  min-height: 68px !important;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.top-nav {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: 0;
}

.topbar .top-nav .nav-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--shell-frame);
  background: var(--shell-surface);
  color: var(--shell-text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color .18s, background .18s, color .18s, transform .18s;
}

html[data-site-theme] .app-shell > .topbar .top-nav {
  order: 0;
  flex: 0 0 auto;
  margin-inline-end: 0 !important;
}

.topbar .top-nav .nav-link:hover,
.topbar .top-nav .nav-link:focus-visible,
.topbar .top-nav .nav-link[aria-current="page"] {
  border-color: var(--shell-accent);
  background: linear-gradient(180deg, var(--shell-surface-2), var(--shell-surface));
  color: var(--shell-accent-soft);
}

.top-nav-icon {
  color: var(--amber);
  font-size: 16px;
  line-height: 1;
}

.topbar .account-open-button {
  flex: 0 0 210px;
  min-width: 50px;
  width: 210px;
  margin-inline-start: auto;
  min-height: 42px;
  padding: 7px 10px;
  border-color: var(--shell-frame);
  background: var(--shell-surface);
}

.topbar .language-control {
  flex: 0 0 113px;
  width: 113px;
  min-width: 0;
  min-height: 42px;
  justify-content: space-between;
  border-color: var(--shell-frame);
  border-radius: 0;
  background: var(--shell-surface);
}

.app-sidebar {
  grid-column: 1;
  grid-row: 1 / 4;
  position: sticky;
  top: 20px;
  width: 100%;
  height: calc(100dvh - 40px);
  min-height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 11px 13px;
  border: 1px solid var(--shell-frame-soft);
  background:
    radial-gradient(ellipse at 0 0, color-mix(in srgb,var(--shell-accent) 16%,transparent) 0, transparent 32%),
    linear-gradient(155deg, var(--shell-surface-2) 0%, var(--shell-surface) 58%, var(--shell-bg) 100%);
  box-shadow: 0 18px 48px rgba(0,0,0,.32);
  clip-path: polygon(0 0, calc(100% - 23px) 0, 100% 23px, 100% 100%, 19px 100%, 0 calc(100% - 19px));
}

.sidebar-brand {
  min-height: 66px;
  flex: 0 0 auto;
  padding: 4px 9px 18px;
  border-bottom: 1px solid var(--shell-frame);
  font-size: 17px;
  letter-spacing: .035em;
  color: var(--shell-text);
}

.sidebar-brand .brand-mark {
  width: 35px;
  height: 35px;
  border: 1px solid var(--shell-accent);
}

.sidebar-brand .brand-mark span {
  width: 12px;
  height: 12px;
  background: var(--shell-accent);
  box-shadow: 0 0 16px var(--shell-accent);
}

.sidebar-nav {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--shell-track) transparent;
}

.sidebar-group {
  padding: 13px 0 15px;
  border-bottom: 1px solid var(--shell-divider);
}

.sidebar-settings-group {
  margin-top: 0;
  padding-top: 12px;
  border-top: 0;
  border-bottom: 0;
}

.sidebar-group-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0 9px 9px;
  color: var(--shell-accent);
  font: 700 10px/1.2 var(--display);
  letter-spacing: .14em;
}

.sidebar-group-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--shell-frame-soft), transparent);
}

.sidebar-link {
  width: 100%;
  min-height: 51px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--shell-secondary);
  text-align: start;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.25;
  transition: color .16s, background .16s, border-color .16s, box-shadow .16s;
}

/* Reset legacy top-navigation cues now that these controls live in the rail. */
.app-sidebar .sidebar-nav .sidebar-link[data-page-link] {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  color: var(--shell-secondary);
  box-shadow: none;
}

.app-sidebar .sidebar-nav .sidebar-link[data-page-link]:hover,
.app-sidebar .sidebar-nav .sidebar-link[data-page-link]:focus-visible {
  border-color: var(--shell-hover-edge);
  background: var(--shell-hover);
  color: var(--shell-hover-text);
}

.app-sidebar .sidebar-nav .sidebar-link[data-page-link="practice"],
.app-sidebar .sidebar-nav .sidebar-link[data-page-link="flashes"] {
  border-color: transparent;
  background: transparent;
  color: var(--shell-secondary);
}

.app-sidebar .sidebar-nav .sidebar-link[data-page-link="practice"]:hover,
.app-sidebar .sidebar-nav .sidebar-link[data-page-link="practice"]:focus-visible,
.app-sidebar .sidebar-nav .sidebar-link[data-page-link="flashes"]:hover,
.app-sidebar .sidebar-nav .sidebar-link[data-page-link="flashes"]:focus-visible {
  border-color: var(--shell-hover-edge);
  background: var(--shell-hover);
  color: var(--shell-hover-text);
}

.app-sidebar .sidebar-nav .sidebar-link[data-page-link][aria-current="page"] {
  border-color: var(--shell-accent);
  background: linear-gradient(105deg, var(--shell-accent-2), var(--shell-accent-3));
  color: var(--shell-active-text);
  font-weight: 750;
  box-shadow: 0 7px 20px var(--shell-shadow);
}

.app-sidebar .sidebar-nav .sidebar-link[data-page-link][aria-current="page"] .sidebar-icon,
.app-sidebar .sidebar-nav .sidebar-link[data-page-link][aria-current="page"] .sidebar-chevron {
  color: var(--shell-active-text);
}

.sidebar-icon {
  display: grid;
  place-items: center;
  color: var(--shell-accent);
  font: 700 22px/1 var(--display);
  text-align: center;
}

.sidebar-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-link[data-page-link="random-crosshair"] .sidebar-icon svg circle:nth-of-type(2) {
  fill: currentColor;
}

.sidebar-chevron {
  color: var(--shell-accent-soft);
  font-size: 19px;
  line-height: 1;
  opacity: .82;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  border-color: var(--shell-hover-edge);
  background: var(--shell-hover);
  color: var(--shell-hover-text);
}

.sidebar-link[aria-current="page"] {
  border-color: var(--shell-accent);
  background: linear-gradient(105deg, var(--shell-accent-2), var(--shell-accent-3));
  color: var(--shell-active-text);
  font-weight: 750;
  box-shadow: 0 7px 20px var(--shell-shadow);
}

.sidebar-link[aria-current="page"] .sidebar-icon,
.sidebar-link[aria-current="page"] .sidebar-chevron {
  color: var(--shell-active-text);
}

.sidebar-theme-panel {
  position: relative;
  box-sizing: border-box;
  align-self: flex-start;
  width: min(100%, 147px);
  flex: 0 0 auto;
  margin-top: 8px;
  margin-inline-start: 22px;
  padding: 8px;
  border: 1px solid var(--shell-frame-soft);
  background: linear-gradient(145deg, var(--shell-surface-2), var(--shell-surface) 72%);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.sidebar-theme-panel::before,
.sidebar-theme-panel::after {
  position: absolute;
  z-index: 2;
  height: 2px;
  background: var(--shell-accent);
  content: "";
  pointer-events: none;
}

.sidebar-theme-panel::before {
  top: 0;
  left: 8px;
  width: 26px;
}

.sidebar-theme-panel::after {
  right: 0;
  bottom: 7px;
  width: 18px;
}

.sidebar-theme-panel .sidebar-group-title {
  position: relative;
  z-index: 1;
  padding: 0 2px 7px;
}

.sidebar-theme-panel .sidebar-group-title::after {
  display: none;
}

.sidebar-theme-panel .theme-switch {
  position: relative;
  z-index: 1;
  width: auto;
  min-height: 0;
  padding: 0;
  justify-content: flex-start;
  gap: 11px;
  border: 0;
  background: transparent;
  clip-path: none;
}

.sidebar-theme-panel .theme-swatch {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-color: var(--shell-frame);
}

.sidebar-theme-panel .theme-swatch[aria-pressed="true"] {
  border-color: var(--shell-accent);
  box-shadow: 0 0 0 3px var(--shell-bg), 0 0 0 4px var(--shell-accent);
}

main {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  min-width: 0;
}

.page {
  padding: 7px 0 32px;
}

#page-home .hero {
  min-height: clamp(470px, 59vh, 565px);
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  border: 1px solid var(--shell-frame-soft);
  border-radius: 4px;
  background: linear-gradient(125deg, var(--shell-hero), var(--shell-surface) 58%, var(--shell-hero-3));
  box-shadow: 0 18px 48px rgba(0,0,0,.25);
}

#page-home .hero-copy {
  padding: clamp(30px, 3.6vw, 52px);
}

#page-home .hero h1 {
  color: var(--shell-text);
  font-size: clamp(43px, 4.2vw, 62px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

#page-home .hero h1 span {
  color: var(--shell-accent);
}

/* Keep the selected red theme visible in the Home hero title. */
html[data-site-theme="vandal"] #page-home .hero h1 span {
  color: #ff2b3d !important;
}

/* Crosshair Library surfaces follow the active theme instead of the old navy palette. */
html[data-site-theme] #page-crosshairs .crosshair-library-feature {
  border-color: var(--shell-frame) !important;
  background:
    radial-gradient(ellipse at 92% 0, var(--shell-wash), transparent 52%),
    linear-gradient(120deg, var(--shell-surface-2), var(--shell-surface) 72%) !important;
  box-shadow: 0 18px 48px var(--shell-shadow) !important;
}

html[data-site-theme] #page-crosshairs .crosshair-library-feature h1 {
  color: var(--shell-text) !important;
}

html[data-site-theme] #page-crosshairs .crosshair-library-feature .form-intro {
  color: var(--shell-muted) !important;
}

html[data-site-theme] #page-crosshairs .crosshair-library-hero-art {
  border-color: var(--shell-frame-soft) !important;
  background-color: var(--shell-surface) !important;
}

html[data-site-theme] #page-crosshairs .crosshair-count-badge {
  border-color: var(--shell-frame-soft) !important;
  background: var(--shell-surface-2) !important;
}

html[data-site-theme] #page-crosshairs .crosshair-count-badge > strong {
  color: var(--shell-accent-soft) !important;
  text-shadow: 0 0 14px var(--shell-shadow) !important;
}

html[data-site-theme] #page-crosshairs .crosshair-filters button,
html[data-site-theme] #page-crosshairs .crosshair-search {
  border-color: var(--shell-frame) !important;
  background: var(--shell-surface-2) !important;
  color: var(--shell-muted) !important;
}

html[data-site-theme] #page-crosshairs .crosshair-filters button:hover,
html[data-site-theme] #page-crosshairs .crosshair-filters button[aria-pressed="true"] {
  border-color: var(--shell-accent) !important;
  background: var(--shell-wash) !important;
  color: var(--shell-accent-soft) !important;
}

html[data-site-theme] #page-crosshairs .crosshair-search input {
  color: var(--shell-text) !important;
}

html[data-site-theme] #page-crosshairs .crosshair-search input::placeholder {
  color: var(--shell-muted) !important;
}

html[data-site-theme] #page-crosshairs .crosshair-preset-card {
  border-color: var(--shell-frame) !important;
  background: linear-gradient(150deg, var(--shell-surface-2), var(--shell-surface)) !important;
}

html[data-site-theme] #page-crosshairs .crosshair-preset-card:hover {
  border-color: var(--shell-accent) !important;
  box-shadow: 0 12px 30px var(--shell-shadow) !important;
}

/* Fixed game identity colors, independent of the selected site theme. */
html[data-site-theme] #page-crosshairs .crosshair-game-tabs,
html[data-site-theme] #page-random-crosshair .crosshair-game-tabs {
  border-color: #56392d !important;
  background: #17100f !important;
  box-shadow: inset 0 1px 0 #ff825b12;
}

html[data-site-theme] #page-crosshairs .crosshair-game-tabs button[data-library-game="valorant"],
html[data-site-theme] #page-random-crosshair .crosshair-game-tabs button[data-random-crosshair-game="valorant"] {
  border: 1px solid #ff465566 !important;
  background: linear-gradient(115deg, #ff46551c, #bd39441c 55%, #30202b1c) !important;
  color: #ffd9dc !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

html[data-site-theme] #page-crosshairs .crosshair-game-tabs button[data-library-game="cs2"],
html[data-site-theme] #page-random-crosshair .crosshair-game-tabs button[data-random-crosshair-game="cs2"] {
  border: 1px solid #f0ad3d66 !important;
  background: linear-gradient(115deg, #f0ad3d1c, #d77a281c 55%, #3539431c) !important;
  color: #ffe5ae !important;
}

html[data-site-theme] #page-crosshairs .crosshair-game-tabs button[data-library-game="valorant"].is-active,
html[data-site-theme] #page-random-crosshair .crosshair-game-tabs button[data-random-crosshair-game="valorant"].is-active {
  border-color: #ff4655 !important;
  background: linear-gradient(115deg, #ff4655, #bd3944 60%, #34212b) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px #ff46552b !important;
}

html[data-site-theme] #page-crosshairs .crosshair-game-tabs button[data-library-game="cs2"].is-active,
html[data-site-theme] #page-random-crosshair .crosshair-game-tabs button[data-random-crosshair-game="cs2"].is-active {
  border-color: #f0ad3d !important;
  background: linear-gradient(115deg, #f0ad3d, #d77a28 60%, #343943) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px #f0ad3d2b !important;
}

html[data-site-theme] #page-crosshairs .crosshair-game-tabs button[data-library-game]:hover,
html[data-site-theme] #page-random-crosshair .crosshair-game-tabs button[data-random-crosshair-game]:hover {
  filter: brightness(1.12);
}

/* Leave Ember as the reference; red applies to Vandal, green to Arena and Blackgreen. */
html[data-site-theme="vandal"] #page-home .hero h1 span {
  color: #ff2b3d !important;
}

html[data-site-theme="arena"] #page-home .hero h1 span,
html[data-site-theme="blackgreen"] #page-home .hero h1 span {
  color: #9af64b !important;
}

html[data-site-theme="vandal"] #page-home .hero-actions [data-page-link="warmup"],
html[data-site-theme="vandal"] #page-home .home-flash-cta {
  border-color: #ff2b3d !important;
  background: #151518 !important;
  color: #ff2b3d !important;
  box-shadow: inset 0 -2px #ff2b3d, 0 0 12px #ff2b3d18 !important;
}

html[data-site-theme="vandal"] #page-home .hero-actions [data-page-link="warmup"]:hover,
html[data-site-theme="vandal"] #page-home .home-flash-cta:hover {
  background: #2b2a2f !important;
  color: #ff2b3d !important;
}

html[data-site-theme="arena"] #page-home .hero-actions [data-page-link="warmup"],
html[data-site-theme="arena"] #page-home .home-flash-cta,
html[data-site-theme="blackgreen"] #page-home .hero-actions [data-page-link="warmup"],
html[data-site-theme="blackgreen"] #page-home .home-flash-cta {
  border-color: #9af64b !important;
  background: #9af64b !important;
  color: #071006 !important;
  box-shadow: 0 7px 24px #9af64b30 !important;
}

#page-home .eyebrow {
  color: var(--shell-muted);
}

#page-home .status-dot {
  background: var(--shell-accent);
  box-shadow: 0 0 10px var(--shell-accent);
}

#page-home .hero-description {
  max-width: 410px;
  color: var(--shell-muted);
}

#page-home .button-primary {
  border-color: var(--shell-accent);
  border-radius: 0;
  background: var(--shell-accent);
  color: var(--shell-active-text);
  box-shadow: none;
}

#page-home .button-primary:hover {
  background: var(--shell-accent-2);
}

#page-home .button-secondary {
  border-color: var(--shell-frame);
  border-radius: 0;
  background: var(--shell-surface);
  color: var(--shell-text);
}

#page-home .button-secondary:hover {
  border-color: var(--shell-accent);
}

#page-home .hero-visual {
  min-height: 100%;
  background: var(--shell-ink);
}

#page-home .hero-visual:not([data-demo-playing="true"]) .visual-grid {
  opacity: .18;
  background-image: linear-gradient(color-mix(in srgb,var(--shell-accent) 13%,transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb,var(--shell-accent) 13%,transparent) 1px, transparent 1px);
}

#page-home .hero-visual .visual-ring {
  border-color: color-mix(in srgb,var(--shell-accent-warm) 40%,transparent);
  box-shadow: 0 0 32px var(--shell-wash), inset 0 0 40px color-mix(in srgb,var(--shell-accent) 8%,transparent);
}

#page-home .hero-promo {
  min-height: 104px;
  padding: 25px 24px 17px;
  border-top: 1px solid color-mix(in srgb,var(--shell-accent) 16%,transparent);
  background: linear-gradient(180deg, color-mix(in srgb,var(--shell-surface) 88%,transparent), color-mix(in srgb,var(--shell-bg) 96%,transparent));
}

#page-home .hero-promo-kicker,
#page-home .hero-promo-sequence {
  color: var(--shell-accent-gold);
}

#page-home .home-flash-announcement,
#page-home .home-crosshair-announcement {
  min-height: 230px;
  margin-top: 19px;
  overflow: hidden;
  border: 1px solid var(--shell-frame-soft);
  border-radius: 4px;
  background: linear-gradient(115deg, var(--shell-promo), var(--shell-surface) 48%, var(--shell-hero-3) 100%);
}

#page-home .home-flash-announcement {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
}

#page-home .home-flash-art,
#page-home .home-crosshair-art {
  min-height: 230px;
}

#page-home .home-flash-copy,
#page-home .home-crosshair-copy {
  padding: clamp(23px, 3.2vw, 42px);
}

#page-home .home-flash-kicker,
#page-home .home-crosshair-kicker {
  color: var(--shell-accent-warm);
}

#page-home .home-flash-copy h2,
#page-home .home-crosshair-copy h2 {
  color: var(--shell-text);
}

.footer {
  grid-column: 2;
  grid-row: 3;
  width: 100%;
  margin-top: 0;
}

/* Keep the independence notice at the bottom, leaving the right ad rail empty. */
.site-legal-notice {
  grid-column: 2;
  grid-row: 4;
  width: 100%;
  margin: 0;
}

#page-about .page-heading {
  justify-content: flex-start;
  gap: 18px;
}

#page-about .page-heading .step-label {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--shell-frame-strong);
  background: linear-gradient(110deg, var(--shell-surface-2), var(--shell-surface));
  color: var(--shell-accent-warm);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
}

html[data-site-theme="arena"] .app-sidebar,
html[data-site-theme="blackgreen"] .app-sidebar,
html[data-site-theme="vandal"] .app-sidebar {
  background: linear-gradient(155deg, color-mix(in srgb, var(--panel) 94%, var(--lime) 6%), var(--bg));
  border-color: var(--line);
}

html[data-site-theme="arena"] .sidebar-group-title,
html[data-site-theme="blackgreen"] .sidebar-group-title,
html[data-site-theme="vandal"] .sidebar-group-title,
html[data-site-theme="arena"] .sidebar-icon,
html[data-site-theme="blackgreen"] .sidebar-icon,
html[data-site-theme="vandal"] .sidebar-icon {
  color: var(--lime);
}

html[data-site-theme="arena"] .sidebar-link[aria-current="page"],
html[data-site-theme="blackgreen"] .sidebar-link[aria-current="page"],
html[data-site-theme="vandal"] .sidebar-link[aria-current="page"] {
  border-color: var(--lime);
  background: var(--lime);
  color: #101414;
}

html[data-site-theme="arena"] .sidebar-link[aria-current="page"] .sidebar-icon,
html[data-site-theme="blackgreen"] .sidebar-link[aria-current="page"] .sidebar-icon,
html[data-site-theme="vandal"] .sidebar-link[aria-current="page"] .sidebar-icon {
  color: #101414;
}

html[data-site-theme="light"] .app-sidebar,
html[data-site-theme="light"] .topbar {
  border-color: #d5dfdc;
  background: linear-gradient(155deg, #fff, #f5f8f7);
}

html[data-site-theme="light"] .sidebar-brand,
html[data-site-theme="light"] .sidebar-group,
html[data-site-theme="light"] .sidebar-theme-panel {
  border-color: #d5dfdc;
}

html[data-site-theme="light"] .sidebar-brand,
html[data-site-theme="light"] .sidebar-link,
html[data-site-theme="light"] .topbar .top-nav .nav-link {
  color: #25312e;
}

@media (max-width: 1080px) {
  .app-shell {
    width: calc(100% - 24px);
    grid-template-columns: 211px minmax(0, 1fr) 211px;
    column-gap: 14px;
  }

  .topbar { gap: 8px; padding-inline: 8px; }
  html[data-site-theme] .app-shell > .topbar { flex-wrap: nowrap; }
  html[data-site-theme] .app-shell > .topbar .top-nav { order: 0; flex: 0 0 auto; }
  .topbar .account-open-button { flex-basis: 148px; width: 148px; }
  .topbar .top-nav .nav-link { padding-inline: 10px; }
  .topbar .language-control { flex: 0 0 113px; width: 113px; min-width: 0; }
  .sidebar-link { grid-template-columns: 28px minmax(0, 1fr) 12px; gap: 6px; font-size: 12px; }
}

@media (max-width: 850px) {
  .app-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 10px;
    margin: 12px auto;
  }

  html[data-site-theme] .app-shell > .topbar { grid-column: 1; grid-row: 1; height: auto !important; min-height: 62px !important; flex-wrap: wrap; }
  .app-sidebar {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    padding: 14px 12px 12px;
    clip-path: none;
  }
  .sidebar-brand {
    display: flex;
    min-height: 54px;
    padding: 0 8px 12px;
    align-items: center;
    font-size: 15px;
  }
  .sidebar-nav {
    flex: 0 0 auto;
    flex-direction: column;
    overflow: visible;
  }
  .sidebar-group {
    min-width: 0;
    display: block;
    padding: 11px 0 12px;
    border-bottom: 1px solid var(--shell-divider);
  }
  .sidebar-group-title { display: flex; padding: 0 8px 7px; }
  .sidebar-settings-group { margin: 0; border-top: 0; }
  .sidebar-link {
    width: 100%;
    min-height: 46px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 14px;
    gap: 8px;
    padding: 8px 10px;
    white-space: normal;
    text-align: start;
  }
  .sidebar-icon { font-size: 20px; }
  .sidebar-chevron { display: block; }
  .sidebar-theme-panel {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    margin-inline-start: 0;
    padding: 12px 10px;
  }
  .sidebar-theme-panel .sidebar-group-title { display: flex; padding: 0 2px; }
  .sidebar-theme-panel .theme-switch { width: 100%; justify-content: flex-start; }
  main { grid-column: 1; grid-row: 3; }
  .footer { grid-column: 1; grid-row: 4; }
  .site-legal-notice { grid-column: 1; grid-row: 5; }
  #page-home .hero { min-height: 0; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
  #page-home .hero-copy { padding: 28px; }
  #page-home .hero h1 { font-size: clamp(36px, 5vw, 50px); }
}

@media (max-width: 620px) {
  .app-shell { width: calc(100% - 16px); }
  .topbar { flex-wrap: wrap; height: auto; min-height: 60px; }
  .top-nav { flex: 1 1 100%; order: 3; justify-content: flex-start; overflow-x: auto; }
  .topbar .top-nav .nav-link { min-height: 40px; padding: 6px 9px; font-size: 11px; }
  .topbar .account-open-button { margin-inline-start: auto; }
  html[data-site-theme] .app-shell > .topbar .account-open-button { flex-basis: 116px; width: 116px; min-width: 0; }
  html[data-site-theme] .app-shell > .topbar .top-nav { order: 0; flex: 0 0 auto; }
  .topbar .language-control { flex: 0 0 113px; width: 113px; min-width: 0; min-height: 38px; }
  .app-sidebar { padding: 12px 10px 10px; }
  .sidebar-group { padding: 10px 0 11px; }
  .sidebar-group-title { padding-inline: 7px; }
  .sidebar-link { min-height: 44px; padding: 7px 8px; font-size: 12px; }
  .sidebar-theme-panel .theme-swatch { width: 27px; height: 27px; flex-basis: 27px; }
  #page-home .hero { grid-template-columns: 1fr; }
  #page-home .hero-copy { padding: 27px 22px 22px; }
  #page-home .hero h1 { font-size: clamp(38px, 10vw, 48px); }
  #page-home .hero-visual { min-height: 260px; }
  #page-home .hero-promo { min-height: 100px; padding: 25px 15px 14px; }
  #page-home .home-flash-announcement,
  #page-home .home-crosshair-announcement { grid-template-columns: 1fr; }
  #page-home .home-flash-art,
  #page-home .home-crosshair-art { min-height: 175px; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-link,
  .topbar .top-nav .nav-link { transition: none; }
}

/* Keep all three crosshair-count badges vivid and bold in Vandal Red. */
html[data-site-theme="vandal"] .crosshair-count-badge > strong,
html[data-site-theme="vandal"] #page-home .crosshair-count-badge > strong,
html[data-site-theme="vandal"] #page-crosshairs .crosshair-count-badge > strong,
html[data-site-theme="vandal"] #page-random-crosshair .crosshair-count-badge > strong {
  color: #ff1f35 !important;
  font-weight: 900 !important;
  text-shadow: 0 0 14px #ff1f3555 !important;
}

/* Menu workspace: home carousel crosshair slide layout. */
#page-home .hero-visual .hero-crosshair-card[hidden] {
  display: none !important;
}

#page-home .hero-visual .hero-crosshair-card:not([hidden]) {
  position: absolute;
  z-index: 8;
  inset: 0;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  border: 0;
  border-radius: 0;
  background: var(--shell-surface) !important;
  box-shadow: none;
}

#page-home .hero-visual .hero-crosshair-card::before,
#page-home .hero-visual .hero-crosshair-card .home-crosshair-art::before,
#page-home .hero-visual .hero-crosshair-card .home-crosshair-art::after {
  display: none !important;
  background: none !important;
}

#page-home .hero-visual .hero-crosshair-card .home-crosshair-art {
  min-height: 0;
  height: 100%;
  background: var(--shell-ink) !important;
  background-image: none !important;
}

#page-home .hero-visual .hero-crosshair-card .home-crosshair-effects { display: none !important; }

#page-home .hero-visual .hero-crosshair-card .home-crosshair-copy {
  position: relative;
  isolation: isolate;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  padding: clamp(18px, 2.5vw, 34px);
}

#page-home .hero-visual .hero-crosshair-card .home-crosshair-copy::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    radial-gradient(circle, color-mix(in srgb, var(--shell-accent-warm) 34%, transparent) 1.2px, transparent 1.5px),
    repeating-linear-gradient(132deg, transparent 0 92px, color-mix(in srgb, var(--shell-accent-warm) 6%, transparent) 92px 136px, transparent 136px 184px);
  background-size: 13px 13px, auto;
  opacity: .76;
}

#page-home .hero-visual .hero-crosshair-card .home-crosshair-copy h2 {
  font-size: clamp(25px, 3vw, 38px);
}

#page-home .hero-visual .hero-crosshair-card .home-crosshair-description {
  font-size: 12px;
}

#page-home .hero-visual[data-demo-crosshair="true"] > :is(.hero-demo-video, .hero-promo, .visual-grid, .visual-ring, .visual-crosshair, .hero-drill-target, .hero-drill-feedback, .visual-caption, .visual-orbit) {
  display: none !important;
}
@media (max-width: 620px) {
  #page-home .hero-visual .hero-crosshair-card:not([hidden]) {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, .72fr) minmax(0, 1.28fr);
  }
  #page-home .hero-visual .hero-crosshair-card .home-crosshair-copy { padding: 10px 14px 12px; }
  #page-home .hero-visual .hero-crosshair-card .home-crosshair-copy h2 { font-size: clamp(19px, 6vw, 25px); }
  #page-home .hero-visual .hero-crosshair-card .home-crosshair-kicker { margin-bottom: 5px; font-size: 8px; }
  #page-home .hero-visual .hero-crosshair-card .home-crosshair-description { margin: 6px 0 9px; font-size: 10px; }
  #page-home .hero-visual .hero-crosshair-card .home-crosshair-cta { width: auto; min-height: 34px; padding: 7px 10px; }
}

/* Restore the subtle theme-accent glow on the Vandal sidebar. */
html[data-site-theme="vandal"] .app-sidebar {
  background:
    radial-gradient(ellipse at 0 12%, color-mix(in srgb, var(--shell-accent) 16%, transparent) 0, transparent 34%),
    linear-gradient(155deg, color-mix(in srgb, var(--panel) 94%, var(--lime) 6%), var(--bg));
}

/* Keep Reaction pages aligned with the top bar; the viewport-height sidebar
   must not participate in sizing the content row. */
body.reaction-layout-active .app-shell {
  grid-template-rows: 68px auto auto auto;
  align-content: start;
}
body.reaction-layout-active .app-shell > .app-sidebar {
  position: fixed;
  inset-block-start: 20px;
  inset-inline-start: 12px;
  width: clamp(238px, 14.45vw, 272px);
  height: calc(100dvh - 40px);
  min-height: 0;
  z-index: 20;
}
body.reaction-layout-active .app-shell > main {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 0;
}

@media (max-width: 850px) {
  body.reaction-layout-active .app-shell {
    grid-template-columns: clamp(74px, 22vw, 190px) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 12px;
    row-gap: 10px;
    align-content: start;
  }
  body.reaction-layout-active .app-shell > .topbar { grid-column: 2; grid-row: 1; }
  body.reaction-layout-active .app-shell > .app-sidebar {
    grid-column: 1;
    grid-row: 1 / 5;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    width: clamp(74px, 22vw, 190px);
    height: calc(100dvh - 24px);
    padding-inline: 7px;
  }
  body.reaction-layout-active .app-shell > main { grid-column: 2; grid-row: 2; }
  body.reaction-layout-active .app-shell > .footer { grid-column: 2; grid-row: 3; }
  body.reaction-layout-active .app-shell > .site-legal-notice { grid-column: 2; grid-row: 4; }
}

@media (max-width: 620px) {
  body.reaction-layout-active .app-shell {
    grid-template-columns: 68px minmax(0, 1fr);
    column-gap: 8px;
  }
  body.reaction-layout-active .app-shell > .app-sidebar { inset-inline-start: 8px; width: 68px; padding: 10px 4px; }
  body.reaction-layout-active .sidebar-brand { justify-content: center; padding-inline: 0; font-size: 0; }
  body.reaction-layout-active .sidebar-brand .brand-mark { flex: none; }
  body.reaction-layout-active .sidebar-group-title,
  body.reaction-layout-active .sidebar-link > span:not(.sidebar-icon),
  body.reaction-layout-active .sidebar-theme-panel > .sidebar-group-title { display: none; }
  body.reaction-layout-active .sidebar-link { grid-template-columns: 1fr; justify-items: center; gap: 0; padding: 8px 2px; }
  body.reaction-layout-active .sidebar-theme-panel { align-items: center; padding: 8px 2px; }
  body.reaction-layout-active .sidebar-theme-panel .theme-switch { flex-direction: column; align-items: center; }
}

/* Apply the rail layout from the visible page itself as well, so it works
   during direct links and page restores before the router updates body state. */
.app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) {
  display: grid !important;
  grid-template-columns: clamp(238px, 14.45vw, 272px) minmax(0, 1275px) !important;
  grid-template-rows: 68px auto auto auto !important;
  justify-content: start !important;
  align-content: start !important;
  column-gap: 20px !important;
  row-gap: 14px !important;
}
.app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) > .topbar {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
}
.app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) > .app-sidebar {
  position: fixed !important;
  inset-block-start: 20px !important;
  inset-inline-start: 12px !important;
  width: clamp(238px, 14.45vw, 272px) !important;
  height: calc(100dvh - 40px) !important;
  min-height: 0 !important;
  z-index: 20 !important;
}
.app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) {
  grid-template-rows: 68px auto auto auto !important;
  align-content: start !important;
}
.app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) > main {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: start !important;
  margin-top: 0 !important;
  min-width: 0 !important;
  width: min(100%, 1275px) !important;
  max-width: 1275px !important;
  justify-self: start !important;
}
.app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) > .footer,
.app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) > .site-legal-notice {
  grid-column: 2 !important;
}
@media (min-width: 851px) and (max-width: 1599px) {
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) {
    grid-template-columns: clamp(238px, 14.45vw, 272px) minmax(0, 1fr) !important;
  }
}
.app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) > main > #page-reaction,
.app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) > main > #page-reaction-drills {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
@media (max-width: 850px) {
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) {
    grid-template-columns: clamp(74px, 22vw, 190px) minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto auto !important;
    column-gap: 12px !important;
    row-gap: 10px !important;
    align-content: start !important;
  }
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) > .topbar { grid-column: 2 !important; grid-row: 1 !important; }
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) > .app-sidebar {
    grid-column: 1 !important;
    grid-row: 1 / 5 !important;
    inset-block-start: 12px !important;
    inset-inline-start: 12px !important;
    width: clamp(74px, 22vw, 190px) !important;
    height: calc(100dvh - 24px) !important;
    padding-inline: 7px !important;
  }
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) > main { grid-column: 2 !important; grid-row: 2 !important; width: 100% !important; max-width: 100% !important; }
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) > .footer { grid-column: 2 !important; grid-row: 3 !important; }
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) > .site-legal-notice { grid-column: 2 !important; grid-row: 4 !important; }
}
@media (max-width: 620px) {
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) { grid-template-columns: 68px minmax(0, 1fr) !important; column-gap: 8px !important; }
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) > .app-sidebar { inset-inline-start: 8px !important; width: 68px !important; padding: 10px 4px !important; }
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) .sidebar-brand { justify-content: center; padding-inline: 0; font-size: 0; }
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) .sidebar-brand .brand-mark { flex: none; }
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) .sidebar-group-title,
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) .sidebar-link > span:not(.sidebar-icon),
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) .sidebar-theme-panel > .sidebar-group-title { display: none !important; }
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) .sidebar-link { grid-template-columns: 1fr; justify-items: center; gap: 0; padding: 8px 2px; }
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) .sidebar-theme-panel { align-items: center; padding: 8px 2px; }
  .app-shell:has(#page-reaction:not([hidden]), #page-reaction-drills:not([hidden])) .sidebar-theme-panel .theme-switch { flex-direction: column; align-items: center; }
}

/* Keep the Reaction page content compact even when the outer shell is wide. */
#page-reaction,
#page-reaction-drills {
  box-sizing: border-box !important;
  width: min(100%, 1200px) !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
}

/* Results use the selected theme's palette and reserve a right-hand score list. */
html[data-site-theme] .game-results-overlay {
  overflow: auto;
  padding: clamp(14px, 2vw, 28px);
}
.game-results-layout {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 860px) minmax(220px, 280px);
  align-items: center;
  gap: 18px;
  width: min(100%, 1180px);
  max-height: 100%;
  margin-inline: auto;
  transform: translateX(-1.2vw);
}
.game-results-layout:not(.has-practice-leaderboard) { grid-template-columns: minmax(0, 860px); transform: none; }
html[dir="rtl"] .game-results-card { direction: rtl; }
html[dir="rtl"] .practice-results-leaderboard { direction: rtl; text-align: right; }
html[data-site-theme] .game-results-card {
  width: 100% !important;
  max-height: min(92vh, 920px) !important;
  border-color: var(--shell-frame-strong) !important;
  background: radial-gradient(ellipse at 0 0, var(--shell-wash), transparent 52%), linear-gradient(145deg, var(--shell-surface), var(--shell-bg) 82%) !important;
  box-shadow: 0 24px 80px #000b, 0 0 0 1px color-mix(in srgb, var(--shell-accent) 12%, transparent) !important;
}
html[data-site-theme] .game-results-card .eyebrow,
html[data-site-theme] .game-results-card .game-results-actions > #deep-aim-open:not([hidden]) {
  color: var(--shell-accent-soft) !important;
}
html[data-site-theme] .game-results-card h2 { color: var(--shell-text) !important; }
html[data-site-theme] .game-result-stat {
  border-color: var(--shell-frame) !important;
  background: linear-gradient(145deg, var(--shell-surface-2), var(--shell-surface)) !important;
}
html[data-site-theme] .game-result-stat span,
html[data-site-theme] .game-result-score > span { color: var(--shell-muted) !important; }
html[data-site-theme] .game-result-stat strong,
html[data-site-theme] .game-result-score > strong { color: var(--shell-text) !important; }
html[data-site-theme] .game-result-score {
  background: radial-gradient(circle, var(--shell-surface-2), var(--shell-surface) 68%, var(--shell-bg) 82%) !important;
  box-shadow: inset 0 0 34px color-mix(in srgb, var(--shell-accent) 9%, transparent), 0 12px 34px #0005 !important;
}
html[data-site-theme] .game-result-score-ring .score-ring-base { stroke: var(--shell-frame-strong) !important; }
html[data-site-theme] .game-result-score-ring .score-ring-dots,
html[data-site-theme] .game-result-score-ring .score-ring-accent { stroke: var(--shell-accent) !important; }
html[data-site-theme] .game-results-actions > #deep-aim-open:not([hidden]) { border-color: var(--shell-frame-strong) !important; }
.practice-results-leaderboard {
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 22px 18px;
  border: 1px solid var(--shell-frame);
  border-radius: 14px;
  background: linear-gradient(150deg, var(--shell-surface-2), var(--shell-bg));
  box-shadow: 0 16px 40px #0007;
  color: var(--shell-text);
}
.practice-results-leaderboard[hidden] { display: none !important; }
.practice-results-leaderboard .eyebrow { margin: 0 0 8px; color: var(--shell-accent); font-size: 9px; letter-spacing: .13em; }
.practice-results-leaderboard h3 { margin: 0; color: var(--shell-text); font: 650 19px/1.2 var(--display); }
.practice-results-leaderboard-note { margin: 9px 0 17px; color: var(--shell-muted); font-size: 11px; line-height: 1.55; }
.practice-results-leaderboard ol { display: grid; flex: 1 0 auto; align-content: start; gap: 8px; margin: 0; padding: 0; list-style: none; }
.practice-results-leaderboard li { display: grid; grid-template-columns: 27px minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 45px; padding: 8px 10px; border: 1px solid var(--shell-frame); border-radius: 8px; background: var(--shell-surface); }
.practice-results-leaderboard li.is-current-run { border-color: var(--shell-accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--shell-accent) 18%, transparent); }
.practice-rank { color: var(--shell-accent-soft); font: 700 11px var(--display); }
.practice-results-leaderboard li strong { color: var(--shell-text); font: 700 17px var(--display); font-variant-numeric: tabular-nums; }
.practice-current-run { color: var(--shell-accent); font: 700 8px var(--display); letter-spacing: .06em; text-align: end; }
@media (max-width: 1100px) {
  .game-results-layout { grid-template-columns: minmax(0, 1fr) minmax(190px, 230px); gap: 10px; transform: none; }
  .practice-results-leaderboard { padding: 16px 12px; }
}
@media (max-width: 900px) {
  .game-results-layout { grid-template-columns: 1fr; width: 100%; max-height: none; }
  html[data-site-theme] .game-results-card { max-height: none !important; }
}
@media (max-width: 620px) {
  .game-results-layout, .game-results-layout:not(.has-practice-leaderboard) { grid-template-columns: 1fr; width: 100%; max-height: none; }
  html[data-site-theme] .game-results-card { max-height: none !important; }
  .practice-results-leaderboard { order: 2; }
  .practice-results-leaderboard ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keep the home carousel arrows visibly centered and slightly larger in every theme. */
#page-home .hero-visual .hero-demo-navigation button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--shell-accent) 60%, transparent);
  background: color-mix(in srgb, var(--shell-ink) 86%, transparent);
  color: var(--shell-accent-warm);
  box-shadow: 0 5px 18px #0009, inset 0 0 0 1px color-mix(in srgb, var(--shell-accent) 12%, transparent);
  backdrop-filter: blur(7px);
}
#page-home .hero-visual .hero-demo-navigation button:hover,
#page-home .hero-visual .hero-demo-navigation button:focus-visible {
  border-color: var(--shell-accent);
  background: var(--shell-accent);
  color: var(--shell-active-text);
  box-shadow: 0 0 20px color-mix(in srgb, var(--shell-accent) 35%, transparent);
  transform: translateY(-50%) scale(1.08);
}
#page-home .hero-visual .hero-demo-navigation button .hero-demo-arrow-icon {
  display: block;
  width: 21px;
  height: 21px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 560px) {
  #page-home .hero-visual .hero-demo-navigation button {
    width: 38px;
    height: 38px;
  }
  #page-home .hero-visual .hero-demo-navigation button .hero-demo-arrow-icon {
    width: 19px;
    height: 19px;
  }
}

html.warmup-results-active #game-canvas-wrap .game-results-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  box-sizing: border-box;
}
html.warmup-results-active #game-canvas-wrap .game-results-layout,
html.warmup-results-active #game-canvas-wrap .game-results-layout:not(.has-practice-leaderboard) {
  width: min(100%, 860px);
  max-height: 100%;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
  transform: none;
}
