:root {--tgx-ring-hex:#77edac;--tgx-ring-rgb:119,237,172;}
.dest-combo {
  position: absolute;
  width: 50px; height: 50px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px dashed var(--tgx-ring-hex);
  background: rgba(var(--tgx-ring-rgb), 0.08);
  box-shadow: 0 0 8px rgba(var(--tgx-ring-rgb), 0.45);
  z-index: 24;
  pointer-events: none;
  box-sizing: border-box;
}
.dest-combo-badge {
  position: absolute;
  left: 50%; top: 100%;
  transform: translate(-50%, 1px);
  padding: 0 4px;
  border-radius: 6px;
  background: rgba(10, 14, 24, 0.82);
  color: var(--tgx-ring-hex);
  font: 700 10px/14px system-ui, -apple-system, sans-serif;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 520px) {
  .dest-combo { width: 22px; height: 22px; border-width: 2px; box-shadow: 0 0 5px rgba(var(--tgx-ring-rgb), 0.45); }
  .dest-combo-badge { font-size: 8px; line-height: 11px; padding: 0 2px; }
}
@media (max-width: 360px) {
  .dest-combo { width: 18px; height: 18px; border-width: 1.5px; }
}

/* TrigammonX v6.1.7.0 — F3 Combined Moves ON/OFF + labels (U3a).
   Presentation only; pairs with js/25-combined-moves.js. css/02 is untouched:
   every rule here is additive/overriding and scoped to the combined-dice
   markers, the js/25 sibling badge, the explanation bubble and the two
   Combined Moves controls. Removing this sheet and js/25 restores v6.1.6.6. */

/* ── 1. The dashed ring becomes a DOUBLE segmented ring (non-colour
      distinction from the solid single-die ring). Outer size unchanged, so
      it still equals the solid ring at every breakpoint. ── */
.dest-combo::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1.5px dashed rgba(var(--tgx-ring-rgb), 0.9);
  pointer-events: none;
  box-sizing: border-box;
}
@media (max-width: 520px) {
  .dest-combo::before { inset: 2px; border-width: 1px; }
}
@media (max-width: 360px) {
  .dest-combo::before { inset: 2px; border-width: 1px; }
}

/* ── 2. The sibling badge (js/25 tgxComboBuildBadge / tgxComboLayoutBadges).
      Positioned by JS on the board-interior side of its ring; kept upright
      with the same counter-rotation authority as .pt-num (js/04
      syncBoardView publishes --tx-pt-counter-rot). Beats the css/02 child
      badge rules by specificity; the legacy child badge is unaffected. ── */
#board-wrap > .dest-combo-badge.tgx-cb {
  position: absolute;
  left: 0; top: 0;
  z-index: 26;                 /* above solid rings (25), below .dest-hint / Academy markers (35) */
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
  border-radius: 6px;
  border: 1px solid rgba(var(--tgx-ring-rgb), 0.75);
  background: rgba(10, 14, 24, 0.88);
  color: var(--tgx-ring-hex);
  font: 800 11px/14px system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  box-sizing: border-box;
  transform: translate(-50%, -50%) rotate(var(--tx-pt-counter-rot, 0deg));
  transition: transform var(--tx-pt-counter-rot-dur, 0.35s) ease;
  visibility: hidden;          /* shown once js/25 has placed it (no flash at 0,0) */
}
#board-wrap > .dest-combo-badge.tgx-cb.is-placed { visibility: visible; }
#board-wrap > .dest-combo-badge.tgx-cb.is-ordered { border-style: solid; }
#board-wrap > .dest-combo-badge.tgx-cb .dest-combo-more {
  display: inline-block;
  padding: 0 3px;
  border-radius: 999px;
  border: 1px solid rgba(var(--tgx-ring-rgb), 0.85);
  background: transparent;
  color: var(--tgx-ring-hex);
  font-size: 0.82em;
  line-height: 1.15;
  font-weight: 700;
}
#board-wrap > .dest-combo-badge.tgx-cb.is-expanded {
  z-index: 27;
  background: rgba(10, 14, 24, 0.96);
  box-shadow: 0 0 0 2px rgba(var(--tgx-ring-rgb), 0.55);
}
@media (max-width: 520px) {
  #board-wrap > .dest-combo-badge.tgx-cb { font-size: 9px; line-height: 12px; padding: 0 2px; gap: 2px; border-radius: 4px; }
}

