@import "./loading-edge.css";
body {display:flow-root;}
/* Loading, normal status and inspection share geometry at each text size. */
.board-heading { min-height: 1.5em; }
.board-preview-label { min-height: max(3.1em, 44px); font-size: 1rem; line-height: 1.5; margin-block: .25rem .65rem; }
.board-message-slot {display:grid;margin-block:.25rem .65rem;font-family:var(--font-family);font-size:1rem;min-width:0;container-name:board-message;container-type:inline-size;}
.board-message-slot > .board-preview-label {grid-area:1 / 1;min-width:0;margin:0;}
.board-message-live {grid-area:1 / 1;min-width:0;min-block-size:44px;font-size:1rem;line-height:var(--board-message-prose-line-height,1.5);}
.board-message-live > .board-preview-label {display:inline;margin:0;}
.board-message-live > .board-preview-label[hidden] {display:none;}
/* Coordinate boxes stay compact, while both token text runs share the prose
   baseline. The icon is excluded from the action's baseline-sharing group. */
.board-message-slot :is(.board-preview-coordinate-chip,.board-preview-highlight-chip,.board-preview-retreat-chip) {vertical-align:baseline;height:1.25em;}
.board-message-slot .board-preview-inline-button {vertical-align:baseline;height:auto;font-size:calc(var(--board-inline-action-font-scale) * 1em);line-height:var(--board-inline-action-line-height);padding:calc(var(--board-inline-action-padding-block-em) * 1em) .48em;border-width:calc(var(--board-inline-action-border-px) * 1px);}
/* Reserve the invisible 44px target plus native WebKit hit-test clearance inside each logical row, including wrapped
   replay+Pass messages. Replicas and live rows use the same exact spacing. */
.board-message-slot {
  --board-message-prose-line-height:1.5;
  --board-message-focus-width:2px;
  --board-message-focus-offset:2px;
  --board-message-paint-guard:max(0px,calc(var(--board-message-focus-width) + var(--board-message-focus-offset) - var(--board-action-hit-inset)));
  --board-inline-action-font-scale:.88;
  --board-inline-action-line-height:1.5;
  --board-inline-action-padding-block-em:.2;
  --board-inline-action-border-px:1;
  --board-routine-action-growth:max(0px,calc((var(--board-inline-action-font-scale) * (var(--board-inline-action-line-height) + 2 * var(--board-inline-action-padding-block-em)) - var(--board-message-prose-line-height)) * 1em + 2 * var(--board-inline-action-border-px) * 1px));
  --board-message-hit-half-px:23.0625;
  --board-message-hit-half-em:.836;
  /* Two action lines add 2 * (.88 * 1.9 - 1.5)em, two borders each,
     and an outward 1/8em font/layout allowance. Logical rows own four insets. */
  --board-message-action-extra-em:.469;
  --board-message-action-extra-px:4;
  --board-message-detached-gap-em:.5;
  --board-message-rounding-allowance:max(0px,calc((var(--board-message-action-extra-em) - 2 * (var(--board-inline-action-font-scale) * (var(--board-inline-action-line-height) + 2 * var(--board-inline-action-padding-block-em)) - var(--board-message-prose-line-height))) * 1em));
  --board-message-detached-allowance:calc(var(--board-message-detached-gap-em) * 1em + var(--board-routine-action-growth) + var(--board-message-rounding-allowance) + 4 * var(--board-action-hit-inset));
  --board-action-hit-inset:max(0px,calc(var(--board-message-hit-half-px) * 1px - var(--board-message-hit-half-em) * 1em));
  --board-message-action-allowance:calc(var(--board-message-action-extra-em) * 1em + var(--board-message-action-extra-px) * 1px + var(--board-action-hit-inset) + var(--board-action-hit-inset) + var(--board-action-hit-inset) + var(--board-action-hit-inset));
}
.board-message-sizing {--board-message-row-lines:2;min-height:calc(var(--board-message-row-lines) * 1.5em + var(--board-message-action-allowance));}
.board-message-live, .board-message-sizing {padding-block:var(--board-action-hit-inset);}
.board-message-live:has(.board-message-row), .board-message-sizing:has(.board-message-row) {padding-block:0;}
.board-message-row {padding-block:var(--board-action-hit-inset);}
.board-message-slot .board-preview-coordinate-chip {font-variant-numeric:tabular-nums;white-space:nowrap;}
.board-message-activity {display:none;}
.board-message-activity[data-loading-state="pending"] {display:inline-flex;vertical-align:middle;}
.board-message-activity[data-loading-suppressed="true"] {display:none;}
.board-message-sizing, .board-heading-sizing {visibility:hidden;pointer-events:none;user-select:none;}
.board-message-sizing[data-prompt-pattern="required-retry"] {min-height:calc(var(--board-message-row-lines) * 1.5em + max(var(--board-message-action-allowance),var(--board-message-detached-allowance)));}
.board-obligatory-pill[data-board-prompt-pattern="required-retry"] {vertical-align:top;}
.board-message-fallback-sizing {font-family:var(--font-family-fallback);}
.board-message-fallback-sizing :is(.board-preview-coordinate-chip,.board-preview-highlight-chip,.board-preview-retreat-chip,.board-preview-inline-button) {font-family:inherit;}
/* Intrinsic primary-font row frontiers cover the two-row message grammar,
   full copy, bounded spectator names and turn summaries at 100/200% text.
   Measured maxima are rounded outward to 1/16em and cover Linux CI.
   The complete grammar is measured at 100/200% with primary, native fallback
   and generic fallback fonts. Row counts include a separate action-growth and
   44px-hit allowance. Keep the outward-rounded width frontiers static so cold
   and loaded fonts share the same first-paint reservation. Tests probe
   every source boundary plus independent width samples. Below 8.5em the
   intrinsic fallback remains the reservation. */
