/* mgbWord page styles. Colors only through variables: the site's and the game's (tokens.css section 7).
   Two views: choosing a game (a normal site page) and the table, which fills the screen. */

body.pl[data-view="game"] { padding-top: 0; min-height: 100dvh; background: var(--pl-table-bg); overscroll-behavior: none; }
body.pl[data-view="game"]::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--pl-table-tex) 0 0 / var(--pl-table-tex-size); mix-blend-mode: var(--pl-table-tex-blend); opacity: var(--pl-table-tex-strength); }
body.pl[data-view="game"] .site-header, body.pl[data-view="game"] .site-footer { display: none; }
/* The table follows the site's light or dark mode; the page's own background is under it. */
body.pl[data-view="game"] main, [data-theme="light"] body.pl[data-view="game"] main { background: transparent; }
body.pl[data-view="game"] main::before, body.pl[data-view="game"] main::after { display: none; }

/* ---------- choosing a game ---------- */
/* The setup screens show the site's own texture behind them (main::before in styles.css: iron on dark, ash on light; Mark, Nov 7 2026) */
.pl-setup { background: transparent; padding: 28px var(--gutter) 56px; }
body.pl[data-view="settings"] main, body.pl[data-view="code"] main { min-height: 100dvh; }
.pl-setup__box { max-width: 480px; margin: 0 auto; display: grid; gap: 22px; }
.pl-setup[hidden] { display: none; }
.pl-h { font: 700 22px/1.2 var(--font-heading); margin: 8px 0 -8px; }
.pl-message { margin: 0; padding: 10px 12px; font-weight: 700; background: var(--pl-800); color: var(--pl-frost); border-left: 3px solid var(--pl-flare); }
.pl-setup input { width: 100%; min-height: 46px; padding: 8px 10px; font: inherit; font-size: 18px; color: var(--pl-frost); background: var(--pl-800); border: 1px solid var(--pl-500); border-radius: 4px; }
.pl-code { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: end; }
.pl-code label { grid-column: 1 / -1; font-weight: 700; }
.pl-code input { font-family: var(--font-accent); text-transform: uppercase; letter-spacing: .12em; }
.pl-code .pl-start { padding: 10px 22px; min-height: 46px; }
.pl-faces { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.pl-faces button { aspect-ratio: 1; font-size: 22px; line-height: 1; padding: 0; cursor: pointer; background: var(--pl-800); border: 1px solid var(--pl-700); border-radius: 4px; }
.pl-faces button[aria-pressed="true"] { background: var(--pl-flare); border-color: var(--pl-flare); }
.pl-invite { display: grid; gap: 8px; padding: 14px; text-align: center; background: var(--pl-900); color: var(--pl-frost); border: 1px solid var(--pl-700); border-radius: 6px; }
.pl-invite b { font: 700 34px/1.1 var(--font-accent); letter-spacing: .14em; }
.pl-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pl-people li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--pl-800); color: var(--pl-frost); border-radius: 4px; font-weight: 700; min-width: 0; }
.pl-people .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-people small { font-weight: 400; color: var(--pl-steel); }
#lobby-settings { display: grid; gap: 18px; }
.pl-choice { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.pl-choice legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.pl-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-seg button { flex: 1 1 0; min-width: 62px; min-height: 44px; padding: 8px 6px; font: inherit; font-weight: 700; cursor: pointer;
  color: var(--pl-frost); background: var(--pl-800); border: 1px solid var(--pl-500); border-radius: 4px; }
.pl-seg button[aria-pressed="true"] { background: var(--pl-flare); border-color: var(--pl-flare); color: var(--pl-on-flare); }
.pl-note { margin: 0; font-size: 15px; line-height: 1.4; min-height: 1.4em; }
.pl-start { min-height: 50px; font: inherit; font-weight: 700; cursor: pointer; border-radius: 4px; padding: 10px;
  background: var(--pl-flare); border: 1px solid var(--pl-flare); color: var(--pl-on-flare); }
.pl-start:disabled { cursor: default; opacity: .6; }
.pl-start--resume { background: var(--pl-800); border-color: var(--pl-500); color: var(--pl-frost); }

/* Home, settings and code screens (Nov 7 2026, Mark's pick: mockup A, one scroll). Phone first. */
.pl-home { gap: 12px; }
/* The settings and code screens skip the site header and footer (as in mockup A), so they fit a phone; Back goes home. */
body.pl[data-view="settings"] .site-header, body.pl[data-view="settings"] .site-footer,
body.pl[data-view="code"] .site-header, body.pl[data-view="code"] .site-footer { display: none; }
body.pl[data-view="settings"], body.pl[data-view="code"] { padding-top: 0; }
.pl-big { display: grid; grid-template-columns: 52px 1fr auto; gap: 2px 12px; align-items: center; width: 100%; min-height: 84px; padding: 14px;
  text-align: left; font: inherit; cursor: pointer; color: var(--pl-frost); background: var(--pl-800); border: 1px solid var(--pl-700); border-radius: 8px; }
.pl-big::after { content: "›"; grid-row: 1 / span 2; grid-column: 3; font-size: 24px; color: var(--pl-steel); }
.pl-big__ico { grid-row: span 2; width: 52px; height: 52px; display: grid; place-items: center; font-size: 28px; border-radius: 8px; background: var(--pl-900); }
.pl-big b { font-size: 19px; }
.pl-big__sub { grid-column: 2; font-size: 14px; color: var(--pl-steel); }
/* Play Shelbot (Mark's pick "3", Nov 7 2026): bright red with her face on a dark tile, so it's never red on red */
.pl-big--hot { background: var(--pl-flare); border-color: var(--pl-flare); color: var(--pl-on-flare); }
.pl-big--hot .pl-big__ico { background: var(--pl-950); overflow: visible; }
.pl-big--hot .pl-big__sub, .pl-big--hot::after { color: var(--pl-on-flare-soft); }
.pl-big--resume { min-height: 64px; background: transparent; border-style: dashed; border-color: var(--pl-500); }
.pl-big--resume .pl-big__ico { font-size: 22px; }
.pl-big[hidden] { display: none; }
.pl-screen { padding-top: 12px; padding-bottom: 0; }
.pl-bar { display: flex; align-items: center; gap: 6px; margin: 0 0 -8px -10px; }
.pl-bar .pl-h { margin: 0; }
.pl-back { min-width: 44px; min-height: 44px; font-size: 28px; line-height: 1; background: none; border: 0; color: inherit; cursor: pointer; }
.pl-dock { position: sticky; bottom: 0; z-index: 2; max-width: 480px; margin: 18px auto 0; display: grid; gap: 6px;
  padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--pl-700);
  background: color-mix(in srgb, var(--page) 70%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pl-dock .pl-start { min-height: 54px; font-size: 18px; }
.pl-center { text-align: center; }
/* The game picker and settings rows (Nov 7 2026, Mark's pick B): three boards across, then rows with a coin icon,
   a label and a note, and a strip of buttons under them */
.pl-settings { display: grid; gap: 22px; }
.pl-label { margin: 0 0 -12px; font-weight: 700; font-size: 15px; }
.pl-hint { margin: 0; text-align: center; color: var(--pl-steel); font-size: 15px; padding: 18px 0; border: 1px dashed var(--pl-700); border-radius: 6px; }
.pl-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pl-games button { min-width: 0; display: grid; gap: 6px; align-content: start; padding: 7px 6px 10px; text-align: center; font: inherit; cursor: pointer;
  color: var(--pl-frost); background: var(--pl-800); border: 2px solid var(--pl-700); border-radius: 8px; }
.pl-games b { font-size: 16px; }
.pl-games small { font-size: 12.5px; line-height: 1.3; color: var(--pl-steel); }
.pl-games button[aria-pressed="true"] { border-color: var(--pl-flare); background: var(--pl-flare-deep); color: var(--pl-on-flare); }
.pl-games button[aria-pressed="true"] small { color: var(--pl-on-flare-soft); }
/* the board pictures: White on a dark page, Iron on a light one; Circuit flips its colors (tokens.css section 7) */
.pl-pic { display: block; width: 100%; height: auto; border-radius: 4px; }
.pl-pic--light, [data-theme="light"] .pl-pic--dark { display: none; }
[data-theme="light"] .pl-pic--light { display: block; }
.pl-pic.pl-pic--wires[data-board] { --plb-base: var(--pl-pick-wires-base); --plb-line: var(--pl-pick-wires-line); --plb-tile: var(--pl-pick-wires-tile); --plb-tile-ink: var(--pl-pick-wires-ink);
  --cw-groove: var(--pl-pick-wires-groove); --cw-metal: var(--pl-pick-wires-metal); --cw-hi: var(--pl-pick-wires-hi); --cw-hole: var(--pl-pick-wires-hole); }
.pl-rows { display: grid; gap: 18px; }
.pl-rows--in { animation: pl-rows-in .25s ease-out; }   /* only when a game is first picked, not on every tap */
.pl-strip--tight button { font-size: 14px; }
@keyframes pl-rows-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pl-row { display: grid; grid-template-columns: 38px 1fr; gap: 6px 10px; align-items: center; }
.pl-row > :nth-child(n + 3) { grid-column: 1 / -1; }
.pl-row__lab { display: grid; gap: 1px; }
.pl-row__lab b { font-size: 16px; }
.pl-row__lab small { font-size: 13px; color: var(--pl-steel); }
.pl-ri { width: 38px; height: 38px; display: block; }
.pl-ri .coin { fill: var(--c); } .pl-ri .ring { fill: none; stroke: var(--pl-pu-ring); stroke-width: 1; }
.pl-ri .fl { fill: var(--pl-pu-ink); } .pl-ri .cut { fill: var(--c); }
.pl-ri .ln { fill: none; stroke: var(--pl-pu-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-ri .mouth { fill: none; stroke: var(--c); stroke-width: 1.1; stroke-linecap: round; }
.pl-ri--powers { --c: var(--pl-pu-place); } .pl-ri--time { --c: var(--pl-pu-board); } .pl-ri--words { --c: var(--pl-pu-peek); }
.pl-ri--wires { --c: var(--pl-500); }
/* custom turn time */
.pl-stepper { display: grid; grid-template-columns: 52px 1fr 52px; gap: 6px; align-items: center; padding: 6px; background: var(--pl-900); border: 1px solid var(--pl-700); border-radius: 6px; }
.pl-stepper button { min-height: 44px; font: inherit; font-size: 24px; font-weight: 700; cursor: pointer; color: var(--pl-frost); background: var(--pl-800); border: 1px solid var(--pl-500); border-radius: 4px; }
.pl-stepper output { text-align: center; font: 600 24px/1 var(--font-accent); }
.pl-stepper output small { display: block; font: 400 12px/1.4 var(--font-body); color: var(--pl-steel); }
/* Shelbot's three faces */
.pl-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pl-levels button { position: relative; min-width: 0; display: grid; justify-items: center; gap: 3px; padding: 10px 4px 8px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  color: var(--pl-frost); background: var(--pl-900); border: 1px solid var(--pl-700); border-radius: 8px; }
.pl-levels small { font-weight: 400; font-size: 12px; color: var(--pl-steel); }
.pl-levels .pl-shelbot { width: 52px; height: 52px; margin-bottom: 2px; }
/* the picked level: a red outline and a check (Mark's pick "1" of three; red frames it, never fills it) */
.pl-levels button[aria-pressed="true"] { border: 2px solid var(--pl-flare); padding: 9px 3px 7px; }
.pl-levels button[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; display: grid; place-items: center;
  font-size: 12px; border-radius: 50%; background: var(--pl-flare); color: var(--pl-on-flare); }
/* Shelbot's face (colors: tokens.css section 7, --pl-sb-*) */
.pl-shelbot { display: block; overflow: visible; }
.pl-shelbot .head { fill: var(--pl-sb-head); } .pl-shelbot .shade { fill: var(--pl-sb-shade); } .pl-shelbot .ink { fill: var(--pl-sb-ink); }
.pl-shelbot .shine { fill: var(--pl-sb-shine); } .pl-shelbot .blush { fill: var(--pl-sb-blush); opacity: .7; } .pl-shelbot .tongue { fill: var(--pl-sb-blush); }
.pl-shelbot .bow { fill: var(--pl-sb-bow); } .pl-shelbot .bow-knot { fill: var(--pl-sb-bow-knot); }
.pl-shelbot .lnk { fill: none; stroke: var(--pl-sb-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-shelbot .ant { stroke: var(--pl-sb-shade); stroke-width: 2; stroke-linecap: round; }
.pl-big__ico .pl-shelbot { width: 44px; height: 44px; }
.pl-ri--face { border-radius: 50%; background: var(--pl-flare); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--pl-pu-ring); }
.pl-ri--face .pl-shelbot { width: 30px; height: 30px; }
.pl-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: -6px; }
.pl-sub small { font-weight: 400; font-size: 12px; color: var(--pl-steel); }
.pl-strip { display: flex; gap: 4px; padding: 3px; background: var(--pl-900); border: 1px solid var(--pl-700); border-radius: 6px; }
.pl-strip button { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 4px 2px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  color: var(--pl-frost); background: none; border: 0; border-radius: 4px; }
.pl-strip button[aria-pressed="true"] { background: var(--pl-flare); color: var(--pl-on-flare); }
.pl-strip button:disabled { cursor: default; }
/* custom power-ups: how many, and which kinds */
.pl-adv { display: grid; gap: 12px; padding: 12px; border-radius: 8px; background: var(--pl-900); border: 1px solid var(--pl-700); }
.pl-dense { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pl-dense button { display: grid; gap: 4px; justify-items: center; padding: 8px 4px 6px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  color: var(--pl-frost); background: var(--pl-800); border: 1px solid var(--pl-700); border-radius: 6px; }
.pl-dense button small { font-weight: 400; font-size: 12px; color: var(--pl-steel); }
.pl-dense button[aria-pressed="true"] { background: var(--pl-flare-deep); border-color: var(--pl-flare); color: var(--pl-on-flare); }
.pl-dense button[aria-pressed="true"] small { color: var(--pl-on-flare-soft); }
.pl-mini { display: grid; grid-template-columns: repeat(7, 7px); gap: 2px; }
.pl-mini i { width: 7px; height: 7px; border-radius: 1px; background: var(--pl-sq-plain); }
.pl-mini i.on { background: var(--pl-pu-place); }
.pl-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pl-kinds button { display: grid; grid-template-columns: 30px 1fr; gap: 0 8px; align-items: center; min-height: 52px; padding: 8px; text-align: left;
  font: inherit; cursor: pointer; color: var(--pl-frost); background: var(--pl-800); border: 1px solid var(--pl-700); border-radius: 6px; opacity: .5; }
.pl-kinds .pu { width: 30px; height: 30px; grid-row: span 2; }
.pl-kinds b { font-size: 14px; }
.pl-kinds small { font-size: 12px; line-height: 1.25; color: var(--pl-steel); }
.pl-kinds button[aria-pressed="true"] { opacity: 1; border-color: var(--pl-steel); }
.pl-kinds button:disabled { cursor: default; }
/* what the host picked, as seen by everyone else in the lobby */
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chips span { padding: 5px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--pl-frost); background: var(--pl-800); border: 1px solid var(--pl-700); }
/* the code keypad: tiles, so the phone keyboard never opens */
.pl-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 330px; margin: 0 auto; }
.pl-slots span { aspect-ratio: 1 / 1.1; display: grid; place-items: center; font: 700 28px/1 var(--font-accent); border-radius: 6px;
  background: var(--pl-900); border: 2px solid var(--pl-700); }
.pl-slots span.cur { border-color: var(--pl-flare); }
.pl-slots span.full { background: var(--plb-tile); color: var(--plb-tile-ink); border-color: transparent; box-shadow: 0 3px 0 var(--pl-shadow); }
.pl-keys { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.pl-keys button { aspect-ratio: 1 / 1.08; padding: 0; font: 700 20px/1 var(--font-accent); cursor: pointer; border: 0; border-radius: 5px;
  background: var(--plb-tile); color: var(--plb-tile-ink); box-shadow: 0 3px 0 var(--pl-shadow); touch-action: manipulation; }
.pl-keys button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pl-shadow); }
.pl-keys .del { font-family: inherit; background: var(--pl-700); color: var(--pl-frost); }
.pl-keys .paste { grid-column: 1 / -1; aspect-ratio: auto; min-height: 46px; font: 700 15px/1 var(--font-body); background: var(--pl-700); color: var(--pl-frost); }

/* ---------- the table ---------- */
.pl-table { --table: max(300px, min(640px, calc(100dvh - 305px)));
  --tile: min(56px, calc((var(--table) - 40px) / 7));   /* a rack tile is square: as wide as seven fit, up to this size */
  width: var(--table); margin: 0 auto; min-height: 100dvh; position: relative; display: flex; flex-direction: column; gap: 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)); color: var(--pl-frost); font-family: var(--font-body);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pl-table[hidden] { display: none; }
.pl-table button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
.pl-table button:focus-visible { outline: 2px solid var(--pl-frost); outline-offset: 2px; }

.pl-top { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 4px; padding: 8px 8px 0; }
.pl-seat { background: var(--pl-800); border-radius: 4px; padding: 4px 6px; font-size: 12px; line-height: 1.2; border-bottom: 2px solid transparent; min-width: 0; }
.pl-seat__name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-seat.away .pl-seat__name { color: var(--pl-steel); }
.pl-seat.gone .pl-seat__name { color: var(--pl-steel); text-decoration: line-through; }
.pl-bag { display: block; font-size: 11px; line-height: 1.2; text-align: center; font-family: var(--font-body); }
.pl-seat b { display: block; font: 400 16px var(--font-accent); }
.pl-seat.on { border-bottom-color: var(--pl-flare); }
.pl-gain { display: inline-block; margin-left: 4px; padding: 1px 4px; border-radius: 3px; font: 700 13px/1.3 var(--font-accent); background: var(--pl-flare); color: var(--pl-on-flare); }
/* A medal play (gold = all 7 tiles, silver = 60+, bronze = 50+): the tag takes the medal color and a star (mockup C). */
.pl-gain--gold { background: var(--pl-medal-gold); color: var(--pl-jet); }
.pl-gain--silver { background: var(--pl-medal-silver); color: var(--pl-jet); }
.pl-gain--bronze { background: var(--pl-medal-bronze); color: var(--pl-on-flare); }
.pl-fx { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; --medal: var(--pl-medal-gold); }
.pl-fx--silver { --medal: var(--pl-medal-silver); } .pl-fx--bronze { --medal: var(--pl-medal-bronze); }
.pl-fx__glow { position: fixed; border-radius: 3px; background: var(--medal); box-shadow: 0 0 14px 4px var(--medal); mix-blend-mode: screen; opacity: 0;
  animation: pl-gold .9s ease-out both; }
@keyframes pl-gold { 0% { opacity: 0; } 30% { opacity: .85; } 100% { opacity: 0; } }
.pl-fx__coin { position: fixed; width: 64px; height: 64px; display: grid; place-content: center; text-align: center; border-radius: 50%;
  font: 900 22px/1 var(--font-body); color: var(--pl-jet); background: radial-gradient(circle at 35% 30%, var(--pl-medal-shine), var(--medal) 60%);
  border: 3px solid var(--pl-jet); box-shadow: 0 0 20px var(--medal); opacity: 0; }
.pl-fx__coin small { display: block; margin-top: 2px; font-size: 9px; letter-spacing: .1em; }
/* Someone else's play arriving (rivalShow, Mark's pick Nov 11 2026): tiles drop in, their points fly to their score, your tray hops */
.t.pl-drop { animation: pl-drop .28s cubic-bezier(.3, 1.4, .6, 1) both; }
@keyframes pl-drop { from { transform: translateY(-160%) scale(1.4); opacity: 0; } to { transform: none; opacity: 1; } }
.pl-gain--wait { visibility: hidden; }
.pl-fx__fly { position: fixed; padding: 2px 8px; border-radius: 4px; font: 700 22px/1.3 var(--font-accent); background: var(--pl-flare); color: var(--pl-on-flare); box-shadow: 0 4px 12px var(--pl-shadow); white-space: nowrap; }
.tile.pl-hop { animation: pl-hop .4s ease-out both; }
@keyframes pl-hop { 40% { transform: translateY(-12px); } }
.pl-clock.pl-flash { animation: pl-flash .5s ease-in-out 3; }
@keyframes pl-flash { 50% { box-shadow: 0 0 0 2px var(--pl-medal-gold), 0 0 16px var(--pl-medal-gold); } }
.pl-clock { font: 400 18px var(--font-accent); padding: 0 8px; min-width: 66px; display: grid; place-items: center; background: var(--pl-jet); border-radius: 4px; font-variant-numeric: tabular-nums; }
.pl-clock.low { background: var(--pl-flare); color: var(--pl-on-flare); }

.pl-latest { margin: 0 8px; display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.25; min-height: 34px; }
.pl-latest span { flex: 1; min-width: 0; }
.pl-latest button { background: transparent; border: 1px solid var(--pl-flare); border-radius: 4px; padding: 6px 9px; font-weight: 700; font-size: 13px; }

.pl-view { position: relative; width: 100%; aspect-ratio: 1; flex: none; overflow: hidden; background: var(--pl-line-dark); touch-action: none; }
/* The dark tray around the board: a straight, solid edge stops the bonus squares making the sides look curved (Nov 2026).
   Lit from above, with the squares sitting just below the rim. The thin outer line keeps it visible on the dark page. */
.pl-view { box-sizing: border-box; border: clamp(8px, 2.5vw, 14px) solid; border-color: var(--pl-tray-top) var(--pl-tray-side) var(--pl-tray-bottom); box-shadow: 0 0 0 1px var(--pl-tray-edge), 0 8px 18px var(--pl-shadow); }
.pl-view::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; box-shadow: inset 0 3px 6px var(--pl-shadow), inset 0 0 0 1px var(--pl-line-dark); }
.pl-board { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; display: grid;
  grid-template-columns: repeat(15, 1fr); grid-template-rows: repeat(15, 1fr); transition: transform .22s ease;
  background-color: var(--plb-base); background-image: var(--plb-tex); background-size: var(--tex-board-size); background-position: center; background-blend-mode: var(--plb-blend); }
