/* ============================================================
   POKER HOUSE GAMES — the shared table (Phase 2, 2026-11-09)
   Ultimate Texas Hold'em, Caribbean Stud, Let It Ride, Three Card, Four Card.
   Decisions: briefs/poker-family-b-redesign-decisions.md P1-P11 (and D3-D18); the approved UTH mock-up
   design-review-2026-11/poker/uth.html#B (clean Graphite). Copied into each game's assets/css/ by
   kit/casino/build-poker-b.js; edit it here, never in a game folder. Loaded after game.css, table-stats.css and
   poker-b.css; each game's own sheet only places its spots and cards.

   DESKTOP (1000px wide, or 900 and over 500 tall):
       Hand 4 · Ante $25 · Last win $50                     Coach Table Rules Sound Settings New
       [PAYS box]        (D) Dealer · opens with ...  [dealer cards]          [PAYS box]
                                 [ board / dealer's cards ]
                                    Bet 2x or check
                              (trips) (ante) = (blind) (play)
                                You have Queen high
       [BALANCE plate      ]      [ your cards ]        [ chips + Deal | decision | result ]
   PHONES: the buttons' row; the dealer's plate and cards; the board; the instruction; the spots; your cards; the
   hand line; your plate and the band. Pay tables in Rules (P3); the session in Table (as before).
   Card sizes: --bw (the dealer's and shared cards) and --hw (yours), set by the game's fit (the largest that fits,
   measured with the band at its fullest).
   Inter only. Gold only for your move (the main action), your chips and your plate's edge.
   ============================================================ */