@container board-message (min-width:8.5em) and (width < 10.1875em) {
  .board-message-sizing {--board-message-row-lines:7;}
}
@container board-message (min-width:10.1875em) and (width < 11.8125em) {
  .board-message-sizing {--board-message-row-lines:6;}
}
@container board-message (min-width:11.8125em) and (width < 13.1875em) {
  .board-message-sizing {--board-message-row-lines:5;}
}
@container board-message (min-width:13.1875em) and (width < 18.0625em) {
  .board-message-sizing {--board-message-row-lines:4;}
}
@container board-message (min-width:18.0625em) and (width < 35.9375em) {
  .board-message-sizing {--board-message-row-lines:3;}
}
.board-heading-slot {display:grid;grid-template-columns:minmax(0,1fr);min-width:0;}
.board-heading-slot > .board-heading {grid-area:1 / 1;min-width:0;}
.board-heading-slot > .board-heading {font-family:var(--font-family);}
.board-heading-slot > .board-heading-fallback-sizing {font-family:var(--font-family-fallback);}
.board-heading-slot + .board-message-slot {margin-block-start:0;}
#app[data-shell-layout-mode="narrow"] [data-shell-panel="board"] .board {grid-template-columns:repeat(10,minmax(0,1fr));}
/* The wrap already reserves room for the axes. Remove the duplicate base gap
   before the wide legend, retaining extra separation as text size increases. */
#app[data-shell-layout-mode="wide"] [data-shell-panel="board"] .overlay-key {margin-top:max(0px,calc(1rem - 16px));}
/* Expand the tap surface inside the reserved message space, without moving
   the board or turning the inline action into a heavy toolbar. */
