/* Mega XOXO Neon is the browser default; retained palettes remain isolated. */
.gb-stage {
  color-scheme: dark;
  --gb-surface: #040c18;
  --gb-raised: #0b1320;
  --gb-ink: #f3f7ff;
  --gb-muted: #a9c4e6;
  --gb-line: #4b5f78;
  --gb-mini-border: #3c506c;
  --gb-x: #39cfff;
  --gb-o: #ff63b6;
  --gb-route: #17b7ff;
  --gb-focus: #a2e5ff;
  --gb-radius: 12px;
  --gb-font: 'Space Grotesk', system-ui, sans-serif;
  --gb-title: var(--gb-font);
  width: 100%;
  max-width: 530px;
  margin: 0 auto;
  color: var(--gb-ink);
  font-family: var(--gb-font);
}
.gb-frame {
  position: relative;
  padding: 17px 22px 19px;
  border: 1px solid #1da6ff;
  border-radius: 27px;
  background: linear-gradient(150deg, rgba(2, 10, 21, .96), rgba(5, 13, 29, .96));
  box-shadow: 0 0 0 2px rgba(26, 70, 150, .26), inset 0 0 13px rgba(47, 130, 255, .16), 0 0 24px rgba(0, 116, 255, .22);
}
.gb-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #17caff, transparent 45%, #718bff 85%, #37bdff) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.gb-hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; min-height: 40px; }
.gb-player { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gb-player b { display: block; font-size: 14px; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.gb-player small { display: block; color: var(--gb-muted); font-size: 11px; margin-top: 3px; }
.gb-player--right { justify-content: flex-end; text-align: right; }
.gb-avatar { width: 41px; height: 41px; display: grid; place-items: center; flex-shrink: 0; border: 2px solid currentColor; border-radius: 50%; }
.gb-avatar--x { color: var(--gb-x); background: rgba(15, 104, 188, .13); box-shadow: 0 0 8px rgba(20, 166, 255, .3); }
.gb-avatar--o { color: var(--gb-o); background: rgba(145, 20, 89, .2); box-shadow: 0 0 8px rgba(255, 57, 165, .2); }
.gb-avatar .gb-mark { width: 31px; height: 31px; }
.gb-hud-spacer { width: 12px; }
.gb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 460px; margin: 13px auto 0; aspect-ratio: 1; }
.gb-mini {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  min-width: 0;
  aspect-ratio: 1;
  padding: 4px;
  overflow: hidden;
  border: 1px solid var(--gb-mini-border);
  border-radius: var(--gb-radius);
  background: linear-gradient(150deg, #0d1625, #0c121d);
  box-shadow: 0 0 0 4px rgba(38, 52, 76, .3), inset 0 1px 2px rgba(193, 217, 255, .09), 0 3px 7px #0007;
}
.gb-mini--active { border-color: var(--gb-route); box-shadow: 0 0 0 2px var(--gb-route), inset 0 0 10px rgba(23, 161, 255, .55), 0 0 12px var(--gb-route), 0 0 20px rgba(45, 135, 255, .35); }
.gb-cell {
  display: grid;
  place-items: center;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gb-ink);
  min-width: 0;
  min-height: 0;
  cursor: default;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.gb-cell:not(:nth-child(3n)) { border-right: 1px solid var(--gb-line); }
.gb-cell:nth-child(-n+6) { border-bottom: 1px solid var(--gb-line); }
.gb-cell--legal { cursor: pointer; }
.gb-cell--legal:hover { background: rgba(35, 153, 255, .13); }
.gb-cell--legal:active { background: rgba(35, 153, 255, .24); }
.gb-cell:focus-visible { outline: 2px solid var(--gb-focus); outline-offset: -4px; z-index: 2; }
.gb-mark { display: block; width: 79%; height: 79%; overflow: visible; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; }
.gb-mark--x { color: var(--gb-x); filter: drop-shadow(0 0 3px var(--gb-x)) drop-shadow(0 0 6px #137eff); }
.gb-mark--o { color: var(--gb-o); filter: drop-shadow(0 0 3px var(--gb-o)) drop-shadow(0 0 6px #dc217c); }
.gb-move-dot { width: 12px; height: 12px; border-radius: 50%; background: #1c71c3; opacity: .65; }
.gb-cell--legal:hover .gb-move-dot { opacity: 1; box-shadow: 0 0 10px var(--gb-x); }
.gb-claim { display: grid; place-items: center; position: absolute; inset: 0; background: color-mix(in srgb, var(--gb-raised) 86%, transparent); pointer-events: none; font-size: 14px; font-weight: 800; letter-spacing: .06em; }
.gb-claim .gb-mark { width: 70%; height: 70%; }
.gb-mini--claimed .gb-cell .gb-mark { visibility: hidden; }
.gb-mini--winning { outline: 3px solid var(--gb-route); outline-offset: 2px; }
.gb-turn-strip { display: flex; align-items: center; gap: 11px; min-height: 60px; margin: 5px 16px 0; padding: 9px 12px; border: 1px solid #42648b; border-radius: 20px; background: linear-gradient(130deg, rgba(4, 17, 38, .94), rgba(5, 14, 29, .95)); box-shadow: inset 0 1px rgba(156, 199, 255, .09); }
.gb-turn-icon { display: grid; place-items: center; width: 31px; height: 31px; flex-shrink: 0; border: 1px solid currentColor; border-radius: 50%; font-size: 22px; }
.gb-turn-icon--x { color: var(--gb-x); }
.gb-turn-icon--o { color: var(--gb-o); }
.gb-turn-icon .gb-mark { width: 28px; height: 28px; }
.gb-turn-strip strong { white-space: nowrap; font-size: 13px; font-weight: 600; }
.gb-turn-strip p { min-width: 0; margin: 0; padding-left: 15px; border-left: 1px solid #406289; color: var(--gb-muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.gb-sign-in { max-width: 105px; color: var(--gb-ink); font-size: 12px; line-height: 1.4; text-underline-offset: 3px; }
.gb-reset { display: grid; place-items: center; flex-shrink: 0; align-self: stretch; width: 28px; padding: 0; border: 0; background: transparent; color: var(--gb-muted); cursor: pointer; }
.gb-reset svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gb-reset:hover { color: var(--gb-ink); }
.gb-reset:focus-visible, .gb-preview-link:focus-visible, .gb-match-note button:focus-visible, .gb-back-link:focus-visible { outline: 2px solid var(--gb-focus, #a2e5ff); outline-offset: 4px; }
.gb-preview-link { display: block; width: fit-content; margin: 8px auto 0; color: #91bcf1; font-size: 11px; text-decoration: none; }
.gb-preview-link:hover { color: #d6ecff; }
.gb-preview-link span { margin-left: 4px; }
.gb-practice-page { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 45px 0 65px; container-type: inline-size; }
.gb-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.gb-eyebrow { display: inline-block; color: #80b4fb; font-size: 11px; font-weight: 600; letter-spacing: .2em; }
.gb-page-heading h1 { margin: 16px 0; font-size: clamp(36px, 4.5vw, 60px); line-height: 1.06; letter-spacing: -.045em; color: #f6f8ff; }
.gb-page-heading h1 span { background: linear-gradient(90deg, #15d3ff, #597eff, #d355f5); color: transparent; background-clip: text; }
.gb-page-heading p { margin: 0; color: #b8cbe6; font-size: 17px; line-height: 1.5; }
.gb-practice-layout { display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 1fr); align-items: start; gap: clamp(28px, 5vw, 80px); }
.gb-practice-host { min-width: 0; }
.gb-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.gb-toolbar label { flex: 1 1 125px; min-width: 0; display: flex; flex-direction: column; gap: 6px; color: #b8cbe6; font: 12px 'Space Grotesk', system-ui, sans-serif; }
.gb-online-mode { display: flex; align-items: center; flex: 1 1 125px; min-height: 44px; align-self: end; padding: 9px 12px; border: 1px solid #35537b; border-radius: 9px; background: #0c172d; color: #edf4ff; font-size: 13px; }
.gb-toolbar [hidden] { display: none; }
.gb-toolbar select { width: 100%; min-width: 0; min-height: 44px; padding: 9px; border: 1px solid #35537b; border-radius: 9px; background: #0c172d; color: #edf4ff; font: inherit; }
.gb-toolbar select:focus-visible { outline: 2px solid #8edfff; outline-offset: 2px; }
.gb-help-panel { margin-top: 5px; padding: 29px; border: 1px solid #284873; border-radius: 20px; background: linear-gradient(135deg, rgba(12, 24, 49, .92), rgba(3, 13, 30, .88)); color: #edf4ff; }
.gb-help-panel h2 { margin: 13px 0 25px; font-size: 30px; line-height: 1.15; letter-spacing: -.03em; }
.gb-help-panel ol { list-style: none; counter-reset: gb-rules; margin: 0; padding: 0; }
.gb-help-panel li { position: relative; padding-left: 39px; margin: 0 0 25px; counter-increment: gb-rules; }
.gb-help-panel li::before { content: counter(gb-rules); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #45689b; border-radius: 8px; color: #75cfff; font-size: 13px; }
.gb-help-panel li b { font-size: 16px; font-weight: 600; }
.gb-help-panel li p { margin: 7px 0 0; color: #afc4e2; font-size: 14px; line-height: 1.65; }
.gb-keyboard-note { border-top: 1px solid #294365; padding-top: 20px; font-size: 12px; line-height: 2; color: #a9c1e0; }
.gb-keyboard-note kbd { display: inline-block; min-width: 21px; padding: 0 4px; border: 1px solid #466086; border-radius: 4px; font: 11px 'IBM Plex Mono', monospace; text-align: center; color: #d5e9ff; }
.gb-local-note { color: #83b8e7; font-size: 12px; margin: 20px 0; }
.gb-back-link { color: #d0e3ff; font-size: 14px; text-underline-offset: 5px; }
.gb-mode-links { display: flex; flex-wrap: wrap; gap: 10px; }
.gb-mode-links a { display: grid; place-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid #355782; border-radius: 10px; background: #0b1932; color: #d5e9ff; font-size: 13px; text-decoration: none; }
.gb-mode-links a:hover { border-color: #7cbdff; background: #102447; }
.gb-mode-links a:focus-visible, .gb-sign-in:focus-visible { outline: 2px solid #a2e5ff; outline-offset: 4px; }
.gb-match-note { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; font: 11px 'Space Grotesk', system-ui, sans-serif; color: #a9c1e0; line-height: 1.6; }
.gb-match-note > span { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.gb-match-note button { flex-shrink: 0; min-height: 44px; border: 1px solid #355782; border-radius: 9px; padding: 7px 12px; background: #0b1932; color: #d5e9ff; cursor: pointer; }
.gb-match-note button:disabled { opacity: .55; cursor: default; }

/* Exact approved appearance colors, kept away from website and legacy root tokens. */
.gb-stage[data-gb-theme="vector"] { color-scheme: light; --gb-surface: #f8f9fb; --gb-raised: #fff; --gb-ink: #15181c; --gb-muted: #747b84; --gb-line: #e0e3e6; --gb-mini-border: #bfc5cc; --gb-x: #246bfd; --gb-o: #f45669; --gb-route: #c6ff42; --gb-focus: #246bfd; --gb-radius: 16px; }
.gb-stage[data-gb-theme="midnight"] { color-scheme: dark; --gb-surface: #101720; --gb-raised: #18212c; --gb-ink: #d4dce5; --gb-muted: #8693a1; --gb-line: #27323f; --gb-mini-border: #364554; --gb-x: #6f9dff; --gb-o: #ff7a98; --gb-route: #b9f03c; --gb-focus: #6f9dff; --gb-radius: 16px; }
.gb-stage[data-gb-theme="paperclub"] { color-scheme: light; --gb-surface: #f6efdc; --gb-raised: #fffbee; --gb-ink: #27221b; --gb-muted: #6a5e4c; --gb-line: #b9c4d6; --gb-mini-border: #27221b; --gb-x: #2a4f9b; --gb-o: #c23a2e; --gb-route: #ffd23f; --gb-focus: #2a4f9b; --gb-radius: 5px; --gb-font: 'Patrick Hand', 'Segoe Print', cursive; --gb-title: 'Caveat', 'Patrick Hand', cursive; }
.gb-stage[data-gb-theme="afterhours"] { color-scheme: dark; --gb-surface: #0f0722; --gb-raised: #190d38; --gb-ink: #f1eaff; --gb-muted: #a79bd3; --gb-line: #34226f; --gb-mini-border: #5a3fb0; --gb-x: #2cf2ff; --gb-o: #ff4fb6; --gb-route: #ffd83d; --gb-focus: #2cf2ff; --gb-radius: 2px; --gb-font: 'Chakra Petch', system-ui, sans-serif; --gb-title: 'Orbitron', system-ui, sans-serif; }
.gb-stage--practice:where(:not([data-gb-theme="cinematic"])) .gb-frame { border-color: var(--gb-mini-border); background: var(--gb-surface); box-shadow: 0 18px 40px #0003; border-radius: 20px; }
.gb-stage--practice:where(:not([data-gb-theme="cinematic"])) .gb-frame::before { display: none; }
.gb-stage--practice:where(:not([data-gb-theme="cinematic"])) .gb-mini { background: var(--gb-raised); box-shadow: inset 0 1px 1px #ffffff08; }
.gb-stage--practice:where(:not([data-gb-theme="cinematic"])) .gb-mini--active { border-color: var(--gb-route); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gb-route) 60%, transparent); }
.gb-stage--practice:where(:not([data-gb-theme="cinematic"])) .gb-cell--legal:hover { background: color-mix(in srgb, var(--gb-route) 20%, var(--gb-raised)); }
.gb-stage--practice:where(:not([data-gb-theme="cinematic"])) .gb-cell--legal:active { background: color-mix(in srgb, var(--gb-route) 32%, var(--gb-raised)); }
.gb-stage--practice:where(:not([data-gb-theme="cinematic"])) .gb-move-dot { width: 7px; height: 7px; background: var(--gb-muted); opacity: .32; }
.gb-stage--practice:where(:not([data-gb-theme="cinematic"])) .gb-mark { filter: none; }
.gb-stage--practice:where(:not([data-gb-theme="cinematic"])) .gb-avatar { background: var(--gb-raised); box-shadow: none; }
.gb-stage--practice:where(:not([data-gb-theme="cinematic"])) .gb-turn-strip { background: var(--gb-surface); border-color: var(--gb-mini-border); box-shadow: none; }
.gb-stage--practice:where(:not([data-gb-theme="cinematic"])) .gb-turn-strip p { border-color: var(--gb-mini-border); }
.gb-stage[data-gb-theme="vector"] .gb-turn-strip { --gb-surface: #171a1f; --gb-ink: #fff; --gb-muted: #aeb5bd; color: var(--gb-ink); }
.gb-stage[data-gb-theme="paperclub"] .gb-frame { border: 2px solid #27221b; border-radius: 10px 16px 12px 14px; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(70, 110, 170, .13) 31px, rgba(70, 110, 170, .13) 32px); box-shadow: 7px 9px 0 rgba(39, 34, 27, .18); }
.gb-stage[data-gb-theme="paperclub"] .gb-mini { border-width: 2px; }
.gb-stage[data-gb-theme="paperclub"] .gb-mini--active { box-shadow: 0 0 0 3px #ffd23f, 3px 4px 0 rgba(39, 34, 27, .2); }
.gb-stage[data-gb-theme="paperclub"] .gb-player b { font-family: var(--gb-title); font-size: 19px; }
/* Paper Club's dark turn strip is the retained `--panel-dark` (#2f3a52). Every child keeps the
   contrast the strip was designed for: a light ink for text, and marks that stay legible on that
   dark slate instead of the light-theme board tokens. The strip is also the rail for
   `.gb-sign-in` and `.gb-reset`, which read the theme ink and muted tokens directly. */
.gb-stage[data-gb-theme="paperclub"] .gb-turn-strip { background: #2f3a52; color: #f6efdc; --gb-ink: #f6efdc; --gb-muted: #d8d2c4; --gb-x: #ffd23f; --gb-o: #ffcf9e; }
.gb-stage[data-gb-theme="paperclub"] .gb-turn-strip p { border-color: #6b7899; }
.gb-stage[data-gb-theme="paperclub"] .gb-turn-icon { background: #ffd23f; color: #2a1f08; border-color: #ffd23f; }
.gb-stage[data-gb-theme="paperclub"] .gb-turn-icon .gb-mark { color: #2a1f08; }
.gb-stage[data-gb-theme="paperclub"] .gb-turn-icon--x .gb-mark,
.gb-stage[data-gb-theme="paperclub"] .gb-turn-icon--o .gb-mark { filter: none; }
.gb-stage[data-gb-theme="afterhours"] .gb-frame { border-width: 2px; border-radius: 8px; background-image: linear-gradient(rgba(44, 242, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 79, 182, .04) 1px, transparent 1px); background-size: 28px 28px; box-shadow: 0 0 36px rgba(255, 79, 182, .14), 0 0 60px rgba(44, 242, 255, .08), 0 24px 60px #0006; }
.gb-stage[data-gb-theme="afterhours"] .gb-mini--active { box-shadow: 0 0 0 2px #ffd83d, 0 0 16px rgba(255, 216, 61, .3); }
.gb-stage[data-gb-theme="afterhours"] .gb-mark--x { filter: drop-shadow(0 0 3px rgba(44, 242, 255, .7)); }
.gb-stage[data-gb-theme="afterhours"] .gb-mark--o { filter: drop-shadow(0 0 3px rgba(255, 79, 182, .7)); }
.gb-stage[data-gb-theme="afterhours"] .gb-player b { font-family: var(--gb-title); font-size: 11px; }
.gb-stage[data-gb-theme="afterhours"] .gb-turn-strip { background: #080416; border-radius: 3px; }

@media (max-width: 800px) { .gb-practice-layout { grid-template-columns: minmax(0, 1fr); } .gb-help-panel { width: min(530px, 100%); margin: 0 auto; } .gb-page-heading { justify-content: center; flex-wrap: wrap; text-align: center; } }
/* A zoomed or embedded practice page can be narrower than the viewport. */
@container (max-width: 800px) { .gb-practice-layout { grid-template-columns: minmax(0, 1fr); } .gb-help-panel { width: min(530px, 100%); margin: 0 auto; } .gb-page-heading { justify-content: center; flex-wrap: wrap; text-align: center; } }
@media (max-width: 420px) {
  .gb-frame { padding: 12px 10px 15px; border-radius: 20px; }
  .gb-grid { gap: 8px; margin-top: 12px; }
  .gb-mini { padding: 2px; border-radius: 8px; box-shadow: 0 0 0 2px rgba(38, 52, 76, .3); }
  .gb-mini--active { box-shadow: 0 0 0 2px var(--gb-route), inset 0 0 8px rgba(23, 161, 255, .5), 0 0 10px rgba(45, 135, 255, .5); }
  .gb-hud { gap: 6px; }
  .gb-player { gap: 6px; }
  .gb-player b { font-size: 12px; }
  .gb-avatar { width: 31px; height: 31px; }
  .gb-avatar .gb-mark { width: 25px; height: 25px; }
  .gb-hud-spacer { width: 0; }
  .gb-player small { font-size: 9px; }
  .gb-turn-strip { margin-inline: 5px; gap: 7px; border-radius: 16px; padding: 9px; }
  .gb-turn-strip strong { font-size: 10px; white-space: normal; max-width: 70px; }
  .gb-turn-strip p { padding-left: 8px; font-size: 10px; }
  .gb-turn-icon { width: 25px; height: 25px; }
  .gb-turn-icon .gb-mark { width: 22px; height: 22px; }
  .gb-move-dot { width: 8px; height: 8px; }
  .gb-reset { width: 28px; }
  .gb-practice-page { width: calc(100% - 24px); padding-top: 26px; }
  .gb-page-heading { gap: 18px; margin-bottom: 26px; }
  .gb-page-heading p { font-size: 15px; }
  .gb-help-panel { padding: 22px; }
  .gb-keyboard-note { display: none; }
}
@media (forced-colors: active) {
  .gb-page-heading h1 span { background: none; color: CanvasText; }
  .gb-frame::before { display: none; }
  .gb-frame, .gb-mini, .gb-turn-strip { border: 1px solid CanvasText; background: Canvas; color: CanvasText; box-shadow: none; }
  .gb-mini--active { outline: 3px solid Highlight; }
  .gb-mark, .gb-turn-icon, .gb-avatar { color: CanvasText; filter: none; }
  .gb-move-dot { background: CanvasText; }
  .gb-cell:focus-visible { outline-color: Highlight; }
  .gb-claim { background: Canvas; }
}

/* /game workspace. Preview/home board styling above remains independent. */
.gb-game-page { width:min(1580px,calc(100% - 64px)); padding:28px 0 48px; }
.gb-game-page .gb-page-heading { display:block; text-align:center; margin:0 0 24px; }
.gb-game-page .gb-page-heading h1 { font-size:clamp(32px,3vw,46px); margin:0 0 8px; }
.gb-game-page .gb-page-heading .gb-eyebrow,.gb-game-page .gb-back-link { display:none; }
.gb-game-page .gb-page-heading p { font-size:16px; }
.gb-game-page .gb-practice-layout { display:block; }
.gb-game-page .gb-dashboard { max-width:none; display:grid; grid-template-columns:minmax(235px,.92fr) minmax(340px,1.7fr) minmax(245px,.95fr); gap:24px; align-items:start; }
.gb-game-page .gb-game-left,.gb-game-page .gb-game-right { display:grid; gap:18px; min-width:0; }
.gb-game-page .gb-game-centre { min-width:0; }
.gb-game-page .gb-game-panel,.gb-game-page .gb-powers { margin:0; padding:20px; border:1px solid var(--mx-web-border); border-radius:18px; background:linear-gradient(150deg,rgba(8,24,48,.94),rgba(3,11,23,.96)); box-shadow:inset 0 1px 0 #9dbfff0a,0 14px 35px #0003; color:var(--mx-web-text); }
.gb-game-page .gb-game-panel h2 { display:flex; align-items:center; gap:12px; font:700 18px 'Space Grotesk',system-ui,sans-serif; margin:0 0 20px; letter-spacing:-.02em; }
.gb-ui-icon { display:inline-block; width:23px; height:23px; flex-shrink:0; vertical-align:middle; }
.gb-game-panel h2 .gb-ui-icon { color:#a8c7ff; }
.gb-game-page .gb-toolbar { display:grid; gap:18px; margin:0; }
.gb-game-page .gb-toolbar label { font:14px 'Space Grotesk',system-ui,sans-serif; gap:8px; }
.gb-game-page .gb-toolbar select { min-height:46px; border-color:#3e507b; background:linear-gradient(100deg,#19253d,#141c33); border-radius:9px; padding:10px 12px; }
.gb-game-page .gb-setup-online { display:block; margin-top:16px; color:#a9c9fa; font-size:12px; text-decoration:none; }
.gb-game-page .gb-roster-player { display:flex; align-items:center; gap:12px; margin-top:10px; padding:12px; border:1px solid #293e63; border-radius:12px; background:linear-gradient(110deg,#10253d,#141c30); }
.gb-game-page .gb-roster-player--active { border-color:#3b7ea8; }
.gb-game-page .gb-roster-player>.gb-avatar { width:48px; height:48px; }
.gb-game-page .gb-roster-player>b,.gb-game-page .gb-roster-player span>b { display:block; font-size:16px; overflow-wrap:anywhere; }
.gb-game-page .gb-roster-player small { display:block; color:#b1c4e3; font-size:11px; line-height:1.5; margin-top:4px; }
.gb-game-page .gb-roster-player>strong { margin-left:auto; text-align:center; font-size:23px; font-weight:600; }
.gb-game-page .gb-roster-player>strong small { margin-top:0; font-size:9px; font-weight:400; }
.gb-game-page .gb-turn-strip { margin:0; padding:20px 16px; gap:14px; border:1px solid #2bbcff; border-radius:14px; background:linear-gradient(115deg,#0c3157ef,#152141ef); box-shadow:inset 0 0 28px #168aff24,0 0 20px #1169ff12; }
.gb-game-page .gb-turn-strip .gb-turn-icon { width:54px; height:54px; box-shadow:0 0 14px #2698ff57; }
.gb-game-page .gb-turn-strip .gb-turn-icon .gb-mark { width:40px; height:40px; }
.gb-game-page .gb-turn-strip strong { font-size:20px; font-weight:700; white-space:normal; }
.gb-game-page .gb-turn-strip p { border:0; margin:8px 0 0; padding:0; color:#c0d2ed; font-size:13px; line-height:1.6; }
.gb-game-page .gb-grid { max-width:none; width:100%; margin:0; gap:13px; }
.gb-game-page .gb-match-note { margin:18px 0 0; padding:12px 16px; align-items:center; border:1px solid #35416c; border-radius:14px; background:linear-gradient(110deg,#131b34f0,#13172bef); }
.gb-game-page .gb-match-note .gb-move-count { display:flex; align-items:center; gap:12px; flex:1 1 62px; color:#c2cee7; font-size:12px; }
.gb-game-page .gb-move-count strong { display:block; color:#f4f6ff; font-size:18px; line-height:1.25; }
.gb-game-page .gb-game-actions { display:flex; flex-wrap:wrap; gap:9px; }
.gb-game-page .gb-game-actions button { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:8px 13px; border-color:#36466c; background:linear-gradient(145deg,#1d2844,#151d34); font-size:12px; }
.gb-game-page .gb-game-actions .gb-ui-icon { width:18px; height:18px; color:#b8cef6; }
.gb-game-page .gb-route-note { text-align:center; color:#9fb9de; font-size:12px; margin:12px 0 0; }
.gb-game-page .gb-help-panel h2 .gb-ui-icon { color:#c27dff; }
.gb-game-page .gb-help-panel { padding:20px; }
.gb-game-page .gb-help-panel ol { clear:both; padding-top:16px; border-top:1px solid #344263; }
.gb-game-page .gb-help-panel li { margin-bottom:14px; padding-left:29px; line-height:1.6; }
.gb-game-page .gb-help-panel li::before { width:21px; height:21px; border:0; background:#293b60; border-radius:50%; color:#d8e5ff; font-size:12px; }
.gb-game-page .gb-help-panel li b { font-size:12px; font-weight:500; }
.gb-game-page .gb-help-panel li p { margin:4px 0 0; color:#b8c8e2; font-size:12px; }
.gb-game-page .gb-guide-intro { color:#b8c8e2; font-size:13px; line-height:1.6; margin:0 0 18px; }
.gb-game-page .gb-route-diagram { float:left; width:84px; height:72px; margin:0 15px 14px 0; display:grid; grid-template-columns:repeat(3,1fr); gap:3px; color:#6b80b7; font-size:20px; }
.gb-route-diagram span { display:grid; place-items:center; border:1px solid #3e4f80; border-radius:3px; background:#101a32; }
.gb-route-diagram .gb-route-diagram-target { border:1px solid #31cdff; color:#31cdff; box-shadow:0 0 7px #2499ff66; }
.gb-game-page .gb-button--guided,.gb-game-page .gb-full-guide { width:100%; display:flex; align-items:center; gap:8px; justify-content:space-between; margin:10px 0 0; min-height:44px; padding:11px; border:1px solid #41517b; border-radius:9px; background:linear-gradient(120deg,#202c4d,#171e36); color:#e4edff; font:500 12px 'Space Grotesk',sans-serif; text-decoration:none; cursor:pointer; }
.gb-game-page .gb-button--guided .gb-ui-icon { width:18px; height:18px; color:#a99bff; }
.gb-game-page .gb-full-guide { background:transparent; border-color:transparent; color:#adc9f6; }
.gb-game-shortcuts { border-top:1px solid #2c3e62; margin-top:10px; }
.gb-game-shortcuts summary { cursor:pointer; padding-top:13px; color:#acbfdc; font-size:11px; }
.gb-game-page .gb-keyboard-note { border:0; padding:0; display:block; }
.gb-game-page button:focus-visible,.gb-game-page a:focus-visible,.gb-game-page summary:focus-visible { outline:2px solid #a2e5ff; outline-offset:4px; }
/* Keep retained board palettes; the surrounding website continues to use its own Neon shell. */
@media(min-width:1250px) { .gb-game-page .gb-page-heading { width:42%; margin-left:29%; } }
@media(max-width:1200px) { .gb-game-page { width:calc(100% - 40px); } .gb-game-page .gb-dashboard { grid-template-columns:minmax(200px,.8fr) minmax(340px,1.6fr); gap:20px; } .gb-game-page .gb-game-right { grid-column:1/-1; grid-template-columns:1fr 1fr; } }
@media(max-width:760px) { .gb-game-page { width:calc(100% - 28px); padding-top:24px; } .gb-game-page .gb-dashboard { grid-template-columns:minmax(0,1fr); gap:18px; } .gb-game-page .gb-game-left { grid-template-columns:1fr 1fr; gap:12px; } .gb-game-page .gb-game-setup { grid-row:span 2; } .gb-game-page .gb-game-players,.gb-game-page .gb-turn-strip { padding:14px; } .gb-game-page .gb-game-players h2 { margin-bottom:8px; } .gb-game-page .gb-roster-player { padding:8px; gap:8px; } .gb-game-page .gb-roster-player>.gb-avatar { width:34px; height:34px; } .gb-game-page .gb-roster-player .gb-avatar .gb-mark { width:25px; height:25px; } .gb-game-page .gb-roster-player>strong small { display:none; } .gb-game-page .gb-roster-player span>b { font-size:13px; } .gb-game-page .gb-roster-player small { font-size:10px; } .gb-game-page .gb-turn-strip { gap:10px; } .gb-game-page .gb-turn-strip .gb-turn-icon { width:34px; height:34px; } .gb-game-page .gb-turn-strip .gb-turn-icon .gb-mark { width:27px; height:27px; } .gb-game-page .gb-turn-strip strong { font-size:16px; } .gb-game-page .gb-turn-strip p { font-size:11px; } .gb-game-page .gb-game-right { grid-template-columns:1fr; grid-column:auto; } .gb-game-page .gb-grid { gap:10px; } }
@media(max-width:420px) { .gb-game-page .gb-game-left { display:flex; flex-direction:column; } .gb-game-page .gb-toolbar { grid-template-columns:1fr 1fr; gap:12px; } .gb-game-page .gb-toolbar label:last-child { grid-column:1/-1; } .gb-game-page .gb-game-setup { padding:16px; } .gb-game-page .gb-game-setup h2 { margin-bottom:15px; } .gb-game-page .gb-game-players { padding:14px; display:grid; grid-template-columns:1fr 1fr; gap:10px; } .gb-game-page .gb-game-players h2 { grid-column:1/-1; margin:0; } .gb-game-page .gb-roster-player { margin:0; flex-wrap:wrap; } .gb-game-page .gb-turn-strip { padding:14px; } .gb-game-page .gb-grid { gap:8px; } .gb-game-page .gb-match-note { padding:12px; gap:12px; } .gb-game-page .gb-game-actions { width:100%; display:grid; grid-template-columns:repeat(3,1fr); } .gb-game-page .gb-game-actions button { padding:8px; font-size:11px; } .gb-game-page .gb-game-actions button .gb-ui-icon { display:none; } }
@media(forced-colors:active) { .gb-game-page .gb-game-panel,.gb-game-page .gb-powers,.gb-game-page .gb-turn-strip,.gb-game-page .gb-match-note,.gb-game-page .gb-roster-player,.gb-game-page .gb-game-actions button { background:Canvas; color:CanvasText; border-color:CanvasText; } .gb-game-page :is(p,b,small,strong,.gb-ui-icon) { color:CanvasText; } .gb-game-page .gb-game-actions button:disabled { color:GrayText; } }

/* Batch 1: the frame/mini/cell/mark/claim rules above are shared with home and legacy themes.
   Workspace styling is limited to its surrounding controls and layout. */
.gb-game-page .gb-toolbar select { color-scheme:dark; background:#0b1930; color:#edf4ff; border-color:#35537b; }
.gb-game-page .gb-toolbar option { background:#0b1930; color:#edf4ff; }
.gb-game-page .gb-online-controls { margin:18px 0 0; padding:16px 0 0; border:0; border-top:1px solid var(--mx-web-border); border-radius:0; background:none; box-shadow:none; width:auto; }
.gb-game-page .gb-online-controls:empty { display:none; }
.gb-game-page .gb-online-controls h2 { font-size:15px; margin-bottom:10px; }
.gb-game-page .gb-online-controls p { font-size:13px; color:var(--mx-web-muted); line-height:1.6; }
.gb-game-page .gb-online-controls .pg-actions { display:grid; gap:10px; margin:12px 0 0; }
.gb-game-page .gb-online-controls .mx-button { min-height:44px; padding:10px 12px; font-size:13px; border-radius:11px; width:100%; }
.gb-game-page .gb-online-controls .mx-online-message:empty { display:none; }
.gb-game-page details.gb-help-panel { padding:0; overflow:hidden; }
.gb-game-page details.gb-help-panel>summary { display:flex; justify-content:space-between; align-items:center; gap:12px; list-style:none; min-height:76px; padding:20px; cursor:pointer; color:var(--mx-web-text); font-weight:700; }
.gb-game-page details.gb-help-panel>summary::-webkit-details-marker { display:none; }
.gb-game-page details.gb-help-panel>summary>span:first-child { display:flex; align-items:center; gap:12px; }
.gb-game-page details.gb-help-panel>summary .gb-ui-icon { color:#ba8bff; }
.gb-game-page details.gb-help-panel>summary small { display:block; margin-top:4px; font-size:12px; font-weight:400; color:var(--mx-web-muted); }
.gb-game-page .gb-guide-chevron { transition:transform .15s; }
.gb-game-page details.gb-help-panel[open] .gb-guide-chevron { transform:rotate(180deg); }
.gb-game-page .gb-guide-content { padding:0 20px 20px; }
.gb-game-page .gb-help-panel li { counter-increment:none; padding-left:0; }
.gb-game-page .gb-help-panel li::before { display:none; }
.gb-game-page .gb-help-panel .gb-guide-intro { margin:0 0 14px; }
@media(prefers-reduced-motion:reduce) { .gb-game-page .gb-guide-chevron { transition:none; } }
