@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');
:root {
  --play-ink: #253d36;
  --play-paper: #f4f0e6;
  --play-forest: #244d3d;
  --play-gold: #d6a357;
  --play-card: #fffdf7;
  --play-card-line: #d8ddcf;
  --play-card-pop: color-mix(in srgb, var(--play-forest) 5%, var(--play-card));
  --play-card-radius: 16px;
  --play-body-width: 1100px;
  --play-game-width: 35rem;
  --play-gutter: clamp(16px, 3vw, 24px);
  --play-card-padding: clamp(20px, 3vw, 30px);
  --play-ui: 'DM Sans', system-ui, sans-serif;
  --play-display: 'Playfair Display', Georgia, serif;
  --play-text: 1rem;
  --play-small: .875rem;
  color: var(--play-ink);
  background: var(--play-paper);
  font: var(--play-text) var(--play-ui);
}
*{box-sizing:border-box}body{margin:0}header,footer{padding:24px 6%;display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #d6d9cc}a{color:inherit;text-decoration:none;font-weight:700;letter-spacing:.15em}header span{font-size:10px;display:block;letter-spacing:.3em;margin-top:4px}small,.eyebrow{font-size:11px;letter-spacing:.15em;font-weight:700}main{max-width:var(--play-body-width);margin-inline:auto;padding-inline:var(--play-gutter)}.hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:65px 0}h1{font:clamp(38px,6vw,64px)/1.1 var(--play-display);margin:20px 0}h2{font:clamp(1.45rem,3vw,1.875rem) var(--play-display);margin:0 0 16px}p{line-height:1.65}.art{width:clamp(180px,30%,300px);height:auto;flex:none;overflow:visible}
.art-halo{fill:color-mix(in srgb,var(--play-gold) 18%,var(--play-paper))}
.art-shadow{fill:var(--play-forest);opacity:.13}
.art-trail{fill:none;stroke:var(--play-forest);stroke-width:2;stroke-linecap:round;stroke-dasharray:1 8;opacity:.43}
.art-piece{stroke:var(--play-forest);stroke-width:3;stroke-linejoin:round}
.art-green{fill:var(--play-forest)}.art-gold{fill:var(--play-gold)}
.art-glint{fill:none;stroke:var(--play-card);stroke-width:3;stroke-linecap:round;opacity:.68}
.art-spark{fill:none;stroke:var(--play-forest);stroke-width:2.5;stroke-linecap:round}:is(.panel,.table-peek,.entry-games label,.kids-tile){background:var(--play-card-fill,var(--play-card-pop));border:1px solid var(--play-card-line);border-radius:var(--play-card-radius)}
.panel{padding:var(--play-card-padding);margin-bottom:22px}
:is(.solo-wrap,.sol-wrap,.kids-wrap){max-width:var(--play-game-width);margin-inline:auto}
:where(main table){width:100%;border-collapse:collapse;font:var(--play-small) var(--play-ui)}
:where(main th,main td){text-align:start;padding:.6rem;border-bottom:1px solid var(--play-card-line)}
:where(main th){background:var(--play-card-pop);font-weight:700}
:where(.lb-list,.floor-list,.table-list) .row{font:var(--play-small) var(--play-ui);font-variant-numeric:tabular-nums}.grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.row h2{margin:12px 0}label{display:block;font-size:14px;margin:16px 0}input,select,textarea{display:block;width:100%;padding:13px;border:1px solid #b6c2b7;border-radius:7px;background:white;font:inherit;margin-top:8px;color:#253d36}button{background:#244d3d;color:#fffdf7;border:0;padding:14px 22px;border-radius:7px;font:600 .9375rem var(--play-ui);cursor:pointer;margin:4px 5px 4px 0}button:disabled{opacity:.45;cursor:default}.quiet{background:#e9eddf;color:#244d3d}.check{display:flex;gap:10px;align-items:center;line-height:1.5}.check input{width:22px;height:22px;flex-shrink:0}.fine{font-size:12px;color:#5c6c62}.roadmap{padding:40px 0}.board{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;background:#274e42;padding:14px;border-radius:14px;max-width:490px;margin:18px auto}.cell{aspect-ratio:1;border-radius:50%;background:#143a30;box-shadow:inset 1px 2px 4px #0007}.cell.p1{background:#d5a353}.cell.p2{background:#f9faf0}.cell.last{box-shadow:inset 0 0 0 4px #a8402f}.drops{display:grid;grid-template-columns:repeat(7,1fr);max-width:490px;margin:auto;gap:5px}.drops button{padding:10px 0;margin:0}.scores{text-align:center;font-weight:700}#notice:not(:empty){position:sticky;top:0;background:#ffe7b6;padding:13px;border-radius:8px;z-index:3}footer{font-size:12px;border-top:1px solid #d6d9cc;border-bottom:0}@media(max-width:650px){.hero{padding:35px 0}.art{display:none}.grid{grid-template-columns:1fr}header small{max-width:100px;text-align:right}.row{flex-wrap:wrap}.board{gap:4px;padding:10px}footer{flex-wrap:wrap}}
.audio-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:0 0 18px;padding:10px 14px;border:1px solid #d6d9cc;border-radius:12px;background:#fffdf7}.audio-controls>div{margin-right:auto}.audio-controls p{margin:2px 0}.audio-switch{display:flex;align-items:center;gap:8px;margin:0;padding:8px 10px;min-height:44px;border-radius:8px;background:#e9eddf;font-weight:700}.audio-switch input{width:22px;height:22px;margin:0;padding:0}@media(max-width:650px){.audio-controls{align-items:stretch;flex-wrap:wrap}.audio-controls>div{width:100%}.audio-switch{flex:1;justify-content:center;min-width:135px}}
.four-bot-cue{max-width:490px;margin:10px auto;padding:10px 12px;border-radius:9px;background:#fff0cf;color:#694614;font-weight:800;text-align:center}.cell.landing{animation:counter-land .28s ease-out}@keyframes counter-land{from{transform:translateY(-38px);opacity:.35}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){.cell.landing{animation:none}}
.dice-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.die{border-radius:10px;border:2px solid #274e42;font-size:24px;padding:12px;min-width:60px;text-align:center;font-weight:700}.gold{background:#d5a353;color:#243e34}.ivory{background:#fffbed;color:#243e34}.bg-board{background:#213f33;padding:8px;border:6px solid #987246;border-radius:12px}.bg-row{display:grid;grid-template-columns:repeat(12,1fr);gap:3px}.point{height:130px;position:relative;background:transparent;border:0;padding:0;margin:0;border-radius:2px;overflow:hidden;opacity:1!important;color:white;display:flex;align-items:center;flex-direction:column;gap:4px}.point:before{content:'';position:absolute;inset:20px 0 0;clip-path:polygon(0 0,100% 0,50% 100%);background:#cbb084;opacity:.75}.point.dark:before{background:#78432c}.point.chosen{outline:3px solid #f3c561;outline-offset:-3px}.point-num{font-size:12px;position:relative}.stack{position:relative;display:flex;align-items:center;flex-direction:column;gap:1px}.checker{display:inline-block;width:20px;height:20px;flex-shrink:0;border-radius:50%;border:1px solid #0005;box-shadow:1px 2px 2px #0005}.stack strong{font-size:12px;color:white}.bar{padding:10px 0;display:flex;justify-content:space-around;gap:12px}.bar-stack{padding:4px;background:#8b643f;display:flex;align-items:center;flex-wrap:wrap;gap:3px;font-size:11px}.bar-stack:disabled{opacity:1}.bar .fine{color:#eee}.trays{display:flex;gap:10px;margin:12px 0}.tray{flex:1;border:2px solid #a98e67;background:#e7ddc8;border-radius:8px;padding:8px;min-height:50px;display:flex;gap:3px;align-items:center;flex-wrap:wrap;font-size:12px}.moves{padding:10px;background:#eee7d3;border-radius:8px}details p{margin:3px 0}@media(max-width:650px){.bg-panel{padding:12px}.bg-board{padding:4px;border-width:4px}.bg-row{gap:1px}.point{height:115px}.checker{width:17px;height:17px}.die{font-size:18px}.point-num{font-size:10px}.bar-stack{font-size:10px}}
.point.recent .stack{filter:drop-shadow(0 0 3px #fff4a2)}.bg-row:last-child .point:before{clip-path:polygon(50% 0,100% 100%,0 100%)}.point:not(:disabled):hover{outline:2px solid #f3c561;outline-offset:-2px}
.tic-board{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:330px;margin:20px auto}.tic-cell{aspect-ratio:1;padding:0;margin:0;background:#e6e4d7;color:#264d3e;font-size:70px;line-height:1;border-radius:12px;font-weight:500}.tic-cell:disabled{opacity:1}.tic-cell.cross{color:#986421}.tic-cell:not(:disabled):hover{background:#d3dbc7}
.memory-board{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;max-width:420px;margin:20px auto}.memory-card{aspect-ratio:1;padding:0;margin:0;background:#2a5142;color:#fbf6e8;font:40px Georgia,serif;border:2px solid #708775;border-radius:10px}.memory-card:disabled{opacity:1}.memory-card.revealed{background:#f3deb4;color:#294a3c;border-color:#b99758}.memory-card.paired{background:#dce7cc;border-color:#88a778}.memory-card:not(:disabled):hover{background:#3d6d53}@media(max-width:650px){.memory-board{gap:6px}.memory-card{font-size:32px}}
/* Traditional four-quadrant backgammon geometry. Presentation only. */
.bg-board{position:relative}.bg-row{grid-template-columns:repeat(6,minmax(0,1fr)) 42px repeat(6,minmax(0,1fr));gap:3px}.bg-row .point:nth-child(7){grid-column:8}.bg-row+.bar+.bg-row{margin-top:12px}.bar{position:absolute;top:8px;bottom:8px;left:50%;transform:translateX(-50%);width:42px;padding:4px 1px;background:#8b643f;display:flex;flex-direction:column;justify-content:space-around;gap:4px;border-left:2px solid #ad8b57;border-right:2px solid #ad8b57}.bar-stack{margin:0;padding:3px 0;justify-content:center;flex-direction:column;gap:1px;width:100%;background:transparent;font-size:9px;line-height:1.2}.bar-stack .fine{font-size:9px}.bar-stack .checker{width:17px;height:17px}.bar-stack:disabled{cursor:default}@media(max-width:650px){.bg-row{grid-template-columns:repeat(6,minmax(0,1fr)) 30px repeat(6,minmax(0,1fr));gap:1px}.bar{width:30px;top:4px;bottom:4px}.bar-stack{font-size:8px}.bar-stack .fine{font-size:8px}.bg-board .checker{width:14px;height:14px}.point{height:110px}}
.bg-row:last-child .point{flex-direction:column-reverse}.bg-row:last-child .point:before{inset:0 0 20px}.bg-row:last-child .stack{flex-direction:column-reverse}

.game-chat{margin-top:24px;border-top:1px solid #d4cdbf;padding-top:16px}.chat-log{max-height:190px;overflow:auto;background:#fff9ed;padding:10px;border-radius:10px;overflow-wrap:anywhere}.game-chat textarea{width:100%;min-height:70px}.game-chat select{max-width:180px}#social .row{padding:12px 0;border-bottom:1px solid #ddd}

/* Room-first navigation: one selected board, never a lobby of stacked boards. */
[hidden]{display:none!important}.in-room .hero,.in-room .roadmap{display:none}.in-room #tableBanner,.returning-room #tableBanner{display:none}.in-room main{padding-top:20px}.room-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin:24px 0}.room-list>h2,.room-list>p{grid-column:1/-1}.room-card{padding:24px;background:#fffdf7;border:1px solid #d8ddcf;border-radius:14px}.room-card h3{font:25px Georgia,serif}.room-card button{width:100%}#roomView{margin-top:14px}.in-room #games>.panel{margin-top:16px}.bg-board{padding:8px;border-width:6px}.point{height:160px}.bg-board .checker{width:min(90%,26px);height:auto;aspect-ratio:1}.bg-row+.bar+.bg-row{margin-top:42px}.bar-stack .checker{width:20px;height:20px}.point{touch-action:manipulation}button:focus-visible{outline:3px solid #b87920;outline-offset:3px}@media(max-width:650px){.room-list{grid-template-columns:1fr}.in-room main{padding:12px 8px}.bg-board{padding:3px;border-width:4px}.point{height:145px}.bg-row+.bar+.bg-row{margin-top:38px}.bg-board .checker{width:min(95%,20px);height:auto;aspect-ratio:1}.bar-stack .checker{width:16px;height:16px}.bg-panel{padding:10px}}
/* Give checker stacks a definite point width so percentage sizing cannot collapse. */
.bg-board .stack{width:100%;min-width:0}.bg-board .checker{width:24px;height:24px;max-width:95%}.bar-stack .checker{width:20px;height:20px;max-width:100%}@media(max-width:650px){.bg-board .checker{width:17px;height:17px;max-width:95%}.bar-stack .checker{width:16px;height:16px}}

/* Phone board: use the available width for readable pieces and reliable taps. */
@media(max-width:650px){button{min-height:44px}.in-room main{padding-left:4px;padding-right:4px}.in-room .bg-panel{padding:8px}.in-room .bg-board{padding:2px;border-width:3px}.in-room .bg-row{grid-template-columns:repeat(6,minmax(0,1fr)) 26px repeat(6,minmax(0,1fr));gap:1px}.in-room .bar{width:26px;top:2px;bottom:2px}.in-room .point{height:150px;min-width:0}.in-room .point-num{font-size:11px;font-weight:700}.in-room .bg-board .checker{width:23px;height:23px;max-width:96%}.in-room .bar-stack .checker{width:20px;height:20px;max-width:100%}}

/* Selected checker sources and legal board destinations are full-size touch targets. */
.bg-board .point.legal-destination{outline:4px solid #fff4a2;outline-offset:-4px;background:#fff3;box-shadow:inset 0 0 0 3px #2c6d54}.bg-board .point.legal-destination:after{content:'MOVE';position:absolute;z-index:2;left:50%;top:52%;transform:translate(-50%,-50%);padding:3px 5px;border-radius:999px;background:#fff4a2;color:#213f33;font-size:9px;font-weight:800;letter-spacing:.08em;pointer-events:none}.bg-board .bar-stack.chosen{outline:3px solid #f3c561;outline-offset:-3px}@media(max-width:650px){.bg-board .point.legal-destination{outline-width:3px;outline-offset:-3px}.bg-board .point.legal-destination:after{font-size:8px;padding:2px 3px}}

/* Participant-only reconnect signal; no exact timestamps or automatic forfeits. */
.presence{margin:12px 0;padding:10px 12px;border-radius:8px;background:#e4f0e2;color:#244d3d;font-weight:600;overflow-wrap:anywhere}.presence.away{background:#fff0cf;color:#6a4a16}
.bot-level{margin:12px 0;padding:10px 12px;border-radius:9px;background:#fff0cf;color:#664711;font-weight:700}

/* Trivia Quest: large, calm question cards with full-size answer targets. */
.trivia-panel{max-width:820px;margin-left:auto;margin-right:auto}.trivia-question{margin:18px 0;padding:clamp(18px,4vw,34px);border-radius:18px;background:#fff6dc;border:2px solid #d1b56e;text-align:center}.trivia-question h3{margin:8px auto 24px;max-width:660px;font:700 clamp(24px,4vw,38px)/1.2 Georgia,serif;color:#21483a}.trivia-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.trivia-options button{min-height:70px;margin:0;padding:12px;font-size:17px}.trivia-reveal{display:flex;flex-wrap:wrap;gap:2px;padding:10px 12px;margin:8px 0;border-radius:9px}.trivia-question h3{min-height:3.6em;min-height:3lh;display:flex;align-items:center;justify-content:center}.trivia-options{min-height:70px;align-items:center}.trivia-options>p{grid-column:1/-1;margin:0}.trivia-reveals{min-height:160px}.trivia-reveals .trivia-reveal{padding:6px 12px;margin:4px 0}.trivia-reveals>p{margin:0;padding-top:8px;text-align:center}.trivia-reveal.correct{background:#dfeeda;color:#214b38}.trivia-reveal.wrong{background:#fff0d3;color:#694614}

/* Word Crown is deliberately theatrical and readable at arm's length. */
.crown-panel{max-width:980px;margin-left:auto;margin-right:auto}.crown-stage{margin:14px 0;padding:14px;border-radius:20px;background:#173f34;color:#fff8e8;text-align:center;border:4px solid #d7ad52}.crown-stage .eyebrow{color:#f3d88b}.crown-word{display:flex;align-items:center;justify-content:center;min-height:260px;padding:18px;overflow-wrap:anywhere;font:800 clamp(54px,10vw,118px)/.95 Georgia,serif;letter-spacing:.025em;text-shadow:0 3px 0 #0a261f}.crown-help{max-width:720px;margin:10px auto;font-size:16px}.crown-help button{display:block;margin:8px auto 0;font-size:16px;background:#d7ad52;color:#173f34;border-color:#d7ad52}.crown-actions{display:grid;grid-template-columns:2fr 1fr;gap:14px}.crown-actions button{min-height:70px;margin:0;font-size:22px}.crown-actions button:last-child{background:#795f43}.crown-last{padding:10px;border-radius:9px;background:#f3e5bf;text-align:center;font-weight:700;display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:4.4em;min-height:calc(2lh + 20px)}.crown-word.crown-result{font-size:clamp(26px,7vw,54px);line-height:1.15}

@media(max-width:650px){.trivia-options{grid-template-columns:1fr}.trivia-options{min-height:186px}.trivia-options button{min-height:54px}.trivia-question{padding:16px}.crown-stage{padding:8px}.crown-word{min-height:230px;padding:18px 6px;font-size:clamp(48px,16vw,76px)}.crown-word.w6{font-size:13.5vw}.crown-word.w7{font-size:10.5vw}.crown-word.w8,.crown-word.w9{font-size:9.4vw}.crown-word.w10{font-size:8.8vw}.crown-actions button{min-height:62px}.crown-help{min-height:5.6em;min-height:4lh}}
/* Word Crown on a short phone: the card gives up empty space by the height of the screen, so the status line, the word and Got it! / Pass fit one screen (before, on a 568 px high phone the buttons started 121 px below the screen). The letters keep their size. */
@media(max-width:650px) and (max-height:700px){.crown-last{margin:6px 0;padding:4px 10px;min-height:3.4em;min-height:calc(2lh + 8px)}.crown-stage{margin:6px 0}.crown-stage .eyebrow{margin:4px 0}.crown-word{min-height:clamp(150px,calc(100vh - 426px),230px);min-height:clamp(150px,calc(100svh - 426px),230px)}.crown-help{margin:6px auto;font-size:14px;line-height:1.4}}
@media(max-height:500px) and (orientation:landscape){.in-room header{padding:3px 18px}.in-room header small{display:none}.in-room main{padding-top:3px}.in-room #lobby>.row{display:none}.in-room:not(.in-waiting) #roomView{margin:2px 0;padding:2px 10px;height:40px}.in-room:not(.in-waiting) #roomView p{display:none}.in-room:not(.in-waiting) #roomView button{min-height:34px;margin:0;padding:5px 12px}.in-room #games>.crown-panel{margin-top:4px}.in-room .crown-panel{padding:4px 14px}.in-room .crown-panel>h2,.in-room .crown-panel>.eyebrow,.in-room .crown-panel>.scores,.in-room .crown-panel>.presence,.in-room .crown-panel>.fine{display:none}.crown-stage{margin:2px 0;padding:3px 10px}.crown-stage .eyebrow{margin:1px}.crown-word{min-height:100px;padding:3px;font-size:clamp(48px,9vw,72px);line-height:.88}.crown-help{display:none}.crown-help:has(button){display:block;min-height:0;margin:2px auto}.crown-actions{margin-top:3px}.crown-actions button{min-height:44px;padding:4px}.crown-last{margin:2px;min-height:0}.trivia-question{margin:6px 0;padding:10px}.trivia-question h3{font-size:24px;margin:4px auto 10px}.trivia-options button{min-height:48px}}

/* Signed-out catalog: the real games are visible before identity or room details. */
.entry-games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 26px}.entry-games label{display:grid;grid-template-columns:24px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;margin:0;padding:14px;min-height:78px;border-width:2px;cursor:pointer}.entry-games input{grid-row:1/3;width:22px;height:22px;margin:0}.entry-games strong{font-size:16px}.entry-games span{font-size:12px;color:#5c6c62}.entry-games label:has(input:checked){border-color:#2b624d;background:#edf4e9;box-shadow:inset 0 0 0 1px #2b624d}.entry-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}.entry-actions button{min-height:52px;margin:0}.invite-note{margin:12px 0;padding:12px;border-radius:9px;background:#fff0cf;color:#644714;font-weight:700}@media(max-width:650px){.entry-games{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.entry-games label{padding:11px;min-height:72px}.entry-games strong{font-size:14px}.entry-actions{grid-template-columns:1fr}.entry-actions button{width:100%}}

/* American Checkers: full-board touch targets with clear forced destinations. */
.checkers-panel{max-width:760px;margin-left:auto;margin-right:auto}.checkers-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));width:min(100%,560px);margin:18px auto;border:7px solid #8b643f;border-radius:9px;overflow:hidden;background:#8b643f}.checkers-square{position:relative;aspect-ratio:1;min-width:0;min-height:0;margin:0;padding:0;border-radius:0;display:flex;align-items:center;justify-content:center}.checkers-square.light{background:#eadfca}.checkers-square.dark{background:#315545}.checkers-square:disabled{opacity:1;cursor:default}.checkers-piece{display:flex;align-items:center;justify-content:center;width:78%;aspect-ratio:1;border-radius:50%;border:2px solid #704e22;box-shadow:inset 0 0 0 3px #edc66f,0 3px 4px #0007;background:#d5a353;color:#243e34;font-weight:900;font-size:clamp(13px,3vw,25px)}.checkers-piece.ivory{background:#fffbed;border-color:#a39170;box-shadow:inset 0 0 0 3px #d8cfbb,0 3px 4px #0007}.checkers-piece.king{outline:2px solid #f4d784;outline-offset:-7px}.checkers-square.chosen{box-shadow:inset 0 0 0 4px #f3c561}.checkers-square.legal-destination{box-shadow:inset 0 0 0 5px #fff4a2}.checkers-square.legal-destination:after{content:'MOVE';position:absolute;padding:3px;border-radius:999px;background:#fff4a2;color:#21483a;font-size:9px;font-weight:900}.checkers-square.recent{box-shadow:inset 0 0 0 3px #f6d36d}.checkers-square.recent .checkers-piece{filter:drop-shadow(0 0 5px #fff4a2)}.checkers-square.recent-origin:before,.checkers-square.recent-destination:before{position:absolute;z-index:2;top:2px;left:2px;padding:2px 4px;border-radius:999px;background:#fff4a2;color:#21483a;font-size:9px;font-weight:900;line-height:1}.checkers-square.recent-origin:before{content:'FROM'}.checkers-square.recent-destination:before{content:'TO'}.checkers-turn-cue,.checkers-last-move{margin:10px auto;max-width:560px;padding:11px 13px;border-radius:9px;background:#e6f2e8;color:#21483a;font-weight:800;text-align:center}.checkers-turn-cue{background:#fff0cf;color:#694614}.checkers-alert{padding:11px 13px;border-radius:9px;background:#fff0cf;color:#694614;font-weight:700}@media(max-width:650px){.checkers-panel{padding:12px}.checkers-board{width:100%;border-width:4px}/* no minimum height on a square: on a phone narrower than about 380 px it made each square 44 px wide in a narrower column, so squares lay over each other and the right-hand column was cut off */.checkers-piece{width:84%;border-width:1px;box-shadow:inset 0 0 0 2px #edc66f,0 2px 3px #0006}.checkers-piece.ivory{box-shadow:inset 0 0 0 2px #d8cfbb,0 2px 3px #0006}.checkers-square.legal-destination:after{font-size:7px;padding:2px}.checkers-square.recent-origin:before,.checkers-square.recent-destination:before{font-size:7px;padding:2px 3px}}

/* Chess, Go, Reversi, Fleet Hunt, Mancala, Chinese Checkers, dominoes and the card games. Presentation only. */
.inline-link{letter-spacing:0;text-decoration:underline}.extra-note{text-align:center}
.chess-board{display:grid;grid-template-columns:repeat(8,1fr);max-width:440px;margin:18px auto;border:6px solid #987246;border-radius:8px;overflow:hidden}.chess-cell{aspect-ratio:1;margin:0;padding:0;min-height:0;border-radius:0;background:#f1e3c4;font-size:clamp(22px,7.6vw,40px);line-height:1;color:#1d2b26}.chess-cell.dark{background:#b98b5e}.chess-cell:disabled{opacity:1}.chess-cell.white{color:#fffdf7;text-shadow:0 0 2px #1d2b26,0 0 2px #1d2b26,0 1px 1px #1d2b26}.chess-cell.recent{box-shadow:inset 0 0 0 3px #fff4a2}.chess-cell.chosen{box-shadow:inset 0 0 0 4px #244d3d}.chess-cell.target{box-shadow:inset 0 0 0 4px #2f8f5b;background-image:radial-gradient(circle,#2f8f5b 0 16%,transparent 18%)}
.go-board{display:grid;grid-template-columns:repeat(9,1fr);max-width:440px;margin:18px auto;padding:6px;background:#dcb26a;border:4px solid #987246;border-radius:8px}.go-point{aspect-ratio:1;margin:0;padding:0;min-height:0;border-radius:0;background:linear-gradient(#5b4526,#5b4526) center/100% 1px no-repeat,linear-gradient(#5b4526,#5b4526) center/1px 100% no-repeat;position:relative}.go-point:disabled{opacity:1}.go-point.stone:after{content:'';position:absolute;inset:6%;border-radius:50%;background:#1d2b26;box-shadow:1px 2px 3px #0006}.go-point.s2:after{background:#fffdf7}.go-point.recent:after{outline:3px solid #2f8f5b;outline-offset:-1px}.go-point:not(:disabled):hover{background-color:#f3c56188}
.rv-board{display:grid;grid-template-columns:repeat(8,1fr);gap:2px;max-width:440px;margin:18px auto;padding:4px;background:#1d2b26;border:4px solid #987246;border-radius:8px}.rv-cell{aspect-ratio:1;margin:0;padding:0;min-height:0;border-radius:2px;background:#2f6f52;position:relative}.rv-cell:disabled{opacity:1}.rv-cell.disc:after{content:'';position:absolute;inset:9%;border-radius:50%;background:#1d2b26;box-shadow:1px 2px 3px #0006}.rv-cell.d2:after{background:#fffdf7}.rv-cell.turned:after{outline:2px solid #f3c561}.rv-cell.recent:after{outline:3px solid #fff4a2;outline-offset:-1px}.rv-cell.target{background:#3f8a68}.rv-cell.target:after{content:'';position:absolute;inset:36%;border-radius:50%;background:#fff4a2}
.fl-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:2px;max-width:360px;margin:8px auto 18px;padding:4px;background:#1d2b26;border:4px solid #987246;border-radius:8px}.fl-cell{display:flex;align-items:center;justify-content:center;aspect-ratio:1;margin:0;padding:0;min-height:0;border-radius:2px;background:#9cc3cf;color:#1d2b26;font-size:20px;font-weight:900;line-height:1}.fl-cell:disabled{opacity:1}.fl-cell.ship{background:#66757c}.fl-cell.miss{background:#d3e4e9;color:#4a6470}.fl-cell.hit{background:#f3c561;color:#8a1c14}.fl-cell.sunk{background:#b3261e;color:#fffdf7}.fl-cell.recent{box-shadow:inset 0 0 0 3px #fff4a2,inset 0 0 0 4px #1d2b26}.fl-own{max-width:236px}.fl-own .fl-cell{font-size:14px}.fl-report{font-weight:700}
.mc-board{display:flex;gap:6px;align-items:stretch;max-width:440px;margin:8px auto;padding:8px;background:#987246;border-radius:26px}.mc-rows{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}.mc-row{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}.mc-pit,.mc-store{display:flex;align-items:center;justify-content:center;margin:0;padding:0;min-height:0;min-width:0;border:0;border-radius:50%;background:#5f4426;color:#fffdf7;font:700 18px Georgia,serif;line-height:1;box-shadow:inset 1px 2px 4px #0008}.mc-pit{aspect-ratio:1}.mc-store{flex:0 0 13%;border-radius:20px;font-size:20px}.mc-pit.mine:not(:disabled){background:#2f6f52;box-shadow:0 0 0 2px #fff4a2}.mc-pit:disabled{opacity:1}.mc-pit.chosen,.mc-store.chosen{outline:2px dashed #fff4a2;outline-offset:-4px}.mc-pit.recent,.mc-store.recent{outline:3px solid #fff4a2;outline-offset:-3px}@media(max-width:650px){.mancala-panel{padding:12px}}
.cc-board{position:relative;max-width:440px;aspect-ratio:13/14.72;margin:18px auto;background:#e9dfcb;border-radius:18px;border:4px solid #987246}.cc-hole{position:absolute;width:7.1%;aspect-ratio:1;min-height:0;margin:0;padding:0;border-radius:50%;transform:translate(-50%,-50%);background:#b9a57f;box-shadow:inset 1px 2px 3px #0005}.cc-hole:disabled{opacity:1}.cc-hole.p1{background:#d5a353}.cc-hole.p2{background:#2f6f52}.cc-hole.peg{box-shadow:1px 2px 3px #0006}.cc-hole.recent{outline:2px solid #fff4a2}.cc-hole.chosen{outline:3px solid #1d2b26}.cc-hole.target{background:#fffdf7;outline:3px solid #2f8f5b}@media(max-width:650px){.cc-panel{padding:12px}}
.domino-chain,.domino-hand{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center;margin:14px 0;padding:12px;border-radius:12px;background:#21483a}.domino-hand{background:#e9eddf;align-items:flex-start}.domino{display:inline-flex;border:2px solid #1d2b26;border-radius:6px;background:#fffdf7;color:#1d2b26;font-size:18px;overflow:hidden}.domino b{display:block;min-width:26px;padding:6px 0;text-align:center}.domino b+b{border-left:2px solid #1d2b26}.domino-slot{display:flex;flex-direction:column;align-items:center;gap:4px}.domino-slot button{margin:0;padding:8px 10px;font-size:13px}
/* A tile with no button keeps the room of one, and Draw a tile stands above the tiles: see the dominoes panel in games-extra.js. */
.domino-slot .domino-room{display:block;width:1px;height:44px}
.domino-panel .domino-slot{width:76px}
.domino-panel .domino-slot button{width:100%;min-height:44px;padding:8px 4px;white-space:nowrap}
.domino-panel>button.domino-draw{display:block;width:100%;margin:10px 0 0}
.domino-panel>.domino-info{min-height:2.6em;min-height:2lh}
.card-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;margin:14px 0;min-height:64px}.card-label{width:100%;text-align:center;font-weight:700;font-size:13px}.playing-card{display:inline-flex;align-items:center;justify-content:center;width:46px;height:64px;border:1px solid #b6c2b7;border-radius:7px;background:#fff;color:#1d2b26;font:700 19px Georgia,serif;box-shadow:1px 2px 3px #0003}.playing-card.red{color:#b3261e}.playing-card.back{background:repeating-linear-gradient(45deg,#244d3d 0 6px,#2f6f52 6px 12px);color:transparent}.card-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.card-actions button{margin:0;flex:1;min-width:120px}.ce-actions{min-height:104px;align-content:flex-start;margin:14px 0}.ce-actions.ce-actions{justify-content:flex-start}.ce-actions.ce-actions button{flex:0 0 calc(50% - 4px);min-width:0}
.rv-actions{justify-content:flex-start;min-height:44px;margin:10px 0 0}.rv-actions button{flex:0 0 calc(50% - 4px);min-width:0}.ce-suits{margin:0 0 14px}.pk-actions{min-height:104px;align-content:flex-start}.pk-line{min-height:2.6em;min-height:2lh}.pk-last{min-height:3.9em;min-height:3lh}
@media(max-width:650px){.domino{font-size:16px}.domino b{min-width:22px}.playing-card{width:42px;height:58px;font-size:17px}}

/* Joining and inviting. */
.invited .entry-pick,.invited #entryGames,.invited #entryModeNote,.invited label:has(#entryBest),.invited label:has(#room),.invited label:has(#visible){display:none}.invited-intro ol,.invite-box ol{margin:8px 0 14px;padding-left:22px}.invited-intro li,.invite-box li{margin:4px 0}
.how-friends{margin:18px 0;padding:14px 16px;border-radius:12px;background:#eef2e8}.how-friends p{margin:4px 0}
.invite-box{margin:14px 0;padding:16px;border:1px solid #c9d2c8;border-radius:14px;background:#fffdf7}.invite-box h3{margin:0 0 4px}.invite-qr{display:flex;justify-content:center;margin:10px 0}.invite-qr svg{width:min(210px,62vw);height:auto;border-radius:8px}.invite-actions{display:flex;flex-wrap:wrap;gap:8px}.invite-actions button{margin:0;flex:1;min-width:140px}
.lobby-alert{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 12px}.lobby-alert strong{flex:1 1 100%}.lobby-alert button{margin:0}.away-note{margin:10px 0}.idle-note{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.idle-note button{margin:0}
.leaderboard{margin-top:18px}.lb-tabs{display:flex;gap:8px;margin:10px 0}.lb-tabs button{margin:0;min-height:44px}.lb-list{list-style:none;margin:0;padding:0;min-height:372px}.lb-list li{display:flex;gap:10px;align-items:center;min-height:36px;padding:4px 2px;border-bottom:1px solid #e3e5d8}.lb-list .lb-rank{width:28px;font-weight:700;color:#6b7a70}.lb-list .lb-name{flex:1;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lb-list .lb-wins{font-weight:700;white-space:nowrap}.lb-list .lb-empty{border:0;color:#5d6b62}
.card-button{margin:0;padding:0;min-height:0;background:none;border-radius:8px;line-height:0}.card-button:disabled{opacity:.45}.card-button:not(:disabled) .playing-card{outline:2px solid #2f8f5b}.card-button.chosen .playing-card{outline:3px solid #1d2b26;transform:translateY(-4px)}

/* Nothing that appears later may move what the guest is looking at. */
#notice:not(:empty){position:fixed;top:auto;left:12px;right:12px;bottom:14px;z-index:30;box-shadow:0 8px 28px #0004;text-align:center}
.returning #join,.returning-room .hero,.returning-room .roadmap,.returning-room #lobbyTools{display:none}
.status-line{min-height:4.6em;min-height:3lh;display:flex;align-items:center;justify-content:center;margin:6px 0}.extra-note{min-height:1.7em;line-height:1.7;margin:0 0 6px}.held-line,.checkers-turn-cue,.checkers-last-move{min-height:4.6em;min-height:3lh;margin:6px 0}.fl-report.held-line{min-height:3.1em;min-height:2lh}
#lobbyAlert{min-height:124px;margin:0 0 12px}.lobby-quiet{display:flex;align-items:center;justify-content:center;min-height:124px;margin:0;padding:12px;border:1px dashed #c9d2c8;border-radius:9px;color:#5c6c62;font-size:14px;text-align:center}.lobby-alert{min-height:100px}
.solo-wrap>p[role=status],.sol-wrap>p[role=status]{min-height:3.4em;min-height:2lh;margin:6px 0}

.kids-door{display:flex;align-items:center;gap:14px;margin:14px 0 22px;padding:14px 16px;border-radius:16px;background:#c9ecf5;color:#1d2b26;letter-spacing:0;box-shadow:0 4px 0 #0002}.kids-door b{font-size:40px;line-height:1}.kids-door span{font-weight:400;font-size:14px;line-height:1.4}.kids-door strong{display:block;font-size:19px;font-weight:800}

/* One place for everything: section tabs, grouped game picker, people with what they are doing, and the switch-game bar under the board. */
.tabs{position:sticky;top:0;z-index:20;display:flex;gap:6px;overflow-x:auto;padding:10px 0;margin:0 0 6px;background:#f4f0e6;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tabs button,.tabs a{flex:none;margin:0;padding:11px 16px;min-height:44px;border-radius:999px;background:#e9eddf;color:#244d3d;font:600 15px 'DM Sans',sans-serif;letter-spacing:0;display:flex;align-items:center}.tabs button[aria-pressed=true]{background:#244d3d;color:#fffdf7}.tabs a{background:#c9ecf5;color:#1d2b26}
.tab-off{display:none!important}main>.audio-controls{margin-top:22px}
.entry-group{grid-column:1/-1;margin:10px 0 0;font-size:11px;letter-spacing:.15em;font-weight:700;color:#5c6c62;text-transform:uppercase}.entry-group:first-child{margin-top:0}
.table-peek{margin:16px 0;padding:12px 14px;min-height:104px}.table-peek .eyebrow{margin:0 0 6px}.table-peek p{margin:4px 0}.peek-row{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-top:1px solid #e9eddf;font-weight:700}.peek-row small,.person-status{font-weight:500;font-size:12px;letter-spacing:0;color:#5c6c62}
.person>span{display:flex;flex-direction:column;gap:2px;font-weight:700}.person-status.free,.peek-row small.free{color:#2f6f52}.person-status.hosting,.peek-row small.hosting{color:#8a4b12}
.switch-bar{margin-top:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;overflow-wrap:anywhere;gap:10px;align-items:end}.switch-bar .eyebrow,.switch-bar .switch-note{grid-column:1/-1;margin:0}.switch-bar label{margin:0}.switch-bar button{margin:0}.switch-note{min-height:52px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-weight:700}.switch-note button{padding:10px 14px}
#lobbyTools .room-list{margin:0 0 18px}
[data-tab-panel=play]:has(#join[hidden]) .hero,.returning .hero{display:none}
.fold>summary{cursor:pointer;font-weight:700;padding:12px 0;min-height:44px}.fold[open]>summary{margin-bottom:8px}details.panel.fold{padding:12px 30px}.fold #social h2{display:none}
.floor-list{min-height:96px}.floor-list .row,.table-peek .row{padding:6px 0;border-top:1px solid #e9eddf}.table-peek .row button,.floor-list .row button{margin:0;padding:10px 14px}
.invited #floorEntry{display:none}
/* An invited guest reads the three steps and finds the nickname field on the first phone screen: the welcome text, the pilot line and the second notice step aside. */
main:has(#join.invited) .hero,.invited h2.entry-pick+p,.invited #entryInviteNotice{display:none}
.bg-panel .dice-row{min-height:132px;align-content:flex-start}
.rules h4{margin:14px 0 4px;font:700 13px 'DM Sans',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#5c6c62}.rules p{margin:0 0 6px}.rules ol{margin:0;padding-left:22px}.rules li{margin:0 0 6px;line-height:1.5}.rules-players{font-weight:700}.rules-fold{border-top:1px solid #e9eddf}details.panel.rules-fold{border-top:0;margin-top:16px}#rulesAll .entry-group{margin:18px 0 4px}

/* Tables for three or more. Every seat has its place whether taken or not, and the hand, buttons and log keep their height. */
#tablesPanel{margin-top:18px}.table-list{min-height:76px}.table-list .row{padding:6px 0;border-top:1px solid #e9eddf}.table-list .row button{margin:0;padding:10px 14px}.table-open-row{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin-top:12px}.table-open-row label{margin:0;flex:1 1 130px}.table-open-row button{margin:0}
.seats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 0}.seats.n4{grid-template-columns:repeat(2,1fr)}.seat{height:132px;padding:8px;border-radius:12px;background:#f4f0e6;border:2px solid transparent;display:flex;flex-direction:column;gap:2px;overflow:hidden}.seat b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seat small{font-size:11px;letter-spacing:0;line-height:1.3;color:#4d5c53;min-height:2.6em}.seat.empty{opacity:.45;border-style:dashed;border-color:#c9d2c8}.seat.mine{background:#e9eddf}.seat.turn{border-color:#c9a23f;background:#fbf3d9}.seat.gone{opacity:.45}
.seat-cards{display:flex;gap:2px;flex-wrap:nowrap}.seat>b,.seat>small,.seat-cards .playing-card{flex:none}.seat-cards .playing-card{width:26px;height:36px;font-size:12px;padding:0}
.table-mid{height:150px;overflow-y:auto;margin:8px 0}.table-mid .card-row{flex-wrap:wrap}.playing-card.slot{background:transparent;box-shadow:inset 0 0 0 1px #c9d2c8;color:transparent}.table-hand{display:flex;flex-wrap:wrap;gap:6px;align-items:center;height:140px;overflow-y:auto;align-content:flex-start;margin:8px 0}
.card-button{margin:0;padding:3px;min-height:0;background:transparent;border-radius:10px}.card-button:disabled{opacity:.45}.card-button.chosen{box-shadow:0 0 0 3px #c9a23f}
.table-acts{display:flex;flex-wrap:wrap;gap:8px;height:112px;overflow:hidden;align-content:flex-start;margin:8px 0}.table-acts button{margin:0;flex:1 1 30%;min-height:48px;padding:10px 8px}
.table-log{min-height:6.4em;margin:8px 0;padding:8px 10px;border-radius:10px;background:#f4f0e6;font-size:13px}.table-log p{margin:0;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-bar{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.table-bar button{margin:0}.table-open .domino-line{margin:4px 0}.domino-line{display:flex;flex-wrap:wrap;gap:3px;align-items:center;min-height:44px}

/* Movement: a piece that moved slides from where it was; anything else that appears settles in. Off for guests who ask for less motion. */
@keyframes slide{from{transform:translate(var(--dx),var(--dy))}to{transform:none}}@keyframes settle{from{transform:scale(.55);opacity:.2}to{transform:none;opacity:1}}
.slide{animation:slide .32s cubic-bezier(.2,.8,.3,1);position:relative;z-index:3}.settle{animation:settle .28s ease-out}
@media(prefers-reduced-motion:reduce){.slide,.settle,.bg-die.rolling{animation:none}}
/* Backgammon dice on the board, between the two rows. The strip is always there, so the board keeps its size. */
.bg-dice{display:flex;align-items:center;justify-content:center;gap:8px;height:52px;padding-left:52%}.bg-dice-wait{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#e9eddf99}
.bg-die{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:8px;font-size:38px;line-height:1;box-shadow:0 2px 0 #0004}.bg-die.used{opacity:.35}
@keyframes roll{0%{transform:translate(-90px,-26px) rotate(-540deg) scale(.6);opacity:0}60%{transform:translate(6px,3px) rotate(20deg) scale(1.08);opacity:1}100%{transform:none}}.bg-die.rolling{animation:roll .7s cubic-bezier(.2,.7,.3,1) backwards}
.bg-panel .dice-row{min-height:0;height:48px;overflow:hidden;margin-bottom:6px;flex-wrap:nowrap}.bg-panel .dice-row .die{display:none}
/* Chat: blocking and reporting sit in their own fold, well away from Send. */
.chat-safety{margin-top:28px;padding-top:12px;border-top:1px solid #d4cdbf}.chat-safety summary{cursor:pointer;font-size:13px;color:#5c6c62;min-height:44px;display:flex;align-items:center}.chat-safety button{background:#8a2f2f}

/* A game on one phone screen: inside a room the site header, the tabs and the greeting step aside, the room buttons become one slim row and the panel loses its spare space. */
@media(max-width:650px){
.in-room header,.in-room #tabs,.in-room #lobby>.row{display:none}.in-room main{padding-top:2px}
/* The slim row is for a game room only. A waiting room (.in-waiting) keeps the ordinary panel, so the invite steps, the code to scan and the buttons stand under each other on the screen. */
.in-room:not(.in-waiting) #roomView{display:flex;flex-wrap:nowrap;gap:6px;align-items:center;overflow-x:auto;margin:0 0 4px;padding:2px 0;background:none;border:0;box-shadow:none;scrollbar-width:none}.in-room:not(.in-waiting) #roomView::-webkit-scrollbar{display:none}
.in-room:not(.in-waiting) #roomView button{flex:none;min-height:38px;margin:0;padding:6px 12px;font-size:13px;white-space:nowrap}.in-room:not(.in-waiting) #roomView>p.eyebrow{display:none}
/* Narrow phones: the three buttons above the board share the width, so the last one (Switch game, Rematch, Ask for a rematch) is not cut off at the edge. The bar keeps its height. */
@media(max-width:399px){.in-room:not(.in-waiting) #roomView{gap:4px}.in-room:not(.in-waiting) #roomView button{flex:1 1 auto;min-width:0;padding:4px 6px;font-size:12px;line-height:1.15;white-space:normal}}
.in-room #games>.panel{padding:8px 8px 14px;margin:0}.in-room #games>.panel>.eyebrow{display:none}.in-room #games>.panel>h2{font-size:16px;line-height:1.2;margin:0}.in-room #games>.panel>.scores:not(.status-line){font-size:12px;margin:0}
.in-room #games>.panel>.status-line{min-height:2.6em;min-height:2lh;font-size:14px;line-height:1.3;margin:2px 0}.in-room #games>.panel>.fine{font-size:11px;line-height:1.3;margin:2px 0}.in-room #games>.panel>.extra-note{min-height:0}
.in-room .held-line,.in-room .checkers-turn-cue,.in-room .checkers-last-move{min-height:2.6em;min-height:2lh;font-size:13px;line-height:1.3;margin:2px 0}
.in-room .seat{height:100px;padding:6px}.in-room .seats{gap:4px;margin:6px 0}.in-room .table-mid{height:112px;margin:4px 0}.in-room .table-mid .card-row{margin:0;min-height:0}.in-room .table-mid .scores{margin:0}.in-room .table-hand{height:72px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;margin:4px 0}.in-room .table-hand>*{flex:none}.in-room .table-acts{height:104px;margin:4px 0}.in-room .table-log{min-height:4.8em;max-height:4.8em;overflow:hidden}
.in-room .bg-panel .point{height:128px}.in-room .bg-dice{height:46px}.in-room .trays{margin:4px 0}
}

/* Chess colours: a green and cream board, white pieces solid white with a dark edge, black pieces solid black with a light edge, so both read on both squares. */
.chess-board{border-color:#3d5a3a}.chess-cell{background:#edf0dc;font-family:"Apple Symbols","Segoe UI Symbol","Noto Sans Symbols2","DejaVu Sans",serif}.chess-cell.dark{background:#6f9460}
.chess-cell.white{color:#ffffff;-webkit-text-stroke:0;text-shadow:-1.5px 0px 0 #16221c,1.5px 0px 0 #16221c,0px -1.5px 0 #16221c,0px 1.5px 0 #16221c,-1.1px -1.1px 0 #16221c,1.1px -1.1px 0 #16221c,-1.1px 1.1px 0 #16221c,1.1px 1.1px 0 #16221c,0 3px 2px #16221c66}.chess-cell.black{color:#16221c;-webkit-text-stroke:0;text-shadow:-1px 0px 0 #f7f7ee,1px 0px 0 #f7f7ee,0px -1px 0 #f7f7ee,0px 1px 0 #f7f7ee}
.chess-cell.recent{box-shadow:inset 0 0 0 4px #f2c94c}.chess-cell.in-check{box-shadow:inset 0 0 0 4px #c8372d;background:#f3b3a6}.chess-cell.dark.in-check{background:#d98470}.chess-cell.chosen{box-shadow:inset 0 0 0 4px #f2994a;background:#f6e3a1}.chess-cell.dark.chosen{background:#d9c46a}.chess-cell.target{box-shadow:inset 0 0 0 4px #1d6fd1;background-image:radial-gradient(circle,#1d6fd1 0 17%,transparent 19%)}



/* Memory pairs: a card turns over instead of jumping. */
@keyframes flip{0%{transform:rotateY(90deg) scale(.96)}100%{transform:none}}.memory-card{transition:background-color .2s,border-color .2s}.memory-card.settle{animation:flip .3s ease-out}@media(prefers-reduced-motion:reduce){.memory-card.settle{animation:none}}

.table-acts button.chip{flex:1 1 20%}
/* Baccarat: the two hands stand side by side, so both are on the screen at once. */
.bac-hands{display:grid;grid-template-columns:1fr 1fr;gap:6px}.bac-hands .card-row{margin:0;gap:4px;align-content:flex-start;padding:4px 2px;border-radius:10px;border:2px solid transparent}.bac-hands .card-row.won{border-color:#c9a23f;background:#fbf3d9}.bac-hands .playing-card{width:40px;height:56px;font-size:16px}
/* The table log keeps its newest line in sight: when there is no room for all of them, the oldest is the one cut. */
.table-log{display:flex;flex-direction:column;justify-content:flex-end}.table-log p{flex:none}

/* Owner's message to every guest: a strip fixed to the bottom of the screen, so no page moves when it appears. */
.site-banner{position:fixed;left:0;right:0;bottom:0;z-index:35;display:flex;align-items:center;gap:10px;padding:10px 14px;background:#244d3d;color:#fffdf7;font-weight:600;font-size:14px;line-height:1.35}.site-banner[hidden]{display:none}.site-banner span{flex:1}.site-banner button{margin:0;min-height:36px;padding:4px 12px;font-size:18px}
.no-chat .game-chat{display:none}

/* Real table layouts. The seats and the middle keep their sizes; the panel becomes a grid so they can stand where they do
   at a real table, on a green felt with a wooden rail: an oval for poker, the dealer's half circle for blackjack, and the
   Player, Tie and Banker betting areas for baccarat. */
.felt{display:grid;grid-template-columns:repeat(6,1fr);column-gap:6px;row-gap:6px}.felt>*{grid-column:1/-1;min-width:0;position:relative;z-index:1}
.felt>.eyebrow{grid-row:1}.felt>h2{grid-row:2}.felt>.status-line{grid-row:3}.felt>.table-hand{grid-row:9}.felt>.table-acts{grid-row:10}.felt>.table-log{grid-row:11}.felt>.table-bar{grid-row:12}.felt>.fine{grid-row:13}
.felt>.seats{display:contents}.felt .seat{position:relative;z-index:1;grid-column:span 2;margin:0 4px;box-shadow:0 2px 0 #0004}.felt .seat.empty{background:#ffffff14;border-color:#ffffff66;color:#e9f3ea;opacity:.8}.felt .seat.empty b{color:#e9f3ea}
.felt::before{content:"";grid-column:1/-1;grid-row:4/8;z-index:0;margin:-8px -4px;background:radial-gradient(ellipse at center,#2a7d58 0%,#1c5f42 60%,#134a33 100%);border:7px solid #6b4423;box-shadow:inset 0 0 0 2px #c9a23f66,0 3px 0 #0003}
.felt>.table-mid{margin:0;padding:0 10px;overflow:hidden}.felt .table-mid .scores,.felt .table-mid .card-label,.felt .table-mid .lobby-quiet{color:#f1f6ee}.felt .playing-card.slot{box-shadow:inset 0 0 0 1px #ffffff80}
.felt-poker::before{border-radius:90px}.felt-poker>.table-mid{grid-row:5;display:flex;flex-direction:column;align-items:center;justify-content:center}.felt-poker .table-mid .card-row{justify-content:center}
.felt-poker .seat:nth-child(1){grid-row:4;grid-column:1/3}.felt-poker .seat:nth-child(2){grid-row:4;grid-column:3/5}.felt-poker .seat:nth-child(3){grid-row:4;grid-column:5/7}.felt-poker .seat:nth-child(4){grid-row:6;grid-column:5/7}.felt-poker .seat:nth-child(5){grid-row:6;grid-column:3/5}.felt-poker .seat:nth-child(6){grid-row:6;grid-column:1/3}
.felt-blackjack::before{border-radius:18px 18px 50% 50%/18px 18px 110px 110px}.felt-blackjack>.table-mid{grid-row:4;display:flex;flex-direction:column;align-items:center}.felt-blackjack .table-mid .card-row{justify-content:center}
.felt-blackjack>.felt-print{grid-row:5;grid-column:3/5;align-self:center;margin:0;text-align:center;font-size:11px;font-weight:800;letter-spacing:.08em;line-height:1.5;color:#f3d77a}
.felt-blackjack .seat:nth-child(1){grid-row:5;grid-column:1/3}.felt-blackjack .seat:nth-child(5){grid-row:5;grid-column:5/7}.felt-blackjack .seat:nth-child(2){grid-row:6;grid-column:1/3}.felt-blackjack .seat:nth-child(3){grid-row:6;grid-column:3/5}.felt-blackjack .seat:nth-child(4){grid-row:6;grid-column:5/7}
.felt-baccarat::before{border-radius:26px}.felt-baccarat>.table-mid{grid-row:4;height:auto;min-height:96px}.felt-baccarat .bac-hands .card-row.won{background:#ffffff2e;border-color:#f3d77a}
.felt-baccarat>.felt-bets{grid-row:5;display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;padding:0 8px}.felt-area{height:64px;padding:4px 6px;border-radius:10px;border:2px solid #ffffff99;color:#fff;text-align:center;overflow:hidden;display:flex;flex-direction:column;align-items:center}.felt-area b{font-size:14px;letter-spacing:.12em}.felt-area small{font-size:10px;letter-spacing:0;color:#e9f3ea;line-height:1.2}.felt-area.tie b{color:#f3d77a}.felt-area.banker b{color:#ffb4a8}.felt-area.won{background:#ffffff2e;border-color:#f3d77a}.felt-chips{display:flex;gap:2px;justify-content:center;margin-top:2px}.felt-chips .chip-spot{position:static}
.felt-baccarat .seat{height:66px}.felt-baccarat .seat:nth-child(-n+3){grid-row:6}.felt-baccarat .seat:nth-child(n+4){grid-row:7}.felt-baccarat .seat:nth-child(1){grid-column:1/3}.felt-baccarat .seat:nth-child(2){grid-column:3/5}.felt-baccarat .seat:nth-child(3){grid-column:5/7}.felt-baccarat .seat:nth-child(4){grid-column:2/4}.felt-baccarat .seat:nth-child(5){grid-column:4/6}
.chip-spot{position:absolute;top:4px;right:4px;min-width:26px;height:26px;padding:0 3px;border-radius:13px;display:flex;align-items:center;justify-content:center;font:800 10px/1 "DM Sans",Arial,sans-serif;font-style:normal;color:#fff;background:#b3261e;border:2px dashed #fff;box-shadow:0 1px 0 #0006}.chip-spot.on-player{background:#1f5fa8}.chip-spot.on-tie{background:#8a6d1a}.chip-spot.on-banker{background:#b3261e}
.in-room .felt{row-gap:4px}.in-room .felt::before{margin:-6px -2px;border-width:5px}.in-room .felt-baccarat .seat{height:60px}.in-room .felt-baccarat>.table-mid{height:auto}.in-room .felt-area{height:66px}

/* Optional account, above the nickname. */
.account{margin:10px 0;padding:10px 12px;border:1px solid #d6d9cc;border-radius:12px;background:#fffdf7}.account .fine{margin:0 0 6px}.acct-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.acct-row button{margin:0;min-height:44px}.acct-owner{font-weight:700}.acct-form{margin-top:10px;display:grid;gap:8px}.acct-form label{margin:0}.acct-note{min-height:1.4em;margin:6px 0 0;color:#b3261e}.account #acctGoogle{min-height:44px}

/* Backgammon in one place: the board with a column beside it holding both bear-off trays and the turn buttons, sized to fit
   the screen height so nothing needs scrolling while playing. */
.bg-play{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:8px;align-items:stretch;max-width:min(100%,calc((100vh - 190px) * 1.9 + 100px));margin:0 auto}
.bg-play .bg-board{margin:0}.bg-panel .point{height:clamp(96px,calc((100vh - 330px) / 2.4),150px)}
.bg-side{display:grid;grid-template-rows:1fr auto 1fr;gap:6px;min-width:0}
.bg-tray{display:flex;flex-direction:column;align-items:center;gap:3px;margin:0;padding:5px 4px;min-height:0;border-radius:8px;border:3px solid #7b5232;background:#21352c;color:#e9eddf;font-weight:700;overflow:hidden;cursor:default}
.ivory-tray{justify-content:flex-start}.gold-tray{flex-direction:column-reverse;justify-content:flex-start}.bg-tray small{font-size:11px;letter-spacing:.04em}.bg-tray b{font-size:12px}
.bg-tray .slabs{display:flex;flex-direction:column;gap:1px;width:70%}.gold-tray .slabs{flex-direction:column-reverse}.bg-tray .slab{display:block;height:5px;border-radius:2px;box-shadow:0 1px 0 #0006}.bg-tray .slab.gold{background:#d5a353}.bg-tray .slab.ivory{background:#fffbed}
.bg-tray:disabled{opacity:1}.bg-tray.legal-destination{outline:4px solid #fff4a2;outline-offset:-4px;cursor:pointer;background:#2c6d54}.bg-tray.legal-destination::after{content:'OFF';margin-top:auto;padding:3px 6px;border-radius:99px;background:#fff4a2;color:#1d2b26;font-size:11px}
.bg-acts{display:flex;flex-direction:column;gap:6px}.bg-acts button{margin:0;width:100%;min-height:44px;padding:8px 4px;font-size:15px}.bg-left{text-align:center;font-size:12px;font-weight:700}
@media(max-width:650px){.bg-play{grid-template-columns:minmax(0,1fr) 58px;gap:4px}.bg-acts button{font-size:13px;padding:6px 2px}.bg-tray small{font-size:9px}.bg-tray b{font-size:10px}.in-room .bg-panel .point{height:clamp(96px,calc((100vh - 300px) / 2.3),128px)}}
.bg-acts .bear-all{background:#d5a353;color:#1d2b26}

/* Poker: an oval felt with the seats on the rail. Sized from the screen height so the table, the guest's cards and every
   control fit in one window. */
.pk-room{display:flex;flex-direction:column;gap:6px}.pk-room>.eyebrow{margin:0}
.pk-table{position:relative;height:clamp(250px,calc(100vh - 400px),430px);margin:34px 24px 40px;border-radius:50%/50%;background:radial-gradient(ellipse at center,#2f8a60 0%,#1d6446 62%,#134a33 100%);border:12px solid #6b4423;box-shadow:inset 0 0 0 3px #c9a23f88,inset 0 0 40px #0006,0 6px 0 #0003}
.pk-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:4px;width:66%;text-align:center}
.pk-board{display:flex;gap:4px;justify-content:center}.pk-board .playing-card{width:clamp(30px,8vw,46px);height:clamp(42px,11.2vw,64px);font-size:clamp(12px,3.2vw,17px)}
.pk-pot{margin:0;color:#f3e7b8;font-weight:800;font-size:13px;letter-spacing:.03em}
.pk-win{padding:4px 10px;border-radius:10px;background:#000a;color:#ffe9a3;font-weight:800;font-size:13px;line-height:1.35}.pk-win p{margin:0}
.pk-seat{position:absolute;transform:translate(-50%,-50%);z-index:2;width:clamp(78px,22vw,118px);min-height:52px;padding:4px 5px;border-radius:12px;background:#fffdf7;color:#1d2b26;text-align:center;box-shadow:0 3px 0 #0004;border:2px solid #d6cdb4;line-height:1.15}
.pk-seat b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pk-seat small{display:block;font-size:11px;color:#5d6b62}
.pk-seat.mine{border-color:#d5a353;background:#fff7e0}.pk-seat.turn{border-color:#2f8a60;box-shadow:0 0 0 4px #9fe3bf,0 3px 0 #0004}.pk-seat.folded{opacity:.55}.pk-seat.gone{opacity:.4}
.pk-seat.empty{background:#ffffff1f;border:2px dashed #ffffff88;color:#e9f3ea}.pk-seat.empty small{color:#e9f3ea}
.pk-seat.winner{border-color:#f3d77a;box-shadow:0 0 0 4px #f3d77a,0 0 22px #f3d77a,0 3px 0 #0004}
.pk-cards{display:flex;gap:2px;justify-content:center;margin-top:3px}.pk-cards .playing-card{width:26px;height:36px;font-size:11px;margin:0}
.pk-hand{display:block;font-style:normal;font-size:10px;font-weight:800;color:#7b5232;margin-top:2px}.pk-seat.winner .pk-hand{color:#2f6f52}
.pk-gain{position:absolute;top:-10px;right:-8px;font-style:normal;padding:2px 6px;border-radius:99px;background:#2f6f52;color:#fff;font-size:11px;font-weight:800}
.pk-chip{position:absolute;transform:translate(-50%,-50%);z-index:1;min-width:30px;height:30px;padding:0 4px;border-radius:15px;display:flex;align-items:center;justify-content:center;font:800 11px/1 "DM Sans",Arial,sans-serif;font-style:normal;color:#fff;background:#b3261e;border:3px dashed #fff;box-shadow:0 2px 0 #0006;animation:pk-chip .35s ease-out}
.pk-dealer{position:absolute;transform:translate(-50%,-50%);z-index:1;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;color:#1d2b26;font:900 12px/1 Arial,sans-serif;font-style:normal;box-shadow:0 2px 0 #0006}
/* The dealer button at the bottom and the top seat sits beside the seat: half the seat's width and 14px out from the middle. */
.pk-dealer[data-at]{margin-left:calc(clamp(39px,11vw,59px) + 14px)}
.playing-card.best{box-shadow:0 0 0 3px #f3d77a,0 0 12px #f3d77a;transform:translateY(-3px)}
.pk-mine{display:flex;gap:6px;align-items:center;justify-content:center;min-height:74px}.pk-mine .playing-card{width:48px;height:68px;font-size:19px}.pk-myhand{font-size:15px;color:#2f6f52}
.pk-status{text-align:center;min-height:1.4em;margin:0}.pk-acts{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.pk-acts button{margin:0;min-height:44px;flex:1 1 0;min-width:72px;padding:6px 8px}
.pk-room .table-bar{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.pk-room .table-bar button,.table-switch{margin:0;min-height:44px}.table-switch{padding:0 10px;border-radius:10px;font-weight:700;max-width:200px}
.pk-log{font-size:13px}.pk-log p{margin:2px 0}.pk-log summary{padding:6px 0}
.deal-in{animation:deal-in .45s cubic-bezier(.2,.8,.3,1) backwards}
@keyframes deal-in{0%{opacity:0;transform:translate(var(--dx,0),-60px) rotate(-14deg) scale(.6)}60%{opacity:1}100%{opacity:1;transform:none}}
@keyframes pk-chip{0%{transform:translate(-50%,-50%) scale(.3);opacity:0}100%{transform:translate(-50%,-50%) scale(1);opacity:1}}
@media(max-width:650px){.pk-table{margin:30px 14px 36px;border-width:8px;height:clamp(230px,calc(100vh - 380px),330px)}.pk-seat{width:76px;min-height:48px;padding:3px}.pk-dealer[data-at]{margin-left:52px}.pk-seat b{font-size:12px}.pk-cards .playing-card{width:22px;height:31px;font-size:10px}.pk-mine .playing-card{width:42px;height:60px;font-size:17px}.pk-acts button{min-width:60px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.deal-in,.pk-chip{animation:none}}
.pk-room .table-acts,.in-room .pk-room .table-acts{height:auto;min-height:48px;margin:0}.pk-room .table-bar{margin:0}.pk-room .table-bar button{flex:1 1 auto}
.pk-mine{justify-content:center}.pk-mine .card-label{margin-right:4px}.pk-room .pk-log{min-height:0;margin:0}
@media(max-width:650px){.pk-table{height:clamp(220px,calc(100vh - 430px),320px)}.pk-room .table-bar button{min-height:40px;padding:6px 8px;font-size:14px}.pk-mine{min-height:64px}}
.felt-blackjack .seat{margin-bottom:22px;overflow:visible}.bet-ring{position:absolute;left:50%;bottom:-24px;transform:translateX(-50%);width:40px;height:40px;border-radius:50%;border:2px solid #f3d77a;display:flex;align-items:center;justify-content:center;background:#ffffff14}.bet-ring small{font-size:9px;font-weight:800;color:#f3d77a;letter-spacing:.05em}.bet-ring .chip-spot{position:static}.bet-ring.on{border-style:dashed}

/* Blackjack: a half-moon table, dealer on the flat side, seats and betting circles along the curve. */
.bj-room{display:flex;flex-direction:column;gap:6px}.bj-room>.eyebrow{margin:0}
.bj-table{position:relative;height:clamp(290px,calc(100vh - 330px),460px);margin:0 6px 46px;border-radius:14px 14px 50% 50%/14px 14px 100% 100%;background:radial-gradient(ellipse at 50% 10%,#2f8a60 0%,#1d6446 60%,#134a33 100%);border:12px solid #6b4423;border-top-width:8px;box-shadow:inset 0 0 0 3px #c9a23f88,inset 0 0 40px #0006,0 6px 0 #0003}
.bj-dealer{position:absolute;left:50%;top:4%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:3px}.bj-dealer .card-label{color:#f3e7b8;font-weight:800}
.bj-print{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);margin:0;width:70%;text-align:center;color:#f3d77a;font-size:12px;font-weight:800;letter-spacing:.08em}
.bj-seat{position:absolute;transform:translate(-50%,-50%);z-index:2;width:clamp(74px,19vw,120px);min-height:54px;padding:4px 5px;border-radius:12px;background:#fffdf7;color:#1d2b26;text-align:center;box-shadow:0 3px 0 #0004;border:2px solid #d6cdb4;line-height:1.15}
.bj-seat b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bj-seat small{display:block;font-size:11px;color:#5d6b62}
.bj-seat.mine{border-color:#d5a353;background:#fff7e0}.bj-seat.turn{border-color:#2f8a60;box-shadow:0 0 0 4px #9fe3bf,0 3px 0 #0004}.bj-seat.winner{border-color:#f3d77a;box-shadow:0 0 0 4px #f3d77a,0 0 18px #f3d77a}.bj-seat.gone{opacity:.4}
.bj-seat.empty{background:#ffffff1f;border:2px dashed #ffffff88;color:#e9f3ea}.bj-seat.empty small{color:#e9f3ea}
.bj-ring{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;border:2px solid #f3d77a;display:flex;align-items:center;justify-content:center}.bj-ring small{font-size:9px;font-weight:800;color:#f3d77a;letter-spacing:.06em}.bj-ring .pk-chip{position:static;transform:none}
.pk-gain.lost{background:#b3261e}
@media(max-width:650px){.bj-table{height:clamp(270px,calc(100vh - 340px),360px);border-width:8px;margin:0 2px 40px}.bj-seat{width:70px;padding:3px}.bj-seat b{font-size:12px}.bj-print{font-size:10px}}
.bj-room .table-acts,.in-room .bj-room .table-acts{height:auto;min-height:48px;margin:0}.bj-room .table-bar{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:0}.bj-room .table-bar button{flex:1 1 auto;margin:0;min-height:44px}.bj-room .pk-log{min-height:0;margin:0}.bj-print{top:33%;width:56%}
@media(max-width:650px){.bj-room .table-bar button{min-height:40px;padding:6px 8px;font-size:14px}}
.felt-baccarat>.table-hand:empty{display:none}.felt-baccarat .table-acts,.in-room .felt-baccarat .table-acts{height:auto;margin:4px 0}.felt-baccarat .table-log{min-height:0;max-height:3.2em;overflow:hidden;margin:4px 0}.felt-baccarat .table-bar{margin:4px 0;justify-content:center}.felt-baccarat .table-bar button{min-height:40px}
.venue-rules:empty{display:none}.venue-rules{margin:6px 0 0;padding:8px 12px;border-radius:10px;background:#fff7e0;font-size:14px;line-height:1.4}.venue-mark{display:flex;align-items:center;gap:8px}.venue-mark img{width:40px;height:40px;border-radius:8px;object-fit:contain;background:#fff}
.cell.win{box-shadow:inset 0 0 0 4px #143a30,0 0 0 3px #fff}.four-actions{min-height:48px}.in-room #games>.panel>.four-bot-cue.status-line{padding:8px 12px}
/* Backgammon side column (2026-11-26): it takes the board's height and never makes the board taller, and the turn buttons keep fixed places, so nothing moves under the finger while checkers are borne off. */
.bg-play{position:relative}
.bg-side{position:absolute;top:0;bottom:0;right:0;width:92px;grid-template-rows:minmax(0,1fr) auto minmax(0,1fr)}
.bg-acts button,.bg-slot{height:44px;min-height:44px;line-height:1.1}
.bg-slot{display:block}
.bg-left{display:block;height:32px;line-height:16px;overflow:hidden}
.bg-tray{padding:2px;gap:2px;justify-content:center}
.bg-tray .slabs,.gold-tray .slabs{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:1px;width:100%;flex:0 1 auto;min-height:0;overflow:hidden}
.bg-tray .slab{width:8px;height:4px;flex:none}
.bg-tray.legal-destination small,.bg-tray.legal-destination .slabs{display:none}
.bg-tray.legal-destination::after{margin-top:0}
@media(max-width:650px){.bg-side{width:58px}}
@media(max-height:500px){.bg-acts button,.bg-slot{height:34px;min-height:34px}.bg-left{height:16px;font-size:11px}}
/* Checkers (2026-11-26): the line above the board is one height whether it is empty, names the last move or says the bot is playing, so the board does not move from turn to turn; the action row keeps a button height when it is empty. */
.checkers-panel>.held-line,.checkers-panel>.checkers-turn-cue,.checkers-panel>.checkers-last-move{box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center}
.in-room .checkers-panel>.held-line,.in-room .checkers-panel>.checkers-turn-cue,.in-room .checkers-panel>.checkers-last-move{min-height:55px;padding:2px 10px}
.ck-actions{min-height:48px}
.tic-cell.win{box-shadow:inset 0 0 0 5px #143a30}.tic-actions{min-height:48px}
/* Memory pairs on a narrow phone: the sentence after two cards takes three lines with long nicknames, so the room is always kept and the cards stay where they are. */
@media(max-width:359px){.in-room #games>.panel>.status-line.mem-status{min-height:3.9em;min-height:3lh}}
@media(max-width:359px){.in-room #games>.go-panel>.status-line{min-height:3.9em;min-height:3lh}}
/* Go, the line under the board: the count of a finished round is longer than the captures it replaces, so room for it is always kept (two lines, three on a narrow phone) and Pass and Concede stay where they are. */
.go-panel>.go-count{min-height:3.4em;min-height:2lh;display:flex;align-items:center;justify-content:center;text-align:center}
@media(max-width:359px){.go-panel>.go-count{min-height:5.1em;min-height:3lh}}
/* Chinese Checkers and dominoes on a narrow phone: how a round ended plus a long nickname takes three lines, so the room is always kept and the star and the table stay where they are. */
@media(max-width:359px){.in-room #games>.cc-panel>.status-line,.in-room #games>.domino-panel>.status-line{min-height:3.9em;min-height:3lh}}
/* Blackjack on a narrow phone: "Your turn · hit or stand · <name> has finished with 2 cards" and the round-end sentence take three lines with long nicknames; the room is kept so the cards and Hit and Stand do not move. */
@media(max-width:359px){.in-room #games>.bj-panel>.status-line{min-height:3.9em;min-height:3lh}}
/* Poker on a narrow phone: with long nicknames the chips line takes three lines in the hands where the guest has the button, and the concede sentence takes three in the status; the room is kept so the cards and the buttons do not move from hand to hand. */
@media(max-width:359px){.in-room #games>.pk-panel>.status-line,.in-room #games>.pk-panel>.pk-line{min-height:3.9em;min-height:3lh}}
/* Reversi on a narrow phone: with long nicknames the concede sentence and the left-the-table sentence take three lines in the status; the room is kept so the board does not move when the match ends. */
@media(max-width:359px){.in-room #games>.reversi-panel>.status-line{min-height:3.9em;min-height:3lh}}
/* Fleet Hunt on a narrow phone: with long nicknames the round-end sentence takes three lines in the status, and so does the line of the last shots when a ship is sunk; the room is kept so the waters do not move during a round or when it ends. */
@media(max-width:359px){.in-room #games>.fleet-panel>.status-line,.in-room #games>.fleet-panel>.fl-report.held-line{min-height:3.9em;min-height:3lh}}
/* Mancala on a narrow phone: with long nicknames the concede sentence takes three lines in the status, and so does the line under the board when it says where the stones left over went; the room is kept so the board, Concede and Next round do not move when a round or the match ends. */
@media(max-width:359px){.in-room #games>.mancala-panel>.status-line,.in-room #games>.mancala-panel>.mc-last.held-line{min-height:3.9em;min-height:3lh}}
/* Crazy Eights on a narrow phone: with long nicknames the last move with 'nothing fits, draw a card', the round-end sentence and the concede sentence take three lines in the status (the first of these up to about 370 px); the room is kept so the pile, the buttons and the hand do not move during a round or when it ends. */
@media(max-width:374px){.in-room #games>.ce-panel>.status-line{min-height:3.9em;min-height:3lh}}
/* Under 360 px 'Concede match' took two lines in its half row, so the block of buttons was 20 px taller than the room kept for it and the hand moved up when the match ended; with less padding at the sides the words keep one line. */
@media(max-width:359px){.ce-actions.ce-actions button{padding-left:8px;padding-right:8px}}
/* Under 344 px 'On the pile · match ♦ diamonds or the 10' took two lines and every other suit one, so the buttons and the hand moved 16 px down and back whenever diamonds came up. The label keeps two lines there, its words next to the card. */
@media(max-width:343px){.ce-panel>.ce-pile>.card-label{display:flex;align-items:flex-end;justify-content:center;min-height:2.6em;min-height:2lh}}
/* Its 'Waiting for <nickname>' label stays on one line, so Concede under it keeps its place. */
.mem-continue{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Tables and boards, drawn the way the games are known. */
/* Two-guest blackjack, poker and Crazy Eights: the cards lie on the same felt and wooden rail as the big tables. Rows that follow each other join into one table. */
.card-panel>.card-row:not(:has(.card-button)){margin:0;padding:12px 8px;min-height:112px;background:radial-gradient(ellipse at 50% 0,#2f8a60 0%,#1d6446 65%,#134a33 100%);border:8px solid #6b4423;border-radius:22px;box-shadow:inset 0 0 0 2px #c9a23f66,inset 0 0 26px #0005}
.card-panel>.card-row:not(:has(.card-button)):has(+.card-row){border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}
.card-panel>.card-row:not(:has(.card-button))+.card-row:not(:has(.card-button)){border-top:0;border-top-left-radius:0;border-top-right-radius:0}
.card-panel>.card-row:not(:has(.card-button)) .card-label{color:#f3d77a;letter-spacing:.04em}
.card-panel>.card-row:not(:has(.card-button)) .playing-card{border-color:#0000}
.card-panel>.card-row:not(:has(.card-button)) .playing-card.slot{box-shadow:inset 0 0 0 1px #ffffff70}
.card-panel>.card-row:not(:has(.card-button)) .playing-card.back{background:repeating-linear-gradient(45deg,#7a1f2b 0 6px,#a23344 6px 12px);box-shadow:inset 0 0 0 2px #fffdf7,1px 2px 3px #0005}
.card-panel>.card-row+p.scores{margin-top:10px}
/* Dominoes: felt with a rail, and tiles with pips. The number stays in the tile for screen readers and in the Play buttons. */
.domino-chain{background:radial-gradient(ellipse at 50% 0,#2f8a60 0%,#1d6446 65%,#134a33 100%);border:8px solid #6b4423;border-radius:18px;box-shadow:inset 0 0 0 2px #c9a23f66,inset 0 0 26px #0005;min-height:84px}
.domino-chain .fine{color:#f3d77a}
.domino{border-radius:7px;box-shadow:1px 2px 3px #0004;--pip:radial-gradient(circle,#1d2b26 0 2.9px,#0000 3.4px)}
.domino b{box-sizing:border-box;width:32px;min-width:0;height:32px;padding:5px;font-size:0;background-repeat:no-repeat;background-size:34% 34%;background-origin:content-box}
.domino b.p1{background-image:var(--pip);background-position:50% 50%}
.domino b.p2{background-image:var(--pip),var(--pip);background-position:0 0,100% 100%}
.domino b.p3{background-image:var(--pip),var(--pip),var(--pip);background-position:0 0,50% 50%,100% 100%}
.domino b.p4{background-image:var(--pip),var(--pip),var(--pip),var(--pip);background-position:0 0,100% 0,0 100%,100% 100%}
.domino b.p5{background-image:var(--pip),var(--pip),var(--pip),var(--pip),var(--pip);background-position:0 0,100% 0,50% 50%,0 100%,100% 100%}
.domino b.p6{background-image:var(--pip),var(--pip),var(--pip),var(--pip),var(--pip),var(--pip);background-position:0 0,100% 0,0 50%,100% 50%,0 100%,100% 100%}
@media(max-width:380px){.domino b{width:27px;height:27px;padding:4px}}
/* Tic-tac-toe: one board with the four ruled lines, not nine tiles. */
.tic-board{gap:0;padding:10px;border-radius:16px;background:#fffdf7;border:1px solid var(--play-card-line)}
.tic-cell{background:transparent;border-radius:0;border:0 solid #244d3d}
.tic-cell:not(:nth-child(3n)){border-right-width:5px}.tic-cell:nth-child(-n+6){border-bottom-width:5px}
.tic-cell:not(:disabled):hover{background:#edf4e9}
/* Go: lines stop at the edge of the board, and the five star points are marked. */
.go-point{--star:linear-gradient(#0000,#0000);--hp:center;--hs:100% 1px;--vp:center;--vs:1px 100%;background:var(--star) center/100% 100% no-repeat,linear-gradient(#5b4526,#5b4526) var(--hp)/var(--hs) no-repeat,linear-gradient(#5b4526,#5b4526) var(--vp)/var(--vs) no-repeat}
.go-point:nth-child(-n+9){--vp:center bottom;--vs:1px 50%}.go-point:nth-last-child(-n+9){--vp:center top;--vs:1px 50%}
.go-point:nth-child(9n+1){--hp:right center;--hs:50% 1px}.go-point:nth-child(9n){--hp:left center;--hs:50% 1px}
.go-point:is(:nth-child(21),:nth-child(25),:nth-child(41),:nth-child(57),:nth-child(61)){--star:radial-gradient(circle,#5b4526 0 10%,#0000 11.5%)}
#join.code-shut #roomWrap,#join.code-shut #tablePeek{display:none}.entry-fine{margin:14px 0 0}.entry-fine summary{font-size:14px}.account{padding:8px 0;border:0;background:none}
@media(max-width:650px){.in-room #games>.panel{display:flex;flex-direction:column}.in-room #games>.panel>*{flex:none;box-sizing:border-box;width:100%}.in-room #games>.panel>:is(.fine,.bot-level,.moves,.trivia-reveals){order:5}.in-room :is(.checkers-board,.go-board,.rv-board,.cc-board){margin-top:8px;margin-bottom:8px}.in-room .pk-actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;min-height:56px}.in-room .pk-actions button{margin:0;min-width:0;padding:8px 6px;line-height:1.2}@media(max-width:399px){.in-room .pk-actions button{min-height:52px}}.in-room .card-panel>.card-row:not(:has(.card-button)){padding:6px 8px}}

/* Found in play on a 320 px phone. The winning three of tic-tac-toe are tinted (the old dark frame cut across the ruled lines). */
.tic-cell.win{box-shadow:none;background:#f6e3a1}
/* Dominoes on the table are smaller than the ones in the hand, and the table keeps room for four rows (twenty tiles), so the page stays still while the line grows. */
.domino-chain{min-height:159px;align-content:center;gap:5px;padding:10px 8px}
.domino-chain .domino b{width:24px;height:24px;padding:3.5px}.domino-chain .domino{--pip:radial-gradient(circle,#1d2b26 0 2.3px,#0000 2.8px);border-width:1.5px}.domino-chain .domino b+b{border-left-width:1.5px}
@media(max-width:380px){.domino-chain .domino b{width:20px;height:20px;padding:2.5px}.domino-chain .domino{--pip:radial-gradient(circle,#1d2b26 0 2px,#0000 2.5px)}}
/* 'Concede match' keeps one line in its half row under 360 px (it took two in dominoes, poker and the board games). */
@media(max-width:359px){.rv-actions button{padding-left:8px;padding-right:8px}}

/* The first page offers a table for three or more when the chosen game has one: four buttons then sit two by two. */
.entry-actions:has(#entryTableBtn:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:650px){.entry-actions:has(#entryTableBtn:not([hidden])){grid-template-columns:1fr}}
#tableBtn{margin-top:8px}

/* Tables for three or more on a narrow phone: the seats stay inside the page (they were cut off at both sides under 380 px), and the print on the blackjack felt, which ran under the betting circles, is left to the rules line. */
@media(max-width:380px){.pk-table{margin-left:24px;margin-right:24px}.pk-seat{width:66px}.pk-dealer[data-at]{margin-left:47px}.pk-seat b{font-size:11px}.pk-seat small{font-size:10px}.bj-table{margin-left:18px;margin-right:18px}.bj-seat{width:64px}.bj-seat b{font-size:11px}.bj-seat small{font-size:10px}.bj-print{display:none}.bj-ring{width:36px;height:36px}}

/* The phone layout that stacks a game panel (width 100% for every part) must leave the tables alone: with their side margins the poker and blackjack tables ran 28 px past the right edge, and the felt of the other tables, which is a grid, fell apart into a column. */
@media(max-width:650px){.in-room #games>.panel>:is(.pk-table,.bj-table){width:auto}.in-room #games>.panel.felt{display:grid}.in-room #games>.panel.felt>*{width:auto}}

/* Crazy Eights and dominoes tables for three or four: the pile or the line of tiles lies on felt, with the seats around it (two above, two below). */
:is(.felt-eights,.felt-dominoes)::before{border-radius:26px}
:is(.felt-eights,.felt-dominoes) .seat{height:58px}:is(.felt-eights,.felt-dominoes) .seat:nth-child(odd){grid-column:1/4}:is(.felt-eights,.felt-dominoes) .seat:nth-child(even){grid-column:4/7}
:is(.felt-eights,.felt-dominoes) .seat:nth-child(-n+2){grid-row:4}
:is(.felt-eights,.felt-dominoes) .seat:nth-child(n+3){grid-row:7}
:is(.felt-eights,.felt-dominoes)>.table-mid{grid-row:5/7;height:118px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#f1f6ee}
:is(.felt-eights,.felt-dominoes)>.table-mid .card-row{background:none;border:0;box-shadow:none;padding:0;min-height:0}
/* The whole line of a four-seat round (28 tiles) fits without the table growing, so the hand under it keeps its place. */
.felt-dominoes>.table-mid{height:176px;justify-content:flex-start;padding-top:6px;overflow-y:auto}.felt-dominoes>.table-mid .domino-line{justify-content:center;gap:2px}.felt-dominoes>.table-mid .scores{font-size:13px}
.felt-dominoes>.table-mid .domino b{box-sizing:border-box;width:20px;height:20px;padding:2.5px}.felt-dominoes>.table-mid .domino{--pip:radial-gradient(circle,#1d2b26 0 2px,#0000 2.5px)}
/* Trivia Quest on a phone narrower than 350 px: the longest question took four lines of 24 px type where three are kept, and pushed the answers and Concede 29 px down for that one question. At 20 px every question fits the three lines. */
@media(max-width:349px){.trivia-question h3{font-size:20px}}

/* The invite at a table for three or more opens under the buttons, full width. */
.table-bar .invite-box{flex:1 1 100%;margin:4px 0 0}
/* Baccarat table on a phone narrower than 360 px: the chip in a seat lay over the end of the name ("Bot Ad"), the seat line was cut before its result, and "pays 1 to 1 less 5%" took two lines and pushed the Banker chips half out of their area. The bet is already written in the seat and lies as a chip in its area, so the seat's own chip is left out; the seats are a little wider with smaller type, and the Banker line keeps to one line. */
@media(max-width:359px){.felt-baccarat .seat .chip-spot{display:none}.in-room .felt-baccarat .seat{margin:0 1px;padding:6px 3px}.felt-baccarat .seat small{font-size:10px}.felt-baccarat .seat.empty b{font-size:12px}.felt-area.banker small{font-size:9px;letter-spacing:-.02em;white-space:nowrap;margin:0 -5px}}
/* Poker table on a phone up to 400 px wide: with six seats the side seats lay over the first and last table card, and at a showdown the seats lay over the winning banner; on a short screen the table was only 220 px tall. The table is at least 300 px tall, the side seats stand out on the rail and the table cards sit closer together. Under 360 px the chips lay over the pot line as well: there the bet is read in the seat instead. */
@media(max-width:400px){.pk-table{height:clamp(300px,calc(100vh - 430px),320px)}.pk-seat[data-side=l]{margin-left:-24px}.pk-seat[data-side=r]{margin-left:24px}.pk-seat.empty[data-side]{margin-left:0}.pk-board{gap:2px}.pk-seat small{letter-spacing:0}}
@media(max-width:359px){.pk-table>.pk-chip{display:none}}
/* An empty side seat stays on the felt where it fits (up to 400 px wide); on a phone under 380 px it sits out on the rail, clear of the table cards, and is filled with felt green so its white words can be read off the table too. */
@media(max-width:379px){.pk-seat.empty[data-side=l]{margin-left:-24px}.pk-seat.empty[data-side=r]{margin-left:24px}.pk-seat.empty:is([data-side=l],[data-side=r]){background:#1d6446}}
/* Blackjack table on a phone up to 400 px wide: the chips of the two seats at the ends of the curve lay half under those seats (at 320 px all but hidden), and when a hand was over the seat line took four or five lines ("blackjac" / "k"), so the seats grew over each other and one covered its neighbour's name. The end circles move in and down, clear of the seat and of the dealer's cards, and the seat line is set without letter spacing. */
@media(max-width:400px){.bj-seat small{letter-spacing:0}.bj-ring[data-side=l]{margin:14px 0 0 16px}.bj-ring[data-side=r]{margin:14px 0 0 -16px}}
@media(max-width:359px){.bj-table{margin-left:13px;margin-right:13px}.bj-seat{width:62px}.bj-ring[data-side=l]{margin-left:20px}.bj-ring[data-side=r]{margin-left:-20px}}

footer .owner-login{color:#244d3d;font-weight:600;text-decoration:underline;padding:12px 0;margin:-12px 0}

:root{color-scheme:only light}

/* First page: a nickname and Start. The game is picked in the lobby; "Pick a game first" brings the full list back. */
#join:not(.classic) :is(.entry-pick,#entryGames,#entryModeNote,h2.entry-pick+p,label:has(#entryBest),#entryDifficultyWrap,#entryBotBtn,#entryHostBtn,#entryTableBtn,h3){display:none}
#join.classic :is(.entry-simple,#entryStartBtn),#join.invited :is(.entry-simple,#entryStartBtn){display:none}
#join:not(.classic) .entry-actions{grid-template-columns:1fr}
#entryStartBtn{font-size:20px;min-height:58px}
#entryClassicBtn{display:block;width:100%;margin-top:10px}
/* Lobby: games as tiles, the list they are drawn from stays for screen readers only. */
.kind-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 16px}
.kind-tile{margin:0;min-height:52px;padding:8px 6px;background:#fffdf7;color:#16221c;border:2px solid #d6d9cc;border-radius:12px;font-weight:600;font-size:14px;line-height:1.2}
.kind-tile.on{background:#244d3d;color:#fffdf7;border-color:#244d3d}
.kind-tile:disabled{opacity:.45}
label.kind-select{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.lobby-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 10px}
.lobby-actions button{margin:0;min-height:52px}
@media(max-width:460px){.kind-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.lobby-actions{grid-template-columns:1fr}}

/* Poker and blackjack tables dressed like the real ones: a padded leather rail on a wooden frame, woven felt and the printed betting line. Sizes and seat places are unchanged. */
.pk-table,.bj-table{border-color:#2b1b12;background-image:repeating-linear-gradient(45deg,#ffffff07 0 2px,#0000 2px 5px),repeating-linear-gradient(-45deg,#00000010 0 2px,#0000 2px 5px),radial-gradient(ellipse at 50% 40%,#2f8a60 0%,#1d6446 62%,#114330 100%);box-shadow:inset 0 0 0 2px #0009,inset 0 0 0 4px #5a3a22,inset 0 10px 34px #0007,0 0 0 1px #4a3020,0 0 0 5px #8a5a2c,0 0 0 7px #4a2d14,0 12px 18px #0004}
.pk-table::before{content:"";position:absolute;inset:9% 7%;border-radius:50%;border:2px solid #e7c96a70;pointer-events:none}
.pk-table::after{content:"TEXAS HOLD’EM";position:absolute;left:0;right:0;top:64.5%;text-align:center;font:800 10px/1 "DM Sans",Arial,sans-serif;letter-spacing:.32em;color:#e7c96a66;pointer-events:none}
.bj-table{border-top-color:#6b4423;background-image:repeating-linear-gradient(45deg,#ffffff07 0 2px,#0000 2px 5px),repeating-linear-gradient(-45deg,#00000010 0 2px,#0000 2px 5px),radial-gradient(ellipse at 50% 10%,#2f8a60 0%,#1d6446 60%,#114330 100%)}
.bj-table::before{content:"";position:absolute;left:7%;right:7%;top:-62%;bottom:15%;border-radius:50%;border-bottom:2px solid #e7c96a70;pointer-events:none}
/* The dealer's shoe, top right of the blackjack table. */
.bj-table::after{content:"";position:absolute;right:5%;top:5%;width:34px;height:22px;border-radius:4px 4px 4px 10px;background:linear-gradient(90deg,#fffdf7 0 5px,#7a1f1a 5px);box-shadow:0 2px 0 #0006,inset 0 0 0 1px #0004;transform:rotate(-8deg);pointer-events:none}
@media(max-width:460px){.pk-table::after{font-size:9px;letter-spacing:.24em}.bj-table::after{width:26px;height:17px}}
/* The printed line sits in one row between the dealer's cards and the betting rings, where it no longer runs through the rings. */
.bj-print{top:25.6%;width:94%;font-size:10px;white-space:nowrap;letter-spacing:.06em}

/* The venue's own offer and weekly prize, above the games and on the leaderboard. Hidden while a game is open. */
.venue-promo{margin:0 0 14px;padding:12px 16px;border-radius:14px;background:#fff4a2;color:#16221c;border:1px solid #e6cf5a}
.venue-promo p,.venue-prize{margin:2px 0;font-size:15px;line-height:1.35}.venue-promo b,.venue-prize b{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#244d3d}
.venue-prize{padding:10px 14px;border-radius:12px;background:#fff4a2;border:1px solid #e6cf5a;margin:8px 0 12px}
.in-room .venue-promo{display:none}
/* Trivia Quest with another guest on a phone: the two answers just given come before the chat. They lay under the chat and "Block or report this guest", below the screen, so a guest who answered could not see whether the answer was right. */
@media(max-width:650px){.in-room #games>.trivia-panel>.game-chat{order:6}}
/* Backgammon on a phone: the MOVE mark on a point reads downwards, so the whole word fits the point. Written across it was 32 px wide on a point of 15 to 21 px and was cut to "OV" on a small phone, while the status line says "a point marked MOVE". */
@media(max-width:650px){.bg-board .point.legal-destination:after{writing-mode:vertical-rl;text-orientation:upright;letter-spacing:0;line-height:1;padding:3px 2px}}

/* On a wide table the printed name ran through the pot line: the betting line alone stays. */
.pk-table::after{content:none}
/* Trivia Quest on a narrow phone: the status line also says what the last answers did ("You missed · Ben was right. Your turn · tap one of the three answers"), three lines with long names. The room is kept from the start so the question and the answers do not move. */
@media(max-width:359px){.in-room #games>.trivia-panel>.status-line{min-height:3.9em;min-height:3lh}}

/* Poker: every card a guest reads is on the table and large. Their own two cards are the biggest, in their seat; the table cards are next; the copy that sat under the table is gone. */
.pk-seat.mine{width:104px}
.pk-seat.mine .pk-cards{gap:4px}
.pk-seat.mine .pk-cards .playing-card{width:40px;height:56px;font-size:18px;border-radius:6px}
.pk-dealer[data-at=b]{margin-left:66px}
.pk-board .playing-card{width:36px;height:50px;font-size:16px}
/* The line in the middle of the table that named the winner lay under the guest's seat; the status under the table says it, and the winning five cards are shown there. */
.pk-win{display:none}
.pk-showdown{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:48px}
.pk-showdown .card-label{width:auto;margin-right:4px;font-size:13px}
.pk-showdown .playing-card{width:30px;height:42px;font-size:14px;box-shadow:0 0 0 2px #f3d77a,1px 2px 3px #0003}
.pk-showdown .pk-myhand{margin-left:4px;font-size:14px}
.pk-room .pk-acts:empty,.in-room .pk-room .pk-acts:empty{min-height:0;height:0}
@media(max-width:400px){.pk-showdown .card-label{display:none}.pk-showdown .playing-card{width:30px;height:42px;font-size:13px}}
@media(min-width:700px){
 .pk-seat{width:150px;padding:6px 8px}
 .pk-seat b{font-size:15px}.pk-seat small{font-size:12px}.pk-hand{font-size:12px}
 .pk-cards .playing-card{width:34px;height:48px;font-size:15px}
 .pk-seat.mine{width:176px}
 .pk-seat.mine .pk-cards .playing-card{width:58px;height:82px;font-size:25px;border-radius:8px}
 .pk-dealer[data-at=b]{margin-left:104px}.pk-dealer[data-at=t]{margin-left:91px}
 .pk-board{gap:6px}.pk-board .playing-card{width:66px;height:92px;font-size:27px;border-radius:8px}
 .pk-pot{font-size:15px}
 .pk-showdown .playing-card{width:32px;height:44px;font-size:15px}.pk-showdown .card-label,.pk-showdown .pk-myhand{font-size:16px}
}

/* ---- Tablets and computers: a game and its buttons on one screen ----
   A phone already shows a game compactly. On a wider screen the game began 435px down the page, under the name bar, the
   greeting and a tall room panel, and every board was sized by the width alone, so the buttons lay below the screen.
   Inside a game the page now starts with the tabs and one slim row, the headings are small, the notes come after the
   buttons, and a board is never taller than the screen leaves room for. */
@media(min-width:651px){
.in-room header,.in-room #lobby>.row{display:none}.in-room main{padding-top:8px}.in-room #tabs{margin-bottom:6px}
.in-room:not(.in-waiting) #roomView{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 6px;padding:0;background:none;border:0;box-shadow:none}
.in-room:not(.in-waiting) #roomView button{margin:0;min-height:40px;padding:6px 14px;font-size:14px;width:auto}.in-room:not(.in-waiting) #roomView>p.eyebrow{display:none}
.in-room #games>.panel{padding:12px 20px 16px;margin:0}
.in-room #games>.panel:not(.felt){display:flex;flex-direction:column}.in-room #games>.panel:not(.felt)>*{flex:none;box-sizing:border-box;width:100%}.in-room #games>.panel:not(.felt)>button{width:auto;min-width:240px;align-self:center}
.in-room #games>.panel>.eyebrow{display:none}.in-room #games>.panel>h2{font-size:20px;line-height:1.2;margin:0}
.in-room #games>.panel>.scores:not(.status-line){font-size:14px;margin:0}
.in-room #games>.panel>.status-line{min-height:2.6em;min-height:2lh;font-size:16px;line-height:1.3;margin:2px 0}
.in-room #games>.panel>.fine{margin:4px 0}.in-room #games>.panel>.extra-note{min-height:0}
.in-room .held-line,.in-room .checkers-turn-cue,.in-room .checkers-last-move{min-height:2.6em;min-height:2lh;line-height:1.3;margin:2px 0}
.in-room #games>.panel:not(.felt)>:is(.fine,.bot-level,.moves,.trivia-reveals){order:5}
.in-room :is(.chess-board,.checkers-board,.go-board,.rv-board,.cc-board,.board,.tic-board){margin-top:8px;margin-bottom:8px}
.in-room .chess-board,.in-room .rv-board,.in-room .tic-board{max-width:min(100%,calc(100vh - 380px))}.in-room .board,.in-room .drops{max-width:min(100%,calc(100vh - 360px))}
.in-room .checkers-board{max-width:min(560px,calc(100vh - 440px))}
.in-room .go-board{max-width:min(100%,calc(100vh - 470px))}
.in-room .cc-board{max-width:min(100%,calc((100vh - 390px)/1.14))}
/* Card and domino tables: nothing is held empty, and the table buttons come before the log. */
.in-room .felt>.table-hand{height:auto;min-height:76px}.in-room .felt>.table-acts{height:auto;min-height:48px;margin:2px 0}
.in-room .felt>.table-bar{grid-row:11}.in-room .felt>.table-log{grid-row:12}
.in-room .pk-table{height:clamp(260px,calc(100vh - 440px),520px)}
.in-room .bj-table{height:clamp(290px,calc(100vh - 430px),460px)}
}

/* Blackjack: the other hand of a seat that split, small under the hand being played. */
.bj-seat .bj-split{margin-top:3px;gap:2px;align-items:center;justify-content:center;opacity:.9}
.bj-seat .bj-split .playing-card{width:18px;height:26px;font-size:9px;border-radius:3px;margin-left:0}
.bj-seat .bj-split small{margin-left:3px;font-size:10px;white-space:nowrap}
.bj-seat .bj-split.waiting{opacity:.6}
@media(max-width:650px){.bj-print{display:none}.bj-seat .bj-split .playing-card{width:15px;height:22px;font-size:8px}}
@media(min-width:651px){
 .bj-seat .bj-split .playing-card{width:24px;height:34px;font-size:11px}
 /* The printed line ran through the dealer's cards on a wide table: it is printed in the corner. */
 .bj-print{left:4.5%;top:3.5%;transform:none;width:24%;text-align:left;white-space:normal;font-size:11px;line-height:1.5}
 /* Blackjack and poker on a tablet: the table leaves room for the status, the play buttons and the table buttons, which stay in one row. */
 .in-room .bj-table{height:clamp(300px,calc(100vh - 480px),460px);margin-bottom:32px}
 .in-room .pk-table{height:clamp(260px,calc(100vh - 470px),520px)}
 .in-room .table-bar:not(:has(.invite-box)){flex-wrap:nowrap;gap:6px;margin:6px 0}
 .in-room .table-bar:not(:has(.invite-box))>*{flex:1 1 auto;min-width:0;min-height:42px;padding:6px 8px;font-size:14px;white-space:nowrap}
 .in-room .bj-room .pk-status,.in-room .pk-room .pk-status{margin:2px 0}
}

/* A board made smaller to fit the screen keeps all its squares: the columns may shrink below the size of a piece, and the
   pieces follow the board's width. (Owner's iPad, landscape: the chess board was capped by the screen height, the 40px
   pieces held the columns wide, and the eighth column was cut off.) */
.chess-board{grid-template-columns:repeat(8,minmax(0,1fr));container-type:inline-size}
.chess-cell{overflow:hidden}
@supports (font-size:1cqw){.chess-cell{font-size:clamp(16px,9.3cqw,40px)}}
.tic-board{container-type:inline-size}
@supports (font-size:1cqw){.tic-cell{font-size:min(70px,21cqw)}}

/* A tablet or laptop held wide: the board on the left as large as the screen is high, the turn line and the buttons beside it.
   Stacked under each other, a wide and low screen left the board a third of the width and still pushed the buttons down. */
@media(min-width:900px) and (max-height:900px) and (orientation:landscape){
 .in-room #games>.panel:has(>:is(.chess-board,.checkers-board,.go-board,.rv-board,.cc-board,.tic-board,.memory-board,.board)){display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:28px;align-items:start;align-content:start}
 .in-room #games>.panel:has(>:is(.chess-board,.checkers-board,.go-board,.rv-board,.cc-board,.tic-board,.memory-board,.board))>*{grid-column:2;width:auto;text-align:left;justify-self:stretch}
 .in-room #games>.panel>:is(.chess-board,.checkers-board,.go-board,.rv-board,.tic-board){grid-column:1;grid-row:1/span 40;margin:0;width:min(50vw,calc(100vh - 175px));max-width:none}
 .in-room #games>.panel>.cc-board{grid-column:1;grid-row:1/span 40;margin:0;width:min(44vw,calc((100vh - 175px)/1.14));max-width:none}
 .in-room #games>.panel>.drops{grid-column:1;grid-row:1;margin:0;width:min(50vw,calc((100vh - 225px)/.87));max-width:none}
 .in-room #games>.panel>.board{grid-column:1;grid-row:2/span 39;margin:6px 0 0;width:min(50vw,calc((100vh - 225px)/.87));max-width:none}
 .in-room #games>.panel:has(>:is(.chess-board,.checkers-board,.go-board,.rv-board,.cc-board,.tic-board,.memory-board,.board))>button{justify-self:start}
 .in-room #games>.panel:has(>:is(.chess-board,.checkers-board,.go-board,.rv-board,.cc-board,.tic-board,.memory-board,.board))>.card-actions{margin-top:8px}
 .in-room #games>.panel>.memory-board{grid-column:1;grid-row:1/span 40;margin:0;width:min(46vw,calc((100vh - 175px)*4/3));max-width:none}
 .in-room #games>.panel.checkers-panel{max-width:none}
 .in-room #games>.panel.checkers-panel>:is(.held-line,.checkers-turn-cue,.checkers-last-move){margin:0 0 8px;min-height:0}
}