.board-message-slot .board-preview-label .board-preview-inline-button {position:relative;z-index:1;overflow:visible;min-width:44px;display:inline-flex;align-items:baseline;justify-content:center;gap:3px;}
.board-preview-label .board-preview-inline-button > .righelt-icon {width:12px;height:12px;vertical-align:top;align-self:center;}
.board-preview-label .board-preview-inline-button::before {content:"";position:absolute;left:0;right:0;top:50%;height:max(44px,100%);transform:translateY(-50%);}
.board-guidance-disclosure {position:relative;z-index:1;display:inline;border:0;padding:0;background:transparent;color:var(--muted);font:inherit;font-size:.88em;line-height:inherit;text-decoration:underline;text-underline-offset:.18em;cursor:pointer;}
.board-guidance-disclosure::before {content:"";position:absolute;inset-inline:-.5rem;top:50%;height:44px;transform:translateY(-50%);}
.board-guidance-disclosure:focus-visible {outline:2px solid var(--ink);outline-offset:3px;}
.board-guidance-detail {display:block;margin-block-start:.5em;padding:.7em .8em;border:1px solid var(--line);background:var(--surface-raised);color:var(--ink);clip-path:polygon(0 .5rem,.5rem 0,100% 0,100% calc(100% - .5rem),calc(100% - .5rem) 100%,0 100%);box-shadow:inset 1px 2px 3px rgb(44 57 66 / 12%);}
.board-guidance-detail[hidden] {display:none;}
@media (forced-colors:active) {.board-guidance-detail{background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none;}.board-guidance-disclosure{color:ButtonText;}}
.legend-inspection { min-height:44px;min-width:44px;border:0;background:transparent;color:var(--ink);font:inherit; }
.legend-inspection[aria-pressed="true"] {background:transparent;box-shadow:none;}
.legend-inspection[aria-pressed="true"] .legend-inspection-label {text-decoration-line:underline;text-decoration-color:var(--legend-owner-color);text-decoration-thickness:2px;text-underline-offset:5px;}
[data-hover-capability="hover"] .legend-inspection:hover {background:var(--surface-hover-quiet);box-shadow:none;}
/* Keep keyboard focus visible inside the animated legend clipping boundary. */
.legend-inspection:focus-visible {outline:2px solid var(--ink);outline-offset:-2px;}
.previous-turn-key-swatch {
  --previous-turn-weight:17%;--cell-floor-color:var(--cell-fill,#f8fafa);--cell-floor-size:1024px 1024px;
  display:inline-block;box-sizing:border-box;flex:0 0 20px;width:20px;height:20px;border:1px solid #c4cdcd;border-radius:1.5px;
  background-color:var(--cell-floor-color);background-image:linear-gradient(color-mix(in srgb,var(--previous-turn-color) var(--previous-turn-weight),transparent),color-mix(in srgb,var(--previous-turn-color) var(--previous-turn-weight),transparent)),var(--marble-face,none);
  background-size:var(--cell-floor-size);background-position:center;background-origin:border-box;
  box-shadow:inset 1px 3px 3px rgb(44 57 66 / 26%),inset -1px -1px 0 rgb(255 255 255 / 94%);
}
.previous-turn-key-replay {display:inline-flex;flex:0 0 20px;width:20px;height:20px;align-items:center;justify-content:center;}
.previous-turn-key-replay[hidden] {display:none;}
.previous-turn-key-replay .righelt-icon {width:20px;height:20px;}
@media(forced-colors:active){.previous-turn-key-swatch{background:Canvas;border:1px solid CanvasText;box-shadow:none;forced-color-adjust:auto;}}
.previous-turn-key-host {
  width:100%;
  margin-inline:auto;
  display:flex;
  justify-content:flex-end;
}
.previous-turn-key-host[hidden] {display:none;}
.board-message-live:has(> .previous-turn-key-host:not([hidden])) {padding-block-end:calc(var(--board-action-hit-inset) + 8px);}
.previous-turn-key {
  display:inline-flex;
  min-height:44px;
  max-width:100%;
  align-items:center;
  gap:8px;
  padding:0;
  border:0;
  background:transparent;
  color:color-mix(in srgb,var(--previous-turn-color) 95%,white);
  font:inherit;
  font-weight:400;
  line-height:1.5;
  text-align:left;
  cursor:pointer;
}
.previous-turn-key > span {overflow-wrap:anywhere;}
.previous-turn-key:focus-visible {outline:2px solid var(--ink);outline-offset:2px;}
html[data-hover-capability="hover"] .previous-turn-key:not([data-hover-retired="true"]):hover,
.previous-turn-key:is(:focus-visible,[aria-pressed="true"]) {color:var(--previous-turn-color);}
html[data-hover-capability="hover"] .previous-turn-key:not([data-hover-retired="true"]):hover .previous-turn-key-swatch,
.previous-turn-key:is(:focus-visible,[aria-pressed="true"]) .previous-turn-key-swatch {outline:2px solid var(--previous-turn-color);outline-offset:-3px;}
@media(forced-colors:active){.previous-turn-key{color:ButtonText;}.previous-turn-key:focus-visible{outline-color:Highlight;}html[data-hover-capability="hover"] .previous-turn-key:not([data-hover-retired="true"]):hover,.previous-turn-key:is(:focus-visible,[aria-pressed="true"]){color:LinkText;}.previous-turn-key-swatch{outline-color:Highlight!important;}}
.history-inline-preview { width:min(100%, 360px); margin:8px auto; pointer-events:none; }
.history-inline-narration { color:var(--ink); }
.history-inline-preview .mini-board-preview-surface { width:100%; }
.computer-recovery-area:empty { display:none; }
.computer-play:empty { display:none; }

/* Status notices are positioned separately, so reserve only the logo and
   controls here. An empty rem-sized center track collapses the logo at zoom. */
#app[data-shell-layout-mode="wide"] .shell-header {grid-template-columns:minmax(0,1fr) auto;}
#app[data-shell-layout-mode="wide"] .shell-header-actions {grid-column:2;}
#app[data-shell-layout-mode="wide"] .shell-header-actions .nav-row {flex-wrap:nowrap;width:auto;}

#app[data-shell-layout-mode="narrow"] .shell-header {display:flex;align-items:center;flex-wrap:nowrap;gap:8px;margin:0 0 8px;padding:4px 0;min-height:44px;}
#app[data-shell-layout-mode="narrow"] .shell-header-main {flex:1 1 auto;min-width:0;}
#app[data-shell-layout-mode="narrow"] .shell-header-title-link {width:min(100%,190px);}
#app[data-shell-layout-mode="narrow"] .shell-header-actions {flex:0 0 auto;}
#app[data-shell-layout-mode="narrow"] .shell-header-actions .nav-row {display:flex;flex-wrap:nowrap;gap:4px;width:auto;}
#app[data-shell-layout-mode="narrow"] .shell-header-status {--recovery-effective-top:max(calc(var(--recovery-safe-area-top,env(safe-area-inset-top,0px)) + 8px),var(--recovery-space-top,calc(var(--recovery-safe-area-top,env(safe-area-inset-top,0px)) + 58px)));position:fixed;top:var(--recovery-effective-top);left:8px;right:8px;width:auto;max-width:none;min-height:0;transform:none;max-height:max(0px,calc(var(--recovery-viewport-bottom,100dvh) - var(--recovery-effective-top) - max(8px,env(safe-area-inset-bottom,0px))));z-index:var(--shell-layer-notice);pointer-events:none;}
#app[data-shell-layout-mode="narrow"] .shell-header-status > * {pointer-events:auto;}
#app[data-shell-layout-mode="narrow"] .shell-header-menu-root {display:block;}
#app[data-shell-route="game"][data-shell-layout-mode="narrow"] .shell-main-content {min-height:0;display:block;}
#app[data-shell-route="game"][data-shell-layout-mode="narrow"] .game-shell-frame {display:block;min-height:0;padding-bottom:80px;}
#app[data-shell-route="game"][data-shell-layout-mode="narrow"] .game-shell-track {position:relative;display:flex;align-items:flex-start;min-height:0;}
#app[data-shell-route="game"][data-shell-layout-mode="narrow"] .game-shell-mobile-panel {overflow:visible;min-height:0;align-self:flex-start;}
#app[data-shell-route="game"][data-shell-layout-mode="narrow"] .game-shell-mobile-panel[inert] {position:absolute;top:0;pointer-events:none;}
#app[data-shell-route="game"][data-shell-layout-mode="narrow"] [data-mobile-panel="players"][inert] {left:0;}
#app[data-shell-route="game"][data-shell-layout-mode="narrow"] [data-mobile-panel="board"][inert] {left:100%;}
#app[data-shell-route="game"][data-shell-layout-mode="narrow"] [data-mobile-panel="history"][inert] {left:200%;}
#app[data-shell-route="game"][data-shell-layout-mode="narrow"] .game-shell-mobile-panel:not([inert]) {position:relative;margin-left:calc(var(--shell-game-panel-index,1) * 100%);}
#app[data-shell-route="game"][data-shell-layout-mode="narrow"] .shell-mobile-tabbar {position:fixed;inset:auto auto max(8px,env(safe-area-inset-bottom,0px)) 50%;transform:translateX(-50%);width:180px;display:block;padding:0;background:none;backdrop-filter:none;z-index:var(--shell-layer-navigation);}
.mobile-nav-controls {display:flex;gap:4px;padding:3px 8px;background:var(--paper);border:1px solid var(--divider);clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px);transition:transform 180ms ease,opacity 180ms ease;}
.shell-mobile-tabbar .shell-mobile-tab {display:grid;place-items:center;min-width:48px;min-height:44px;padding:8px;border:0;border-radius:0;background:transparent;}
.shell-mobile-tabbar .righelt-icon {width:20px;height:20px;}
#app[data-shell-route="game"][data-shell-layout-mode="narrow"] .shell-mobile-tab[aria-pressed="true"] {background:transparent;box-shadow:inset 0 -2px var(--player-red);color:var(--ink);}
.mobile-nav-reveal {display:block;width:44px;min-height:44px;margin:0 auto;padding:0;border:0;background:transparent;}
.mobile-nav-reveal::after {content:"";display:block;width:28px;height:4px;margin:4px auto;background:var(--muted);clip-path:polygon(3px 0,calc(100% - 3px) 0,100% 100%,0 100%);}
.shell-mobile-tabbar[data-visible="false"] .mobile-nav-controls {position:absolute;top:100%;left:0;width:100%;transform:translateY(calc(100% + 24px));opacity:0;pointer-events:none;}
.shell-mobile-tabbar[data-visible="false"] {bottom:max(0px,env(safe-area-inset-bottom,0px))!important;}
@media(prefers-reduced-motion:reduce){.mobile-nav-controls{transition:none;}}

