/* WEBSITE COPY of /play/table-a.css (owner, 15 Nov 2026: "separate app design and code to App itself - and browser itself",
   a one-month trial). The App keeps its own file. Change this copy for the website only. */
/* Table A and the wide card fan (approved pictures DxReHNmkNUuSR9W1KfUqqS, his "All your picks", 8 Nov 2026).
   Table A = the approved oval wood table: cream top, 9px brown rim, players' faces around it, your cards held as a fan
   at the bottom, buttons in thumb reach, and the whole game on one phone screen while you play.
   frame.js adds this file only inside the app's game window (html.eb-app-frame); the website pages keep their look.
   Game rules and moves are never changed here. */
html.eb-app-frame{--wood:#6B3A1E;--tabletop:#F4ECD8;--floor:#ECE3CC;
 --floor-fibres:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg stroke='%236B3A1E' stroke-opacity='.13' stroke-linecap='round'%3E%3Cpath d='M12 20l14 4M70 8l9 9M120 30l-12 6M30 70l10-8M95 66l15 3M140 90l-6 12M20 120l13 2M66 112l8 10M110 140l14-5M150 150l-9-7M45 150l-11 4M84 34l-3 13'/%3E%3C/g%3E%3C/svg%3E")}
html.eb-app-frame body{background-color:var(--floor)!important;background-image:var(--floor-fibres)!important}

/* ---------- The fan (every card game that uses EBWideFan) ---------- */
html.eb-app-frame .ebf{position:relative!important;display:block!important;overflow:visible!important;padding:0!important;max-width:none!important;touch-action:pan-y;-webkit-user-select:none;user-select:none}
html.eb-app-frame .ebf>*:not(.ebf-label){transition:left .18s cubic-bezier(.2,.75,.2,1),top .18s cubic-bezier(.2,.75,.2,1),transform .18s cubic-bezier(.2,.75,.2,1)}
html.eb-app-frame .ebf>.ebf-up{box-shadow:0 0 0 2px var(--ink),0 0 0 6px rgba(240,179,35,.9),0 12px 18px rgba(0,0,0,.28)!important}
/* Hold to move (owner's answer 4B, 16 Nov 2026): a held card pops up with a soft shadow; while it moves it follows the finger
   or mouse without lag (the other cards still glide). Reduced motion: no glide at all (the rule below). */
html.eb-app-frame .ebf>.ebf-hold{box-shadow:0 0 0 2px var(--ink),0 16px 26px rgba(0,0,0,.28),0 5px 10px rgba(0,0,0,.2)!important;cursor:grabbing}
html.eb-app-frame .ebf>.ebf-moving{transition:none!important}
/* The help line under a hand with hold to move (owner's answer 1A, 16 Nov 2026): small and quiet, plain text. */
html.eb-app-frame .ebf-help{margin:4px auto 0;padding:0 12px;max-width:36em;text-align:center;font-size:.8rem;line-height:1.35;font-weight:600;color:var(--ink2,#454C78);pointer-events:none}
html.eb-app-frame .ebf-help[hidden]{display:none}
/* One hint per game (Release desk, 16 Nov 2026): on a computer, Jutpatti and Fallaas already show the old tip (card-gesture.js,
   protected; card-fan.css hides it on phones), so there this line steps aside. Callbreak and Jhyap never show the old tip. */
@media (min-width:601px) and (not (pointer:coarse)){html.eb-app-frame:is(.eb-game-jutpatti,.eb-game-flush) .ebf-help{display:none}}
html.eb-app-frame .ebf-label{position:absolute;z-index:450;pointer-events:none;font:400 11px/1 var(--eb-display);padding:3px 7px 2px;border-radius:99px;background:var(--jungle);color:#fff;border:1.5px solid var(--ink);white-space:nowrap}
html.eb-app-frame .ebf-label.set{background:var(--turm);color:var(--ink)}
html.eb-app-frame .ebf-label.pair{background:var(--glacier);color:var(--ink)}
html.eb-app-frame .ebf-label.loose{background:var(--paper2);color:var(--ink)}
@media (prefers-reduced-motion:reduce){html.eb-app-frame .ebf>*{transition:none!important}}

/* ---------- Marriage on table A ---------- */
/* Website copy: the website bar and footer stay (the App hides every header and footer here). The row above the table
   (Marriage, Saved on this device, Leave table) and the right column (The Joker, Table rules, Around the table) stay too:
   owner, 15 Nov night, "take those right side stuff from today and 2 and put them into 3". Today's page lays the column
   out: beside the table on a computer, below it on a phone. */
html.eb-app-frame.eb-game-marriage .felt>.table-word:not(.turn-word),html.eb-app-frame.eb-game-marriage .fan-browse,
html.eb-app-frame.eb-game-marriage .hand-top>.row,html.eb-app-frame.eb-game-marriage .hand-top h2>button,
html.eb-app-frame.eb-game-marriage .hand-controls>.note,html.eb-app-frame.eb-game-marriage .seat-edit,
html.eb-app-frame.eb-game-marriage .hand-zone .eb-card-tip,html.eb-app-frame.eb-game-marriage .table-help{display:none!important}
html.eb-app-frame.eb-game-marriage #main{padding:6px 8px 0!important;max-width:none!important;margin:0!important}
html.eb-app-frame.eb-game-marriage .game-layout{margin:0}
html.eb-app-frame.eb-game-marriage .game-layout>div:first-child{display:flex;flex-direction:column;min-height:calc(100svh - 12px)}
/* Round tables, not stretched ovals (owner, 15 Nov night: "make all tables circle and sensible - right now it seems so much
   stretched table with Oval - looks ugly"). Every table is at most --eb-round times as wide as it is tall; 1 = a perfect circle. */
html.eb-app-frame{--eb-round:1.3}
/* The round wood table */
html.eb-app-frame.eb-game-marriage section.felt{position:relative;display:block;--eb-h:clamp(200px,38svh,320px);height:var(--eb-h);width:min(calc(100% - 4px),calc(var(--eb-h)*var(--eb-round)));min-height:0!important;margin:36px auto 0!important;padding:0!important;
 background:var(--tabletop)!important;border:9px solid var(--wood)!important;border-radius:50%/46%!important;
 box-shadow:inset 0 0 0 9px var(--tabletop),inset 0 0 0 11px rgba(107,58,30,.18),0 6px 0 rgba(27,34,80,.16)!important}
/* Players around the rim: a face, a name, how many cards they hold */
@media (min-width:851px){html.eb-app-frame.eb-game-marriage section.felt{--eb-h:clamp(240px,44svh,400px)}}
/* Marriage redraws its table on each move and table.js puts the players strip back straight after. In between, the
   browser's scroll anchoring saw the strip missing and moved the page (a flick that threw a card scrolled it 162px).
   The Marriage page keeps still without anchoring. */
html.eb-app-frame.eb-game-marriage{overflow-anchor:none}
/* Jhyap redraws the same way on each move. Without this the page moved 38 px when a card was picked on a
   1024 px wide, 600 px tall window (found with Codex on 17 Nov). Nothing looks different; the page just keeps still.
   Kept to the short screens of layout A, so taller screens behave exactly as before. */
@media (max-height:840px){html.eb-app-frame.eb-game-jhyap{overflow-anchor:none}}
/* Callbreak (R1-245, 18 Nov): when the table opens on a window up to 820 px wide, table.js moves the page past the
   website bar and puts the players strip into the table's top row, and the game draws the table twice while it opens.
   With "less motion" that move is instant, so the browser's scroll anchoring pushed the page down once for each draw
   (65, then 116, then 167 px on an 800x600 window: the table's top row was off screen). Nothing looks different; the
   Callbreak page just keeps still, like the two above. */
html.eb-app-frame.eb-game-callbreak{overflow-anchor:none}
html.eb-app-frame.eb-game-marriage .felt .seats{position:absolute;inset:0;display:block;margin:0;pointer-events:none}
html.eb-app-frame.eb-game-marriage .felt .seat{position:absolute;display:flex;flex-direction:column;align-items:center;gap:2px;width:84px;min-width:0;padding:0!important;margin:0;
 background:none!important;border:0!important;box-shadow:none!important;transform:translate(-50%,-50%);pointer-events:auto;text-align:center}
html.eb-app-frame.eb-game-marriage .felt .seat .av{display:block;width:44px;height:44px;border-radius:50%;background:#fff;box-shadow:0 0 0 2.5px var(--ink);overflow:hidden}
html.eb-app-frame.eb-game-marriage .felt .seat .av svg{display:block;width:100%;height:100%}
html.eb-app-frame.eb-game-marriage .felt .seat b{display:block;max-width:84px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 13px/1.15 var(--eb-display);color:var(--ink);background:var(--paper2);border:2px solid var(--ink);border-radius:99px;padding:2px 8px 1px}
html.eb-app-frame.eb-game-marriage .felt .seat.active b{background:var(--turm)}
html.eb-app-frame.eb-game-marriage .felt .seat.active .av{box-shadow:0 0 0 2.5px var(--ink),0 0 0 6px var(--turm)}
html.eb-app-frame.eb-game-marriage .felt .seat small{display:flex;gap:3px;justify-content:center;flex-wrap:wrap;font-size:11px;line-height:1.1;color:var(--ink)!important}
html.eb-app-frame.eb-game-marriage .felt .seat small :is(.who,br,.st){display:none}
html.eb-app-frame.eb-game-marriage .felt .seat small .ct,html.eb-app-frame.eb-game-marriage .felt .seat small .st.seen{display:inline-block;background:#fff;border:1.5px solid var(--ink);border-radius:99px;padding:0 6px;font-weight:700}
html.eb-app-frame.eb-game-marriage .felt .seat small .st.seen{background:var(--mint);font-size:0}
html.eb-app-frame.eb-game-marriage .felt .seat small .st.seen::after{content:'Seen';font-size:11px}
html[lang=ne].eb-app-frame.eb-game-marriage .felt .seat small .st.seen::after{content:'सिन'}
html.eb-app-frame.eb-game-marriage .seats>.seat:only-child{left:50%;top:2%}
html.eb-app-frame.eb-game-marriage .seats:has(>.seat:nth-child(2):last-child)>.seat:nth-child(1){left:13%;top:30%}
html.eb-app-frame.eb-game-marriage .seats:has(>.seat:nth-child(2):last-child)>.seat:nth-child(2){left:87%;top:30%}
html.eb-app-frame.eb-game-marriage .seats:has(>.seat:nth-child(3):last-child)>.seat:nth-child(1){left:12%;top:44%}
html.eb-app-frame.eb-game-marriage .seats:has(>.seat:nth-child(3):last-child)>.seat:nth-child(2){left:50%;top:2%}
html.eb-app-frame.eb-game-marriage .seats:has(>.seat:nth-child(3):last-child)>.seat:nth-child(3){left:88%;top:44%}
html.eb-app-frame.eb-game-marriage .seats:has(>.seat:nth-child(4):last-child)>.seat:nth-child(1){left:11%;top:50%}
html.eb-app-frame.eb-game-marriage .seats:has(>.seat:nth-child(4):last-child)>.seat:nth-child(2){left:30%;top:4%}
html.eb-app-frame.eb-game-marriage .seats:has(>.seat:nth-child(4):last-child)>.seat:nth-child(3){left:70%;top:4%}
html.eb-app-frame.eb-game-marriage .seats:has(>.seat:nth-child(4):last-child)>.seat:nth-child(4){left:89%;top:50%}
/* Deck, top discard and the joker in the middle of the table */
html.eb-app-frame.eb-game-marriage .felt .table-center{position:absolute;left:50%;top:56%;transform:translate(-50%,-50%);margin:0!important;display:flex;gap:10px;align-items:flex-start}
html.eb-app-frame.eb-game-marriage .felt .pile{gap:6px}
html.eb-app-frame.eb-game-marriage .felt .pile .card{width:52px;height:74px;padding:4px 5px;font-size:15px}
html.eb-app-frame.eb-game-marriage .felt .pile .card .suit{font-size:22px}
html.eb-app-frame.eb-game-marriage .felt .pile>span{font-size:11px;line-height:1;white-space:nowrap;color:var(--ink2)!important;font-weight:700}
html.eb-app-frame.eb-game-marriage .felt .joker-pile .card{width:40px;height:58px;font-size:13px;padding:3px 4px}
html.eb-app-frame.eb-game-marriage .felt .joker-pile .card .suit{font-size:16px}
html.eb-app-frame.eb-game-marriage .felt .joker-hidden{display:grid!important;place-items:center;font:400 20px var(--eb-display)!important;color:#fff!important}
html.eb-app-frame.eb-game-marriage .felt .round-banner{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;width:max-content;max-width:86%}
/* Whose turn: a pill on the table's front edge (pink when it is yours) */
html.eb-app-frame.eb-game-marriage .felt .turn-word{position:absolute;left:50%;bottom:-17px;transform:translateX(-50%);z-index:6;margin:0;white-space:nowrap;letter-spacing:0;
 font:400 14px/1.2 var(--eb-display);color:var(--ink)!important;background:var(--paper2);border:2.5px solid var(--ink);border-radius:99px;padding:3px 13px 2px}
html.eb-app-frame.eb-game-marriage .felt .turn-word.mine{background:var(--pink);color:#fff!important}
/* You, your cards, your buttons */
html.eb-app-frame.eb-game-marriage .hand-zone{display:flex;flex-direction:column;flex:1;margin:24px 0 0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html.eb-app-frame.eb-game-marriage .hand-top{justify-content:center;margin:0}
html.eb-app-frame.eb-game-marriage .hand-top h2{display:inline-flex;align-items:center;gap:6px;margin:0;font:400 15px/1 var(--eb-display);background:var(--paper2);border:2.5px solid var(--turm);border-radius:99px;padding:2px 12px 2px 2px;box-shadow:0 0 0 1.5px var(--ink)}
html.eb-app-frame.eb-game-marriage .hand-top h2 .av{display:block;width:28px;height:28px;border-radius:50%;overflow:hidden;background:#fff}
html.eb-app-frame.eb-game-marriage .hand-top h2 .av svg{display:block;width:100%;height:100%}
html.eb-app-frame.eb-game-marriage .hand-top h2 .you-count{font:700 12px var(--eb-body);color:var(--jungle)}
html.eb-app-frame.eb-game-marriage .hand-top h2 .pill{font:700 11px var(--eb-body);padding:1px 7px;border-radius:99px;border:1.5px solid var(--ink);background:#fff}
html.eb-app-frame.eb-game-marriage .hand-zone .hint{margin:6px 6px 0!important;padding:0!important;border:0!important;background:none!important;text-align:center;font:600 13px/1.25 var(--eb-body)!important;color:var(--ink2)!important}
html.eb-app-frame.eb-game-marriage #fan.ebf{margin:auto -6px 0!important;flex:none}
html.eb-app-frame.eb-game-marriage #fan.ebf .card{display:block;padding:3px 2px;border-radius:7px;font-size:15px;line-height:1}
html.eb-app-frame.eb-game-marriage #fan.ebf .card .rank{display:flex;flex-direction:column;align-items:center;width:max-content;font-weight:800;font-size:15px;line-height:1}
html.eb-app-frame.eb-game-marriage #fan.ebf .card .rank .mini{display:block;font-style:normal;font-size:12px;line-height:1.05}
html.eb-app-frame.eb-game-marriage #fan.ebf .card .suit{position:absolute;right:5px;bottom:5px;font-size:22px;line-height:1}
html.eb-app-frame.eb-game-marriage #fan.ebf .card .corner{display:none}
html.eb-app-frame.eb-game-marriage #fan.ebf .card .badge{top:-6px;right:-4px}
/* Buttons, one row in thumb reach: Sort · Arrange my sets · Show (before you open) or Finish (after) · Throw.
   Marriage's own Hint is on the bulb in the top bar. */
html.eb-app-frame.eb-game-marriage .hand-controls{margin:0!important;padding:4px 0 8px}
html.eb-app-frame.eb-game-marriage .hand-controls>.row{display:grid!important;grid-template-columns:.9fr 1.15fr 1fr .9fr;gap:6px;width:100%}
html.eb-app-frame.eb-game-marriage .hand-controls>.row>button{min-height:46px!important;padding:3px 5px!important;font-size:13.5px!important;line-height:1.05;flex:none!important}
html.eb-app-frame.eb-game-marriage .hand-controls .sort-next{order:1}
html.eb-app-frame.eb-game-marriage .hand-controls .arrange{order:2}
html.eb-app-frame.eb-game-marriage .hand-controls :is([data-act=reveal],[data-act=finish]){order:3}
html.eb-app-frame.eb-game-marriage .hand-controls [data-act=discard]{order:4}
html.eb-app-frame.eb-game-marriage .hand-controls [data-act=hint],html.eb-app-frame.eb-game-marriage .hand-controls.seen [data-act=reveal],html.eb-app-frame.eb-game-marriage .hand-controls:not(.seen) [data-act=finish]{display:none!important}
html.eb-app-frame.eb-game-marriage .hand-controls [data-act=discard]:not(:disabled){background:var(--pink)!important;color:#fff!important}
html.eb-app-frame.eb-game-marriage .melds{margin:4px 0 0}
@media (max-height:700px){
 html.eb-app-frame.eb-game-marriage section.felt{margin-top:32px!important}
 html.eb-app-frame.eb-game-marriage .felt .seat .av{width:36px;height:36px}
 html.eb-app-frame.eb-game-marriage .felt .pile .card{width:44px;height:63px}
 html.eb-app-frame.eb-game-marriage .hand-zone .hint{font-size:12px!important}
}
/* Short messages show at the top of the game, never over your cards or buttons. */
html.eb-app-frame.eb-game-marriage #toast{top:8px!important;bottom:auto!important;max-width:calc(100% - 32px)}

/* ---------- Kitti, Jutpatti and Fallaas on table A ---------- */
html.eb-app-frame [data-practice] .practice-board{display:flex;flex-direction:column;min-height:calc(100svh - 20px);background:none!important;border:0!important;box-shadow:none!important;padding:0 0 6px!important}
/* The round wood table is drawn in the middle (::before). The box itself stays full width: the game throws a card flicked
   toward any part of it (party-practice: zone = .practice-table), so Kitti's outer groups still throw straight up. */
html.eb-app-frame [data-practice] .practice-table{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;--eb-h:clamp(170px,26svh,240px);--eb-w:min(100%,calc(var(--eb-h)*var(--eb-round)));min-height:var(--eb-h);box-sizing:border-box;margin:44px 2px 12px;padding:26px 16px 18px;background:none;border:0}
html.eb-app-frame [data-practice] .practice-table::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:50%;width:var(--eb-w);transform:translateX(-50%);box-sizing:border-box;pointer-events:none;
 background:var(--tabletop);border:9px solid var(--wood);border-radius:50%/44%;box-shadow:inset 0 0 0 9px var(--tabletop),inset 0 0 0 11px rgba(107,58,30,.18),0 6px 0 rgba(27,34,80,.16)}
html.eb-app-frame [data-practice] .practice-table>.eb-seats{left:50%;right:auto;width:var(--eb-w);transform:translateX(-50%)}
html.eb-app-frame [data-practice] .practice-table h2{font-size:1.15rem!important;line-height:1.1}
html.eb-app-frame [data-practice] .practice-table p{margin:0!important;font-size:.85rem}
html.eb-app-frame [data-practice] .practice-table .table-card{width:52px;min-width:52px;height:74px}
html.eb-app-frame .eb-seats{position:absolute;left:4px;right:4px;top:-40px;display:flex;justify-content:space-evenly;pointer-events:none}
html.eb-app-frame .eb-seat{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
html.eb-app-frame .eb-seat .av{display:block;width:42px;height:42px;border-radius:50%;overflow:hidden;background:#fff;box-shadow:0 0 0 2.5px var(--ink)}
html.eb-app-frame .eb-seat .av svg{display:block;width:100%;height:100%}
html.eb-app-frame .eb-seat b{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 12px/1.15 var(--eb-display);color:var(--ink);background:var(--paper2);border:2px solid var(--ink);border-radius:99px;padding:2px 8px 1px}
html.eb-app-frame [data-practice] .card-sorting{justify-content:center;margin:0 0 4px}
html.eb-app-frame [data-practice] .online-hand.ebf{margin:auto -6px 0!important}
html.eb-app-frame [data-practice] .practice-board>.actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
html.eb-app-frame [data-practice] .practice-board>.actions>button{flex:1 1 0;min-width:120px}
html.eb-app-frame [data-practice] .practice-board>.actions>p{flex-basis:100%;margin:0;text-align:center;font-size:.85rem}
html.eb-app-frame [data-practice] .practice-board>details.card-history{margin-top:10px}
/* Kitti: your three groups side by side, so all nine cards fit one screen */
html.eb-app-frame [data-practice=kitti] .kitti-editor>p:first-child{margin:0 0 6px;font-size:.85rem;text-align:center}
html.eb-app-frame [data-practice=kitti] .kitti-groups{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}
html.eb-app-frame [data-practice=kitti] .kitti-group{display:flex;flex-direction:column;align-items:center;padding:4px 3px 6px!important;margin:0}
html.eb-app-frame [data-practice=kitti] .kitti-group>button{width:100%;min-height:44px!important;padding:0 4px!important;font-size:.76rem!important;line-height:1.05}
html.eb-app-frame [data-practice=kitti] .kitti-group>div{display:flex;justify-content:center;padding-top:8px;min-height:0}
html.eb-app-frame [data-practice=kitti] .kitti-group .table-card{width:42px!important;min-width:42px!important;height:61px!important;padding:3px!important;font-size:13px}
html.eb-app-frame [data-practice=kitti] .kitti-group .table-card b{font-size:18px}
html.eb-app-frame [data-practice=kitti] .kitti-editor .actions{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}
html.eb-app-frame [data-practice=kitti] .kitti-editor .actions>button{min-width:0!important;min-height:44px!important;font-size:.85rem!important;padding:2px 8px!important}
html.eb-app-frame [data-practice=kitti] .kitti-editor>p.small{margin:4px 0 0;font-size:.75rem;text-align:center}
html.eb-app-frame [data-practice=kitti] .practice-table{--eb-h:clamp(160px,22svh,200px)}
html.eb-app-frame .eb-fan-browse[hidden]{display:none!important}

/* ---------- Gullaam Chor on table A: everyone at one table, the neighbour you take from in front, your fan below ---------- */
html.eb-app-frame.eb-game-gullaam-chor [data-page] .tg-felt{background:var(--tabletop)!important;border:9px solid var(--wood)!important;border-radius:46px!important;padding:8px 8px 10px!important;
 box-shadow:inset 0 0 0 4px var(--tabletop),inset 0 0 0 6px rgba(107,58,30,.18),0 6px 0 rgba(27,34,80,.16)!important}
html.eb-app-frame:is(.eb-game-gullaam-chor,.eb-game-baagh-chaal,.eb-game-jhandaa-burja) .tg-seats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0}
html.eb-app-frame:is(.eb-game-gullaam-chor,.eb-game-baagh-chaal,.eb-game-jhandaa-burja) .tg-seat{display:flex!important;flex-direction:column;align-items:center;gap:1px;min-width:0;padding:4px 2px!important;text-align:center}
html.eb-app-frame:is(.eb-game-gullaam-chor,.eb-game-baagh-chaal,.eb-game-jhandaa-burja) .tg-seat .tg-face{margin:0}
html.eb-app-frame:is(.eb-game-gullaam-chor,.eb-game-baagh-chaal,.eb-game-jhandaa-burja) .tg-seat .tg-face svg{width:30px;height:30px}
html.eb-app-frame:is(.eb-game-gullaam-chor,.eb-game-baagh-chaal,.eb-game-jhandaa-burja) .tg-seat b{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 12px/1.15 var(--eb-display)}
html.eb-app-frame:is(.eb-game-gullaam-chor,.eb-game-baagh-chaal,.eb-game-jhandaa-burja) .tg-seat small{font-size:10.5px!important;line-height:1.1}
html.eb-app-frame:is(.eb-game-gullaam-chor,.eb-game-baagh-chaal,.eb-game-jhandaa-burja) .tg-felt .table-round{margin:6px auto!important;font-size:.82rem}
html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-opponents{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-opponent{padding:4px 6px!important;text-align:center}
html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-opponent.tgg-source{grid-column:1/-1;order:-1}
html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-opponent h3{font-size:.95rem;margin:0}
html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-opponent p{font-size:.75rem;margin:0}
html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-opponent:not(.tgg-source) .tgg-fan{padding:6px 0 2px;width:min(100%,calc(30px + (var(--tgg-count) - 1)*10px))}
html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-opponent:not(.tgg-source) :is(.tgg-back,.table-card){width:30px!important;min-width:30px!important;height:44px!important}
html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-selectable{padding:12px 0 2px;gap:4px}
html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-pile{padding:4px 0}
html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-pair{min-height:0;padding:4px}
html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-pair .table-card{width:40px;min-width:40px;height:58px;font-size:13px}
html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-hand{margin:6px 0 2px}
/* Computer games started from the setup sheet: the table starts at the top of the screen. */
html.eb-app-frame.eb-from-setup [data-page]{padding-top:4px!important}
html.eb-app-frame.eb-from-setup [data-page] .panel:is(.tg-practice,.party-practice){margin-top:0!important}
html.eb-app-frame.eb-from-setup [data-page] .panel.tg-practice{display:flex;flex-direction:column}
html.eb-app-frame.eb-from-setup [data-page] .panel.tg-practice>.tg-practice-table{order:-1}
/* Gullaam Chor: the cards you may take sit in one overlapping row; each one is still its own button. */
html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-selectable{flex-wrap:nowrap!important;justify-content:center;gap:0!important;padding:14px 18px 2px 4px!important}
html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-selectable .tgg-draw{flex:1 1 0!important;min-width:0!important;max-width:44px;width:auto!important;overflow:visible}
html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-pair .table-card{width:34px;min-width:34px;height:50px;font-size:12px}
html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-pile h3,html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-hand-title{font-size:.9rem;margin:0}

/* ---------- Callbreak and Jhyap on table A (styled from outside; their game code is unchanged) ---------- */
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) .surface{background:var(--tabletop)!important;border:9px solid var(--wood)!important;border-radius:50%/46%!important;
 box-shadow:inset 0 0 0 9px var(--tabletop),inset 0 0 0 11px rgba(107,58,30,.18),0 6px 0 rgba(27,34,80,.16)!important}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) .surface::after{display:none!important}
/* Round, not stretched: the table keeps the middle of the play area (.felt is a size container); the side seats and the dealer
   sit on its rim. The table is tilted back, so it shows about 86% of its height: 43cqh = 86% / 2. Phones are already round. */
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .felt{--eb-side:max(0px,calc(50cqw - 43cqh*var(--eb-round)))}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .felt>.surface{left:calc(var(--eb-side) + 2px)!important;right:calc(var(--eb-side) + 2px)!important}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .felt>:is(.seat.p3,.seat.pos-L){left:calc(var(--eb-side) + 6px)!important}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .felt>:is(.seat.p1,.seat.pos-R){right:calc(var(--eb-side) + 6px)!important}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .felt>.eb-dealer{left:calc(var(--eb-side) + clamp(8px,2.5%,22px))!important}
html.eb-app-frame.eb-game-callbreak #app .felt>.callsheet{width:min(560px,calc(100% - 16px - 2*var(--eb-side)))!important}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .seat{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .seat .av{width:44px!important;height:44px!important;border-radius:50%;box-shadow:0 0 0 2.5px var(--ink);font:400 18px/44px var(--eb-display)}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .seat.turn .av{box-shadow:0 0 0 2.5px var(--ink),0 0 0 6px var(--turm)}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .seat>span:not(.av):not(.stack){display:flex;flex-direction:column;align-items:center;gap:2px}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .seat b{font:400 13px/1.15 var(--eb-display);background:var(--paper2);border:2px solid var(--ink);border-radius:99px;padding:2px 8px 1px;white-space:nowrap}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .seat.turn b{background:var(--turm)}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .seat em{font:700 11px/1.1 var(--eb-body);font-style:normal;background:#fff;border:1.5px solid var(--ink);border-radius:99px;padding:1px 6px}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .seat em:empty{display:none}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .hand.ebf{margin:0 -6px!important}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .hand.ebf>.card{padding:3px!important}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .hand-wrap{padding-top:4px}
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .hand-wrap .eb-card-tip{display:none}
/* Their notes ("Settings can't be saved…") show at the top, never over your cards. */
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #toast{top:58px!important;bottom:auto!important}

/* ---------- Baagh Chaal and Jhandaa Burja: the board or the dice table fits one phone screen ---------- */
html.eb-app-frame:is(.eb-game-baagh-chaal,.eb-game-jhandaa-burja) [data-page] .tg-felt{border-radius:46px!important;padding:8px 8px 10px!important;border-width:9px!important;border-color:var(--wood)!important}
html.eb-app-frame:is(.eb-game-baagh-chaal,.eb-game-jhandaa-burja) .tg-seats{grid-template-columns:repeat(auto-fit,minmax(70px,1fr))!important}
html.eb-app-frame.eb-game-baagh-chaal .tg-felt .tgb-heading{margin:2px 0 4px}
html.eb-app-frame.eb-game-baagh-chaal .tg-felt .tgb-heading strong{font:400 1rem/1.1 var(--eb-display)}
html.eb-app-frame.eb-game-baagh-chaal .tg-felt .tgb-warning{min-height:34px;margin:0;font-size:.9rem}
html.eb-app-frame.eb-game-baagh-chaal .tg-felt .tgb-warning input{width:24px;height:24px}
html.eb-app-frame.eb-game-baagh-chaal .tg-felt .tgb-warning+.tgb-note{display:none}
html.eb-app-frame.eb-game-baagh-chaal .tg-felt .tgb-board{margin:4px auto}
html.eb-app-frame.eb-game-baagh-chaal .tg-felt .tgb-tray{margin:4px 0;padding:4px 10px;min-height:0}
html.eb-app-frame.eb-game-baagh-chaal .tg-felt .tgb-note{margin:2px 0;font-size:.82rem}
@media (pointer:coarse){html.eb-app-frame.eb-game-baagh-chaal .tg-felt .tgb-tray~.tgb-note:last-of-type{display:none}}
html.eb-app-frame.eb-game-jhandaa-burja .tg-felt .tgj-standings{display:none}
html.eb-app-frame.eb-game-jhandaa-burja .tg-felt .tgj-layout{display:block}
html.eb-app-frame.eb-game-jhandaa-burja .tg-felt .tgj-heading{font-size:1rem;margin:2px 0}
html.eb-app-frame.eb-game-jhandaa-burja .tg-felt .tgj-note{margin:0 0 4px;font-size:.82rem}
html.eb-app-frame.eb-game-jhandaa-burja .tg-felt .tgj-tiles{gap:6px}
html.eb-app-frame.eb-game-jhandaa-burja .tg-felt .tgj-tile{min-height:0!important;height:auto!important;padding:6px 4px!important}
html.eb-app-frame.eb-game-jhandaa-burja .tg-felt .tgj-tile svg{width:34px;height:34px}
html.eb-app-frame.eb-game-jhandaa-burja .tg-felt .tgj-pill{margin:6px 0;padding:6px 10px;font-size:.85rem}
html.eb-app-frame.eb-game-jhandaa-burja .tg-felt .table-actions{margin:4px 0}
/* Baagh Chaal + Jhandaa Burja on every phone (8 Nov): one screen, no scrolling. The site-wide section{padding-top} is
   removed inside the table; Baagh's "Game 1 of 2" badge repeats the round pill, so "You are Goats" and the danger
   switch share one row, and the board shrinks on short screens so Undo stays in reach. */
html.eb-app-frame:is(.eb-game-baagh-chaal,.eb-game-jhandaa-burja) .tg-felt section{padding-top:0!important;animation:none!important}
html.eb-app-frame.eb-game-baagh-chaal .tg-felt .tgb-screen{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px}
html.eb-app-frame.eb-game-baagh-chaal .tg-felt .tgb-screen>*{flex:1 1 100%;min-width:0}
html.eb-app-frame.eb-game-baagh-chaal .tg-felt .tgb-screen>.tgb-heading{flex:1 1 auto;margin:0}
html.eb-app-frame.eb-game-baagh-chaal .tg-felt .tgb-screen>.tgb-warning{flex:0 0 auto}
html.eb-app-frame.eb-game-baagh-chaal .tg-felt .tgb-badge{display:none}
html.eb-app-frame.eb-game-baagh-chaal .tg-felt .tgb-screen>.tgb-board{flex:0 0 auto;width:min(100%,max(210px,calc(100svh - 330px)));margin:4px auto}
html.eb-app-frame.eb-game-jhandaa-burja .tg-seats{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media (max-width:699px){
 /* Phones: the eight calls sit in two rows of four, centred on the play area, so every button is wide enough to tap. */
 html.eb-app-frame.eb-game-callbreak #app .felt>.callsheet{left:50%;right:auto;transform:translateX(-50%);width:min(560px,calc(100% - 16px))!important}
 html.eb-app-frame.eb-game-callbreak #app .callsheet .callgrid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
/* Strip C (owner, 17 Nov; R1-100). The strip's extra marks (dealer, connection dot, known cards, turn timer, newest move) belong to
   layout A below, where the strip stands in for the hidden seats. On taller screens the seats show them, so they stay off here. */
html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .topbar :is(.eb-d,.eb-net,.eb-has,.eb-last){display:none}
@media (max-height:840px){
 /* Layout A (owner, 16 Nov): below this height the table is too small to seat four players around the cards.
    While the score strip is shown it lists the players, and the table shows only the cards.
    The seats are clipped, not removed, so screen readers still announce them (the strip is aria-hidden). */
 html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .game:has(>.topbar>.eb-strip:not([hidden])) .felt>.seat{width:1px!important;max-width:1px;height:1px;overflow:hidden;clip-path:inset(50%);pointer-events:none}
 /* Strip C: what only the seats showed. A gold "D" on the dealer's picture, a dot after the name at a friends table (green = here,
    red = lost signal), the cards a Jhyap player is known to hold, and a bar under the chip that runs out with the turn timer. */
 html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .topbar :is(.eb-chip,.eb-av){position:relative}
 html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .topbar .eb-d{display:block;position:absolute;top:-5px;left:-6px;background:var(--gold);color:var(--gold-ink);border-radius:999px;font-size:9px;line-height:1;font-weight:900;padding:1.5px 4px}
 html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .topbar .eb-chip b:has(>.eb-net){display:flex;align-items:center;justify-content:center;gap:3px}
 html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .topbar .eb-chip b>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
 html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .topbar .eb-net{display:block;flex:none;width:6px;height:6px;border-radius:50%;background:var(--mint)}
 html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .topbar .eb-net.off{background:var(--danger)}
 html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .topbar .eb-has{grid-area:has;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:2px;min-width:0;padding-top:1px}
 html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .topbar .eb-has .mini{margin:0;box-shadow:0 0 0 1px #1B2250}
 html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .topbar .eb-chip[data-clock]::after{content:"";position:absolute;left:8px;right:8px;bottom:1px;height:3px;border-radius:2px;background:linear-gradient(to right,#B45309 calc(var(--p,1)*100%),rgba(27,34,80,.18) 0)}
 /* Jhyap: the chips are slim (no move under each name); the newest move sits under the round instead. A long move wraps onto a
    second line (never a third). The round stays at the top of its row and the line's last 6 px use the gap above the strip,
    so with one line or two nothing moves: not the round, not the strip, not the table. */
 html.eb-app-frame.eb-game-jhyap #app .topbar .meta>.eb-last{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;margin:1px 0 -6px;padding-block:2px;font-size:11px;line-height:1.2;font-weight:700;color:#454C78;text-align:center}
 /* The game clips the round's element (for long titles on other screens). At the table it must not: the move's last lines hang below it. */
 @media (max-width:700px){html.eb-app-frame.eb-game-jhyap #app .topbar:has(>.eb-strip)>.meta{align-self:start;overflow:visible}}
 html.eb-app-frame.eb-game-jhyap #app .topbar .eb-chip .call{display:none}
 @media (min-width:1000px){html.eb-app-frame.eb-game-jhyap #app .topbar .eb-chip{grid-template-areas:"av name sc" "av has n"}}
 /* From 701 px wide the round sits in a row of its own above the strip. The newest move then shares that line,
    so the top bar is no taller than before and the hand stays on a short screen (1280x600, 1024x600). */
 @media (min-width:701px){html.eb-app-frame.eb-game-jhyap #app .topbar .meta>.eb-last{display:inline;margin:0 0 0 10px;padding:0;white-space:nowrap}}
 /* The played cards, the deck and the pile stay above the host figure. */
 html.eb-app-frame.eb-game-callbreak #app .felt>.trick,html.eb-app-frame.eb-game-jhyap #app .felt>.center{z-index:4}
 /* Jhyap: the deck, the pile and their labels sit on the cloth, not on the near wood rim. */
 html.eb-app-frame.eb-game-jhyap #app .felt>.center{top:58%}
 @media (max-width:999px){
  /* Narrow strip chips (phones, tablets): the name gets its own line, so no name is cut off; picture, score and card count share the next line. */
  html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .topbar .eb-chip{grid-template-columns:18px minmax(0,1fr) auto;grid-template-areas:"name name name" "av sc n" "call call call";column-gap:2px;padding-inline:1px}
  html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .topbar .eb-av{width:18px;height:18px}
  html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .topbar .eb-chip b{text-align:center}
  html.eb-app-frame.eb-game-jhyap #app .topbar .eb-chip{grid-template-areas:"name name name" "av sc n" "has has has"}
  /* Here the name sits above the picture, so the dealer mark stays on the picture and never touches the name. */
  html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .topbar .eb-d{top:-1px}
  /* Jhyap in one column (phones, tablets). The table row may shrink to 160 px and no further, so the deck and the pile
     always have a table under them (a phone held sideways scrolls instead). */
  html.eb-app-frame.eb-game-jhyap #app .felt{min-height:0}
  html.eb-app-frame.eb-game-jhyap #app .game-body{grid-template-rows:minmax(160px,1fr) auto auto auto}
  /* Only empty margins go; the status words, the card faces and the touch targets keep their sizes. */
  html.eb-app-frame.eb-game-jhyap #app .statusbar>.status{margin:0}
  html.eb-app-frame.eb-game-jhyap #app .classic-sort{justify-content:flex-start;flex-wrap:nowrap;gap:4px;margin:0 0 2px}
  html.eb-app-frame.eb-game-jhyap #app .classic-sort button{padding:0 8px!important;min-height:44px!important}
  /* With Throw and Hint only, the two buttons share the row of Suit, Rank and Color. Their old row goes to the table; the hand keeps its size.
     Anything more (the gold Jhyap! button, or the reaction button at a friends table) does not fit beside the sort buttons on a phone,
     so under 480 px wide the buttons then keep their own row above the hand, as on tall screens (found in Codex's review, 17 Nov). */
  html.eb-app-frame.eb-game-jhyap #app .game-body:not(:has(>.actions>:nth-child(3)),:has(>.actions>[data-act="reactToggle"])){grid-template-rows:minmax(160px,1fr) auto auto}
  html.eb-app-frame.eb-game-jhyap #app .game-body:not(:has(>.actions>:nth-child(3)),:has(>.actions>[data-act="reactToggle"]))>.hand-wrap{grid-column:1;grid-row:3;min-height:max-content}
  html.eb-app-frame.eb-game-jhyap #app .game-body:not(:has(>.actions>:nth-child(3)),:has(>.actions>[data-act="reactToggle"]))>.actions{grid-column:1;grid-row:3;align-self:start;justify-self:end;margin-top:4px;z-index:1}
  html.eb-app-frame.eb-game-jhyap #app .game-body:not(:has(>.actions>:nth-child(3)),:has(>.actions>[data-act="reactToggle"])) .classic-sort{padding-inline-end:132px}
  @media (min-width:480px){
   /* From 480 px wide every button fits beside Suit, Rank and Color (four buttons need 254 px, the sort buttons 140 px). */
   html.eb-app-frame.eb-game-jhyap #app .game-body{grid-template-rows:minmax(160px,1fr) auto auto}
   html.eb-app-frame.eb-game-jhyap #app .game-body>.hand-wrap{grid-column:1;grid-row:3;min-height:max-content}
   html.eb-app-frame.eb-game-jhyap #app .game-body>.actions{grid-column:1;grid-row:3;align-self:start;justify-self:end;margin-top:4px;z-index:1}
  }
  /* The deck labels need no empty gap. */
  html.eb-app-frame.eb-game-jhyap #app .pilebox{gap:0}
 }
 @media (max-width:699px){
  /* Phones: the table uses the full width, and the Jhyap host stays to the left of the deck. */
  html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .felt{--eb-side:0px}
  html.eb-app-frame.eb-game-jhyap #app .felt>.eb-dealer{left:0!important}
  html.eb-app-frame.eb-game-jhyap #app .felt>.center{left:calc(50% + 4px)}
 }
 @media (min-width:700px){
  /* Wide screens: an oval table, about twice as wide as it is tall, never narrower than 436 px (so the host clears the cards) and never wider than the tall-screen table. */
  html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .felt{--eb-side:max(0px,calc(50cqw - clamp(218px,105cqh,268px)))}
  /* The eight calls use the play area's width rather than the table's. */
  html.eb-app-frame.eb-game-callbreak #app .felt>.callsheet{width:min(560px,calc(100% - 16px))!important}
 }
}
@media (max-height:700px){
 /* Both games take the play area's minimum height from its grid row, never from the felt itself. Container height units then stay real, the table is drawn and there is no shadow wedge (R1-066, R1-077). */
 html.eb-app-frame.eb-game-callbreak #app .game-body{grid-template-rows:minmax(210px,1fr) auto auto}
 html.eb-app-frame.eb-game-jhyap #app .game-body{grid-template-rows:minmax(210px,1fr) auto auto auto}
 html.eb-app-frame:is(.eb-game-callbreak,.eb-game-jhyap) #app .felt{min-height:0}
 @media (max-width:699px) and (max-height:640px){
  /* Callbreak keeps its own short-phone minimum, now on the row. */
  html.eb-app-frame.eb-game-callbreak #app .game-body{grid-template-rows:minmax(190px,1fr) auto auto}
 }
 @media (max-width:999px){
  /* Jhyap in one column keeps its rows from layout A; said again here so they still win over the rule above. */
  html.eb-app-frame.eb-game-jhyap #app .game-body{grid-template-rows:minmax(160px,1fr) auto auto auto}
  html.eb-app-frame.eb-game-jhyap #app .game-body:not(:has(>.actions>:nth-child(3)),:has(>.actions>[data-act="reactToggle"])){grid-template-rows:minmax(160px,1fr) auto auto}
  @media (min-width:480px){html.eb-app-frame.eb-game-jhyap #app .game-body{grid-template-rows:minmax(160px,1fr) auto auto}}
 }
 @media (min-width:1000px){
  /* Jhyap beside the tools column on a short screen: the table gives up some height and the status line drops its empty margins, so the whole hand stays on the screen (R1-069). */
  html.eb-app-frame.eb-game-jhyap #app .game-body{grid-template-rows:minmax(160px,1fr) auto auto auto}
  html.eb-app-frame.eb-game-jhyap #app .statusbar>.status{margin:0}
 }
 html.eb-app-frame:is(.eb-game-baagh-chaal,.eb-game-jhandaa-burja) .tg-felt .table-round{margin:4px auto!important}
 html.eb-app-frame:is(.eb-game-baagh-chaal,.eb-game-jhandaa-burja) .tg-seat .tg-face svg{width:26px;height:26px}
 html.eb-app-frame.eb-game-jhandaa-burja .tg-felt .tgj-tiles{gap:4px}
 html.eb-app-frame.eb-game-jhandaa-burja .tg-felt .tgj-tile{padding:3px 4px!important}
 html.eb-app-frame.eb-game-jhandaa-burja .tg-felt .tgj-tile svg{width:28px;height:28px}
 html.eb-app-frame.eb-game-jhandaa-burja .tg-felt .tgj-note{display:none}
 html.eb-app-frame.eb-game-jhandaa-burja .tg-felt .tgj-pill{margin:4px 0;padding:4px 10px}
}
@media (max-height:620px) and (max-width:479px){
 /* Jhyap on a short phone window, such as a browser with its bars showing (owner, 17 Nov: fix A; R1-118). A row of buttons of
    their own no longer fits above the hand there, so the buttons move into free room and nothing shrinks:
    the gold Jhyap! button sits at the right end of the status line, and the others sit beside Suit, Rank and Color. */
 html.eb-app-frame.eb-game-jhyap #app .game-body>.actions{position:relative}
 html.eb-app-frame.eb-game-jhyap #app .game-body>.actions>[data-act="call"]{position:absolute;inset-inline-end:0;bottom:calc(100% + 6px);inline-size:71px;padding-inline:0;margin:0;white-space:nowrap}
 html.eb-app-frame.eb-game-jhyap #app .game-body:has(>.actions>[data-act="call"])>.statusbar{padding-inline-end:79px}
 /* Without Jhyap!, at most two buttons are left (Throw and Hint; Hint and the reaction; or one alone): they fit on every phone. */
 html.eb-app-frame.eb-game-jhyap #app .game-body:not(:has(>.actions>:nth-child(4))):not(:has(>.actions>[data-act="reactToggle"]:nth-child(3))){grid-template-rows:minmax(160px,1fr) auto auto}
 html.eb-app-frame.eb-game-jhyap #app .game-body:not(:has(>.actions>:nth-child(4))):not(:has(>.actions>[data-act="reactToggle"]:nth-child(3)))>.hand-wrap{grid-column:1;grid-row:3;min-height:max-content}
 html.eb-app-frame.eb-game-jhyap #app .game-body:not(:has(>.actions>:nth-child(4))):not(:has(>.actions>[data-act="reactToggle"]:nth-child(3)))>.actions{grid-column:1;grid-row:3;align-self:start;justify-self:end;margin-top:4px;z-index:1}
 html.eb-app-frame.eb-game-jhyap #app .game-body:not(:has(>.actions>:nth-child(4))):not(:has(>.actions>[data-act="reactToggle"]:nth-child(3))) .classic-sort{padding-inline-end:132px}
 html.eb-app-frame.eb-game-jhyap #app .game-body:not(:has(>.actions>:nth-child(4))):not(:has(>.actions>[data-act="reactToggle"]:nth-child(3)))>.actions>[data-act="call"]{bottom:calc(100% + 10px)}
 /* Throw, Hint and the reaction button together need 190 px beside the sort buttons: from 350 px wide.
    Narrower phones keep the row of their own for that one case; the page then moves up by itself on your turn (table.js). */
 @media (min-width:350px){
  html.eb-app-frame.eb-game-jhyap #app .game-body:has(>.actions>[data-act="reactToggle"]:nth-child(n+3)){grid-template-rows:minmax(160px,1fr) auto auto}
  html.eb-app-frame.eb-game-jhyap #app .game-body:has(>.actions>[data-act="reactToggle"]:nth-child(n+3))>.hand-wrap{grid-column:1;grid-row:3;min-height:max-content}
  html.eb-app-frame.eb-game-jhyap #app .game-body:has(>.actions>[data-act="reactToggle"]:nth-child(n+3))>.actions{grid-column:1;grid-row:3;align-self:start;justify-self:end;margin-top:4px;z-index:1}
  html.eb-app-frame.eb-game-jhyap #app .game-body:has(>.actions>[data-act="reactToggle"]:nth-child(n+3)) .classic-sort{padding-inline-end:190px}
  html.eb-app-frame.eb-game-jhyap #app .game-body:has(>.actions>[data-act="reactToggle"]:nth-child(n+3))>.actions>[data-act="call"]{bottom:calc(100% + 10px)}
 }
}
/* Gullaam Chor on short phones (8 Nov): your own hand must stay on the first screen. Other players' backs and the
   discarded-pairs pile get smaller (their counts stay), and the "Your hand" title goes (the You seat says it). */
html.eb-app-frame.eb-game-gullaam-chor .tg-felt section{padding-top:0!important;animation:none!important}
@media (max-height:700px){
 html.eb-app-frame.eb-game-gullaam-chor .tg-felt .table-round{margin:4px auto!important;font-size:.78rem;line-height:1.2}
 html.eb-app-frame.eb-game-gullaam-chor .tg-seat .tg-face svg{width:26px;height:26px}
 html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-opponent:not(.tgg-source) .tgg-fan{display:none}
 html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-opponent.tgg-source :is(.tgg-back,.table-card){height:58px!important}
 html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-selectable{padding-top:8px!important}
 html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-pile{display:flex;align-items:center;justify-content:center;gap:8px;padding:2px 0}
 html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-pile h3{display:none}
 html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-pile p{margin:0;font-size:.8rem}
 html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-pair .table-card{width:26px;min-width:26px;height:38px;font-size:10px;padding:2px}
 html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-own>h3{display:none}
 html.eb-app-frame.eb-game-gullaam-chor .tg-felt .tgg-own>p{margin:0;font-size:.8rem}
}
/* Four-colour cards (Me → Settings, 8 Nov choice 7a, off at first): ♠ ink · ♥ red · ♦ blue · ♣ green in every game.
   frame.js adds html.eb-four. Cards are matched by their own suit class or by their spoken name (aria-label). */
html.eb-four{--eb-s:#1B2250;--eb-h:#C8402B;--eb-d:#1F6FD1;--eb-c:#13906A}
html.eb-four :is(.card.suit-d,.card.sD,.pc[data-suit="♦"],.table-card[aria-label$="diamonds"],.mini[aria-label*="diamonds"]),
html.eb-four :is(.card.suit-d,.card.sD,.pc[data-suit="♦"],.table-card[aria-label$="diamonds"]) :is(span,b,i,small,em,.rank,.suit,.corner,.mini){color:var(--eb-d)!important}
html.eb-four :is(.card.suit-c,.card.sC,.pc[data-suit="♣"],.table-card[aria-label$="clubs"],.mini[aria-label*="clubs"]),
html.eb-four :is(.card.suit-c,.card.sC,.pc[data-suit="♣"],.table-card[aria-label$="clubs"]) :is(span,b,i,small,em,.rank,.suit,.corner,.mini){color:var(--eb-c)!important}
html.eb-four :is(.card.suit-h,.card.sH,.pc[data-suit="♥"],.table-card[aria-label$="hearts"]),
html.eb-four :is(.card.suit-h,.card.sH,.pc[data-suit="♥"],.table-card[aria-label$="hearts"]) :is(span,b,i,small,em,.rank,.suit,.corner,.mini){color:var(--eb-h)!important}
html.eb-four :is(.card.suit-s,.card.sS,.pc[data-suit="♠"],.table-card[aria-label$="spades"]),
html.eb-four :is(.card.suit-s,.card.sS,.pc[data-suit="♠"],.table-card[aria-label$="spades"]) :is(span,b,i,small,em,.rank,.suit,.corner,.mini){color:var(--eb-s)!important}

/* ---------- Look batch, 17 Nov 2026 (added at the end; nothing above is changed) ---------- */
/* Card MS = B (R1-132): on the website's Marriage page the message box sits 8 px below the website bar (table.js measures
   the bar: --eb-bar-h) and may use the phone's width (the box's own left:50% kept it to half the screen). The Games app
   has no website bar and keeps the rule above: 8 px from the top. */
html.eb-app-frame.eb-game-marriage:not(.eb-no-site-chrome) #toast{top:calc(var(--eb-bar-h,65px) + 8px)!important;width:max-content}
/* Card LG1 = A (R1-146): the game's own language button shows on the website's Marriage page too. Its row stays out of
   the page's flow (nothing moves down); the row's logo, "How to play" and friends link stay hidden there, as before.
   Fix round (17 Nov), its spot: table.js writes --eb-lang-top and --eb-lang-right. On a table it is the top right corner
   of the table's own space (above the wooden table); in the lobby it is inside the card, 10 px in from its top right
   corner. With neither (the start screen) it sits at the right, 8 px under the website bar. The table's top row is as before. */
html.eb-app-frame.eb-game-marriage:not(.eb-no-site-chrome) body>header.eb-game-row{display:block!important;position:absolute;right:var(--eb-lang-right,8px);top:calc(var(--eb-lang-top) - 8px);z-index:5;width:auto;max-width:none;margin:8px 0 0;padding:0;border:0;background:none}
html.eb-app-frame.eb-game-marriage:not(.eb-no-site-chrome) body>header.eb-game-row>nav{display:block;margin:0;padding:0}
html.eb-app-frame.eb-game-marriage:not(.eb-no-site-chrome) body>header.eb-game-row :is(.brand,#rulesButton,nav>a){display:none!important}
/* R1-217 (17 Nov 2026): a message never covers the language button. When it would (a scrolled page), table.js writes
   --eb-toast-right on the box: it then ends 8 px before the button, at the same height, centred in the room left of it.
   Without it the box is where the rules above put it (centred, 16 px free each side). */
html.eb-app-frame.eb-game-marriage:not(.eb-no-site-chrome) #toast{left:calc(50% - (var(--eb-toast-right,16px) - 16px) / 2);max-width:calc(100% - 16px - var(--eb-toast-right,16px))}

/* ---------- Look batch 2, 17 Nov 2026 (cards L2 and LF; added at the end; nothing above is changed) ---------- */
/* Card L2 = A (R1-024): on a computer the website's Marriage start screen starts where the website bar starts: the bar's own
   side space, from the width where the bar uses it (public/site-bar.css, 821 px up). Only the start screen (#main holds
   section.hero): the lobby and the table keep their full width; phones and the Games app (no website bar) are as before. */
@media (min-width:821px){html.eb-app-frame.eb-game-marriage:not(.eb-no-site-chrome) #main:has(>section.hero){padding-left:max(16px,5%,calc((100% - 1188px) / 2))!important;padding-right:max(16px,5%,calc((100% - 1188px) / 2))!important}}
/* Card LF, F13 (X3): on a Marriage friends table the Dealer figure sits 18 px higher, so its tag no longer covers a player's
   name. A friends table is the one whose seats have no rename button (a game against the computer has one on each seat). */
html.eb-app-frame.eb-game-marriage section.felt:not(:has(.seat-edit))>.eb-dealer{transform:translateY(-18px)!important}
/* Card LF, F2 = A and F12 (X2): Kitti, Jutpatti and Fallaas with 4 or 5 seats: the score line under "Round ..." wraps inside
   the cloth (house.js marks it and keeps each "name: points" whole with the same words); the design lead's values. */
html.eb-app-frame:is(.eb-game-kitti,.eb-game-jutpatti,.eb-game-flush) [data-practice] .practice-table>h2+p.eb-score-wrap{max-width:12.5em!important;margin-left:auto!important;margin-right:auto!important;text-wrap:balance;line-height:1.25!important}

/* ---------- Owner's answers, batch 1: cards R167, MBC, GTB, 17 Nov 2026 (added at the very end; nothing above is changed) ---------- */
/* R1-227 (18 Nov): on short phones (up to 420 px wide, 620 px tall) the call sheet sits 14 px lower, so it never covers the strip's chips */
@media (max-width:420px) and (max-height:620px){html.eb-app-frame.eb-game-callbreak #app .felt>.callsheet{bottom:-8px!important}}
/* Card MBC = B (R1-149 c): the Marriage message box is navy with cream words, the same box as Callbreak, Jhyap and the
   Games app; in Night camp it turns light, as theirs does. Marriage keeps its 10 px corners. */
html.eb-app-frame.eb-game-marriage #toast{background:var(--ink);color:var(--paper)}
html.eb-app-frame.eb-game-marriage #toast a{color:inherit}
/* Card GTB = B (R1-150): in the Guest Pass window the tick box is a normal 24 px box at the start of its sentence; the
   sentence and its link read as one paragraph, and a tap on the words still ticks it. No new colours. The last line is
   the look lane's build note: 8 px more space above the box (between the email box and the tick box: 0 px without it,
   8 px with it, measured in English and Nepali at 390 and 1440). */
html.eb-app-frame.eb-game-marriage #guestPassForm label:has(>input[type=checkbox]){display:block;line-height:1.8}
html.eb-app-frame.eb-game-marriage #guestPassForm label>input[type=checkbox]{display:inline-block;width:24px;height:24px;min-height:0;margin:0 8px 0 0;vertical-align:-6px}
html.eb-app-frame.eb-game-marriage #guestPassForm label>a[href]{display:inline!important;min-height:0!important;min-width:0!important}
html.eb-app-frame.eb-game-marriage #guestPassForm label:has(>input[type=checkbox]){margin-top:8px}

/* ---------- The table-a.css step, 18 Nov 2026: R1-202 page fix v2, then the rows the owner has switched on (added at the end; nothing above is changed) ---------- */
@media (max-height:620px) and (max-width:699px){
 /* Callbreak on a short phone window (R1-202, the owner's answer B, 17 Nov). The page was about 26-31 px taller than the window, so
    the end cards of the fan were cut at the bottom and the page moved up by itself on your turn. Only empty room goes: under the
    status line, above and under the Sort row. The gap under the table stays (the 8,848m table's wooden edge never touches the
    status line), and the cards, the words and the touch targets keep their sizes. The status line and the button beside it
    (Hint) move together. Jhyap and the turn-start slide in table.js (R1-118) are not touched. */
 html.eb-app-frame.eb-game-callbreak #app .statusbar{margin-top:14px}
 html.eb-app-frame.eb-game-callbreak #app .statusbar>.status{margin-block:0}
 html.eb-app-frame.eb-game-callbreak #app .hand-wrap{padding-top:0}
 html.eb-app-frame.eb-game-callbreak #app .classic-sort{margin:4px 0 0}
 /* Page fix v2 (18 Nov, the desk's ONE PLAN: no first-turn move at ANY size in this range). Those four rules were not enough
    at 360x560 (10 px), 375x560 (15 px) and 640 to 699 x 600 (29 px). Once the call sheet has closed, the table row may now
    shrink to 160 px (it keeps 190 px while the eight calls are up, so they never cover the strip's chips). */
 html.eb-app-frame.eb-game-callbreak #app .game-body:not(:has(>.felt>.callsheet)){grid-template-rows:minmax(160px,1fr) auto auto}
}
@media (max-height:620px) and (min-width:413px) and (max-width:699px){
 /* R1-202 page fix v2: wider than a phone but this short (a small tablet window, a phone browser in split view), the hand
    is laid out 400 px wide, centred, so its cards are a 412 px phone's cards (the fan sizes cards by its width). */
 html.eb-app-frame.eb-game-callbreak #app .hand.ebf{max-width:400px!important;margin-inline:auto!important}
}

/* R1-250 (18 Nov 2026): Gullaam Chor's players strip on a phone. A name that does not fit on one line takes two (the name,
   then "· Computer") instead of being cut ("Latokosero..."); a name too long for two lines still ends in "…". Under 360 px
   the name is 11 px, so the longest friend's name fits its box in one piece. The same words, the same strip of 4. */
html.eb-app-frame.eb-game-gullaam-chor .tg-seat b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow-wrap:anywhere}
@media (max-width:359px){html.eb-app-frame.eb-game-gullaam-chor .tg-seat b{font-size:11px}}

/* R1-251 (18 Nov 2026): the Marriage table on the website. The table's column was made at least one screen tall
   (100svh - 12px, line 43) with the hand pushed to its bottom. On the website the column starts under the website bar and
   the table's title, so its bottom, and the hand with it, was that much below the screen (184 px on a 390 phone). On the
   website the column is now as tall as what is in it: the hand comes right after the hint line. The Games app is as before. */
html.eb-app-frame.eb-game-marriage:not(.eb-no-site-chrome) .game-layout>div:first-child{min-height:0}

/* R1-275 (18 Nov 2026, option C, for the owner's letter): Marriage against the computer on a short phone (375x667, 320x568)
   showed no card of your hand on the first screen. Website only, phone windows up to 700 px tall. Both A and B (the builder's pick: the only one that shows cards at
   320x568, and all 21 at 375x667). */
@media (max-height:700px) and (max-width:699px){
 html.eb-app-frame.eb-game-marriage:not(.eb-no-site-chrome) .game-layout>div:first-child{min-height:0}
 html.eb-app-frame.eb-game-marriage:not(.eb-no-site-chrome) section.felt{--eb-h:170px;margin-top:12px!important}
 html.eb-app-frame.eb-game-marriage:not(.eb-no-site-chrome) .game-layout:has(.eb-strip:not([hidden])) .felt>:is(.seats,.eb-dealer){width:1px!important;height:1px;overflow:hidden;clip-path:inset(50%);pointer-events:none}
 html.eb-app-frame.eb-game-marriage:not(.eb-no-site-chrome) .subhead .eyebrow{display:none}
 html.eb-app-frame.eb-game-marriage:not(.eb-no-site-chrome) .subhead{margin-bottom:6px!important}
 html.eb-app-frame.eb-game-marriage:not(.eb-no-site-chrome) .hand-zone{margin-top:12px!important}
}