.pl-board.instant { transition: none; }
.c { position: relative; background: var(--plb-sq); box-shadow: inset 0 0 0 .5px var(--plb-line); display: grid; place-items: center; line-height: 1; overflow: hidden; container-type: inline-size; min-width: 0; min-height: 0; }
/* Bonus labels (2W, 3L…): Archivo's real bold, big enough to read on a phone (Mark, Nov 11 2026; was thin mono at 26cqw) */
.c > span { font: 700 37cqw/1 var(--font-body); letter-spacing: -.02em; }
.c.tw { background: var(--plb-tw); color: var(--plb-tw-ink); }
.c.dw { background: var(--plb-dw); color: var(--plb-dw-ink); }
.c.tl { background: var(--plb-tl); color: var(--plb-tl-ink); }
.c.dl { background: var(--plb-dl); color: var(--plb-dl-ink); }
.c.star::after { content: ""; width: 44%; height: 44%; background: var(--plb-star); transform: rotate(45deg); }
.c.pw svg { width: 92%; height: 92%; }
/* Power-up icons: a coin in its kind's color with a white tile shape (littera.js ICONS) */
.pu { display: block; }
.pu--attack { --pu: var(--pl-pu-attack); } .pu--place { --pu: var(--pl-pu-place); } .pu--peek { --pu: var(--pl-pu-peek); } .pu--board { --pu: var(--pl-pu-board); }
.pu__coin { fill: var(--pu); }
.pu__ring { fill: none; stroke: var(--pl-pu-ring); stroke-width: 1; }
.pu g { color: var(--pl-pu-ink); }
.pu .fl { fill: currentColor; }
.pu .ln { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pu .thick { stroke-width: 3; stroke-linejoin: miter; stroke-linecap: butt; }
.pu .dots { stroke-width: 1.8; stroke-dasharray: 2.2 2; stroke-linecap: butt; }
.pu .dash { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 2 1.6; }
.pl-tip { position: fixed; z-index: 15; pointer-events: none; width: min(240px, 64vw); padding: 8px 10px; border-radius: 6px; background: var(--pl-jet); color: var(--pl-frost);
  border: 1px solid var(--pl-500); box-shadow: 0 6px 16px var(--pl-shadow); display: grid; grid-template-columns: 30px 1fr; gap: 2px 8px; align-items: center; font-size: 13px; line-height: 1.3; }
.pl-tip[hidden] { display: none; }
.pl-tip .pu { width: 30px; height: 30px; grid-row: span 2; align-self: start; }
.pl-tip b { font-size: 14px; }
.pl-tip span { grid-column: 2; color: var(--pl-steel); }
.c.aim { outline: 2px solid var(--plb-mark); outline-offset: -2px; z-index: 2; }
.c.blast::after { content: ""; position: absolute; inset: 0; z-index: 4; background: var(--pl-flare); animation: pl-blast .9s ease-out forwards; }
@keyframes pl-blast { 0% { opacity: 1; } 100% { opacity: 0; } }
/* The cursor (Mark's pick "D" of four mockups, Nov 7 2026, for every game): a red glow on the square, or round its tile, and a
   red disc with a white arrow on the grid line, pointing into the next square. Nothing covers a letter, so the word stays
   readable. Tried and dropped: a tile-colored cover with the arrow, and blurring the letter underneath. */
.c.cursor { box-shadow: inset 0 0 0 2px var(--plb-mark), 0 0 12px 3px var(--plb-mark); overflow: visible; z-index: 5; }
.c.cursor .t { box-shadow: 0 0 0 2px var(--plb-mark), 0 0 14px 4px var(--plb-mark); }
.c.cursor::before { content: attr(data-arrow); position: absolute; z-index: 6; width: 42cqw; height: 42cqw; border-radius: 50%; background: var(--plb-mark); color: var(--pl-on-flare);
  display: grid; place-items: center; font: 900 30cqw/1 var(--font-body); box-shadow: 0 1px 3px var(--pl-shadow); pointer-events: none; right: -21cqw; top: 50%; transform: translateY(-50%); }
.c.cursor[data-arrow="↓"]::before { right: auto; top: auto; left: 50%; bottom: -21cqw; transform: translateX(-50%); }
.c.cursor.at-end::before { right: 2%; }                       /* last square in the line: the disc stays on the board */
.c.cursor.at-end[data-arrow="↓"]::before { right: auto; bottom: 2%; }
.c.drop { box-shadow: inset 0 0 0 2px var(--plb-mark); }
.t { position: absolute; inset: 4%; border-radius: 8%; background-color: var(--plb-tile); background-image: var(--plb-tile-tex); background-size: 900% auto; background-blend-mode: soft-light; color: var(--plb-tile-ink); display: grid; place-items: center; font: 900 66cqw/1 var(--font-body);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .28), 0 1px 2px var(--pl-shadow); }
.t i { position: absolute; right: 7%; bottom: 7%; font: 400 24cqw/1 var(--font-accent); color: var(--plb-tile-soft); font-style: normal; }
.t.draft { outline: 2px solid var(--pl-flare); outline-offset: -2px; }
.t.fresh { background-color: var(--plb-fresh); }
/* 3D-Words: a stack shows one tile edge underneath for every tile below the top (data-h = tiles in the stack).
   Mark's pick "Edges" of four mockups (Nov 7 2026); tried: a number badge, darker the taller, dots on top. */