.shell-mobile-tabbar[data-visible="true"] .mobile-nav-reveal {position:absolute;bottom:100%;left:calc(50% - 22px);}

/* Home previews use the same card, metadata and cell geometry before data arrives. */
.home-refresh .mini-board-card-skeleton {padding:0;gap:.65rem;}
.mini-board-card-skeleton .mini-board-card-header > div {width:100%;}
.mini-board-card-skeleton .skeleton-line-title {display:block;}

.loading-board-silhouette.board {aspect-ratio:auto;border:0;border-radius:0;background:none;}

.overlay-key {
 --board-legend-icon-track:24px;
 --board-legend-column-gap:8px;
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(min(100%,8.75rem),1fr));
 align-items:start;
 gap:10px 12px;
 min-width:0;
}
.legend-family {display:grid;align-content:start;min-width:0;}
.legend-key-row {
 display:grid;
 grid-template-columns:var(--board-legend-icon-track) minmax(0,1fr);
 column-gap:var(--board-legend-column-gap);
 align-items:start;
 min-width:0;
 line-height:1.5;
 text-align:left;
 white-space:normal;
}
.overlay-key .legend-inspection.legend-key-row {width:100%;padding:4px 0;align-content:center;}
.legend-key-label {min-width:0;overflow-wrap:anywhere;}
.overlay-key .legend-key-icon {
 --legend-key-icon-size:12px;
 grid-column:1;
 justify-self:center;
 align-self:start;
 margin:4px 0 0;
}
.overlay-key .commander-key {--legend-key-icon-size:16px;margin-block-start:2px;}
.overlay-key .supply-point {--legend-key-icon-size:14px;margin-block-start:3px;}
.overlay-key .swatch:is(.command,.supply) {--legend-key-icon-size:10px;margin-block-start:5px;}
.overlay-key .previous-turn-key-swatch {--legend-key-icon-size:20px;margin-block-start:0;}
.legend-family-child {padding-block:2px;}
.legend-peer {padding-block:12px 8px;}
.legend-context-row {grid-column:1 / -1;min-width:0;}
.legend-context-row.legend-key-row {width:fit-content;max-width:100%;padding-block:2px;}