/* ── 3. Explanation bubble (a tap on a dashed ring / badge): short-lived,
      pointer-events:none, upright, kept inside the board. ── */
#board-wrap > .dest-combo-explain {
  position: absolute;
  left: 0; top: 0;
  z-index: 28;
  max-width: 200px;
  width: max-content;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(var(--tgx-ring-rgb), 0.85);
  background: rgba(10, 14, 24, 0.95);
  color: #e9ecf3;
  font: 600 11px/1.3 system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  box-sizing: border-box;
  transform: translate(-50%, -50%) rotate(var(--tx-pt-counter-rot, 0deg));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  animation: tgx-combo-explain-in 0.18s ease-out;
}
@media (max-width: 520px) {
  #board-wrap > .dest-combo-explain { max-width: 150px; font-size: 9.5px; padding: 4px 6px; }
}
@keyframes tgx-combo-explain-in { from { opacity: 0; } to { opacity: 1; } }

/* ── 4. OFF belt: nothing combined is ever visible while OFF. ── */
body.tgx-combos-off .dest-combo,
body.tgx-combos-off .dest-combo-badge,
body.tgx-combos-off .dest-combo-explain { display: none !important; }

/* ── 5. The in-play toggle chip — its own line directly under the
      "Available Moves" label (always the same line, so the turn row never
      jolts when dice are rolled or the state changes). Native <button>,
      aria-pressed; state is text, never colour-only. js/25 switches to the
      short text ("Combined: ON") only when the column is too narrow. ── */