.t[data-h] { font-size: 58cqw; }
.t[data-h="2"] { bottom: 11%; box-shadow: inset 0 1px 0 var(--pl-tile-light), 0 3cqw 0 var(--plb-tile-soft), 0 4cqw 0 var(--pl-line-dark), 0 7cqw 0 var(--plb-tile-soft); }
.t[data-h="3"] { bottom: 18%; box-shadow: inset 0 1px 0 var(--pl-tile-light), 0 3cqw 0 var(--plb-tile-soft), 0 4cqw 0 var(--pl-line-dark), 0 7cqw 0 var(--plb-tile-soft),
  0 8cqw 0 var(--pl-line-dark), 0 11cqw 0 var(--plb-tile-soft), 0 12cqw 0 var(--pl-line-dark), 0 14cqw 0 var(--plb-tile-soft); }
.t[data-h="4"] { bottom: 25%; box-shadow: inset 0 1px 0 var(--pl-tile-light), 0 3cqw 0 var(--plb-tile-soft), 0 4cqw 0 var(--pl-line-dark), 0 7cqw 0 var(--plb-tile-soft),
  0 8cqw 0 var(--pl-line-dark), 0 11cqw 0 var(--plb-tile-soft), 0 12cqw 0 var(--pl-line-dark), 0 15cqw 0 var(--plb-tile-soft), 0 16cqw 0 var(--pl-line-dark), 0 21cqw 0 var(--plb-tile-soft); }