/* Keep the approved taller actions and their hit clearance inside the existing
   desktop viewport budget. Reclaim board-only chrome, not usable cell size. */
#app[data-shell-layout-mode="wide"] [data-shell-panel="board"] {padding-block-start:.5rem;padding-block-end:var(--board-legend-safe-bottom,12px);}
#app[data-shell-layout-mode="wide"] [data-shell-panel="board"] .board-heading {margin-block-end:0;}
#app[data-shell-layout-mode="wide"] [data-shell-panel="board"] .board-message-slot {margin-block-end:0;}
/* Narrow cards share the fixed heading/prompt slots. Their default bottom
   margins duplicate that reservation and push a normal-height Board offscreen.
   Reclaim only static spacing, preserving cell sizes and action hit clearance. */
#app[data-shell-layout-mode="narrow"] [data-shell-panel="board"] .board-heading {margin-block-end:0;}
#app[data-shell-layout-mode="narrow"] [data-shell-panel="board"] .board-message-slot {margin-block-end:0;}
/* Keep the narrow Board at its established compact panel inset. The legend
   alone adds the remaining clearance needed to stay outside both mineral
   corner cuts, including when labels wrap at enlarged text sizes. */
#app[data-shell-layout-mode="narrow"][data-shell-route="game"] [data-shell-panel="board"],
#app[data-shell-layout-mode="narrow"][data-shell-route="invite"] [data-shell-panel="board"] {
  --board-legend-inset-delta:max(0px,calc(var(--board-legend-inline-inset,20px) - .4rem));
}
#app[data-shell-layout-mode="narrow"] [data-shell-panel="board"] .overlay-key {
  margin-inline:var(--board-legend-inset-delta,0px);
}
/* Desktop squares fit beneath stable chrome; short windows keep usable cells and scroll. */
#app[data-shell-layout-mode="wide"] [data-shell-panel="board"] {
  --board-grid-inline-size:min(100%,var(--desktop-board-side,max(396px,calc(100dvh - 25.5rem))));
}
#app[data-shell-layout-mode="wide"] [data-shell-panel="board"] .board-wrap:not(.computer-replay-wrap) {
  width:var(--board-grid-inline-size);
  margin-inline:auto;
}
#app[data-shell-layout-mode="wide"] [data-shell-panel="board"] .previous-turn-key-host {width:var(--board-grid-inline-size);}
#app[data-shell-layout-mode="wide"] [data-shell-panel="board"] .board {
  aspect-ratio:1;
  grid-template-columns:repeat(10,minmax(0,1fr));
  grid-template-rows:repeat(10,minmax(0,1fr));
}
#app[data-shell-layout-mode="wide"] [data-shell-panel="board"] .board > .cell {aspect-ratio:1;min-height:0;min-width:0;padding:3px;}
@media(pointer:coarse) {
  #app[data-shell-layout-mode="wide"] [data-shell-panel="board"] {--board-grid-inline-size:min(100%,var(--desktop-board-side,max(476px,calc(100dvh - 25.5rem))));}
}