.udp-col-available .dice-label.tgx-combo-host {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 3px;
}
.tgx-combo-toggle {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-self: flex-start;
  align-items: center;
  width: auto;
  min-width: 0;
  max-width: none;
  gap: 0;
  margin: 0;
  padding: 2px 7px;
  min-height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(216, 180, 106, 0.55);
  background: rgba(216, 180, 106, 0.10);
  color: var(--v6-text, #e9ecf3);
  font: 700 10px/14px system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  opacity: 1;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
.tgx-combo-toggle .tgx-combo-toggle-short { display: none; }
.tgx-combo-toggle.is-compact .tgx-combo-toggle-name { display: none; }
.tgx-combo-toggle.is-compact .tgx-combo-toggle-short { display: inline; }
.tgx-combo-toggle .tgx-combo-toggle-state {
  margin-left: 3px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--v6-gold, #d8b46a);
  color: #1a1406;
  font-weight: 800;
}
.tgx-combo-toggle[aria-pressed="false"] {
  border-color: rgba(154, 163, 181, 0.55);
  background: transparent;
  color: var(--v6-text-dim, #9aa3b5);
}
.tgx-combo-toggle[aria-pressed="false"] .tgx-combo-toggle-state {
  background: transparent;
  color: var(--v6-text-dim, #9aa3b5);
  box-shadow: inset 0 0 0 1px rgba(154, 163, 181, 0.7);
}
.tgx-combo-toggle[data-status="scope"] .tgx-combo-toggle-state::after,
.tgx-combo-toggle[data-status="limited"] .tgx-combo-toggle-state::after,   /* v7.0.1 U1-legalturn — per-selection */
.tgx-combo-toggle[data-status="budget"] .tgx-combo-toggle-state::after { content: '\2009\2026'; }
.tgx-combo-toggle:hover { border-color: var(--v6-gold, #d8b46a); }
.tgx-combo-toggle:focus-visible { outline: 2px solid var(--v6-gold-br, #f0cf8c); outline-offset: 2px; }
@media (pointer: coarse) {
  .tgx-combo-toggle { min-height: 24px; padding: 3px 8px; }
  /* invisible hit-slop: a 32px-tall target without growing the row. It extends UP over the
     (non-interactive) "Available Moves" label only — never down into #dice-exp-row. */
  .tgx-combo-toggle::before { content: ''; position: absolute; left: -4px; right: -4px; top: -8px; bottom: 0; }
}

/* Game Screen Setup "Board" section row (shared section, data-order 20) */
.tgx-gss-row .tgx-gss-hint { font-size: 11px; font-style: italic; color: var(--v6-text-dim, #9aa3b5); }

/* aria-live explanation line — visually hidden, read by screen readers */
.tgx-combo-live {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  #board-wrap > .dest-combo-badge.tgx-cb,
  #board-wrap > .dest-combo-explain { transition: none !important; animation: none !important; }
}

/* ── v7.0.1 U1-legalturn — Available Moves chip states (presentation only) ──
   The chips are a projection of the one legal-turn model (js/32):
     (no extra class)  playable now
     .later            playable only AFTER another move this turn (never looks
                       used or dead: full brightness + a small gold "then" pip)
     .dead.none        not playable this turn (max-dice rule) — keeps the
                       existing v2.1.2 dead look (css/01)
     .used             used
   The roll-type line may add "· M of R dice can be played" (.tx-lt-note). */
.die-chip.expanded.later {
  border-style: solid;
  border-color: #fd79a8;
  color: #ff9ec2;
  opacity: 1;
}
.die-chip.expanded.later::after {
  content: '\203A';
  position: absolute;
  top: -6px; right: -6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--v6-gold, #d8b46a);
  color: #1a1406;
  border: 1px solid #1a1406;
  font-size: 12px;
  font-weight: 900;
  line-height: 12px;
  text-align: center;
  font-family: Arial, sans-serif;
  text-shadow: none;
  box-sizing: border-box;
  pointer-events: none;
}
.roll-type .tx-lt-note {
  color: var(--v6-gold-br, #f0cf8c);
}
/* v7.0.1 r2 (red-team correction) — .unresolved: the per-die check was cut short
   (js/32 node/time guard), so this die is neither claimed playable nor shown dead:
   a neutral dotted chip with a small grey "?" pip until the background check finishes. */
.die-chip.expanded.unresolved {
  border-style: dotted;
  border-color: #9aa0a8;       /* neutral grey: not the pink "playable" palette, not the dead look */
  color: #c9ced6;
  opacity: 1;
}
.die-chip.expanded.unresolved::after {
  content: '?';
  position: absolute;
  top: -6px; right: -6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #8a8f98;
  color: #111;
  border: 1px solid #111;
  font-size: 11px;
  font-weight: 900;
  line-height: 13px;
  text-align: center;
  font-family: Arial, sans-serif;
  text-shadow: none;
  box-sizing: border-box;
  pointer-events: none;
}
/* TrigammonX v7.0.0 — N1 Combined Move preview + ACCEPT MOVE / CANCEL (U7a).
   Pairs with js/29-combined-accept.js. Presentation only: the provisional
   ghost, the "leaving" source mark, numbered intermediate landing points, the
   ACCEPT/CANCEL panel (inside #board-stage, never over Roll / End Turn /
   Take Back), and the step-by-step traveller used on ACCEPT. Nothing here
   receives a board pointer event except the panel itself. */

/* ── 1. Provisional checker at the final destination ── */
#board-wrap > .tgx-cap-ghost {
  position: absolute;
  z-index: 27;                     /* above checkers (20), solid rings (25), badges (26) */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-sizing: border-box;
  opacity: 0.78;
  border: 2px dashed rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55), 0 0 12px rgba(255, 255, 255, 0.55);
  animation: tgxCapGhost 1.2s ease-in-out infinite;
}
#board-wrap > .tgx-cap-ghost::after {    /* "provisional" hatch so it never reads as a real checker */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.28) 0 3px, transparent 3px 7px);
}
#board-wrap > .tgx-cap-ghost::before {   /* gold "provisional" halo, the panel's colour, readable on tiny boards */
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px dashed #f3d38a;
  box-shadow: 0 0 8px rgba(243, 211, 138, 0.8);
}
#board-wrap > .tgx-cap-ghost.is-hit { box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55), 0 0 0 5px rgba(255, 120, 90, 0.85), 0 0 14px rgba(255, 120, 90, 0.7); }
.tgx-cap-ghost.blue,  .tgx-cap-dot.blue,  .tgx-cap-traveller.blue  { background: radial-gradient(circle at 35% 32%, #8fc6ff 0%, #4a90d9 45%, #1d5f99 80%, #134a7d 100%); }
.tgx-cap-ghost.green, .tgx-cap-dot.green, .tgx-cap-traveller.green { background: radial-gradient(circle at 35% 32%, #82f5d9 0%, #2cd9a8 45%, #009873 80%, #00735a 100%); }
.tgx-cap-ghost.red,   .tgx-cap-dot.red,   .tgx-cap-traveller.red   { background: radial-gradient(circle at 35% 32%, #ff9b9a 0%, #ec5e5d 45%, #b8332f 80%, #962720 100%); }
@keyframes tgxCapGhost { 0%, 100% { opacity: 0.62; } 50% { opacity: 0.9; } }

/* ── 2. The checker that would leave its point ── */
#board-wrap .checker.tgx-cap-src {
  opacity: 0.42;
  outline: 2px dashed rgba(255, 255, 255, 0.9);
  outline-offset: 1px;
}
#bar-trays .board-tray.tgx-cap-src { outline: 2px dashed rgba(255, 255, 255, 0.9); outline-offset: 1px; }

/* ── 3. Intermediate landing points of the chosen route (numbered, upright) ── */
#board-wrap > .tgx-cap-dot {
  position: absolute;
  z-index: 27;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-sizing: border-box;
  opacity: 0.85;
  border: 2px dotted rgba(255, 255, 255, 0.95);
  display: flex; align-items: center; justify-content: center;
}
#board-wrap > .tgx-cap-dot .tgx-cap-dot-n {
  font: 800 10px/1 system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  transform: rotate(var(--tx-pt-counter-rot, 0deg));
}

/* ── 4. The ACCEPT / CANCEL panel (inside #board-stage; js/29 picks the
      position on a fine grid: its controls never over a dashed ring, badge
      or solid ring; its body as far as possible off the ghost and the
      leaving checker. Stage percentages keep it inside the clipped stage) ── */
#board-stage > .tgx-cap-panel {
  position: absolute;
  z-index: 60;                     /* above every board layer (checkers 20, rings 25, badges 26, bubble, logo hit-zone) */
  box-sizing: border-box;
  width: max-content;
  max-width: min(300px, calc(100% - 16px));
  min-width: min(210px, calc(100% - 16px));
  max-height: calc(100% - 16px);
  overflow: auto;
  padding: 8px 10px 9px;
  border-radius: 10px;
  border: 1px solid rgba(216, 180, 106, 0.85);
  background: rgba(10, 13, 24, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.6);
  color: #f1ead8;
  font: 500 12.5px/1.35 system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-align: left;
  transform: translate(-50%, -50%);
  touch-action: manipulation;
  pointer-events: none;            /* tap-through body (js/29 swallows non-target taps inside it) */
}
.tgx-cap-panel button, .tgx-cap-panel select, .tgx-cap-panel .tgx-cap-routes { pointer-events: auto; }

.tgx-cap-panel .tgx-cap-title { font-weight: 800; font-size: 13.5px; color: #f3d38a; letter-spacing: 0.2px; }
.tgx-cap-panel .tgx-cap-desc  { font-size: 11.5px; color: #c9c2b0; margin: 1px 0 4px; }
.tgx-cap-panel .tgx-cap-steps { margin: 2px 0 4px; padding-left: 20px; }
.tgx-cap-panel .tgx-cap-steps li { margin: 1px 0; }
.tgx-cap-panel .tgx-cap-routes {
  margin: 2px 0 4px; padding: 3px 6px 4px;
  border: 1px solid rgba(216, 180, 106, 0.45); border-radius: 8px;
  max-height: 9.6em; overflow: auto;
}
.tgx-cap-panel .tgx-cap-routes legend { padding: 0 4px; font-size: 11.5px; font-weight: 700; color: #f3d38a; }
.tgx-cap-panel .tgx-cap-route {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 3px 2px; min-height: 26px; cursor: pointer; border-radius: 6px;
}
.tgx-cap-panel .tgx-cap-route:has(input:checked) { background: rgba(243, 211, 138, 0.14); }
.tgx-cap-panel .tgx-cap-route input { margin: 2px 0 0; width: 16px; height: 16px; flex: 0 0 auto; accent-color: #f3d38a; }
.tgx-cap-panel .tgx-cap-hint { font-size: 11px; color: #b8b0a0; margin: 2px 0 6px; }
.tgx-cap-panel .tgx-cap-actions { display: flex; gap: 8px; }
.tgx-cap-panel .tgx-cap-actions button {
  flex: 1 1 0;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 8px;
  font: 800 12.5px/1.1 system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: 0.4px;
  cursor: pointer;
}
.tgx-cap-panel .tgx-cap-accept { background: #d8b46a; color: #15120a; border: 1px solid #f3d38a; }
.tgx-cap-panel .tgx-cap-accept:disabled { background: #4a4336; color: #9a917e; border-color: #5d5443; cursor: not-allowed; }
.tgx-cap-panel .tgx-cap-cancel { background: transparent; color: #f1ead8; border: 1px solid rgba(241, 234, 216, 0.7); }
.tgx-cap-panel button:focus-visible,
.tgx-cap-panel input:focus-visible { outline: 2px solid #8fc6ff; outline-offset: 2px; }
@media (pointer: coarse) {
  .tgx-cap-panel .tgx-cap-actions button { min-height: 44px; }
  .tgx-cap-panel .tgx-cap-route { min-height: 34px; align-items: center; }
  .tgx-cap-panel .tgx-cap-route input { margin: 0; width: 20px; height: 20px; }
}
@media (max-width: 520px) {
  #board-stage > .tgx-cap-panel { font-size: 12px; padding: 7px 8px 8px; }
  .tgx-cap-panel .tgx-cap-routes { max-height: 7.6em; }
}

/* ── 5. ACCEPT: the checker travels through each landing point ── */
#board-wrap > .tgx-cap-traveller {
  position: absolute;
  z-index: 46;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55), 0 6px 16px rgba(0, 0, 0, 0.55);
  transition-property: left, top;
  transition-timing-function: ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  #board-wrap > .tgx-cap-ghost { animation: none; opacity: 0.8; }
  #board-wrap > .tgx-cap-traveller { transition: none; }
}

/* ── 6. Compact panel on small boards (phones): summary line + native route
      <select>; the description and hint lines are folded into the title. ── */
#board-stage > .tgx-cap-panel.is-compact { padding: 6px 8px 7px; min-width: min(200px, calc(100% - 12px)); max-width: calc(100% - 12px); }
.tgx-cap-panel.is-compact .tgx-cap-title { font-size: 12.5px; }
.tgx-cap-panel.is-compact .tgx-cap-desc,
.tgx-cap-panel.is-compact .tgx-cap-hint { display: none; }
.tgx-cap-panel .tgx-cap-summary { font-size: 11.5px; margin: 2px 0 5px; }
.tgx-cap-panel .tgx-cap-select-label { display: block; font-size: 11px; font-weight: 700; color: #f3d38a; margin: 2px 0 2px; }
.tgx-cap-panel .tgx-cap-select {
  display: block; width: 100%; box-sizing: border-box; margin: 0 0 6px;
  min-height: 32px; padding: 3px 6px; border-radius: 7px;
  border: 1px solid rgba(216, 180, 106, 0.7); background: #151a2a; color: #f1ead8;
  font: 600 12px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (pointer: coarse) { .tgx-cap-panel .tgx-cap-select { min-height: 40px; font-size: 16px; } }  /* 16px: no iOS focus zoom */
.tgx-cap-panel.is-compact .tgx-cap-actions { gap: 6px; }
.tgx-cap-panel.is-compact .tgx-cap-actions button { padding: 4px 6px; }

/* ── 7. Review round: the 350 ms ACCEPT double-tap guard is visible — a short
      "getting ready" sweep under the label (no motion under reduced motion). ── */
.tgx-cap-panel .tgx-cap-accept.is-arming { opacity: 0.7; cursor: progress; background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)); background-repeat: no-repeat; background-position: left bottom; background-size: 0% 3px; animation: tgxCapArm 350ms linear forwards; }
@keyframes tgxCapArm { to { background-size: 100% 3px; } }
@media (prefers-reduced-motion: reduce) { .tgx-cap-panel .tgx-cap-accept.is-arming { animation: none; background-size: 100% 3px; } }

.under-board-row #tgx-combo-toggle {position:relative;display:inline-flex;min-height:44px;width:auto;flex:1 1 150px;justify-content:center;font-size:13px;}
#classic-combo-help {flex-basis:100%;font-size:12px;color:#dcc8aa;line-height:1.5;}

.under-board-row #tgx-combo-toggle::before {content:none;}
#board-stage:has(#tgx-cap-panel) .dest-combo-explain {visibility:hidden;}

.classic-combo-actions {display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;}
.classic-combo-actions .btn-take-back,.classic-combo-actions #tgx-combo-toggle {width:100%;min-width:0;min-height:44px;align-self:stretch;flex:none;margin:0;padding:9px 8px;}