.t.blank { color: var(--pl-flare); }     /* a blank stands for this letter */

/* The latest word: its tiles turn red, with a dark line around the whole word so it lifts off any board */
.pl-lastword { position: absolute; z-index: 3; pointer-events: none; border-radius: 3px; box-shadow: 0 0 0 2px var(--pl-line-dark); }
.c.in-last .t, .c.in-last .t.fresh, .c.in-last .t.blank { background: var(--pl-flare); background-image: none; color: var(--pl-on-flare); }
.c.in-last .t i { color: var(--pl-on-flare-soft); }

.pl-zoom { display: flex; gap: 4px; flex: none; }   /* off the board, so they never cover a square */
.pl-zoom button { width: 36px; height: 34px; background: var(--pl-900); border: 1px solid var(--pl-500); border-radius: 4px; font-weight: 700; }

.pl-preview { margin: 0 8px; min-height: 20px; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.pl-preview b { font: 400 14px var(--font-accent); }
.pl-preview .why { color: var(--pl-steel); }
.pl-tray { display: grid; grid-template-columns: repeat(7, var(--tile)); gap: 4px; width: max-content; margin: 0 auto; min-height: var(--tile); align-items: start; touch-action: none; }
.tile { height: var(--tile); background-color: var(--plb-tile); background-image: var(--plb-tile-tex); background-size: 900% auto; background-blend-mode: soft-light; color: var(--plb-tile-ink); border: 0; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .28); position: relative; font: 700 26px/1 var(--font-body); display: grid; place-items: center; padding: 0; touch-action: none; cursor: grab; }
.pl-table .tile { font: 900 27px/1 var(--font-body); color: var(--plb-tile-ink); }
.tile i { position: absolute; right: 4px; bottom: 5px; font: 400 11px/1 var(--font-accent); color: var(--plb-tile-soft); font-style: normal; }
.tile.sel { outline: 3px solid var(--pl-flare); outline-offset: 1px; transform: translateY(-4px); }
.tile.lift { opacity: .25; }
.pl-tray.picking .tile { cursor: pointer; }
.pl-pickbar { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; margin: 0 8px; min-height: 44px; font-size: 14px; line-height: 1.25; }
.pl-pickbar[hidden] { display: none; }
.pl-pickbar button { min-height: 44px; padding: 8px 14px; background: var(--pl-800); border: 1px solid var(--pl-700); border-radius: 4px; font-size: 13px; font-weight: 700; }
.pl-pickbar .go { background: var(--pl-flare); color: var(--pl-on-flare); border-color: var(--pl-flare); }
.pl-pickbar .go:disabled { background: var(--pl-flare-deep); border-color: var(--pl-flare-deep); color: var(--pl-on-flare-soft); cursor: default; }
.ghost { position: fixed; z-index: 50; width: 52px; height: 52px; pointer-events: none; box-shadow: 0 6px 16px var(--pl-shadow); }
.pl-acts { display: grid; grid-template-columns: 1fr 1fr 1.4fr 1fr 1fr; gap: 4px; margin: 0 8px; }
.pl-acts[hidden] { display: none; }
.pl-acts button { min-height: 44px; background: var(--pl-800); border: 1px solid var(--pl-700); border-radius: 4px; padding: 8px 2px; font-size: 13px; font-weight: 700; }
.pl-acts .go { background: var(--pl-flare); color: var(--pl-on-flare); border-color: var(--pl-flare); }
.pl-acts button:disabled { color: var(--pl-steel); background: var(--pl-900); border-color: var(--pl-700); cursor: default; }
.pl-acts .go:disabled { background: var(--pl-flare-deep); border-color: var(--pl-flare-deep); color: var(--pl-on-flare-soft); }
.pl-powers { margin: 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; min-height: 36px; align-items: stretch; }
.pl-powers[hidden] { display: none; }
.pl-powers button { min-height: 36px; padding: 4px 2px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 700; line-height: 1.1; background: var(--pl-900); border: 1px solid var(--pl-500); border-radius: 4px; }
.pl-powers button svg { width: 18px; height: 18px; flex: none; }
.pl-powers button:disabled { color: var(--pl-steel); border-style: dashed; cursor: default; }
.pl-powers button:disabled svg { opacity: .5; }
.pl-powers .wait small { display: block; font-size: 10px; font-weight: 400; }
.pl-powers__note { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--pl-steel); line-height: 1.25; min-height: 36px; }
.pl-powers__note button { flex: none; padding: 4px 12px; }
.pl-powers__note span { flex: 1; }
.pl-powers__note button.go { background: var(--pl-flare); border-color: var(--pl-flare); color: var(--pl-on-flare); font-weight: 700; }
.pl-foot { margin: 0 8px; display: flex; gap: 8px; align-items: flex-start; }
.pl-toast { flex: 1; min-width: 0; min-height: 18px; font-size: 13px; color: var(--pl-steel); line-height: 1.3; }
.pl-foot .pl-menu { min-height: 34px; flex: none; background: transparent; border: 1px solid var(--pl-700); border-radius: 4px; padding: 6px 12px; font-size: 13px; font-weight: 700; }