#shell-board-turn-indicator {display:block;max-width:100%;min-width:0;}
#shell-board-turn-indicator:has(.board-turn-name) {display:flex;}
.board-turn-name {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
#shell-board-turn-indicator > :last-child {flex-shrink:0;white-space:pre;}

.board-heading {display:flex;flex-wrap:wrap;align-items:baseline;gap:.25em;}
.board-heading > span:last-child {flex:1 1 8ch;min-width:0;}

.board-turn-name,.history-actor {unicode-bidi:isolate;}

/* Bound only spectator names. Full names stay in DOM/title for accessibility. */
.board-message-name {display:inline-block;max-inline-size:12ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:top;unicode-bidi:isolate;}

.board-message-row {display:block;}

/* Composition rows share the same metrics in live, primary and fallback copies.
   Rules separate meanings; replay/status controls belong below their own copy. */
.board-message-row {position:relative;line-height:var(--board-message-prose-line-height,1.5);}
.board-message-row + .board-message-row {margin-block-start:.5em;}
.board-message-row + .board-message-row::before {content:"";position:absolute;inset-inline:0;top:-.25em;border-top:1px solid var(--line);pointer-events:none;}
.board-message-actions {display:flex;flex-wrap:wrap;align-items:baseline;gap:calc(var(--board-message-detached-gap-em) * 1em);margin-block-start:calc(var(--board-message-detached-gap-em) * 1em);padding-block:var(--board-action-hit-inset);}

/* Recovery decorates only mutation surfaces. Labels and layout remain steady. */
.board-preview-inline-button[data-mutation-unavailable="true"] {
  position:relative;
  isolation:isolate;
  opacity:1;
  color:#65675f;
  border-color:#85877d;
  background:#eeeee7;
}
.board-preview-inline-button[data-mutation-unavailable="true"]::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  border-radius:inherit;
  background:color-mix(in srgb,#65675f 24%,transparent);
  opacity:.15;
  pointer-events:none;
}
.board-preview-inline-button[data-mutation-unavailable="true"] > * {position:relative;z-index:1;}
.board-preview-inline-button[data-mutation-pulse="true"]::after {
  animation:notification-processing var(--notification-processing-cycle) ease-in-out infinite;
  animation-delay:var(--surface-pulse-delay,0ms);
}
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .board-preview-inline-button[data-mutation-pulse="true"]::after {animation:none;opacity:.15;}
}

/* Replicas establish only the routine floor. The controller measures both font
   families plus live content, keeping replicas outside intrinsic grid sizing. */