:root{ --bw:80px; --hw:100px; --dw:80px; --ix:14px; }
.ph{ --sg:16px; --ph-cream:#F7F3EC; --ph-muted:#EDE6DA; --ph-brass:#ECD9B2; --ph-key:#B9965C;
  --ph-hair:rgba(214,178,118,.45); --ph-plate:#1C1B1A; --ph-steel:#1E1D1B; --ph-steel-b:rgba(214,178,118,.55); --ph-red:#C8313C;
  --ph-win:#9BEAA6; --ph-loss:#FFC2C9; --ts-gold:#ECD9B2; --ts-gold-bright:#ECD9B2; --ts-ivory:#F7F3EC; --ts-win:#9BEAA6; --ts-loss:#FFC2C9; }

/* ---- the frame ---- */
html, body{ margin:0; height:100%; }
body{ background:#161514; overflow:hidden; padding:0 !important; display:block; font-family:Inter, system-ui, sans-serif; }
html:not(.sized) .ph .table-wrap{ visibility:hidden; }   /* the first paint never shows a fallback card size */
.ph{ max-width:none; width:100%; display:flex; flex-direction:column; height:100vh; height:100dvh; overflow:hidden; box-sizing:border-box; border-radius:0;
  background:#161514; color:var(--ph-cream); font-family:Inter, system-ui, sans-serif; box-shadow:none; margin:0; padding:0; }
.ph *, .ph *::before, .ph *::after{ box-sizing:border-box; }
.ph .mono, .ts-felt .mono, .ts-panel .mono{ font-family:inherit; font-variant-numeric:tabular-nums; }
.ph .table-wrap{ flex:1 1 auto; min-height:0; display:flex; padding:6px 6px 0; max-width:none; width:100%; margin:0; }
.ph .table-wrap > .felt{ flex:1; min-width:0; min-height:0; display:flex; flex-direction:column; position:relative; padding:0; border-radius:18px; border:0; margin:0;
  background:radial-gradient(ellipse 62% 58% at 50% 46%, #3E3B38 0%, #33312F 62%, #211F1E 100%);
  box-shadow:inset 0 0 0 1px var(--ph-hair), inset 0 2px 18px rgba(0,0,0,.35); }
.ph .table-wrap > .felt::before, .ph .table-wrap > .felt::after, .ph .felt-surface::before, .ph .felt-surface::after{ display:none; content:none; }
.ph .rivets{ display:none; }
.ph .felt-surface{ flex:1; min-height:0; display:flex; flex-direction:column; position:relative; padding:10px var(--ix) 8px; background:none; box-shadow:none; border-radius:18px; overflow:hidden; }
.ph footer{ flex:none; padding:3px 16px 4px; text-align:center; font-family:Inter, system-ui, sans-serif; font-size:12px; font-weight:600; line-height:16px; color:var(--ph-muted); opacity:1; background:none; border:0; }
.ph footer .footer-short{ display:none; }

/* ---- the top row: the mat head and six steel buttons, a line icon over each label (Q1) ---- */
.ph .ph-top{ flex:none; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin:0 calc(14px - var(--ix)) 8px; }   /* the buttons 14px from the felt's edge however wide the table's inset */
.ph .ph-head{ font-size:calc(13px * var(--k)); font-weight:700; line-height:1.35; color:var(--ph-muted); white-space:nowrap; padding-top:6px; }
.ph .ph-head b{ color:var(--ph-cream); font-weight:800; }
.ph .ph-head span:not(:empty)::before{ content:"\00A0\00B7\00A0"; }
.ph .brand-cluster{ display:block; position:static; padding:0; margin:0; background:none; border:0; box-shadow:none; width:auto; height:auto; }
.ph .icon-actions{ display:flex; gap:calc(8px * var(--k)); }
.ph .gold-icon-btn{ min-width:calc(64px * var(--k)); width:auto; height:auto; min-height:calc(52px * var(--k)); padding:4px 10px; margin:0; flex:none;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  background:var(--ph-steel); border:1px solid var(--ph-steel-b); border-radius:10px; box-shadow:none; color:var(--ph-cream); cursor:pointer; font-family:Inter, system-ui, sans-serif; }
.ph .gold-icon-btn .ico{ display:none; }
.ph .gold-icon-btn .btn-label, .ph .gold-icon-btn .btn-label *{ font-family:Inter, system-ui, sans-serif; font-size:calc(12px * var(--k)); font-weight:600; letter-spacing:0; text-transform:none; color:var(--ph-cream); line-height:1.2; white-space:nowrap; }
html body .ph .gold-icon-btn.coach-btn .coach-mark{ display:none !important; }
html body .ph .gold-icon-btn.coach-btn .btn-label{ line-height:1.2 !important; margin:0 !important; }
html body .ph .gold-icon-btn.coach-btn .btn-label .btn-word, html body .ph .gold-icon-btn.coach-btn .btn-label .btn-state{ display:inline !important; }
html body .ph .gold-icon-btn.coach-btn .btn-label .btn-state::before{ content:" "; }
.ph .gold-icon-btn[aria-pressed="true"]{ border-color:var(--ph-cream); }
.ph #btnSound[aria-pressed="false"] .pb-ico path:nth-child(2){ display:none; }   /* sound off: the speaker without its waves */
.ph .gold-icon-btn:hover{ border-color:var(--ph-cream); }

/* ---- the composition (desktop) ---- */
.ph .ph-layout{ position:relative; flex:1; min-height:0; display:grid; grid-template-columns:minmax(min-content,1fr) auto minmax(min-content,1fr); column-gap:18px; row-gap:6px;
  grid-template-areas:"payl dealer payr" "payl board payr" "plate instr band" "plate notes band" "plate spots band" "plate handline band" "plate hand band";
  grid-template-rows:repeat(6, min-content) 1fr; }   /* the plate and the band rise beside the spots; the pay tables sit beside the cards */
/* rows are min-content, not auto: with a definite height and a 1fr row, an auto row came out shorter than a wrapped tip (it ran into the spots) */
.ph .ph-side{ display:contents; }   /* its pieces sit in the table's grid; on phones held sideways it is a column of its own */
.ph .ph-pay-l{ grid-area:payl; align-self:start; justify-self:start; }
.ph .ph-pay-r{ grid-area:payr; align-self:start; justify-self:end; }
.ph .ph-dealer{ grid-area:dealer; justify-self:center; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px 12px; min-height:var(--dealer-h, 0px); }   /* where the middle runs out of room, the plate goes above the dealer's cards */
.ph .ph-board{ grid-area:board; justify-self:center; }
.ph .ph-instr{ grid-area:instr; justify-self:center; text-align:center; min-height:var(--instr-h, 0px); }   /* --instr-h, --notes-h: the longest words' room, held through every phase so no card moves (§9) */
.ph .ph-notes{ grid-area:notes; justify-self:center; text-align:center; }
.ph .ph-spots{ grid-area:spots; justify-self:center; }
.ph .ph-handline{ grid-area:handline; justify-self:center; text-align:center; min-height:18px; }
.ph .ph-plate{ grid-area:plate; align-self:end; justify-self:start; }
.ph .ph-hand{ grid-area:hand; align-self:end; justify-self:center; }
.ph .ph-band{ grid-area:band; align-self:end; justify-self:end; }

.ph .ph-notes{ justify-self:stretch; }
.ph .ph-instr, .ph .ph-notes > *{ max-width:max(380px, calc(var(--bw) * 5.4)); margin-left:auto; margin-right:auto; }   /* a long tip wraps over the cards' width; it does not widen the middle */
/* desktops, arrangement B (the fit picks it when its cards are bigger): the result beside the spots, the band's row under your cards */
.ph.lay-b .ph-layout{ grid-template-areas:"payl dealer payr" "payl board payr" "plate instr res" "plate notes res" "plate spots res" "plate handline res" "plate hand res" "plate band band";
  grid-template-rows:repeat(6, min-content) 1fr min-content; }
.ph.lay-b .ph-band{ display:contents; }
.ph.lay-b .ph-band > .chip-strip{ grid-area:band; justify-self:start; align-self:center; width:auto; }
.ph.lay-b .ph-band > .action-row{ grid-area:band; justify-self:end; align-self:center; width:auto; }
.ph.lay-b .ph-band > .action-row .action{ flex:0 0 auto; min-width:calc(120px * var(--k)); }
.ph.lay-b .uth-settlement, .ph.lay-b .ph-settlement{ grid-area:res; align-self:end; justify-self:end; max-width:calc(360px * var(--k)); }
/* desktops, arrangement W (short and wide windows): the dealer beside the shared cards, a row saved for bigger cards */
.ph.lay-w .ph-layout{ grid-template-columns:minmax(min-content,1fr) auto auto minmax(min-content,1fr);
  grid-template-areas:"payl dealer board payr" "payl instr instr payr" "payl notes notes payr" "plate spots spots band" "plate handline handline band" "plate hand hand band";
  grid-template-rows:repeat(5, min-content) 1fr; }
.ph.lay-w .ph-dealer{ flex-wrap:nowrap; justify-self:end; }
.ph.lay-w .ph-board{ justify-self:start; align-self:center; }
.ph.lay-w .ph-instr, .ph.lay-w .ph-notes, .ph.lay-w .ph-spots, .ph.lay-w .ph-handline, .ph.lay-w .ph-hand{ justify-self:center; }
.ph .ph-plate.auto-min .ph-sess{ display:none; }
/* short desktops (under 1100 wide or 600 tall, where live put them in Rules too, and only when your cards would otherwise be under 80px): the pay tables go to Rules, as on phones (P3) and as live there */
.ph.no-pay .ph-pay{ display:none; }
/* ...and the dealer takes their place, top left (the dealer above, you below): the shared cards move up a row */
.ph.no-pay .ph-layout{ grid-template-areas:"dealer board band" "dealer instr band" "dealer notes band" "plate spots band" "plate handline band" "plate hand band"; grid-template-rows:repeat(5, min-content) 1fr; }
.ph.no-pay.lay-w .ph-layout{ grid-template-columns:minmax(min-content,1fr) auto minmax(min-content,1fr); grid-template-areas:"dealer board band" "dealer instr band" "dealer notes band" "plate spots band" "plate handline band" "plate hand band"; grid-template-rows:repeat(5, min-content) 1fr; }
.ph.no-pay.lay-w .ph-dealer{ flex-direction:column; justify-self:start; }
.ph.no-pay.lay-b .ph-layout{ grid-template-areas:"dealer board res" "dealer instr res" "dealer notes res" "plate spots res" "plate handline res" "plate hand res" "plate band band"; grid-template-rows:repeat(5, min-content) 1fr min-content; }
.ph.no-pay .ph-dealer{ justify-self:start; align-self:start; flex-direction:column; align-items:flex-start; gap:8px; }

/* ---- the pay tables: printed in brass-edged boxes (D3 clean) ---- */
.ph .ph-pay{ width:calc(222px * var(--k)); padding:10px 14px; border:1.5px solid var(--ph-key); border-radius:12px; background:rgba(0,0,0,.18); }
.ph .ph-pay:empty{ display:none; }
.ph .ph-pay .pt + .pt{ margin-top:10px; }
.ph .pt-title{ font-size:calc(12px * var(--k)); font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--ph-brass); margin:0 0 4px; }
.ph .pt-row{ display:flex; justify-content:space-between; gap:10px; font-size:calc(13px * var(--k)); font-weight:600; line-height:1.4; color:var(--ph-cream); }
.ph .pt-row .mono, .ph .pt-row span:last-child{ font-weight:800; font-variant-numeric:tabular-nums; }
.ph .pt-foot{ font-size:calc(12px * var(--k)); font-weight:600; line-height:1.35; color:var(--ph-muted); margin-top:4px; }

/* ---- the dealer: a plate with the rule in words (E11) ---- */
.ph .ph-dplate{ min-width:var(--dplate-w, 0px); max-width:calc(250px * var(--k)); box-sizing:border-box; display:flex; align-items:center; gap:10px; padding:8px 14px 8px 8px; border-radius:12px; background:var(--ph-plate); box-shadow:inset 0 0 0 1px var(--ph-hair); }
.ph .ph-dplate .pb-disc{ background:#C9CFDC; }
.ph .ph-dtx{ display:flex; flex-direction:column; gap:1px; }
.ph .ph-dname{ font-size:calc(14px * var(--k)); font-weight:800; line-height:1.3; color:var(--ph-cream); }
.ph .ph-drule{ font-size:calc(13px * var(--k)); font-weight:600; line-height:1.3; color:var(--ph-muted); }
.ph .uth-qual:empty, .ph .ph-qual:empty{ display:none; }
.ph .uth-qual, .ph .ph-qual{ font-size:calc(13px * var(--k)); font-weight:800; line-height:1.3; color:var(--ph-brass); text-transform:none; letter-spacing:0; }
.ph .uth-qual.fails, .ph .ph-qual.fails{ color:var(--ph-loss); }
.ph .uth-qual.on ~ .ph-drule, .ph .ph-qual.on ~ .ph-drule{ display:none; }   /* at the result the plate says what happened, not the rule */
.ph .uth-qual.needs, .ph .ph-qual.needs{ display:none; }                       /* the rule is already on the plate in words */
.ph .uth-qual.needs ~ .ph-drule, .ph .ph-qual.needs ~ .ph-drule{ display:block; }
.ph .uth-qual .q-needed{ font-weight:600; }
.ph .uth-rank-pill{ font-weight:800; color:var(--ph-brass); background:none; border:0; padding:0; text-transform:none; letter-spacing:0; }
.ph .ph-dname .uth-rank-pill:not(:empty)::before{ content:"\00A0\00B7\00A0"; color:var(--ph-muted); }

/* ---- cards (D6, D7, P8) ---- */
.ph .uth-cards, .ph .ph-cards{ display:flex; gap:calc(var(--bw) * .08); }
.ph .ph-hand{ gap:calc(var(--hw) * .08); }
.ph .uth-slot, .ph .ph-slot{ width:var(--bw); height:calc(var(--bw) / .712); border-radius:calc(var(--bw) * .07); flex:none; position:relative;
  outline:1.5px dashed rgba(236,217,178,.28); outline-offset:-1.5px; background:none; border:0; box-shadow:none; }
.ph .ph-hand .uth-slot, .ph .ph-hand .ph-slot{ width:var(--hw); height:calc(var(--hw) / .712); border-radius:calc(var(--hw) * .07); }
.ph .ph-dcards{ gap:calc(var(--dw) * .08); }
.ph .ph-dcards .uth-slot, .ph .ph-dcards .ph-slot{ width:var(--dw); height:calc(var(--dw) / .712); border-radius:calc(var(--dw) * .07); }   /* the dealer's two: --dw (the board's size on desktops; smaller on phones, never under 44px) */
.ph .uth-slot:has(.card), .ph .ph-slot:has(.card){ outline:0; }
.ph .card{ --cw:var(--bw); position:absolute; inset:0; width:100%; height:100%; margin:0; border-radius:calc(var(--cw) * .07); overflow:hidden;
  font-family:Inter, "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", sans-serif; font-weight:800; color:#16181D; background:#FBF8F1;
  box-shadow:0 2px 4px rgba(0,0,0,.35); opacity:1; transform:none; border:0; }
.ph .ph-hand .card{ --cw:var(--hw); }
.ph .ph-dcards .card{ --cw:var(--dw); }
.ph .card::before{ content:none; display:none; }
.ph .card.red{ color:var(--ph-red); }
.ph .card .card-corner{ position:absolute; display:block; text-align:center; font-size:calc(var(--cw) * .26); line-height:1; font-variant-emoji:text; font-family:inherit; font-weight:800; }
.ph .card .card-corner-top{ top:max(3px, calc(var(--cw) * .032)); left:3px; }
.ph .card .card-corner-bottom{ bottom:max(3px, calc(var(--cw) * .032)); right:3px; transform:rotate(180deg); }
.ph .card .card-centre-suit{ position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); font-size:calc(var(--cw) * .38); line-height:1; opacity:1; font-variant-emoji:text; }
/* court cards: a thin inner frame (P8) */
.ph .card.court::after{ content:""; position:absolute; left:26%; right:26%; top:22%; bottom:22%; border:1.5px solid currentColor; border-radius:calc(var(--cw) * .03); opacity:.55; }
.ph .card.back{ display:block; background:#16203F; box-shadow:inset 0 0 0 calc(var(--cw) * .05) #16203F, inset 0 0 0 calc(var(--cw) * .05 + 1.5px) #B9C3DE, 0 2px 4px rgba(0,0,0,.35); }
.ph .card.back > *{ display:none; }
.ph .card.back::after{ content:""; position:absolute; inset:22%; border-radius:50%; border:1.5px solid rgba(185,195,222,.55); opacity:1; }
.ph .card.winning, .ph .card.best-five{ box-shadow:0 0 0 2px var(--ph-brass), 0 2px 4px rgba(0,0,0,.35); }

/* ---- the instruction, the notes and the hand line ---- */
.ph .ph-instr{ font-family:Inter, system-ui, sans-serif; font-size:calc(17px * var(--k)); font-weight:800; line-height:1.3; color:var(--ph-cream); letter-spacing:0; text-transform:none; margin:2px 0 0; background:none; border:0; padding:0; }
.ph .ph-notes{ min-height:var(--notes-h, calc(17px * var(--k))); font-size:calc(13px * var(--k)); font-weight:600; line-height:1.3; color:var(--ph-muted); }
.ph .ph-notes > div:empty{ display:none; }
.ph .ph-notes > div{ font-style:normal; font-family:inherit; }
.ph .ph-notes .uth-notice, .ph .ph-notes .ph-notice{ color:var(--ph-loss); font-weight:700; }
.ph .ph-handline{ font-size:calc(14px * var(--k)); font-weight:600; line-height:1.3; color:var(--ph-muted); }
.ph .ph-handline .uth-rank-pill, .ph .ph-handline .ph-rank{ color:var(--ph-cream); font-weight:800; }

/* ---- the spots: circles every casino player knows, quiet until your chips are on them (E12) ---- */
.ph .ph-spots{ display:flex; align-items:flex-start; gap:calc(18px * var(--k)); }
.ph .ph-spot{ display:flex; flex-direction:column; align-items:center; gap:2px; cursor:pointer; min-width:calc(64px * var(--k)); background:none; border:0; padding:0; }
.ph .ph-spot .bet-circle{ width:calc(58px * var(--k)); height:calc(58px * var(--k)); min-width:0; border-radius:50%; display:grid; place-items:center; margin:0 0 4px;
  border:1.5px solid rgba(236,217,178,.55); background:rgba(0,0,0,.12); box-shadow:none; }
.ph .ph-spot .current-bet-val{ position:relative; z-index:1; margin:2px 0 2px; padding:0 7px; border-radius:999px; background:var(--ph-plate); box-shadow:inset 0 0 0 1px var(--ph-hair);
  font-size:calc(13px * var(--k)); font-weight:800; line-height:1.4; color:var(--ph-muted); font-variant-numeric:tabular-nums; font-family:inherit; }   /* the amount: a tag under the chip, clear of its ring */
.ph .ph-spot .ph-betchip{ display:none; width:calc(44px * var(--k)); height:calc(44px * var(--k)); font-size:calc(13px * var(--k)); }   /* the rack's chip, same size, same face (Ronan 2026-11-09) */
.ph .ph-spot.active .ph-betchip, .ph .ph-spot.committed .ph-betchip{ display:inline-grid; }
.ph .ph-spot.active .bet-circle, .ph .ph-spot.committed .bet-circle{ border:2px solid var(--pb-gold-a, #F3D27A); background:rgba(0,0,0,.12); box-shadow:none; }
.ph .ph-spot.active .current-bet-val, .ph .ph-spot.committed .current-bet-val{ color:var(--ph-cream); }
.ph .ph-spot .spot-label{ font-size:calc(12px * var(--k)); font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--ph-cream); line-height:1.3; font-family:inherit; }
.ph .ph-spot .spot-sub{ font-size:calc(12px * var(--k)); font-weight:600; color:var(--ph-muted); line-height:1.3; opacity:1; font-family:inherit; }
.ph .ph-spot:focus-visible .bet-circle{ outline:2px solid var(--ph-brass); outline-offset:3px; }
.ph .uth-equals, .ph .ph-equals{ align-self:flex-start; margin-top:calc(19px * var(--k)); font-size:calc(18px * var(--k)); font-weight:800; color:var(--ph-muted); }

/* ---- your plate (D15, D16, P4) ---- */
.ph .ph-plate{ position:relative; width:calc(250px * var(--k)); max-width:100%; padding:10px 12px; border-radius:12px; background:var(--ph-plate);
  box-shadow:inset 0 0 0 1px var(--ph-hair), inset 0 3px 0 var(--pb-gold, #E9C46A); }
.ph .ph-pline{ display:flex; align-items:center; gap:10px; min-height:44px; padding-right:52px; }
.ph .ph-mini{ position:absolute; right:10px; top:10px; }
.ph .ph-sess{ margin-top:8px; padding-top:8px; border-top:1px solid rgba(214,178,118,.25); }
.ph .ph-plate.min .ph-sess{ display:none; }
.ph .ph-sess .ts-block + .ts-block{ margin-top:6px; }
.ph .ph-sess .ts-title{ font-size:calc(12px * var(--k)); font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--ph-brass); margin:0 0 3px; line-height:1.25; white-space:normal; }
.ph .ph-sess .ts-row{ display:flex; justify-content:space-between; gap:12px; font-size:calc(13px * var(--k)); line-height:1.35; font-weight:600; color:var(--ph-cream); }
.ph .ph-sess .ts-stats{ display:grid; grid-template-columns:auto auto; justify-content:space-between; column-gap:14px; }
.ph .ph-sess .ts-row > span{ overflow:visible; text-overflow:clip; white-space:nowrap; min-width:0; }   /* every word whole ("Hands played" was cut) */   /* the session in two columns, so your plate stays short enough for short desktops */
.ph .ph-sess .ts-stats .ts-title{ grid-column:1 / -1; }
.ph .ph-sess .ts-keys{ display:flex; flex-wrap:wrap; gap:3px 10px; margin-top:4px; }
.ph .ph-sess .ts-key{ display:inline-flex; align-items:center; gap:4px; }
.ph .ph-sess .ts-row .mono{ font-weight:800; }
.ph .ph-sess .ts-sub, .ph .ph-sess .ts-empty, .ph .ph-sess .ts-legend{ font-size:12px; font-weight:600; color:var(--ph-muted); opacity:1; font-style:normal; }
.ph .ph-sess .ts-mark, .ph .ts-mark{ display:inline-grid; place-items:center; min-width:20px; height:20px; border-radius:5px; font-size:12px; font-weight:800; color:#fff; }
.ph .ph-sess .ts-strip{ display:flex; flex-wrap:wrap; gap:3px; }

/* ---- the band: chips and Deal, the decision, the result ---- */
.ph .ph-band{ display:flex; flex-direction:column; align-items:flex-end; gap:12px; min-width:0; width:100%; max-width:calc(470px * var(--k)); background:none; border:0; padding:0; margin:0; }
.ph .ph-band > .action-row{ display:flex; gap:8px; justify-content:flex-end; width:100%; max-width:none; margin:0; padding:0; flex-wrap:nowrap; }
.ph .ph-band > .action-row, .ph .ph-band > .chip-strip{ contain:inline-size; }   /* the band's buttons never widen their column: the columns stay the same in every phase, so no card moves (the fit checks the buttons fit) */
.ph .ph-band > .action-row:empty{ display:none; }
.ph .chip-strip{ display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; width:100%; background:none; border:0; padding:0; margin:0; box-shadow:none; }
.ph .chip-row{ display:flex; gap:6px; flex-wrap:nowrap; max-width:none; width:auto; }
.ph .chip.pb-chip{ width:calc(44px * var(--k)); height:calc(44px * var(--k)); border:0; padding:0; cursor:pointer; font-size:calc(13px * var(--k)); margin:0; }
.ph .chip.pb-chip .chip-face{ font:inherit; color:inherit; background:none; border:0; box-shadow:none; position:static; width:auto; height:auto; }
.ph .chip.pb-chip::before, .ph .chip.pb-chip::after{ content:none; display:none; }
.ph .chip.pb-chip{ position:relative; }
.ph .chip-row{ padding-bottom:5px; }   /* room for the selected chip's bar */
.ph .chip.pb-chip, .ph .chip.pb-chip.selected{ transform:none; box-shadow:0 0 0 1.5px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.45); }
.ph .chip.pb-chip.selected::after{ content:""; display:block; position:absolute; left:22%; right:22%; bottom:-6px; height:3px; border-radius:2px; background:var(--pb-gold-a, #F3D27A); }   /* the chip a tap places: a gold bar under it, same size as the rest (Ronan 2026-11-09) */
.ph .chip.pb-chip:disabled{ opacity:.4; cursor:default; }
.ph .rack-tools{ display:flex; gap:6px; }
.ph .rack-btn{ min-height:44px; min-width:64px; padding:0 12px; border-radius:10px; background:var(--ph-steel); border:1px solid var(--ph-steel-b); color:var(--ph-cream);
  font:700 calc(13px * var(--k))/1 Inter, system-ui, sans-serif; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:4px; }
.ph .rack-btn .ico{ display:none; }
.ph .rack-btn:disabled{ opacity:.45; cursor:default; }
/* the actions: one gold primary per decision (E16), the others steel; the consequence smaller under the label */
.ph .ph-band .action, .ph .ph-band button.action{ flex:1 1 0; min-width:0; max-width:calc(170px * var(--k)); min-height:calc(56px * var(--k)); height:auto; padding:6px 10px; margin:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; border-radius:12px; cursor:pointer;
  font:800 calc(15px * var(--k))/1.2 Inter, system-ui, sans-serif; letter-spacing:0; text-transform:none; white-space:nowrap; position:relative; overflow:visible;
  color:var(--ph-cream); background:var(--ph-steel); border:1px solid var(--ph-steel-b); box-shadow:none; transition:filter .15s; }
.ph .ph-band .action::before{ content:none; }
.ph .ph-band .action.btn-deal, .ph .ph-band .action.btn-hit{ color:#1B1406; background:linear-gradient(#F3D27A, #D9AE4E); border:0; }
.ph .ph-band .action.btn-deal ~ .action.btn-deal, .ph .ph-band .action.btn-hit ~ .action.btn-hit{ color:var(--ph-cream); background:var(--ph-steel); border:1px solid var(--ph-steel-b); }   /* one gold per decision */
.ph .ph-band .action:disabled, .ph .ph-band .action.unaffordable{ opacity:.45; cursor:default; }
.ph .ph-band .action .db-label{ font:inherit; }
.ph .ph-band .action .db-sub{ font:600 calc(13px * var(--k))/1.25 Inter, system-ui, sans-serif; color:inherit; opacity:1; white-space:normal; text-align:center; }
.ph .ph-band .action .db-preview:empty{ display:none; }
.ph .ph-band .action .db-preview{ font:600 13px/1.2 Inter, system-ui, sans-serif; white-space:normal; text-align:center; }   /* the shortest form, if it still does not fit one line, wraps */
.ph .ph-band .action:hover:not(:disabled){ filter:brightness(1.08); }
/* the result: what each bet did, the round and the balance */
.ph .uth-settlement, .ph .ph-settlement{ width:100%; padding:10px 12px; border-radius:12px; background:var(--ph-plate); box-shadow:inset 0 0 0 1px var(--ph-hair); color:var(--ph-cream); margin:0; border:0; }
.ph .settlement-head{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.ph .settlement-note{ font-size:calc(14px * var(--k)); font-weight:800; line-height:1.3; color:var(--ph-cream); }
.ph .settlement-totals{ display:flex; flex-direction:column; gap:1px; text-align:right; flex:none; }
.ph .settlement-total-row{ display:flex; gap:8px; justify-content:flex-end; font-size:calc(13px * var(--k)); line-height:1.3; font-weight:600; color:var(--ph-muted); }
.ph .settlement-total-row .st-val{ font-weight:800; color:var(--ph-cream); font-variant-numeric:tabular-nums; font-family:inherit; }
.ph .st-val.win, .ph .st-val.pos{ color:var(--ph-win); } .ph .st-val.loss, .ph .st-val.neg{ color:var(--ph-loss); }
.ph .settlement-rows{ margin-top:6px; display:grid; gap:2px; }
.ph .settlement-rows > *{ display:flex; justify-content:space-between; gap:10px; font-size:calc(13px * var(--k)); line-height:1.35; font-weight:600; color:var(--ph-cream); }
.ph .settlement-rows .mono, .ph .settlement-rows b{ font-weight:800; font-family:inherit; }
.ph .settlement-rows .win, .ph .settlement-rows .pos{ color:var(--ph-win); } .ph .settlement-rows .loss, .ph .settlement-rows .neg{ color:var(--ph-loss); }

/* the session marks (Won, Lost, Push, Folded): deep enough for white letters at 7:1; their key words at the 12px floor */
.ph .ts-keys .ts-key, .ph-sess .ts-key, .ts-panel .ts-key{ font-size:12px !important; font-weight:600 !important; }
.ts-w, .ts-t{ background:#17492D !important; } .ts-l, .ts-b{ background:#8A2630 !important; } .ts-e, .ts-f{ background:#4A453D !important; }

/* ---- the Hint (Coach): a brass tag on the suggested button (gold is your move) ---- */
html body .coach-hint-tag{ position:absolute; z-index:300; padding:0 7px; height:18px; border-radius:999px; cursor:pointer; font-family:Inter, system-ui, sans-serif; font-size:12px; font-weight:800; letter-spacing:.06em; line-height:16px;
  background:#ECD9B2 !important; color:#1B1406 !important; border:1px solid #7a5d1d; box-shadow:0 2px 6px rgba(0,0,0,.45); }
html body .coach-hint-tag::before{ content:""; position:absolute; left:50%; top:0; bottom:0; width:max(44px, 100%); transform:translateX(-50%); }
html body .coach-reason{ position:fixed; z-index:210; max-width:min(320px, calc(100vw - 16px)); padding:10px 12px; border-radius:10px; background:#1C1B1A; color:#F7F3EC; border:1.5px solid #B9965C; box-shadow:0 8px 22px rgba(0,0,0,.6); font-family:Inter, system-ui, sans-serif; font-size:13px; font-weight:600; line-height:1.4; }
html body .hinted::after{ content:none !important; display:none !important; }
html body.coach-off .coach-hint-tag, html body.coach-off .coach-reason{ display:none !important; }

/* ---- panels: the start / resume screen and every overlay, Graphite (Q8); buttons their own size ---- */
.panel-overlay{ position:fixed; inset:0; z-index:50; display:none; align-items:center; justify-content:center; padding:12px; background:rgba(8,8,7,.72); }
.panel-overlay.open{ display:flex; }
body:has(.panel-overlay.open) .coach-hint-tag, body:has(.coach-start) .coach-hint-tag{ visibility:hidden; }
.coach-start{ z-index:200; background:rgba(8,8,7,.82); }
.coach-start .coach-start-card{ width:min(520px, 100%); max-height:100%; overflow:auto; background:#1C1B1A; border:1.5px solid #B9965C; border-radius:16px; padding:20px 22px;
  box-shadow:0 18px 48px rgba(0,0,0,.6); font-family:Inter, system-ui, sans-serif; color:#F7F3EC; }
.coach-start .coach-start-title{ font-family:Inter, system-ui, sans-serif; font-size:22px; font-weight:800; line-height:1.25; color:#F7F3EC; margin:0 0 6px; }
.coach-start .coach-start-sub, .coach-start .coach-start-or, .coach-start .coach-resume-line{ font-size:14px; font-weight:600; line-height:1.45; color:#EDE6DA; margin:0 0 12px; }
.coach-start .coach-start-or{ margin:14px 0 8px; color:#ECD9B2; font-weight:800; }
.coach-start .coach-resume{ display:flex; align-items:center; justify-content:center; width:100%; min-height:52px; margin:4px 0 8px; border:0; border-radius:12px; cursor:pointer;
  font-family:Inter, system-ui, sans-serif; font-size:16px; font-weight:800; color:#1B1406; background:linear-gradient(#F3D27A, #D9AE4E); }
.coach-start .coach-choices{ display:flex; gap:8px; }
.coach-start .coach-choice{ flex:1 1 0; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:3px; min-height:64px; padding:10px 12px; text-align:left;
  border-radius:12px; cursor:pointer; background:#1E1D1B; border:1px solid #6E5D40; color:#F7F3EC; font-family:Inter, system-ui, sans-serif; }
.coach-start .coach-choice .coach-choice-title{ display:block; font-size:15px; font-weight:800; color:#F7F3EC; font-family:inherit; }
.coach-start .coach-choice .coach-choice-desc{ display:block; font-size:13px; font-weight:600; line-height:1.3; color:#EDE6DA; }
.coach-start .coach-choice.selected, .coach-start .coach-choice[aria-pressed="true"]{ background:linear-gradient(#F3D27A, #D9AE4E); border-color:transparent; }
.coach-start .coach-choice.selected *, .coach-start .coach-choice[aria-pressed="true"] *{ color:#1B1406; }
.coach-start .coach-choice:focus-visible, .coach-start .coach-resume:focus-visible{ outline:2px solid #ECD9B2; outline-offset:2px; }
@media (max-width:520px){ .coach-start .coach-choices{ flex-direction:column; } }
.panel-overlay .panel{ width:min(480px, 100%); max-height:100%; overflow:auto; background:#1C1B1A; border:1.5px solid #B9965C; border-radius:16px; padding:18px 20px;
  box-shadow:0 14px 40px rgba(0,0,0,.55); color:#F7F3EC; font-family:Inter, system-ui, sans-serif; backdrop-filter:none; -webkit-backdrop-filter:none; text-align:left !important; }
.panel-overlay .panel h2{ font-family:Inter, system-ui, sans-serif; font-size:20px; font-weight:800; color:#F7F3EC; margin:0 0 4px; letter-spacing:0; text-transform:none; }
.panel-overlay .panel h3{ font-family:Inter, system-ui, sans-serif; font-size:13px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:#ECD9B2; margin:14px 0 4px; }
.panel-overlay .panel p{ font-size:14px; line-height:1.55; font-weight:500; margin:0 0 8px; color:#F7F3EC; }
.panel-overlay .panel .sub{ font-family:Inter, system-ui, sans-serif; font-size:13px; font-weight:600; color:#EDE6DA; margin:0 0 10px; }
.panel-overlay .rules-list{ margin:0 0 10px; padding-left:18px; } .panel-overlay .rules-list li{ font-size:14px; line-height:1.55; margin-bottom:4px; color:#F7F3EC; }
.panel-overlay .rules-edge{ font-size:13px; line-height:1.5; color:#EDE6DA; }
.panel-overlay .rules-rg{ font-size:12px !important; line-height:1.45; font-weight:600; color:#EDE6DA; margin:10px 0 0 !important; }
.panel-overlay .panel-close{ display:block; width:100%; margin-top:12px; padding:10px; min-height:44px; font-weight:800; color:#F7F3EC; background:#1E1D1B; border:1px solid rgba(214,178,118,.55); border-radius:12px; cursor:pointer; font-family:inherit; font-size:14px; }
.panel-overlay .toggle-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid rgba(214,178,118,.25); font-size:14px; font-weight:600; color:#F7F3EC; }
.panel-overlay .reset-why, .panel-overlay .settings-hint{ display:block; font-size:12px; line-height:1.35; font-weight:600; color:#EDE6DA; opacity:1; margin-top:2px; }
.panel-overlay .switch{ position:relative; display:inline-block; width:44px; height:26px; flex:none; }
.panel-overlay .switch input{ opacity:0; width:0; height:0; }
.panel-overlay .slider{ position:absolute; inset:0; background:#4A453D; border-radius:20px; cursor:pointer; transition:background .2s; }
.panel-overlay .slider::before{ content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#F7F3EC; transition:transform .2s; }
.panel-overlay .switch input:checked + .slider{ background:#D9AE4E; }
.panel-overlay .switch input:checked + .slider::before{ transform:translateX(18px); background:#1B1406; }
.panel-overlay .switch input:focus-visible + .slider{ outline:2px solid #ECD9B2; outline-offset:2px; }
.panel-overlay .action{ display:flex; align-items:center; justify-content:center; width:100%; min-height:44px; border-radius:12px; cursor:pointer; font-family:Inter, system-ui, sans-serif; font-weight:800; font-size:14px; text-transform:none; letter-spacing:0;
  color:#F7F3EC; background:#1E1D1B; border:1px solid rgba(214,178,118,.55); box-shadow:none; }
/* game.css gives button.action flex:1 1 140px, a row's basis; in a panel's column that became 140px of height (Ronan 2026-11-09) */
.panel-overlay .action, .coach-start .action{ flex:0 0 auto; height:auto; max-width:none; padding:10px 14px !important; font-size:14px !important; }
.panel-overlay .toggle-row .action{ width:auto; min-width:88px; }
.panel-overlay .action::before{ content:none; }
.panel-overlay .btn-deal{ color:#1B1406; background:linear-gradient(#F3D27A, #D9AE4E); border:0; }
.panel-overlay .ts-panel{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.panel-overlay .ts-panel .ts-title{ font-size:13px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:#ECD9B2; margin:6px 0 4px; }
.panel-overlay .ts-panel .ts-row{ display:flex; justify-content:space-between; font-size:13px; line-height:18px; font-weight:600; color:#F7F3EC; }
.panel-overlay .ts-panel .ts-row .mono{ font-weight:800; }
.panel-overlay .ts-panel li{ font-size:13px; line-height:18px; font-weight:600; color:#F7F3EC; }
.panel-overlay .ts-panel .ts-mark{ display:inline-grid; place-items:center; min-width:20px; height:20px; border-radius:5px; font-size:12px; font-weight:800; color:#fff; }
.panel-overlay .ts-panel-actions{ margin-top:10px; }
.panel-overlay .pt-title{ font-size:13px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:#ECD9B2; margin:10px 0 4px; }
.panel-overlay .pt-row{ display:flex; justify-content:space-between; font-size:14px; line-height:1.5; font-weight:600; color:#F7F3EC; }
.panel-overlay .pt-row span:last-child{ font-weight:800; font-variant-numeric:tabular-nums; font-family:inherit; }
.panel-overlay .pt-foot{ font-size:12px; font-weight:600; color:#EDE6DA; margin-top:2px; }
@media (max-width:560px){ .panel-overlay .ts-panel{ grid-template-columns:1fr; } }

/* ---- reduced motion: shortened, never removed ---- */
body[data-reduce-motion="true"] .ph *, body[data-reduce-motion="true"] .ph *::before{ transition-duration:1ms !important; animation-duration:1ms !important; }

/* =============================================================================================
   PHONES (under 900px wide; phones held sideways up to 999px wide, 500 tall and under, N3; and narrow windows, 900-999 wide and 600+ tall or 1000-1099 wide and 680+ tall, where the stacked table gives bigger cards than the desktop one and live showed no pay tables or session there)
   ============================================================================================= */
@media (max-width:899px), (max-width:999px) and (max-height:500px), (max-width:999px) and (min-height:600px), (max-width:1099px) and (min-height:680px), (max-width:1099px) and (max-height:679px) and (min-aspect-ratio:4/3){
  .ph footer{ display:none; }
  .ph .felt-surface{ padding:8px 8px 8px; }
  .ph .ph-top{ margin-bottom:8px; }
  /* the hand count (live showed ROUND on phones), the Ante and the last result: a line under the buttons (mock B) */
  .ph .ph-top{ flex-wrap:wrap; row-gap:4px; }
  .ph .ph-head{ order:2; width:100%; padding-top:0; font-size:13px; line-height:1.3; overflow:hidden; text-overflow:ellipsis; }
  .ph .brand-cluster{ width:100%; }
  .ph .icon-actions{ display:flex; gap:2px; width:100%; justify-content:space-between; }
  .ph .gold-icon-btn{ flex:1 0 auto; min-width:44px; min-height:44px; padding:3px 2.5px 2px; gap:1px; }   /* never narrower than its words (2px clear each side) */
  .ph .gold-icon-btn .pb-ico{ width:16px; height:16px; }
  .ph .gold-icon-btn .btn-label, .ph .gold-icon-btn .btn-label *{ font-size:12px; line-height:14px; }
  /* four columns: your plate, Clear, Rebet, the action; the chips take the whole row above (the band is a subgrid over both rows) */
  .ph .ph-layout{ grid-template-columns:auto auto auto minmax(0,1fr); column-gap:8px; row-gap:5px; align-content:start;
    grid-template-areas:"dealer dealer dealer dealer" "board board board board" "instr instr instr instr" "notes notes notes notes" "spots spots spots spots" "hand hand hand hand" ". . . ." "plate . . .";
    grid-template-rows:repeat(5, min-content) 1fr 49px minmax(var(--act-h, 0px), min-content); }   /* the chips' row and the action row held in every phase, so your cards never move */
  /* what you hold, beside your cards (on the right), not a row of its own */
  .ph .ph-handline{ grid-area:hand; justify-self:end; align-self:end; width:calc(50% - var(--hw) * 1.04 - 8px); text-align:left; min-height:0; }
  .ph .ph-handline .uth-rank-pill, .ph .ph-handline .ph-rank{ white-space:normal; }
  .ph .ph-band{ grid-area:auto; grid-column:1 / -1; grid-row:7 / 9; display:grid; grid-template-columns:subgrid; grid-template-rows:subgrid; row-gap:5px; align-items:end; }
  .ph .ph-band .chip-row{ grid-column:1 / -1; grid-row:1; justify-self:center; gap:8px; }
  .ph .ph-band .rack-tools{ display:contents; }
  .ph .ph-band #btnClear{ grid-column:2; grid-row:2; }
  .ph .ph-band #btnRebet{ grid-column:3; grid-row:2; }
  .ph .ph-band > .action-row{ grid-column:2 / -1; grid-row:2; contain:inline-size; }   /* its words never widen the table (the fit checks they fit) */
  .ph .ph-band > .action-row#betActions{ grid-column:4; }
  .ph .ph-plate{ grid-area:plate; position:relative; z-index:1; }
  .ph .rack-btn{ min-height:52px; }
  .ph .ph-hand{ align-self:end; }   /* at the foot of its row: the result above has room */
  .ph .ph-pay{ display:none; }
  .ph .ph-dealer{ width:100%; justify-content:space-between; gap:8px; flex-wrap:nowrap; }
  .ph .ph-dplate{ padding:6px 10px 6px 6px; min-width:0; flex:0 1 auto; }
  .ph .ph-dplate .pb-disc{ width:28px; height:28px; font-size:13px; }
  .ph .ph-dname, .ph .ph-drule, .ph .uth-qual, .ph .ph-qual{ font-size:13px; }
  body[data-ui-phase="settled"] .ph .ph-instr, body[data-ui-phase="settled"] .ph .ph-notes, body[data-ui-phase="settled"] .ph .ph-spots{ visibility:hidden; }   /* under the result */
  .ph .ph-instr{ font-size:15px; margin:0; }
  .ph .ph-notes{ min-height:0; font-size:12px; }
  .ph .ph-spots{ gap:10px; }
  .ph .ph-spot{ min-width:56px; }
  .ph .ph-spot .bet-circle{ width:52px; height:52px; margin-bottom:0; }
  .ph .ph-spot .current-bet-val{ margin-top:2px; font-size:13px; }
  .ph .ph-spot .ph-betchip{ width:44px; height:44px; font-size:13px; }
  .ph .uth-equals, .ph .ph-equals{ margin-top:13px; font-size:16px; }
  .ph .ph-handline{ font-size:13px; }
  .ph .ph-plate{ width:auto; padding:4px 10px; align-self:end; }
  .ph .ph-pline{ min-height:0; padding-right:0; gap:8px; }
  .ph .ph-plate .pb-disc{ display:none; }
  .ph .ph-plate .pb-bal .bv{ font-size:18px; line-height:1.1; }
  .ph .ph-plate .pb-bal .bl{ line-height:1.15; }
  .ph .ph-plate .pb-bal .ip{ line-height:1.2; }
  .ph .ph-mini, .ph .ph-sess{ display:none; }   /* phones: the session in Table, as before */
  .ph .ph-band{ max-width:none; justify-self:stretch; }
  .ph .ph-band .action, .ph .ph-band button.action{ max-width:none; min-height:52px; font-size:14px; padding:4px 4px; }
  @media (max-width:360px){ .ph .ph-band .action, .ph .ph-band button.action{ font-size:13px; } .ph .ph-layout{ column-gap:5px; } .ph .ph-band > .action-row{ gap:5px; } }
  .ph .ph-band .action .db-sub{ font-size:13px; white-space:normal; text-align:center; line-height:1.2; }   /* "See the turn and river" takes two lines on a phone */
  .ph .ph-band .action .db-preview{ display:none; }   /* as live: the win/lose line is a desktop extra */
  .ph .chip-strip{ justify-content:space-between; gap:6px; }
  .ph .chip.pb-chip{ width:44px; height:44px; font-size:13px; }
  .ph .rack-btn{ min-width:52px; padding:0 8px; font-size:13px; }
  /* the result takes the bets' place (live hid the spots at the result): over the call, the notes and the spots, measured by the fit (--set-top, --set-h); your cards stay in view */
  .ph .ph-band{ position:static; }
  .ph .uth-settlement, .ph .ph-settlement{ padding:7px 10px; }
  .ph .settlement-note{ font-size:13px; line-height:1.25; }
  .ph .settlement-head{ flex-direction:column; gap:2px; }   /* the note across the panel, the two totals on one line under it */
  .ph .settlement-totals{ flex-direction:row; flex-wrap:wrap; column-gap:14px; text-align:left; }
  .ph .settlement-total-row{ justify-content:flex-start; }
  .ph .settlement-total-row{ line-height:1.25; }
  .ph .settlement-rows{ margin-top:4px; gap:0; }
  .ph .settlement-rows > *{ line-height:1.25; }
  .ph .uth-settlement, .ph .ph-settlement{ position:absolute; left:var(--set-left, 0px); right:auto; top:var(--set-top, 0px); min-height:var(--set-h, 0px); bottom:auto; width:var(--set-w, 100%); z-index:5; box-shadow:inset 0 0 0 1px var(--ph-hair), 0 6px 16px rgba(0,0,0,.45); }
}

/* as live (casino-readable.css): the 'needed a pair' aside only where there is room */
@media (max-width:679px), (max-height:480px){ .ph .q-needed{ display:none; } }

/* phones under 700 tall (upright) and sideways, as live (P2-1): no tip line (Coach's Hint carries the advice); an essential
   notice shows over the spots for its few seconds instead, so nothing moves */
@media (max-width:679px) and (min-height:481px) and (max-height:699px), (max-width:999px) and (max-height:500px){
  .ph .ph-notes .uth-tip, .ph .ph-notes .uth-draw, .ph .ph-notes .ph-tip, .ph .ph-notes .ph-draw{ display:none; }
  .ph .ph-notes{ height:0; min-height:0; position:relative; z-index:6; overflow:visible; }
  .ph .ph-notes .uth-notice, .ph .ph-notes .ph-notice{ position:absolute; left:0; right:0; top:0; padding:6px 10px; border-radius:10px; background:var(--ph-plate); box-shadow:inset 0 0 0 1px var(--ph-hair), 0 4px 12px rgba(0,0,0,.5); text-align:center; }
}

/* =============================================================================================
   PHONES HELD SIDEWAYS, and wide windows under 1100 wide and 680 tall (4:3 or wider; F1/N3 as Hold'em): the cards on the left (the dealer's,
   the shared five, yours), the side on the right (the call, the notes, the spots, your plate and the band)
   ============================================================================================= */
@media (max-width:1099px) and (max-height:679px) and (min-aspect-ratio:4/3){
  .ph .ph-top{ margin-bottom:6px; flex-wrap:nowrap; align-items:center; }
  .ph .ph-head{ order:0; width:auto; flex:1 1 auto; min-width:0; }   /* sideways: beside the buttons */
  .ph .brand-cluster{ width:auto; flex:0 1 auto; }
  .ph .icon-actions{ width:auto; }
  .ph .gold-icon-btn{ flex:0 0 auto; min-width:64px; }
  .ph .ph-layout{ grid-template-columns:minmax(0,1fr) clamp(330px, 49vw, 380px); column-gap:12px; row-gap:5px; align-content:stretch;
    grid-template-areas:"dealer side" "board side" "hand side" "handline side"; grid-template-rows:min-content min-content 1fr min-content; }
  .ph .ph-hand{ align-self:center; justify-self:center; }
  .ph .ph-board{ justify-self:center; }
  .ph .ph-side{ grid-area:side; display:grid; min-height:0; column-gap:8px; row-gap:5px;
    grid-template-columns:auto auto auto minmax(0,1fr); grid-template-rows:min-content min-content min-content 1fr min-content min-content;
    grid-template-areas:"instr instr instr instr" "notes notes notes notes" "spots spots spots spots" ". . . ." ". . . ." "plate . . ."; }
  .ph .ph-side .ph-instr{ grid-area:instr; font-size:14px; }
  .ph .ph-side .ph-notes{ grid-area:notes; }
  .ph .ph-side .ph-spots{ grid-area:spots; justify-self:center; }
  .ph .ph-side .ph-plate{ grid-area:plate; }
  .ph .ph-side .ph-band{ grid-column:1 / -1; grid-row:5 / 7; }
  .ph .ph-handline{ grid-area:handline; justify-self:center; align-self:auto; width:auto; text-align:center; }
  .ph .ph-instr, .ph .ph-notes > *{ max-width:none; }
}

/* where nothing fits (the iPhone SE in the site's frame: its scroll is approved), the table grows and the page scrolls; cards stay 44px+ */
html.ph-over, html.ph-over body{ height:auto !important; min-height:100%; overflow-y:auto !important; overflow-x:hidden !important; }
html.ph-over .ph, html.ph-over .ph .table-wrap, html.ph-over .ph .table-wrap > .felt, html.ph-over .ph .felt-surface{ height:auto !important; max-height:none !important; flex:none !important; overflow:visible !important; }
html.ph-over .ph .ph-layout{ flex:none; }
html.ph-over .ph{ max-width:100vw; overflow-x:clip; }
html.ph-over .ph .table-wrap > .felt{ flex:1 1 0 !important; min-width:0; }   /* the table-wrap is a row: keep the width, let only the height grow */

/* while the fit measures (uth-controller fitUth): no transitions, so every size is read at its end value */
html.ph-fitting .ph *, html.ph-fitting .ph *::before, html.ph-fitting .ph *::after{ transition:none !important; }
