/* gate/css/gate-table-page.css - THE READABLE TABLE (gate/js/gate-table-page.js; the usability reports of 2026-10-10,
 * UI-03; docs/READABILITY.md). The room kit's floor (js/room-ui.css): no word under 16 CSS px, every button 44 x 44 (48
 * on a touch screen). Nothing here is ever written smaller; the sizes come from the kit's own tokens, which the text
 * size (Normal, Larger, Largest) scales. The root is the kit's .bh layer (fixed over the canvas, presses pass through
 * it); the script places the boxes in the parts of the table where no card ever sits. */

.gtp[data-off] .gtp-col, .gtp[data-off] .gtp-end, .gtp[data-off] .gtp-pin, .gtp[data-off] .gtp-foe { display: none; }
/* the god comes in over the whole table (gate-table.js announce): the boxes wait */
.gtp[data-hold] .gtp-col, .gtp[data-hold] .gtp-end, .gtp[data-hold] .gtp-pin, .gtp[data-hold] .gtp-foe { visibility: hidden; }

.gtp-col, .gtp-end { position: fixed; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; pointer-events: none; }
.gtp-col[hidden], .gtp-end[hidden] { display: none; }
.gtp-col[data-dim], .gtp-end[data-dim] { opacity: 0.45; }

.gtp-box {
  pointer-events: auto; display: flex; flex-direction: column; gap: 6px; min-height: 0; padding: 8px 10px;
  border-radius: 12px; background: rgba(13, 9, 22, 0.9); border: 1px solid var(--rui-line); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.gtp-col--left .gtp-box { flex: 0 1 auto; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
/* a PC's column: THEM over the turn; the turn's words scroll before its buttons move */
.gtp-them { flex: 0 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.gtp-act { flex: 0 1 auto; min-height: auto; max-height: 100%; }
/* a PC's column at the largest text: THEM keeps up to its share and scrolls; the turn's words give way before its buttons */
.gtp[data-mode="wide"] .gtp-them { flex: 0 0 auto; max-height: 42%; }
.gtp[data-mode="wide"] .gtp-act { min-height: 0; }
.gtp[data-mode="compact"] .gtp-box { padding: 6px 8px; gap: 4px; }
.gtp-scroll { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 4px; }

/* THE NAME beside the avatar: its middle on the strip's line, a second line only for a long name */
.gtp-foe { position: fixed; transform: translateY(-50%); margin: 0; pointer-events: none; font: bold calc(20px * var(--rui-s))/1.2 var(--rui-title-font);
  letter-spacing: 0.04em; text-transform: uppercase; color: #6BE04A; text-shadow: 0 0 4px #000, 0 1px 3px #000, 0 0 10px #000; overflow-wrap: break-word; }
.gtp-foe[data-tone="unicorn"] { color: #FF8FC7; }
.gtp-foe[hidden] { display: none; }
.gtp[data-mode="compact"] .gtp-foe { font-size: calc(17px * var(--rui-s)); letter-spacing: 0.02em; }
.gtp-them .gtp-line:first-child { font-weight: bold; color: #6BE04A; }
.gtp-them[data-tone="unicorn"] .gtp-line:first-child { color: #FF8FC7; }
.gtp-line { margin: 0; font-size: var(--rui-min); line-height: 1.3; color: var(--rui-soft); overflow-wrap: break-word; }
.gtp-note { font-style: italic; color: #C9A8F5; }
.gtp-you { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; border-top: 1px solid var(--rui-line); }
.gtp-you .gtp-line:first-child { color: var(--rui-ink); font-weight: bold; }
.gtp-you:empty { display: none; }
.gtp-turn { margin: 0; font-size: var(--rui-min); line-height: 1.3; color: #C9A8F5; }
.gtp-hint { margin: 0; font-size: var(--rui-min); line-height: 1.35; font-weight: bold; color: var(--rui-gold); }
.gtp-log { list-style: none; margin: 2px 0 0; padding: 6px 0 0; border-top: 1px solid var(--rui-line); display: flex; flex-direction: column; gap: 3px; }
.gtp-log li { font-size: var(--rui-min); line-height: 1.3; color: #C9BEE2; }
.gtp-log[hidden] { display: none; }
/* a phone keeps the motto and the log's lines for the Log sheet */
.gtp[data-mode="compact"] .gtp-note, .gtp[data-mode="compact"] .gtp-log { display: none; }

/* Log and Concede (Give up), Leave and Faster on a watched match: side by side, onto a second row when narrow */
.gtp-row { flex: none; display: flex; flex-wrap: wrap; gap: 6px; }
.gtp-row > .rui-btn { flex: 1 1 auto; padding-left: 8px; padding-right: 8px; }
.gtp[data-mode="compact"] .gtp-row { gap: 4px; }
.gtp[data-mode="compact"] .gtp-row > .rui-btn { padding-left: 6px; padding-right: 6px; }
.gtp-btn[data-tone="warn"] { color: #FFB3BE; border-color: rgba(255, 107, 107, 0.75); }

/* END TURN: the table's one big button, at the foot of its place */
.gtp-end { justify-content: flex-end; }
.gtp-end > .rui-btn { pointer-events: auto; width: 100%; font-size: calc(18px * var(--rui-s)); }
.gtp-end > .rui-btn:disabled { color: #DED4F2; }
.gtp-end[data-lit] > .rui-btn { outline: 3px solid var(--rui-gold); outline-offset: 3px; box-shadow: 0 0 22px rgba(245, 194, 66, 0.8); }

/* THE PIN: the energy's words by its pips */
.gtp-pin { position: fixed; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
  font: bold var(--rui-min)/1.1 var(--rui-title-font); letter-spacing: 0.06em; color: var(--rui-gold); text-shadow: 0 0 4px #000, 0 1px 3px #000, 0 0 8px #000; }
.gtp-pin[hidden] { display: none; }

/* THE TOAST: a moment's line in the middle of the table */
.gtp-toast { position: fixed; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; padding: 8px 16px; border-radius: 10px;
  font-size: var(--rui-min); line-height: 1.35; font-weight: bold; text-align: center; color: var(--rui-ink);
  background: rgba(20, 18, 26, 0.94); border: 1px solid rgba(245, 194, 66, 0.7); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6); }
.gtp-toast[hidden] { display: none; }

/* THE FIRST NIGHT's words */
.gtp-coach {
  position: fixed; z-index: 3; pointer-events: auto; width: min(calc(520px * var(--rui-s)), calc(100vw - 32px)); max-height: calc(100vh - 24px);
  overflow-y: auto; overscroll-behavior: contain; padding: 10px 16px 12px; border-radius: 14px;
  background: rgba(20, 18, 26, 0.97); border: 2px solid rgba(245, 194, 66, 0.85); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}
.gtp-coach[hidden] { display: none; }
.gtp-coach__kicker { margin: 0; font-size: var(--rui-min); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rui-soft); }
.gtp-coach__title { margin: 2px 0 6px; font: bold var(--rui-h2)/1.2 var(--rui-title-font); color: var(--rui-gold); }
.gtp-coach__body { margin: 0 0 10px; font-size: var(--rui-body); line-height: 1.45; white-space: pre-line; }
.gtp[data-mode="compact"] .gtp-coach__body { font-size: var(--rui-min); margin-bottom: 8px; }
.gtp-coach__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

/* WHICH POWER RIDES WITH IT (a sheet, js/room-ui.js dialog) */
.gtp-power__ask { margin-top: 0; color: var(--rui-soft); letter-spacing: 0.06em; text-transform: uppercase; }
.gtp-power { display: flex; gap: 14px; align-items: stretch; }
.gtp-power__art { flex: none; width: calc(120px * var(--rui-s)); align-self: flex-start; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; border: 2px solid var(--rui-gold); }
.gtp-power__opts { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, calc(220px * var(--rui-s))), 1fr)); gap: 10px; }
.gtp-power__opt { align-items: flex-start; justify-content: flex-start; gap: 4px; padding: 12px 14px; text-align: left; }
.gtp-power__opt--attack { border-color: rgba(255, 107, 107, 0.8); }
.gtp-power__opt--defense { border-color: rgba(127, 224, 214, 0.8); }
.gtp-power__kind { font-size: var(--rui-min); letter-spacing: 0.12em; }
.gtp-power__opt--attack .gtp-power__kind { color: #FF8FA0; }
.gtp-power__opt--defense .gtp-power__kind { color: #7FE0D6; }
.gtp-power__name { font: bold var(--rui-h2)/1.2 var(--rui-title-font); color: var(--rui-ink); text-transform: uppercase; }
.gtp-power__text { font-size: var(--rui-min); font-weight: normal; line-height: 1.4; color: var(--rui-soft); }
.gtp-power__fav { font-size: var(--rui-min); font-style: italic; font-weight: normal; color: var(--rui-gold); }
.gtp-power__note { margin-bottom: 0; font-style: italic; color: var(--rui-soft); }
@media (max-width: 560px), (max-height: 420px) { .gtp-power__art { width: calc(84px * var(--rui-s)); } }
@media (max-width: 460px) { .gtp-power { flex-direction: column; } }

/* THE ATTACK WINDOW (gate-table.js drawReactSheet) in the table's layer: a phone keeps it down the right of the screen
   (gate.css .gate-react); on a PC the script stands it in the column, End turn's place under it */
/* the layer lets presses through to the cards (the room kit's .bh); the window takes its own, or its answers never
   reach a press (2026-10-12: the overlap scan found the canvas under them, ARCHITECTURE.md convention 36) */
.gtp .gate-react { z-index: 4; pointer-events: auto; }
/* while it is up the turn's box and End turn have nothing to do: they wait out of sight under it */
.gtp[data-react] .gtp-col--right, .gtp[data-react] .gtp-end { visibility: hidden; }

/* AN EMPTY ROW says so where its cards would be */
.gtp-mark { position: fixed; transform: translate(-50%, -50%); margin: 0; pointer-events: none; text-align: center;
  font-size: var(--rui-min); line-height: 1.3; color: #DED4F2; text-shadow: 0 0 4px #000, 0 1px 3px #000, 0 0 10px #000; }
.gtp[data-off] .gtp-marks, .gtp[data-hold] .gtp-marks { display: none; }

/* THE NAME in THEM's box, when the strip has no room for it (a phone at the larger text sizes) */
.gtp-them__name { display: none; font: bold var(--rui-min)/1.25 var(--rui-title-font); letter-spacing: 0.03em; text-transform: uppercase; color: #6BE04A; }
.gtp-them[data-tone="unicorn"] .gtp-them__name { color: #FF8FC7; }
.gtp[data-long] .gtp-them__name:not([hidden]) { display: block; }
.gtp[data-long] .gtp-foe { display: none; }
/* YOUR energy in words: read aloud always, shown when the pin has no room beside the hand */
.gtp-you__energy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gtp[data-squeezed] .gtp-you__energy { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; font-weight: bold; color: var(--rui-gold); }
.gtp[data-squeezed] .gtp-pin { display: none; }