/* Prompts that sit over the table */
.pl-sheet { position: fixed; left: 50%; bottom: 0; width: var(--table); transform: translateX(-50%); max-height: 90dvh; overflow: auto; background: var(--pl-jet); border-top: 2px solid var(--pl-flare); padding: 14px 14px max(14px, env(safe-area-inset-bottom, 0px)); z-index: 20; display: grid; gap: 10px; }
.pl-sheet h2 { font: 700 18px/1.2 var(--font-heading); margin: 0; color: var(--pl-frost); }
.pl-sheet p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--pl-steel); }
.pl-sheet .row { display: flex; gap: 6px; flex-wrap: wrap; }
.pl-sheet .row > button:not(.tile) { flex: 1; min-width: 40%; min-height: 44px; background: var(--pl-800); border: 1px solid var(--pl-500); border-radius: 4px; padding: 10px 6px; font-weight: 700; }
.pl-sheet .row > button.go { background: var(--pl-flare); border-color: var(--pl-flare); color: var(--pl-on-flare); }
.pl-letters { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pl-letters button { height: 44px; background: var(--plb-tile); border: 0; border-radius: 4px; font-weight: 700; font-size: 20px; }
.pl-table .pl-letters button { font-weight: 900; color: var(--plb-tile-ink); }
.pl-boards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pl-boards button { position: relative; height: 54px; padding: 0; overflow: hidden; border: 2px solid var(--pl-700); border-radius: 4px; background-color: var(--plb-base); background-image: var(--plb-tex); background-size: cover; background-position: center; background-blend-mode: var(--plb-blend); }
.pl-boards button[aria-pressed="true"] { border-color: var(--pl-frost); outline: 2px solid var(--pl-flare); outline-offset: 1px; }
.pl-boards span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 3px; font-size: 12px; font-weight: 700; background: var(--pl-label-bg); color: var(--pl-on-dark); }
.pl-sheet h3 { margin: 0; font-size: 13px; font-weight: 700; color: var(--pl-steel); }
.pl-meter { position: relative; height: 40px; background: var(--pl-800); border-radius: 4px; overflow: hidden; }
.pl-meter i { position: absolute; left: 50%; top: 0; bottom: 0; width: 16.7%; transform: translateX(-50%); background: var(--pl-500); }
.pl-meter b { position: absolute; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: var(--pl-frost); }
.pl-lockpick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pl-lockpick button { width: 44px; height: 46px; padding: 0; display: grid; place-items: center; border-radius: 4px; background: var(--plb-tile); color: var(--plb-tile-soft); border: 2px solid transparent; }
.pl-lockpick button[aria-pressed="true"] { border-color: var(--pl-flare); color: var(--pl-flare); box-shadow: 0 0 8px var(--pl-flare); }
.pl-lockpick .lockmark { width: 55%; height: 55%; fill: currentColor; }
/* Lock: a stuck tile in your tray is dimmed, with a padlock in its corner */
.tile.locked { opacity: .55; filter: grayscale(.6); }
.tile .lockmark { position: absolute; left: 4%; top: 4%; width: 34%; height: 34%; fill: var(--pl-flare); color: var(--pl-flare); filter: drop-shadow(0 0 1px var(--pl-shadow)); }
.pl-peek { display: flex; gap: 6px; justify-content: center; }
.pl-peek span { width: 44px; height: 46px; display: grid; place-items: center; border-radius: 4px; background: var(--plb-tile); color: var(--plb-tile-ink); font: 900 26px/1 var(--font-body); }
.pl-result { font: 400 14px/1.6 var(--font-accent); color: var(--pl-frost); }
/* End of game: highlights and new records */
.pl-high { display: grid; gap: 2px; margin-top: 10px; padding: 8px 10px; font-size: 14px; line-height: 1.45; color: var(--pl-frost); background: var(--pl-900); border-left: 3px solid var(--pl-500); border-radius: 4px; }
.pl-high b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--pl-steel); }
.pl-high--record { border-left-color: var(--pl-medal-gold); }
.pl-high--record b { color: var(--pl-medal-gold); }
.pl-medal--gold { color: var(--pl-medal-gold); } .pl-medal--silver { color: var(--pl-medal-silver); } .pl-medal--bronze { color: var(--pl-medal-bronze); }

/* On light paper a pale tile needs an edge, or the rack disappears into the page */
[data-theme="light"] .tile { box-shadow: inset 0 1px 0 var(--pl-tile-light), inset 0 -3px 0 var(--pl-shadow), 0 0 0 1px var(--pl-500), 0 2px 4px var(--pl-shadow); }

/* Each tile shows its own patch of the theme's tile texture */
.t, .tile { background-position: var(--tx, 0%) var(--ty, 0%); }

/* The Slate board: a chipped slab instead of the tray, etched squares, stone tiles. The border is how far in the chips reach. */
[data-board="slate"] .pl-view { border: calc(var(--table) * .06) solid transparent; background: var(--tex-board-slab) center / 100% 100% no-repeat border-box; box-shadow: none; }
[data-board="slate"] .pl-view::after { box-shadow: none; }
[data-board="slate"] .pl-board { box-shadow: 0 0 0 1px var(--plb-line); }
[data-board="slate"] .c.tw { box-shadow: inset 0 0 0 1px var(--plb-line), inset 0 0 0 2.5px var(--plb-tw-edge); }
[data-board="slate"] .c.dw { box-shadow: inset 0 0 0 1px var(--plb-line), inset 0 0 0 2px var(--plb-dw-edge); }
[data-board="slate"] .c.tl { box-shadow: inset 0 0 0 1px var(--plb-line), inset 0 0 0 2px var(--plb-tl-edge); }
[data-board="slate"] .c.dl { box-shadow: inset 0 0 0 1px var(--plb-line), inset 0 0 0 1.5px var(--plb-dl-edge); }
[data-board="slate"] .c > span { font-weight: 700; }
[data-board="slate"] .tv1 { --plb-tile: var(--plb-tile-2); }
[data-board="slate"] .tv2 { --plb-tile: var(--plb-tile-3); }
[data-board="slate"] .t { border-radius: 12%; box-shadow: inset 0 1px 0 var(--pl-tile-light), inset 0 -2px 0 var(--pl-shadow), 0 2px 3px var(--pl-shadow); }

@media (min-width: 601px) { .pl-table.has-powers { --table: max(300px, min(640px, calc(100dvh - 349px))); } }
@media (max-width: 600px) { .pl-table { --table: 100vw; } }   /* a phone always uses its full width; a short one scrolls */
@media (prefers-reduced-motion: reduce) { .c.blast::after { animation: none; opacity: .4; } .pl-board { transition: none; } }

/* New power-ups (Nov 7 2026). Board cutter (pick D): fog drifting over the blocked half, which can't take tiles. */
.pl-fog { position: absolute; z-index: 6; pointer-events: none; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 20% 30%, rgba(8, 9, 11, .85), transparent 60%), radial-gradient(ellipse at 70% 70%, rgba(8, 9, 11, .9), transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(30, 32, 38, .8), rgba(8, 9, 11, .7)), linear-gradient(rgba(8, 9, 11, .45), rgba(8, 9, 11, .45));
  background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%; animation: pl-fog-in .6s ease-out, pl-fog 7s ease-in-out infinite alternate; }
.pl-fog span { font: 900 clamp(11px, 3.6vw, 16px)/1.1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; text-align: center; color: var(--pl-on-dark); text-shadow: 0 1px 4px var(--pl-line-dark); }
@keyframes pl-fog-in { from { opacity: 0; } }
@keyframes pl-fog { to { background-position: 100% 60%, 0 30%, 50% 50%, 0 0; } }
@media (prefers-reduced-motion: reduce) { .pl-fog { animation: none; } }
/* Blind: a face-down tile shows a shut eye instead of its letter */
.tile.face-down, .t.face-down { color: var(--plb-tile-soft); }
.tile .eye, .t .eye { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
/* Laser (pick B): its square and the four arrows while aiming, then the charge-and-blast drawn in .pl-fx */
.pl-board.slow { transition: transform .4s ease; }
.c.laser-at { overflow: visible; z-index: 6; }
.c.laser-at::after { content: ""; position: absolute; inset: 15%; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle, var(--pl-on-flare) 0 18%, var(--pl-flare) 22% 52%, var(--pl-flare-deep) 56%); box-shadow: 0 0 8px 2px var(--pl-flare); }
.c.laser-arrow { overflow: visible; z-index: 6; }
.pl-arrow { position: absolute; inset: 9%; z-index: 4; display: grid; place-items: center; border-radius: 50%; background: var(--plb-mark); color: var(--pl-on-flare);
  font: 900 52cqw/1 var(--font-body); box-shadow: 0 0 6px var(--pl-shadow); }
.pl-laser__emit { position: fixed; display: grid; place-items: center; }
.pl-laser__emit::before { content: ""; width: 70%; height: 70%; border-radius: 50%; background: radial-gradient(circle, var(--pl-on-flare) 0 18%, var(--pl-flare) 22% 52%, var(--pl-flare-deep) 56%); box-shadow: 0 0 8px 2px var(--pl-flare); }
.pl-laser__emit.charge::before { animation: pl-charge .25s ease-in infinite alternate; }
@keyframes pl-charge { to { box-shadow: 0 0 16px 6px var(--pl-flare); transform: scale(1.15); } }
.pl-laser__beam { position: fixed; transform-origin: 0 50%; border-radius: 99px; animation: pl-flick .08s steps(2) infinite;
  background: linear-gradient(var(--pl-flare-deep), var(--pl-flare) 20%, var(--pl-on-flare) 42% 58%, var(--pl-flare) 80%, var(--pl-flare-deep)); box-shadow: 0 0 10px 4px var(--pl-flare); }