.board-message-slot {position:relative;box-sizing:border-box;padding-block:var(--board-message-paint-guard);}
.board-message-slot[data-height-managed="true"] {display:block;overflow-x:visible;overflow-y:clip;}
/* Keep descendant action margins inside the live border box measured by the height owner. */
.board-message-live {display:flow-root;align-self:start;}
.board-message-slot[data-height-managed="true"] > .board-message-sizing {position:absolute;inset-inline:0;top:var(--board-message-paint-guard);min-height:0;}
.board-message-slot .board-preview-label {min-height:0;line-height:var(--board-message-prose-line-height);}

/* The five routine prompts need at most one line above14.5em in both
   families at100/200%: measured worst intrinsic frontier14.4943em,
   rounded outward to1/16em. Below that boundary retain two prose lines
   plus one actual inline-action growth for cold-font admission. The action
   allowance derives from the same font/line/padding/border metrics as its
   visible control; taller natural content still wins.
   This excludes narration, History and other extended messages. */
@container board-message (width < 14.5em) {
  .board-message-slot > .board-message-sizing[data-sizing-variant^="routine:"] {
    min-height:calc(2 * var(--board-message-prose-line-height) * 1em + var(--board-routine-action-growth) + var(--board-action-hit-inset) + var(--board-action-hit-inset));
  }
}

.board-message-slot .board-preview-inline-button:focus-visible {outline-width:var(--board-message-focus-width);outline-offset:var(--board-message-focus-offset);}

/* The short prompt grammar owns the compact floor. Board context shares this
   height owner, growing it only when the complete guidance no longer fits. */
.board-message-sizing[data-sizing-variant^="prompt:"] {min-height:0;}
#app[data-shell-layout-mode="narrow"] [data-shell-panel="board"] > .board-wrap {margin-block-start:var(--board-center-clearance,0px);}
.shell-game-alert.alert.board-context-notice:not(.warn):not(.danger) {--info:#666;--ink:#282828;--muted:#626262;display:block;padding:12px 16px;color:#282828;background:#ececec;border-color:#aaa;box-shadow:inset 0 -2px #bdbdbd;max-height:calc(100dvh - var(--recovery-effective-top,58px) - 60px - 4rem);}
.board-context-body {box-sizing:border-box;max-block-size:4.5em;padding-inline-end:52px;overflow:auto;overscroll-behavior:contain;line-height:1.5;scrollbar-gutter:stable;}
.board-context-notice .board-context-body {min-block-size:3em;}
.board-message-live .board-context-detail {margin-block:0;}
.board-context-detail .board-context-body {min-block-size:max(calc(44px - 2 * var(--board-action-hit-inset)),1.5em);}
.board-context-body:focus-visible {outline:2px solid #282828;outline-offset:2px;}
.board-context-scroll-cue {display:none;font-size:.75em;line-height:1.5;color:#626262;}
[data-context-overflow="true"] > .board-context-scroll-cue {display:block;}
.board-context-actions {margin-block-start:8px;}
.board-context-notice .board-context-replay {min-width:44px;min-height:44px;max-width:100%;background:#f7f7f7;color:#282828;border:1px solid #999;}
.board-context-notice .board-preview-coordinate-chip {background:#f7f7f7;color:#282828;border-color:#999;}
.board-context-notice .board-context-dismiss {position:absolute;top:12px;right:12px;}
/* Keep the rotated7px marker inside the existing16px notice inset.
   Its right edge then leaves more than3px before the text, without rewrapping. */
.shell-game-alert.alert.board-context-notice::before {left:4px;background:#666;}


.board-message-live:focus-visible,#shell-board:focus-visible {outline:2px solid var(--ink);outline-offset:4px;}
.overlay-key .swatch.supply::before {background:var(--connection-supply-sample);}
/* The compact navigation remains one etched glass plane, with native targets. */
.mobile-nav-controls {background:linear-gradient(135deg,rgb(255 255 255 / 88%),rgb(232 242 248 / 86%));border-color:rgb(160 180 194 / 60%);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:inset 0 1px rgb(255 255 255 / 90%);}
.shell-mobile-tabbar .shell-mobile-tab {color:#162b4d;}
#app[data-shell-route="game"][data-shell-layout-mode="narrow"] .shell-mobile-tab[aria-pressed="true"] {color:#162b4d;}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {.mobile-nav-controls{background:#f0f6fa;}}
@media(forced-colors:active) {.mobile-nav-controls{background:Canvas;backdrop-filter:none;-webkit-backdrop-filter:none;}.shell-mobile-tabbar .shell-mobile-tab{color:ButtonText;}}
