/* Turn of Phrase's table: direction A, the midway stage (David's pick after
   the first playtest, 2026-11-09). On a laptop: the seats a scoreboard down
   the left; the board in the middle with the wheel's top half rising under
   it like a stage floor; the turn card and the letter rack in a rail on the
   right; the dock under it all. On a phone: the seats a strip at the top,
   the board, then the wheel's arc (or the rack, while you pick), then the
   dock. Sizes come from the width first: table.js fit() sets --tile, --wheel
   and --arc. Over the table, the stage (.tpfx): a spotlight that dims all
   but the moment's part, ribbon cards in the fair's paint, the letter
   called, big, and each tile's points rising off it. On the room's
   structure (games/room/room.css), from the tokens in turn-of-phrase.css. */

/* ── the frame ───────────────────────────────────────────────────────── */
.felt.tp { position: relative; height: calc(100dvh - 2 * var(--frame)); min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.felt.tp.docked { grid-template-columns: minmax(0, 1fr) 280px; }
.tp .logdock { min-height: 0; display: flex; flex-direction: column; }
.tp .logdock:empty { display: none; }
.tp .logdock .gamelog { flex: 1; }
.tp .tablemain { display: flex; flex-direction: column; gap: 12px; min-height: 0; min-width: 0; }
.tp .gamelog.drawer { position: absolute; z-index: 30; right: 14px; top: 64px; bottom: 24px; width: min(360px, calc(100% - 28px)); box-shadow: -10px 10px 30px rgba(0, 0, 0, .45); }
.tp .logbtn.on { background: var(--pick-tint); box-shadow: var(--pick-ring); }
.tp .bar .more svg { display: block; }
.tp .bar .title { font: var(--display-weight) var(--t-bar, 18px)/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tpwhere { font: 600 var(--t-bar, 17px)/1.2 var(--ui-font); color: var(--soft); }
.tpfillin { position: fixed; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; font-size: 16px; }

/* the three columns, with real gutters */
.tpmain { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(180px, 210px) minmax(0, 1fr) minmax(260px, 300px); gap: 22px; padding: 4px 8px 0; }
.felt.tp.docked .tpmain { grid-template-columns: minmax(170px, 190px) minmax(0, 1fr) minmax(240px, 270px); gap: 16px; }

/* ── the scoreboard: the seats down the left ─────────────────────────── */
.tpscore { min-height: 0; overflow: auto; }
.tpseats { display: grid; gap: 8px; align-content: start; }
.tpseat { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 10px; border-radius: var(--chip-radius); background: var(--chip); border: var(--chip-edge); min-width: 0; transition: box-shadow 200ms; }
.tpseat .seatmark { flex: none; }
.tpwho { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: baseline; line-height: 1.15; min-width: 0; flex: 1; }
.tpnm { font-weight: 700; font-size: 14px; min-width: 0; }
.tpseat .tpnm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpnm small { font-size: inherit; font-weight: 500; color: var(--soft); }
.tpbank { font: 400 22px/1.1 var(--display); font-variant-numeric: tabular-nums; grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.tprnd { font: 600 12px/1.25 var(--ui-font); color: var(--soft); grid-column: 1; min-width: 0; }
.tprnd b { color: var(--ink); }
.tprnd s { color: var(--soft); }
.tpgain { color: var(--turn); font-weight: 800; }
.tptag { display: none; }
.tpseat.turn { border-color: var(--turn); box-shadow: inset 0 0 0 1.5px var(--turn), inset 0 0 18px rgba(255, 224, 102, .22); } /* (its glow inside, as every highlight is: ADR 0105) */
.tpseat.out { border-style: dashed; }
.many .tpseat { padding: 6px 10px 6px 8px; }
.many .tpbank { font-size: 19px; }

/* ── the middle: the board, the wheel rising under it ────────────────── */
.tpcenter { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tpcat { display: inline-flex; align-items: baseline; gap: 10px; padding: 7px 18px; border-radius: 8px; background: var(--cream); color: var(--paint-ink); font: 800 18px/1.2 var(--ui-font); box-shadow: 0 3px 0 rgba(0, 0, 0, .3); text-align: center; flex: none; }
.tpcat:empty { visibility: hidden; }
.tpcat small { font-weight: 600; font-size: 14px; color: #6b5444; }
/* The bulbs: a row along each edge, their spacing (--px, --py, about 19px)
   set by table.js so a whole number fits each side and the corners meet. */
.tpframe { --gap: 5px; --px: 19px; --py: 19px; flex: none; padding: 16px; border-radius: 16px;
  --bulb-on: radial-gradient(circle at center, var(--bulb) 0 3.2px, rgba(255, 229, 154, .35) 3.8px, transparent 6.5px);
  background: var(--bulb-on) 0 0 / var(--px) var(--py) repeat-x, var(--bulb-on) 0 100% / var(--px) var(--py) repeat-x,
    var(--bulb-on) 0 0 / var(--px) var(--py) repeat-y, var(--bulb-on) 100% 0 / var(--px) var(--py) repeat-y, linear-gradient(var(--red), var(--red-d));
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), 0 10px 30px rgba(0, 0, 0, .45); }
/* Solved: every third bulb lit, chasing round the frame clockwise: along the
   top, down the right side, back along the bottom, up the left (playtest 2:
   the sides ran sideways before). */
.chase .tpframe {
  --lit-row: radial-gradient(circle at calc(var(--px) / 2) 50%, #fff4c8 0 3.6px, rgba(255, 236, 170, .75) 4.2px, transparent 8.5px);
  --lit-col: radial-gradient(circle at 50% calc(var(--py) / 2), #fff4c8 0 3.6px, rgba(255, 236, 170, .75) 4.2px, transparent 8.5px);
  --off: radial-gradient(circle at center, var(--bulb-off) 0 3px, transparent 3.6px);
  background: var(--lit-row) 0 0 / calc(var(--px) * 3) var(--py) repeat-x, var(--lit-col) 100% 0 / var(--px) calc(var(--py) * 3) repeat-y,
    var(--lit-row) 0 100% / calc(var(--px) * 3) var(--py) repeat-x, var(--lit-col) 0 0 / var(--px) calc(var(--py) * 3) repeat-y,
    var(--off) 0 0 / var(--px) var(--py) repeat-x, var(--off) 0 100% / var(--px) var(--py) repeat-x,
    var(--off) 0 0 / var(--px) var(--py) repeat-y, var(--off) 100% 0 / var(--px) var(--py) repeat-y, linear-gradient(var(--red), var(--red-d)); }
@media (prefers-reduced-motion: no-preference) {
  .chase .tpframe { animation: tpchase 540ms steps(3) infinite; }
  @keyframes tpchase { to { background-position: calc(var(--px) * 3) 0, 100% calc(var(--py) * 3), calc(var(--px) * -3) 100%, 0 calc(var(--py) * -3), 0 0, 0 100%, 0 0, 100% 0, 0 0; } }
}
.tpgrid { display: grid; grid-template-columns: repeat(12, var(--tile)); gap: var(--gap); padding: 8px; border-radius: 7px; background: var(--board); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .5); }
.tpboard.filling .tptile.blank { cursor: text; }
.tpbadge { position: absolute; top: -12px; right: -12px; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; font: 800 14px/26px var(--ui-font); text-align: center; box-shadow: 0 0 0 2px var(--cream); }

/* the wheel's top half, rising from under the board */
.tpslot { position: relative; flex: 1; min-height: 0; width: 100%; display: flex; justify-content: center; align-items: flex-start; }
.tparc { position: relative; height: var(--arc, 220px); width: var(--wheel, 520px); max-width: 100%; overflow: hidden; }
.tparc .tpwheel { width: var(--wheel, 520px); height: var(--wheel, 520px); }
.tpwheel { position: relative; touch-action: none; cursor: grab; }
.tpwheelsvg { display: block; width: 100%; height: 100%; }
.tpwheel .tpwv { font-family: var(--display); }
.tpwheel path.lit { stroke: #fff3c4; stroke-width: 6; stroke-linejoin: round; filter: brightness(1.12); }
.tpwheel .tpflap { transition: transform 60ms ease-out; }
.tpwheel .tpflap.knock { transform: translate(200px, 8px) rotate(-12deg); }

/* ── the rail: the turn card, the rack ───────────────────────────────── */
.tprail { min-height: 0; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.tpturn { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 16px; border-radius: 16px; background: var(--chip); border: var(--chip-edge); }
.tpturn.yours { border-color: var(--turn); box-shadow: inset 0 0 0 1.5px var(--turn); }
.tpwhohead { display: flex; align-items: center; justify-content: center; gap: 10px; font: 400 22px/1.15 var(--display); }
.tpwhohead > span { padding-top: .1em; } /* (the slab's capitals sit high: centered by ink on the seat's mark) */
.tpwhat { margin: 0; font-size: 15px; font-weight: 600; color: var(--soft); }
.tpplate { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 18px; border-radius: 12px; background: var(--cream); color: var(--paint-ink); font: 400 30px/1 var(--display); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.tpplate small { font: 700 13px/1 var(--ui-font); color: #6b5444; }
.tpringwrap { display: grid; justify-items: center; gap: 4px; font: 700 15px/1 var(--ui-font); font-variant-numeric: tabular-nums; }
.tprack { display: grid; gap: 8px; justify-items: center; }
.tprack:empty { display: none; }
.tplbl { font: 600 13px/1.2 var(--ui-font); color: var(--soft); }
.tpkeys { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tprail .tpkeys.cons { max-width: 290px; }
.tpkey { --key: 38px; --key-h: 38px; }

/* ── the stage: spotlight, ribbons, the big letter, points rising ────── */
.tpfx { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.tpfx::before { content: ""; position: absolute; inset: -8px; border-radius: 16px; opacity: 0; transition: opacity 300ms;
  background: radial-gradient(ellipse var(--sw, 0%) var(--sh, 0%) at var(--sx, 50%) var(--sy, 50%), transparent 55%, rgba(10, 5, 2, .64) 100%); }
.tpfx.on::before { opacity: 1; }
.tpfx:has(.tpribbon) { pointer-events: auto; cursor: pointer; }
.tpfx:has(.tpribbon)::before { opacity: 1; background: rgba(10, 5, 2, .58); }
/* a ribbon card: cream, a red band across its top; gold for a win, dark for a Bust */
.tpribbon { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); box-sizing: border-box; width: min(560px, calc(100% - 24px));
  display: grid; gap: 8px; justify-items: center; text-align: center; padding: 30px 32px 24px; border-radius: 14px;
  background: linear-gradient(var(--cream), var(--cream-2)); color: var(--paint-ink); box-shadow: 0 22px 60px rgba(0, 0, 0, .55); }
.tpribbon::before { content: ""; position: absolute; left: -12px; right: -12px; top: -12px; height: 26px; border-radius: 4px; background: var(--red); box-shadow: 0 3px 0 var(--red-d); }
.tpribbon .tpk1 { position: absolute; top: -8px; left: 0; right: 0; font: 800 12px/18px var(--ui-font); letter-spacing: .12em; text-transform: uppercase; color: #fff7e6; }
.tpribbon h3 { margin: 6px 0 0; font: 400 36px/1.08 var(--display); text-wrap: balance; overflow-wrap: anywhere; }
.tpribbon p { margin: 0; font: 600 16px/1.4 var(--ui-font); color: #4a372b; }
.tpribbon .tpamt { font: 400 28px/1.1 var(--display); color: var(--red); }
.tpribbon.bust::before { background: #1b120d; box-shadow: 0 3px 0 #000; }
.tpribbon.gold::before { background: linear-gradient(90deg, #c99a35, #fbe7a1, #c99a35); box-shadow: 0 3px 0 #8d6b2b; }
.tpribbon.gold .tpk1 { color: var(--paint-ink); }
/* the top wedge: a string of pennants hung under its gold band, dropping in one by one */
.tpribbon.top { padding-top: 46px; }
.tppennants { position: absolute; top: 12px; left: 4px; right: 4px; display: flex; justify-content: space-between; pointer-events: none; }
.tppennants i { width: 26px; height: 22px; clip-path: polygon(0 0, 100% 0, 50% 100%); background: var(--red); transform-origin: 50% 0; }
.tppennants i:nth-child(3n + 2) { background: var(--mustard); }
.tppennants i:nth-child(3n) { background: var(--teal); }
.tprosette { position: absolute; top: -40px; right: -26px; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #fff6d8 0 32%, var(--red) 33% 62%, var(--red-d) 63%); box-shadow: 0 6px 14px rgba(0, 0, 0, .4); font: 400 13px/1 var(--display); color: var(--paint-ink); }
@media (prefers-reduced-motion: no-preference) {
  .tpribbon { animation: tpribbon 360ms cubic-bezier(.2, 1.4, .4, 1) both; }
  @keyframes tpribbon { from { transform: translate(-50%, -40%) scale(.9); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
  .tprosette { animation: tprosette 600ms 200ms cubic-bezier(.2, 1.6, .4, 1) both; }
  .tppennants i { animation: tppennant 420ms calc(240ms + var(--i) * 55ms) cubic-bezier(.2, 1.6, .4, 1) both; }
  @keyframes tppennant { from { transform: scaleY(0) rotate(-14deg); } to { transform: none; } }
  @keyframes tprosette { from { transform: rotate(-90deg) scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
}
/* the letter called, big over the board */
.tpbig { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 10px; }
.tpbig b { display: grid; place-items: center; width: 108px; height: 128px; padding-top: .1em; box-sizing: border-box; border-radius: 12px; background: linear-gradient(var(--cream), var(--cream-2)); color: var(--paint-ink); font: 400 80px/1 var(--display); box-shadow: 0 0 0 4px var(--turn), 0 20px 50px rgba(0, 0, 0, .6); }
.tpbig span, .tpbig em { font: 800 16px/1.2 var(--ui-font); color: var(--ink); padding: 4px 12px; border-radius: 8px; background: var(--panel); white-space: nowrap; font-style: normal; }
@media (prefers-reduced-motion: no-preference) {
  .tpbig b { animation: tpbig 320ms cubic-bezier(.2, 1.5, .4, 1) both; }
  @keyframes tpbig { from { transform: scale(.4) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
}
/* each tile's points, rising off it as it turns */
.tpfloat { position: absolute; transform: translate(-50%, -100%); font: 400 20px/1 var(--display); color: var(--turn); text-shadow: 0 2px 0 rgba(0, 0, 0, .6); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .tpfloat { animation: tpfloat 1000ms ease-out both; }
  @keyframes tpfloat { from { transform: translate(-50%, -60%); opacity: 0; } 20% { opacity: 1; } to { transform: translate(-50%, -260%); opacity: 0; } }
}

/* ── the round's result, on the stage between rounds ─────────────────── */
.tpstage { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 14px; overflow: auto; background: rgba(20, 11, 7, .72); border-radius: 12px; }
.tpstage[hidden] { display: none; }
.tpstandings { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.tpstandings li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(36, 22, 15, .06); }
.tpresult .tpstandings li { grid-template-columns: 34px 28px minmax(0, 1fr) auto; background: var(--panel); border: var(--panel-edge); }
.tpstandings li.you { box-shadow: inset 0 0 0 2px currentColor; }
.tpstandings .tpnm { overflow-wrap: anywhere; }
.tpstandings .tpnm small { display: block; font-weight: 500; font-size: 13px; color: inherit; opacity: .8; }
.tpstandings .tpgain { color: #1f6b3a; font-variant-numeric: tabular-nums; }
.tpsc { font: 400 20px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tpsc small { font: 600 12px/1 var(--ui-font); }
.tpready { font: 700 12px/1 var(--ui-font); padding: 4px 8px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px currentColor; }
.tppl { font: 700 14px/1 var(--ui-font); color: var(--soft); text-align: center; }
.tpresult p { margin: 0 0 10px; }
/* (The house's result body centers what it holds: the standings take its
   width, or a phone's names wrapped a few letters a line: playtest 3.) */
.tpresult { align-self: stretch; }
/* On a phone the round's card has no room for a row's five things on one
   line: the name and the total, then what it gained and Ready under them. */
@media (max-width: 520px) {
  .tpstage .tpstandings li { grid-template-columns: 28px minmax(0, 1fr) auto; row-gap: 2px; }
  .tpstage .tpstandings li > :first-child { grid-row: span 2; }
  .tpstage .tpstandings li .tpgain { grid-column: 2; grid-row: 2; justify-self: start; }
  .tpstage .tpstandings li .tpready { grid-column: 3; grid-row: 2; justify-self: end; }
}

/* ── the dock ────────────────────────────────────────────────────────── */
.tpdock { flex: none; display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 12px 18px; border-radius: var(--panel-radius); background: var(--panel); border: var(--panel-edge); box-sizing: border-box; flex-wrap: wrap; }
.tpdock.live { border: 2px solid var(--turn); }
.tpstatus { flex: 1 1 280px; min-width: 0; font-size: 18px; line-height: 1.35; }
.tpstatus small { font-size: 14px; color: var(--soft); }
.tpgo { color: var(--turn); }
.tpbtns { display: flex; gap: 10px; flex-wrap: wrap; }
.tpbtns .btn { min-height: 46px; }
.tpbtns .btn.tpoff { background: transparent; color: var(--soft); border: 2px dashed rgba(247, 236, 210, .45); cursor: default; }
.tpbtns .btn.tpstop { height: 56px; min-width: 240px; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.tpbtns .btn.tpstop .house-key { font-size: 13px; }
.tpsolve { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tpclock { display: flex; align-items: center; gap: 8px; font: 700 16px/1 var(--ui-font); font-variant-numeric: tabular-nums; }

/* a laptop that's short (600px): the wheel and the rack give way */
@media (min-width: 641px) and (max-height: 700px) {
  .tpkey { --key: 34px; --key-h: 34px; font-size: 16px; }
  .tprail { gap: 10px; }
  .tpturn { padding: 12px; gap: 8px; }
  .tpplate { font-size: 24px; padding: 6px 14px; }
  .tplbl { display: none; }
}

/* ── a phone ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  #app { padding: 0; }
  .felt.tp { height: 100dvh; gap: 0; }
  .tp .tablemain { gap: 6px; }
  .felt.tp .bar .tools { display: none; }
  .felt.tp .bar .more { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  /* the bar says where the game stands (the glance); the game's name is the way up's */
  .tpgame, .tpdot { display: none; }
  .tpwhere { font: var(--display-weight) 17px/1.2 var(--display); color: var(--ink); }
  .tpmain { display: flex; flex-direction: column; gap: 8px; padding: 0; }
  .tpscore, .tprail { display: none; }
  /* the seats: a strip over the board, three or four to a row */
  .tpseats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .many .tpseats, .tpseats:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tpseat { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1px 5px; padding: 4px 6px; }
  .tpwho { display: contents; }
  .tpseat .tpnm { grid-column: 2; font-size: 11.5px; } /* (the seats' names only: the standings have their own grid) */
  .tpbank { grid-column: 1 / -1; grid-row: auto; font-size: 15px; }
  .tprnd { grid-column: 1 / -1; font-size: 10.5px; }
  .tpcenter { flex: 1; gap: 8px; }
  .tpcat { font-size: 14px; padding: 4px 12px; }
  .tpframe { --gap: 3px; padding: 8px; border-radius: 10px; background-size: 14px 14px, auto; }
  .tpgrid { padding: 4px; }
  .tpslot .tprack { padding-top: 6px; }
  .tpkey { --key: 36px; --key-h: 40px; font-size: 16px; }
  .tpkeys { gap: 5px; }
  .tpkeys.cons { max-width: 340px; }
  .tpdock { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: 0; border-left: 0; border-right: 0; }
  .tpstatus { flex: none; font-size: 16px; }
  /* Spin full width, then Buy a vowel and Solve side by side: no button wraps */
  .tpbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tpbtns > .btn:only-child, .tpbtns > .btn:first-child:nth-last-child(3) { grid-column: 1 / -1; }
  .tpbtns .btn { padding: 0 6px; }
  .tpbtns .btn.tpstop { width: 100%; min-width: 0; height: 64px; }
  .tpsolve { display: grid; gap: 8px; }
  .tpsolve .tpbtns { width: 100%; }
  .tpstage { position: fixed; inset: 0; border-radius: 0; z-index: 20; }
  .tpfx { position: fixed; }
  .tpribbon { top: 46%; padding: 26px 20px 20px; }
  .tpribbon h3 { font-size: 28px; }
  .tpribbon .tpamt { font-size: 24px; }
  .tprosette { right: -8px; width: 60px; height: 60px; }
  .tpbig b { width: 84px; height: 100px; font-size: 62px; }
  .tp.filling .tpslot { display: none; }
}
/* a short phone: the rack tighter, so nothing scrolls */
@media (max-width: 640px) and (max-height: 680px) {
  .tpkey { --key-h: 34px; }
  .tplbl { display: none; }
  .tpseat { padding: 3px 6px; }
}

/* phones on their side: the scoreboard and rail narrow, the bar folds */
@media (max-height: 520px) and (min-width: 560px) {
  #app { padding: 0; }
  .felt.tp { height: 100dvh; gap: 0; }
  .felt.tp .bar .tools { display: none; }
  .felt.tp .bar .more { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 32px; }
  .tp .tablemain { gap: 6px; }
  .tpmain { grid-template-columns: 150px minmax(0, 1fr) 220px; gap: 10px; padding: 0; }
  .tpseats { gap: 4px; }
  .tpseat { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 5px; padding: 3px 6px; }
  .tpwho { display: contents; }
  .tpseat .tpnm { grid-column: 2; font-size: 11.5px; } /* (the seats' names only: the standings have their own grid) */
  .tpbank { grid-column: 1 / -1; grid-row: auto; font-size: 14px; }
  .tprnd { grid-column: 1 / -1; font-size: 10.5px; }
  .tpcenter { gap: 6px; }
  .tpcat { font-size: 13px; padding: 2px 10px; }
  .tpframe { --gap: 3px; padding: 6px; }
  .tpgrid { padding: 3px; }
  .tpturn { padding: 8px; gap: 6px; }
  .tpwhohead { font-size: 16px; }
  .tpwhat { font-size: 13px; }
  .tpplate { display: none; }
  .tplbl { display: none; }
  .tprack { gap: 4px; }
  .tpkeys { gap: 4px; }
  .tprail .tpkeys.cons { max-width: none; }
  .tpkey { --key: 26px; --key-h: 26px; font-size: 13px; }
  .tpdock { min-height: 0; padding: 6px 10px; gap: 10px; }
  .tpstatus { font-size: 15px; }
  .tpribbon h3 { font-size: 24px; }
}

@media (pointer: coarse) {
  .felt.tp .bar .btn { min-height: 44px; }
}