@keyframes pl-flick { 50% { opacity: .8; } }
.pl-ghost { position: fixed; container-type: inline-size; }
.pl-ghost .t.hot { background: var(--pl-medal-gold); color: var(--pl-flare-deep); box-shadow: 0 0 10px 3px var(--pl-flare); }
.pl-ghost.shake { animation: pl-shake .09s linear infinite; }
@keyframes pl-shake { 25% { transform: translate(3%, -2%); } 75% { transform: translate(-3%, 2%); } }
.pl-laser__scorch { position: fixed; background: radial-gradient(circle, rgba(0, 0, 0, .75), rgba(40, 10, 0, .45) 45%, transparent 70%); animation: pl-scorch 1.4s ease-in forwards; }
@keyframes pl-scorch { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
/* Bomb aiming (Mark, Nov 9 2026): a red crosshair on the square you tapped, and a dashed box for the blast's reach. While
   the marker swings, both slide to where the bomb would land. */
.c.xhair { overflow: visible; z-index: 7; }
.c.xhair::before { content: ""; position: absolute; inset: -22%; z-index: 5; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, transparent 38%, var(--pl-shadow) 52%, transparent 70%); }
.c.xhair::after { content: ""; position: absolute; inset: -22%; z-index: 6; pointer-events: none; background: var(--plb-mark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M12 1.5v6M12 16.5v6M1.5 12h6M16.5 12h6'/%3E%3Ccircle cx='12' cy='12' r='1' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M12 1.5v6M12 16.5v6M1.5 12h6M16.5 12h6'/%3E%3Ccircle cx='12' cy='12' r='1' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: pl-xhair 1s ease-in-out infinite alternate; }
@keyframes pl-xhair { to { transform: scale(.86); } }
.pl-zone { position: absolute; z-index: 5; pointer-events: none; border-radius: 3px; }
.pl-zone--bomb { border: 2px dashed var(--plb-mark); background: color-mix(in srgb, var(--plb-mark) 12%, transparent); }
/* Shield: a green glass block everyone sees, tagged with whose it is; dashed while you're still placing it */
.pl-zone--shield { border: 2px solid var(--pl-pu-board); background: color-mix(in srgb, var(--pl-pu-board) 22%, transparent);
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--pl-pu-board) 60%, transparent), inset 0 0 12px color-mix(in srgb, var(--pl-pu-board) 45%, transparent); }
.pl-zone--aim { border-style: dashed; animation: pl-hum 1.2s ease-in-out infinite; }
.pl-zone__tag { position: absolute; left: -2px; top: -2px; transform: translateY(-100%); display: flex; align-items: center; gap: 3px; padding: 1px 5px 1px 2px;
  border-radius: 4px 4px 0 0; background: var(--pl-pu-board); color: var(--pl-pu-ink); font: 700 clamp(8px, 2.4vw, 11px)/1.3 var(--font-body); white-space: nowrap; }
.pl-zone.at-top .pl-zone__tag { top: auto; bottom: -2px; transform: translateY(100%); border-radius: 0 0 4px 4px; }
.pl-zone__tag .pu { width: 1.3em; height: 1.3em; }
.pl-zone__tag .pu__ring { display: none; }
/* Mine: only its owner sees it, a small red mark on the empty square; it pulses while you're placing it */
.c.mine-mark { overflow: visible; }
.pl-mine { position: absolute; inset: 10%; z-index: 3; display: grid; place-items: center; pointer-events: none; opacity: .92; padding: 8%;
  border-radius: 50%; background: var(--pl-jet); box-shadow: 0 0 0 1px var(--pl-flare), 0 1px 3px var(--pl-shadow); }
.pl-mine svg { width: 100%; height: 100%; fill: var(--pl-flare); stroke: var(--pl-flare); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 2px var(--pl-shadow)); }
.c.mine-aim .pl-mine { animation: pl-hum 1s ease-in-out infinite; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .c.xhair::after, .pl-zone--aim, .c.mine-aim .pl-mine { animation: none; } }
/* Entropy (Mark's pick F of six mockups, Nov 9 2026): the letter is never touched; the tile's edges corrode instead. 2 rounds
   left: chipped edges and a faint dark rim; 1 round: deep bites, a darker rim and a slow flicker; then it shatters (shatterShow).
   Tried and dropped: cracks across the tile (dark, faded or red-hot) and pitting, all harder to read; corner cracks on top of F. */
.t.life-2 { clip-path: polygon(0 8%, 8% 0, 28% 0, 34% 6%, 40% 0, 100% 0, 100% 60%, 94% 66%, 100% 72%, 100% 92%, 92% 100%, 60% 100%, 54% 93%, 48% 100%, 0 100%, 0 42%, 6% 36%, 0 30%);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--plb-tile-ink) 30%, transparent); }
.t.life-1 { clip-path: polygon(0 12%, 8% 6%, 12% 0, 26% 0, 32% 8%, 40% 3%, 46% 0, 70% 0, 76% 6%, 84% 2%, 94% 0, 100% 10%, 96% 22%, 100% 30%, 100% 52%, 92% 60%, 99% 68%, 100% 86%, 92% 92%, 86% 100%, 64% 100%, 58% 91%, 50% 98%, 40% 100%, 22% 100%, 14% 94%, 6% 100%, 0 92%, 4% 78%, 0 66%, 0 44%, 8% 38%, 2% 30%);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--plb-tile-ink) 38%, transparent), inset 0 0 6px color-mix(in srgb, var(--plb-tile-ink) 45%, transparent); animation: pl-worn 1.8s ease-in-out infinite; }
@keyframes pl-worn { 50% { opacity: .66; } }
.pl-ghost .t.life-1 { animation: none; }
.pl-dust { position: absolute; inset: 15%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, var(--plb-tile-soft), transparent 70%); animation: pl-dust 1.2s ease-out forwards; }
@keyframes pl-dust { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) { .t.life-1 { animation: none; } }
/* Point inverter: while it's on, every tile's number (already flipped) turns red, and the board edge glows a little */
.pl-view.inverted .t i, .inverted ~ * .tile i, .pl-table:has(.pl-view.inverted) .tile i { color: var(--pl-flare); font-weight: 600; }
.pl-view.inverted { box-shadow: 0 0 0 1px var(--pl-tray-edge), 0 0 14px 2px var(--pl-flare), 0 8px 18px var(--pl-shadow); }
.pl-view.inverted .c.in-last .t i { color: var(--pl-on-flare-soft); }

/* Circuit (Nov 7 2026): the wires under the squares, drawn in SVG; colors are tokens.css [data-board="wires"] */
.pl-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.pl-wires .edge, .pl-wires .core, .pl-wires .shine { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pl-wires .edge { stroke: var(--cw-groove); stroke-width: .11; }   /* Thin (Mark's pick B, Nov 11 2026; was .24/.13 + a shine: too pipe-like) */
.pl-wires .core { stroke: var(--cw-metal); stroke-width: .06; }
.pl-wires .shine { display: none; }
.pl-wires .pad { fill: var(--cw-metal); stroke: var(--cw-groove); stroke-width: .03; }
.pl-wires .hole { fill: var(--cw-hole); }
.pl-wires .jackpot .core { stroke: var(--cw-hi); stroke-width: .09; } .pl-wires .jackpot .pad { fill: var(--cw-hi); stroke-width: .04; }
[data-theme="light"] .pl-wires .jackpot .core { stroke: var(--cw-groove); } [data-theme="light"] .pl-wires .jackpot .pad { fill: var(--cw-groove); }
.pl-wires .charging .core { stroke: var(--cw-charge); animation: pl-hum 1.6s ease-in-out infinite; } .pl-wires .charging .pad { fill: var(--cw-charge); }
@keyframes pl-hum { 50% { opacity: .55; } }
.pl-wires .on .core { stroke: var(--cw-glow); filter: drop-shadow(0 0 .25px var(--cw-glow)) drop-shadow(0 0 .6px var(--cw-glow)); } .pl-wires .on .pad { fill: var(--cw-glow); }
.pl-wires .spent .core { stroke: var(--cw-spent); } .pl-wires .spent .pad { fill: var(--cw-spent); } .pl-wires .spent .shine { opacity: .25; }
.c { z-index: auto; }
.c.w .t { box-shadow: 0 0 0 1.5px var(--cw-metal), 0 0 6px 1px var(--cw-metal); }
.c.w-charging .t { box-shadow: 0 0 0 1.5px var(--cw-charge), 0 0 8px 2px var(--cw-charge); }
.c.w-on .t { box-shadow: 0 0 0 1.5px var(--cw-glow), 0 0 10px 3px var(--cw-glow); }
.c.w-spent .t { box-shadow: 0 0 0 1.5px var(--cw-spent); }
.pl-charge { position: absolute; z-index: 6; transform: translate(-50%, -110%); padding: 1px 5px; border-radius: 99px; pointer-events: none;
  font: 900 clamp(9px, 2.6vw, 12px)/1.2 var(--font-accent); background: var(--cw-charge); color: var(--pl-jet); box-shadow: 0 0 6px var(--cw-charge); }
.pl-flow { position: fixed; overflow: visible; }
.pl-flow path { fill: none; stroke: var(--cw-glow); stroke-width: .1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .3 1; stroke-dashoffset: 1.3;
  filter: drop-shadow(0 0 .3px var(--cw-glow)); }
.pl-pot { position: fixed; z-index: 2; padding: 6px 12px; border-radius: 8px; font: 900 24px/1 var(--font-body); background: var(--cw-glow); color: var(--pl-on-flare);
  box-shadow: 0 0 20px var(--cw-glow); opacity: 0; }
.pl-pot small { display: block; margin-top: 3px; font-size: 9px; letter-spacing: .12em; text-align: center; }
.pl-wired { font-style: normal; font-weight: 700; color: var(--pl-medal-gold); }
.pl-more { margin: 10px 0 0; text-align: center; font-size: 14px; } .pl-more a { color: inherit; }
/* Entropy's rings (Nov 10 2026, Mark's look): plain squares a shade deeper each ring out, mixed from the board's own
   square and line colors so every board theme gets its own version; a thicker line where one ring meets the next */
.c.ring-1 { background: color-mix(in srgb, var(--plb-sq), var(--plb-line) 22%); }
.c.ring-2 { background: color-mix(in srgb, var(--plb-sq), var(--plb-line) 44%); }
.c.ring-3 { background: color-mix(in srgb, var(--plb-sq), var(--plb-line) 66%); }
.pl-ring { position: absolute; pointer-events: none; z-index: 1; box-shadow: 0 0 0 1.25px var(--plb-line), inset 0 0 0 1.25px var(--plb-line); }
.pl-lasts { font-style: normal; font-weight: 700; opacity: .75; }
/* Five games on the picker (Nov 10 2026, Mark's pick): 3 on top, 2 below and centered, all the same size */
.pl-games { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pl-games button { grid-column: span 2; }
.pl-games button:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }   /* five games: the second row of two sits in the middle; six fill two rows */

/* The start of a game (Mark, Nov 10 2026: mockup A, Spotlight): a card over the board lights the players up one after
   another, slowing down until it stops on whoever goes first; your tiles stay face down until you tap Tap to start. */
.pl-stage { position: relative; width: 100%; flex: none; }
.pl-intro { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 16px; text-align: center;
  background: color-mix(in srgb, var(--pl-jet) 84%, transparent); }
.pl-intro[hidden] { display: none; }
.pl-intro h2 { margin: 0 0 6px; font: var(--font-heading-weight) 22px var(--font-heading); color: var(--pl-frost); }
.pl-intro p { margin: 0 0 14px; color: var(--pl-steel); font-size: 14px; }
.pl-intro__names { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0 16px; }
.pl-intro__names span { padding: 10px 14px; border-radius: 8px; border: 2px solid var(--pl-700); background: var(--pl-800); color: var(--pl-frost);
  font-weight: 700; font-size: 15px; transition: background .08s, border-color .08s, transform .3s; }
.pl-intro__names span.lit { background: var(--pl-flare); border-color: var(--pl-flare); color: var(--pl-on-flare); }
.pl-intro__names span.won { border-color: var(--pl-frost); transform: scale(1.12); }
.pl-table .pl-intro__go { font-weight: 900; font-size: 18px; padding: 14px 26px; border-radius: 8px; border: 0; background: var(--pl-flare); color: var(--pl-on-flare);
  animation: pl-breathe 1.4s ease-in-out infinite; }
@keyframes pl-breathe { 50% { transform: scale(1.05); } }
.pl-table.starting .pl-tray, .pl-table.starting .pl-acts, .pl-table.starting .pl-powers { pointer-events: none; }
.pl-table.starting .pl-acts, .pl-table.starting .pl-powers { opacity: .35; }
.pl-table.starting .pl-tray .tile { color: transparent; background: var(--pl-700); transform: rotateY(180deg); }
.pl-table.starting .pl-tray .tile > * { opacity: 0; }
.pl-tray .tile { transition: transform .45s ease, background-color .3s, color .3s; }

/* The last seconds of your turn (mockup C, Board glow): the board's frame glows gold from 10 seconds and red from 5, with
   the number on a badge at the frame's corner. Around the board, never on it. */
.pl-stage.cd-warn .pl-view { box-shadow: 0 0 0 2px var(--pl-medal-gold), 0 0 14px 2px var(--pl-medal-gold); }
.pl-stage.cd-hot .pl-view { box-shadow: 0 0 0 3px var(--pl-flare), 0 0 22px 6px var(--pl-flare); }
.pl-view { transition: box-shadow .25s; }
.pl-count { position: absolute; top: -14px; right: 4px; z-index: 8; min-width: 40px; height: 40px; border-radius: 20px; display: none; place-items: center;
  font: 900 22px var(--font-body); background: var(--pl-flare); color: var(--pl-on-flare); border: 3px solid var(--pl-frost); pointer-events: none; }
.pl-count.on { display: grid; animation: pl-count-pop .5s ease; }
@keyframes pl-count-pop { 40% { transform: scale(1.4); } }
@media (prefers-reduced-motion: reduce) { .pl-intro__go, .pl-count.on { animation: none; } .pl-tray .tile { transition: none; } }

/* Multiverse (Mark's pick, Nov 11 2026: mockup B tabs with D's cube turn). Purple = tokens.css --pl-q* */
.pl-mv[hidden] { display: none; }
.pl-mv { margin: 6px 8px 0; display: grid; gap: 6px; }
.pl-mv__meter { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--pl-steel); }
.pl-mv__meter b { font: 700 12px var(--font-accent); white-space: nowrap; }
.pl-mv__bar { flex: 1; height: 8px; border-radius: 4px; background: var(--pl-q-soft); overflow: hidden; }
.pl-mv__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pl-q), var(--pl-q-light)); transition: width .6s ease; }
.pl-mv__meter.full .pl-mv__bar { box-shadow: 0 0 0 1px var(--pl-q), 0 0 12px var(--pl-q); animation: pl-qhum 1.4s ease-in-out infinite; }
.pl-mv__meter.full b { color: var(--pl-q-light); }
.pl-mv__meter.full .pl-atom { animation: pl-spin 2.4s linear infinite; }
/* The universe branching (Mark, Nov 12 2026: a split is an event): the whole screen, one button */
.pl-sheet.pl-branch { inset: 0; left: 0; bottom: 0; width: auto; transform: none; max-height: none; border: 0; z-index: 60; place-content: center; justify-items: center; text-align: center; gap: 16px; padding: 24px;
  background: radial-gradient(circle at 50% 38%, var(--pl-q-glow), transparent 65%), var(--pl-jet); animation: pl-branch-in .45s ease-out both; }
.pl-sheet.pl-branch h2 { font-size: clamp(30px, 8vw, 52px); color: var(--pl-q-light); text-shadow: 0 0 24px var(--pl-q); }
.pl-sheet.pl-branch p { max-width: 34ch; font-size: 16px; color: var(--pl-frost); }
.pl-branch__atom .pl-atom { width: 96px; height: 96px; stroke-width: 1; filter: drop-shadow(0 0 12px var(--pl-q)); animation: pl-spin 3s linear infinite; }
.pl-table .pl-branch__go { margin-top: 6px; padding: 16px 34px; border-radius: 999px; border: 0; background: var(--pl-q); color: var(--pl-q-ink); font: 800 19px var(--font-accent); animation: pl-qpulse 1.4s ease-in-out infinite; }
.pl-table .pl-branch__go:disabled { opacity: .45; animation: none; }   /* online: waiting for the word's player */
@keyframes pl-spin { to { transform: rotate(360deg); } }
@keyframes pl-branch-in { from { opacity: 0; transform: scale(1.06); } }
@keyframes pl-qpulse { 50% { box-shadow: 0 0 22px var(--pl-q); } }
@media (prefers-reduced-motion: reduce) { .pl-table .pl-branch__go, .pl-branch__atom .pl-atom, .pl-mv__meter.full .pl-atom, .pl-sheet.pl-branch { animation: none; } }
@keyframes pl-qhum { 50% { box-shadow: 0 0 0 1px var(--pl-q), 0 0 4px var(--pl-q); } }
.pl-atom { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--pl-q-light); stroke-width: 1.6; }
.pl-atom circle { fill: var(--pl-q-light); stroke: none; }
.pl-mv__tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.pl-table .pl-tab { padding: 4px 0 3px; border-radius: 5px; border: 1px solid var(--pl-700); background: var(--pl-800); color: var(--pl-frost); text-align: center; font: 400 11px/1.2 var(--font-body); min-width: 0; overflow: hidden; }
.pl-table .pl-tab b { display: block; font: 700 14px/1.2 var(--font-accent); }
.pl-tab span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.pl-tab.empty { opacity: .35; border-style: dashed; background: transparent; }
.pl-tab.here { border-color: var(--pl-frost); background: var(--pl-700); }
.pl-tab.mine { border-color: var(--pl-flare); box-shadow: inset 0 -3px 0 var(--pl-flare); }
.pl-tab.mine span { color: var(--pl-on-flare-soft); font-weight: 700; }
.pl-tab.done { opacity: .6; }
/* A universe waiting on you that isn't on screen: its tab blinks until you go there (Mark, Nov 13 2026, mockup A's blink) */
.pl-tab.wait { animation: pl-wait 1s ease-in-out infinite; }
@keyframes pl-wait { 50% { background: var(--pl-flare); border-color: var(--pl-flare); box-shadow: 0 0 0 2px var(--pl-flare), 0 0 14px 2px var(--pl-flare); } }
.pl-tab.wait span { color: var(--pl-on-flare); }
/* ...and when it first comes to you, the board's edge glows purple on that tab's side, with its number (mockup B, purple) */
.pl-mvedge { position: absolute; top: 0; bottom: 0; z-index: 6; width: clamp(30px, 9%, 46px); display: grid; place-items: center; pointer-events: none; opacity: 0; }
.pl-mvedge--r { right: 0; background: linear-gradient(270deg, var(--pl-q), transparent); border-right: 3px solid var(--pl-q-light); }
.pl-mvedge--l { left: 0; background: linear-gradient(90deg, var(--pl-q), transparent); border-left: 3px solid var(--pl-q-light); }
.pl-mvedge b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--pl-q); color: var(--pl-q-ink); font: 800 14px var(--font-accent); box-shadow: 0 0 10px var(--pl-q); }
.pl-mvedge.on { animation: pl-mvedge 3s ease-in-out forwards; }
@keyframes pl-mvedge { 0% { opacity: 0; } 15%, 35% { opacity: .9; } 50% { opacity: .3; } 65%, 80% { opacity: .9; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pl-tab.wait { animation: none; background: var(--pl-flare-deep); } .pl-mvedge.on { animation: pl-mvedge-still 3s step-end forwards; } }
@keyframes pl-mvedge-still { 0% { opacity: .9; } 100% { opacity: 0; } }
.pl-tab.born { animation: pl-qborn .8s ease-out; }
.pl-tab.merged { border-color: var(--pl-q); box-shadow: 0 0 0 2px var(--pl-q), 0 0 16px var(--pl-q); }
@keyframes pl-qborn { 0% { transform: scale(.2); background: var(--pl-q); } 60% { transform: scale(1.2); background: var(--pl-q); } }
.pl-mv__where { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--pl-steel); min-height: 20px; }
.pl-mv__where .you { background: var(--pl-flare); color: var(--pl-on-flare); padding: 1px 8px; border-radius: 10px; font-weight: 700; font-size: 12px; }
.pl-qnote { font-style: normal; font-weight: 700; color: var(--pl-q-light); }
.c.eye { overflow: visible; }
.pl-eye { position: absolute; inset: 8%; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle, var(--pl-on-flare) 0 22%, var(--pl-q) 23% 46%, var(--pl-q-ink) 47% 58%, var(--pl-q) 59%);
  box-shadow: 0 0 10px var(--pl-q); animation: pl-stare 1.6s ease-in-out infinite; }
@keyframes pl-stare { 50% { transform: scale(.85); box-shadow: 0 0 18px var(--pl-q); } }
.pl-qflash { position: fixed; inset: 0; background: radial-gradient(circle, var(--pl-q-light), var(--pl-q-glow) 40%, transparent 70%); animation: pl-qflash .7s ease-out both; }
@keyframes pl-qflash { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.6); } }
.pl-qghost { position: fixed; border-radius: 4px; background: var(--pl-q-glow); box-shadow: 0 0 0 3px var(--pl-q), 0 0 30px var(--pl-q); }
.pl-tabghost { position: fixed; border: 2px solid var(--pl-q); border-radius: 5px; box-shadow: 0 0 10px var(--pl-q); background: var(--pl-q-glow); }
.pl-mvbanner { position: absolute; left: 6px; right: 6px; top: 6px; z-index: 40; padding: 10px 12px; border-radius: 6px; font-weight: 800; pointer-events: none;
  transform: translateY(-160%); opacity: 0; transition: transform .35s ease, opacity .35s; box-shadow: 0 6px 18px var(--pl-shadow); }
.pl-mvbanner small { display: block; font-weight: 500; margin-top: 2px; }
.pl-mvbanner.in { transform: none; opacity: 1; }
.pl-mvbanner--q { background: var(--pl-q); color: var(--pl-q-ink); }
.pl-mvbanner--red { background: var(--pl-flare); color: var(--pl-on-flare); }
/* Paused while you're away (solo, Nov 12 2026, like Crossword Combat): board and tray blurred until you press Resume */
.pl-paused[hidden] { display: none; }
.pl-paused { position: absolute; inset: 0; z-index: 45; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; }
.pl-paused b { font: 800 clamp(30px, 8vw, 44px)/1 var(--font-heading); color: var(--pl-frost); text-shadow: 0 2px 12px var(--pl-shadow); }
.pl-paused span { max-width: 30ch; color: var(--pl-frost); text-shadow: 0 1px 6px var(--pl-shadow); }
.pl-table .pl-paused__go { min-width: 9rem; min-height: 56px; margin-top: 4px; border: 0; border-radius: 8px; background: var(--pl-flare); color: var(--pl-on-flare); font: 900 20px var(--font-body); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 8px 24px var(--pl-shadow); }
.pl-table.paused .pl-view, .pl-table.paused .pl-tray, .pl-table.paused .pl-preview { filter: blur(9px) saturate(.6); pointer-events: none; }
.pl-table.paused .pl-acts, .pl-table.paused .pl-powers { opacity: .4; pointer-events: none; }

/* The computer layout (Mark's pick D, Nov 12 2026; layoutTable in littera.js builds the columns): the board in the
   middle with the tray under it, a Scoreboard card on the left and a Your move card on the right, both as tall as the board */
.pl-table.wide { --rail: 300px; --tile: 52px; --board: min(calc(100dvh - 130px), calc(100vw - 2 * var(--rail) - 100px));
  width: auto; max-width: none; padding: 16px 20px; display: grid; grid-template-columns: var(--rail) var(--board) var(--rail);
  justify-content: center; align-content: center; align-items: start; column-gap: 24px; }
.pl-table.wide[hidden] { display: none; }   /* the grid above must not show the empty table under the start screens */
.pl-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pl-col > *, .pl-card > * { margin-left: 0; margin-right: 0; }
.pl-col--mid { width: var(--board); }
.pl-table.wide .pl-stage { width: var(--board); }
.pl-table.wide .pl-tray { margin: 0 auto; }
.pl-table.wide .pl-foot, .pl-table.wide .pl-zoom { display: none; }   /* the board is big; the mouse wheel still zooms */
.pl-col--mid > .pl-toast { text-align: center; min-height: 20px; font-size: 14px; color: var(--pl-steel); }
.pl-card { height: var(--board); box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 8px; background: var(--pl-900); border: 1px solid var(--pl-700); box-shadow: 0 8px 18px var(--pl-shadow); overflow: auto; }
.pl-card__h { margin: 6px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--pl-700); font: 700 11px/1 var(--font-accent); letter-spacing: .14em; text-transform: uppercase; color: var(--pl-steel); }
.pl-card__h:first-child { margin-top: 0; }
.pl-card:has(#mvbar[hidden]) .pl-card__h--mv { display: none; }
.pl-card__grow { flex: 1; }
/* Scoreboard: the clock big on top, one row per player (a red edge on whose turn it is), the bag last */
.pl-card .pl-top { display: flex; flex-direction: column; gap: 6px; padding: 0; }
.pl-card .pl-clock { order: -1; font-size: 34px; text-align: center; padding: 10px; }
.pl-card .pl-seat { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; font-size: 15px; border-bottom: 0; border-left: 3px solid transparent; }
.pl-card .pl-seat.on { border-left-color: var(--pl-flare); background: var(--pl-800); }
.pl-card .pl-seat b { font-size: 22px; }
.pl-card .pl-mv { margin: 0; }
.pl-card .pl-mv__meter b { font-size: 11px; }
.pl-card .pl-latest { font-size: 14px; align-items: flex-start; min-height: 0; }
/* Your move: the word and its points, a big Play, then the other four in pairs, power-ups, Menu at the bottom */
.pl-card .pl-preview { flex-direction: column; gap: 4px; font-size: 16px; min-height: 52px; }
.pl-card .pl-preview b { font-size: 28px; }
.pl-card .pl-acts { grid-template-columns: 1fr 1fr; grid-template-areas: "play play" "recall shuffle" "swap pass"; gap: 6px; }
.pl-card #play { grid-area: play; min-height: 56px; font-size: 17px; }
.pl-card #recall { grid-area: recall; } .pl-card #shuffle { grid-area: shuffle; } .pl-card #swap { grid-area: swap; } .pl-card #pass { grid-area: pass; }
.pl-card .pl-powers { grid-template-columns: 1fr 1fr; }
.pl-table.wide .pl-card .pl-menu { min-height: 40px; background: transparent; border: 1px solid var(--pl-700); border-radius: 6px; font-weight: 700; }
.pl-table.wide .pl-sheet { width: 540px; bottom: 24px; border: 2px solid var(--pl-flare); border-radius: 8px; }
.pl-table.wide .pl-sheet.pl-branch { width: auto; bottom: 0; border: 0; border-radius: 0; }
