*,*:before,*:after{box-sizing:border-box}html,body{width:100%;max-width:100vw;overflow-x:hidden;margin:0;padding:0}main{width:100%;max-width:100vw;box-sizing:border-box;overflow-x:hidden;margin:0 auto}.table,#self-bar{width:100%!important;max-width:100%!important;box-sizing:border-box!important}:root{--gold:#efd294;--quiet:#abb9b2;--table-a:#194a3d;--table-b:#0c2923;--accent:#d9b974;--pip-1:#244e9b;--pip-2:#178b70;--pip-3:#d47719;--pip-4:#bc3550;--pip-5:#188bbf;--pip-6:#cf9d13}
body{background:#0d1516;color:#f7f3e8}main{max-width:1000px;padding:16px 20px}header{margin-bottom:8px}header h1{font-size:24px}header small{letter-spacing:2px}header button{border-radius:50%;background:#ffffff09;width:40px;height:40px;padding:7px;min-height:40px}header #new{display:none}#lobby-open{font-size:25px}h3{font-size:13px;color:var(--gold);margin:22px 0 10px}button{transition:background .18s,border-color .18s,transform .18s}button:active:not(:disabled){transform:scale(.97)}.primary{background:linear-gradient(120deg,#f4deb0,#c8a261)!important;color:#251e15!important;border-color:#f2d59a!important;font-weight:700;min-height:52px}.wide{display:block;width:100%;margin-top:12px}.eyebrow{font:10px monospace;letter-spacing:2px;color:var(--gold)}dialog{background:linear-gradient(150deg,#22302e,#101c1b);border:1px solid #bba36a55;box-shadow:0 30px 100px #0009;color:#faf6ed;border-radius:24px;padding:28px;width:min(460px,94vw)}dialog::backdrop{background:#050b0de0;backdrop-filter:blur(8px)}dialog h2{font-size:24px;line-height:1.6}dialog p{color:#b8c4be;font-size:13px}dialog button{color:#f5eddb}dialog label{display:flex;justify-content:space-between;align-items:center;margin:18px 0}dialog select{background:#1c302a}
.matchsettings{padding-bottom:7px}.scoreboard .scorecard{background:#15221f;border-color:#ffffff0e;padding:6px 14px!important}.scoreboard strong{font-size:26px}#teamnote{margin:3px 0 8px;font-size:9px}.table{position:relative;border:1px solid #d7bc7c55;border-radius:24px;padding:12px 16px;background:radial-gradient(ellipse at 50% 30%,var(--table-a),var(--table-b));box-shadow:inset 0 0 80px #0003,0 14px 50px #0005;isolation:isolate}.table:before{content:'';position:absolute;inset:7px;border:1px solid #e7ca8120;border-radius:18px;pointer-events:none;z-index:-1}.seat{background:#0716135c;border:1px solid #ffffff12;padding:5px 9px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 8px;max-width:230px}.seatname{text-align:right}.seatname small{display:none}.seat>span{grid-column:1/-1;font-size:8px}.backs{gap:2px;margin:0;max-width:82px}.backs i{height:15px;width:7px;background:linear-gradient(120deg,#9a6b3e,#493320);border:1px solid #e4bc754d;box-shadow:0 1px 0 #251b16}.seat.partner{border-top-color:#6ac6a0}.status{font-size:11px;margin:5px auto;min-height:30px;padding:4px 8px;max-width:100%;background:#0002}.my-turn .status{color:#fce6ae}.boardtools{margin-top:0}.boardtools b{font-size:21px}.boardtools button{border-radius:50%;min-width:30px;min-height:30px;padding:2px 6px}.boardtools #fit{border-radius:12px}#arena{height:clamp(310px,45dvh,510px)}.handbar{padding-top:5px;margin-top:0;min-height:45px}#hand{background:transparent;padding:12px 0 6px;min-height:100px;gap:7px}.tile{width:49px;height:auto;aspect-ratio:46/88}.tile.playable:after{border-color:#f1d48e88}.tile.selected:after{border:1.5px solid #d4af37!important;box-shadow:none!important}.tile:disabled{opacity:.84;filter:drop-shadow(1px 3px 2px #0006)}.actions{margin-top:5px}.actions button{border:0;background:#ffffff08;min-height:34px;padding:5px 14px;border-radius:20px}#notice{font-size:9px;color:#8eaaa0;margin:7px}.dropzone{border-radius:50%;min-width:38px;min-height:38px;width:38px;height:38px;background:#efcf88;color:#26342c;border:2px solid #fff1c4;box-shadow:0 0 18px #f4d79966}.dropzone small{display:none}.dropzone span{font-size:23px}.placement-preview .preview-face{opacity:.5}.placement-preview>rect{stroke-dasharray:3 3;stroke-width:1.5}#choice,#choice[hidden]{height:34px;min-height:34px}#choices button{border-radius:20px}#cancel{border:0;color:#b7c7bc}
[data-table-theme=emerald]{--table-a:#194a3d;--table-b:#0c2923}[data-table-theme=walnut]{--table-a:#644630;--table-b:#281b18}[data-table-theme=royal]{--table-a:#42305f;--table-b:#1c162e}[data-table-theme=ocean]{--table-a:#244b65;--table-b:#0c2638}[data-table-theme=wine]{--table-a:#652a3b;--table-b:#2a121e}[data-table-theme=slate]{--table-a:#3a464b;--table-b:#192226}
[data-table-theme=walnut] .table{background:repeating-linear-gradient(92deg,#1f100b00 0px,#20100920 2px,#a7794f0c 5px,#1b100b20 11px,transparent 16px),radial-gradient(ellipse at top,var(--table-a),var(--table-b))}
[data-tile-theme=jewel],[data-theme=jewel]{--tile-filter:none;--pip-fill:#232927;--pip-shine:#fff5d9}[data-tile-theme=jewel] .pip-1,[data-theme=jewel] .pip-1{fill:var(--pip-1)}[data-tile-theme=jewel] .pip-2,[data-theme=jewel] .pip-2{fill:var(--pip-2)}[data-tile-theme=jewel] .pip-3,[data-theme=jewel] .pip-3{fill:var(--pip-3)}[data-tile-theme=jewel] .pip-4,[data-theme=jewel] .pip-4{fill:var(--pip-4)}[data-tile-theme=jewel] .pip-5,[data-theme=jewel] .pip-5{fill:var(--pip-5)}[data-tile-theme=jewel] .pip-6,[data-theme=jewel] .pip-6{fill:var(--pip-6)}[data-tile-theme=jewel] .pip-highlight,[data-theme=jewel] .pip-highlight{opacity:.22}
/* Each swatch describes itself, independent of the currently selected material. */
[data-theme]:not([data-theme=jewel]) .pip{fill:var(--pip-fill)}
#appearance{max-width:520px;width:94vw}.table-themes{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.table-themes button{padding:5px;border-radius:15px;overflow:hidden;text-align:center}.theme-sample{height:95px;display:grid;place-items:center;border-radius:10px;background:radial-gradient(ellipse,var(--table-a),var(--table-b));box-shadow:inset 0 0 0 1px #d8c39444;position:relative}.theme-sample:before{content:'';position:absolute;inset:6px;border:1px solid #e7ca8133;border-radius:6px}.theme-sample span{font-size:30px;color:#ddc38c88}.table-themes b{display:block;font-size:12px;margin:6px 0 0}.table-themes small{display:block;font-size:8px;color:#a9b7b0}.table-themes [aria-pressed=true],.swatches [aria-pressed=true]{outline:2px solid var(--gold);outline-offset:1px;background:#d3b97d15}.swatches{grid-template-columns:repeat(5,1fr);gap:6px}.swatches button{padding:8px 3px;font-size:9px;border-radius:12px}.swatches svg{width:37px;height:71px}.swatches [data-theme=jewel]{order:-1}
#lobby{text-align:center;max-width:500px;padding:24px 28px;background:radial-gradient(ellipse at 50% 20%,#2a4840,#0f1c1b 65%)}.lobby-top{display:flex;justify-content:space-between;align-items:center}.lobby-top button{border-radius:50%;width:38px;height:38px;min-height:38px;padding:0;font-size:25px}.hero-tiles{height:190px;display:flex;align-items:center;justify-content:center;direction:ltr;filter:drop-shadow(0 18px 16px #0006)}.hero-tiles svg{width:65px;height:125px;transform:rotate(-18deg) translate(9px,12px)}.hero-tiles svg:nth-child(2){width:75px;height:144px;transform:translateY(-5px);z-index:1}.hero-tiles svg:nth-child(3){transform:rotate(18deg) translate(-9px,12px)}#lobby h2{font-size:44px;margin:6px 0 0;color:#f7e5be}#lobby h2 span{display:block;font-size:13px;color:#c4d0c7;font-weight:400}.lobby-caption{font-size:10px!important;margin:14px 0 24px}.lobby-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.lobby-options button{background:#ffffff05;text-align:right;padding:14px 12px}.lobby-options b{display:block;font-size:13px}.lobby-options small{display:block;font-size:9px;color:#a6b9ae;margin-top:5px}.lobby-foot{font-size:9px!important;margin:24px 0 0}#learn{border:0;background:#ffffff05;text-align:right}#learn span{float:left}.lesson-tile{width:65px;margin:25px auto}.lesson-tile svg{width:100%;height:130px}#guide{text-align:center}#guide p{min-height:85px}#result{text-align:center}.result-mark{font-size:75px;color:#f0ca70;text-shadow:0 0 40px #eac55c77;line-height:1.5}#result h2{font-size:21px}#result-scores{display:flex;gap:10px}#result-scores>div{flex:1;min-width:0;padding:18px 8px;border-radius:16px;border:1px solid #dfc28540;background:#ffffff05;display:grid;gap:8px}#result-scores span{font-size:11px}#result-scores strong{font:38px Georgia;color:#f2d490}#result-scores small{font-size:9px;color:#9fb2a7}
@media(max-width:600px){main{padding:8px 10px}header{gap:5px;margin-bottom:5px}header h1{font-size:21px}header small{font-size:6px}header button,#sound,#palette{width:34px;height:34px;min-width:34px;min-height:34px;padding:7px}#help{padding:1px;font-size:20px}.matchsettings{font-size:9px;padding-bottom:5px}.matchsettings select{min-height:28px;font-size:9px}.scoreboard strong{font-size:23px}.scoreboard .scorecard span{font-size:9px}#teamnote{font-size:8px;margin-bottom:6px}.table{padding:9px 10px;border-radius:20px}#rivals{margin-bottom:3px}.seatname b{font-size:9px}.seat{padding:4px 6px;gap:2px 5px}.seat>span{font-size:7px}.backs i{width:6px;height:12px}.backs{max-width:65px}#arena{height:clamp(260px,40dvh,460px)}.status{font-size:9px;min-height:27px}.handbar{font-size:10px}#hand{gap:5px;min-height:92px;padding:12px 0 5px}.tile{width:clamp(32px,10.5vw,48px);height:auto}#draw{min-height:36px;padding:4px 9px;min-width:53px}.actions button{min-height:30px;font-size:10px}#notice{font-size:8px}dialog{padding:22px}#lobby{padding:20px;max-height:94dvh}.hero-tiles{height:165px}#lobby h2{font-size:38px}.lobby-caption{margin:12px 0 18px}.theme-sample{height:80px}}
@media(max-height:740px) and (max-width:600px){#arena{height:260px}.hero-tiles{height:120px}.hero-tiles svg{height:95px;width:50px}.hero-tiles svg:nth-child(2){height:115px;width:60px}.lobby-foot{margin-top:15px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
/* The bitmap body has fixed SVG-local dimensions; outer icon sizing must not resize it. */
svg>svg{width:40px!important;height:80px!important;transform:none!important}

/* AI-generated table artwork; the same asset is used on the table and its card. */
[data-table-theme=emerald]{--table-image:url("assets/tables/emerald.webp")}
[data-table-theme=walnut]{--table-image:url("assets/tables/walnut.webp")}
[data-table-theme=royal]{--table-image:url("assets/tables/royal.webp")}
[data-table-theme=ocean]{--table-image:url("assets/tables/ocean.webp")}
[data-table-theme=wine]{--table-image:url("assets/tables/wine.webp")}
[data-table-theme=slate]{--table-image:url("assets/tables/slate.webp")}
html[data-table-theme] .table{background-image:linear-gradient(#0000000d,#0000000d),var(--table-image);background-size:100% 100%;background-position:center;background-repeat:no-repeat}
.theme-sample{background-image:var(--table-image);background-size:100% 100%;height:125px}.theme-sample span,.theme-sample:before{display:none}.table:before{border-color:#e7ca8115}.placement-preview{display:none}
.table-themes button:hover:not([aria-pressed=true]),.swatches button:hover:not([aria-pressed=true]){outline:none;border-color:#ffffff35}.table-themes button:focus-visible,.swatches button:focus-visible{outline:2px dashed #fff;outline-offset:4px}
.theme-sample{height:100px}
.placement-preview{display:block;pointer-events:auto;cursor:pointer}.placement-preview .preview-face{opacity:.42}.placement-preview>rect{fill:#efd29410;stroke:#ffe5a0;stroke-width:1.5}.placement-preview.drop-hot .preview-face{opacity:.72}.dropzone{background:transparent;border:0;box-shadow:none;min-width:44px;min-height:44px}.dropzone span{opacity:0}.dropzone:hover,.dropzone.drop-hot{background:#ffdf8b20;box-shadow:none}.score-burst{position:absolute;z-index:8;pointer-events:none;left:50%;top:50%;transform:translate(-50%,-50%);border:2px solid #fff5be;border-radius:30px;background:#f5d56c;color:#2b2110;padding:5px 11px;font:bold 22px system-ui;box-shadow:0 4px 20px #0007;animation:scoreRise 1.6s ease-out both}.score-burst.jackpot{font-size:58px;padding:20px 32px;background:radial-gradient(#fff3ac,#e9b735);box-shadow:0 0 65px #ffd866aa;animation:scoreGrand 2.4s ease-out both}@keyframes scoreRise{0%{opacity:0;translate:0 8px;scale:.7}15%,65%{opacity:1;scale:1}100%{opacity:0;translate:0 -35px}}@keyframes scoreGrand{0%{opacity:0;scale:.5}15%{opacity:1;scale:1.12}30%,80%{opacity:1;scale:1}100%{opacity:0;scale:1.1}}@media(prefers-reduced-motion:reduce){.score-burst,.score-burst.jackpot{animation:none}}
/* Reference-inspired player bars and result summaries. */
#self-bar{display:flex;align-items:center;gap:9px;padding:8px 12px;border-radius:15px;background:#fffaf0;color:#282726;min-height:48px;border:2px solid transparent;margin-top:5px}#self-bar b{font-size:12px}#self-bar strong{margin-inline-start:auto;font:bold 24px system-ui}#self-bar small{font-size:9px;color:#82796a}.player-avatar{width:28px;height:28px;display:grid;place-items:center;background:#ebe5d6;color:#655a45;border-radius:50%;font-size:13px}.my-turn #self-bar{border-color:#ef5359;box-shadow:0 0 12px #ef53592b}.seat-score{font:bold 20px system-ui;color:white}.seat{grid-template-columns:auto 1fr auto}.seat>span{grid-column:1/-1}.backs i{background:linear-gradient(#f14d59,#b51b35);border-color:#fa6b75}.dropzone .preview-total{opacity:1;position:absolute;inset-inline-start:60%;bottom:65%;background:#ffe259;color:#241c07;border:2px solid #fff6c4;border-radius:20px;min-width:26px;height:24px;display:grid;place-items:center;font:bold 14px system-ui;padding:0 5px}.dropzone[data-total="0"] .preview-total{background:#e7dfc4}.just-placed{animation:tileSettle .22s ease-out;transform-box:fill-box;transform-origin:center}@keyframes tileSettle{from{opacity:.6;filter:brightness(1.25)}to{opacity:1;filter:brightness(1)}}
#result{background:linear-gradient(#21132aee,#140f20f5);max-width:620px;width:96vw;border:0}#result::backdrop{background:#16091bc7;backdrop-filter:blur(2px)}#result-title{color:#f2d15c}#result[data-outcome=loss] #result-title{color:#ff606f}#result-scores>div{background:#fffdf6;color:#252525;border:3px solid transparent;padding:17px 10px}#result-scores>div.round-winner{border-color:#ffe03c}#result-scores strong{color:#202020;font:bold 40px system-ui}.result-number{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}.round-gain{background:#69c83d;color:white;border-radius:20px;padding:2px 8px;font:bold 14px system-ui}.remaining-tiles{display:flex;justify-content:center;flex-wrap:wrap;gap:2px;min-height:40px;border-top:1px solid #e9e4da;padding-top:8px}.remaining-tiles>svg{width:18px;height:35px;filter:drop-shadow(0 2px 2px #0004)}#result-scores small{color:#706b60}#result-next{background:#ed3347!important;color:white!important;border:0;border-radius:25px}#result-scores progress::-webkit-progress-bar{background:#e9e5d8}#result-scores progress::-webkit-progress-value{background:#6dc83f}
@media(max-width:600px){body{background:#11201b}main{padding:8px;min-height:100dvh;display:flex;flex-direction:column;background-image:linear-gradient(#0004,#0002),var(--table-image);background-size:cover;background-position:center}header{background:#10141999;border-radius:22px;padding:5px 8px;margin-bottom:7px}header small{display:none}header h1{font-size:19px}.matchsettings,#scores,#teamnote,#notice{display:none}html[data-table-theme] .table{background:none;box-shadow:none;border:0;padding:0;display:flex;flex:1;flex-direction:column}.table:before{display:none}#rivals{order:0;flex:none}.seat{max-width:none;background:#292929e8;border-radius:12px}.seat.playing{border:2px solid #ef5359}.status{order:1;align-self:center;background:#18171ad9;padding:5px 14px;min-height:28px;font-size:10px}.boardtools{order:2;min-height:29px}.boardtools>span{background:#17171488;border-radius:15px;padding:2px 8px}.boardtools button{background:#17171488}.boardtools #fit{font-size:9px}#arena{order:3;flex:1;min-height:240px;height:auto}#choice{order:4;flex:none}.handbar{order:5;border:0;min-height:33px;padding:0}.handbar>strong{background:#17171488;padding:3px 8px;border-radius:12px}#hand{order:6;flex:none;min-height:90px;max-height:210px;overflow-y:auto;padding:10px 1px 3px;gap:5px}.tile{width:clamp(35px,11vw,52px)}#self-bar{order:7;flex:none}.actions{order:8;flex:none;margin-top:8px;margin-bottom:5px}.actions button{background:#fdf9f0;color:#332443;border-radius:22px;padding:5px 15px}.score-burst{font-size:18px}#result-scores strong{font-size:32px}#result-scores>div{padding:12px 7px}#result-scores span{font-size:10px}#result h2{font-size:20px}#result .result-mark{font-size:62px}}
@media(prefers-reduced-motion:reduce){.just-placed{animation:none}}
/* One consistent 24-unit icon system with touch-sized controls. */
.icon-control,header #sound,header #palette{display:inline-grid!important;place-items:center;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:10px!important;border-radius:50%!important;background:#14221dd9;border:1px solid #e7d7a52e;color:#f8edcf;flex:none}.icon-control svg,header #sound svg,header #palette svg{width:22px;height:22px;display:block;stroke-width:1.8}.icon-control:hover{background:#34483a!important;border-color:#dfc380}.boardtools>div{gap:6px}.boardtools{min-height:52px;padding:4px 0}.boardtools #fit{border-radius:50%}.stat-pill{display:inline-flex!important;align-items:center;gap:9px;border:1px solid #e5d0a233;border-radius:22px!important;padding:7px 12px!important;min-height:42px;background:#15221ce0!important;color:#f5e5b8!important;font-size:18px!important;font-weight:700}.stat-pill>svg{width:20px;height:24px;flex:none}.stat-pill #total{font:700 22px system-ui;padding:0}.stat-pill #mycount{font:700 18px system-ui;color:#f5e5b8}.seat{display:flex!important;align-items:center;gap:12px;min-height:55px;padding:8px 12px!important;background:#242a28ed!important}.opponent-identity{display:flex;gap:8px;align-items:center;min-width:0;flex:1}.opponent-identity>svg{width:26px;height:26px;color:#ddc18a;flex:none}.opponent-identity b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.opponent-count{display:flex;align-items:center;gap:5px;color:#c7d4ca;background:#ffffff09;padding:5px 8px;border-radius:12px}.opponent-count>svg{width:18px;height:22px}.opponent-count b{font:600 15px system-ui}.opponent-score{font:750 24px system-ui;color:#fff4d8;min-width:30px;text-align:center}.handbar{min-height:52px!important;margin-top:3px}#draw{border-radius:18px;min-height:44px;min-width:70px;padding:8px 12px;gap:9px}#draw>svg{width:25px;height:25px}#draw .stock-count{font:700 18px system-ui}#draw:disabled{opacity:.6}.actions .icon-control{background:#f7f0dc!important;color:#28362e;width:46px!important;height:46px!important}.actions{gap:14px}header{gap:6px}header h1{font-size:23px}.status{font-size:12px!important;line-height:1.6;padding:6px 12px!important}.stat-pill[aria-label]{cursor:default}
@media(max-width:600px){header{padding:4px 7px}.seat{gap:8px}.opponent-identity b{font-size:11px}.opponent-score{font-size:23px}.opponent-count{gap:4px;padding:4px 6px}#rivals[data-count="3"] .seat,#rivals[data-count="2"] .seat{flex-wrap:wrap;gap:5px;padding:7px!important}#rivals[data-count="3"] .opponent-identity,#rivals[data-count="2"] .opponent-identity{flex-basis:100%}#rivals[data-count="3"] .opponent-identity b{font-size:10px}#rivals[data-count="3"] .opponent-identity>svg{width:19px;height:19px}#rivals[data-count="3"] .opponent-score{font-size:19px;margin-inline-start:auto}#arena{min-height:210px}.actions{margin:5px 0}.boardtools{padding:2px 0}}
/* App HUD: tactile controls, clear player identity and real match progress. */
header{padding:10px 12px!important;border:1px solid #e5cc8d35;border-radius:20px;background:linear-gradient(140deg,#172c31f5,#0b171ced)!important;box-shadow:0 6px 18px #0004,inset 0 1px #ffffff0d;gap:8px}header h1{color:#f8e3ad;font-size:25px;letter-spacing:.3px;text-shadow:0 2px #0008}header h1:after{content:'DOMINO CLUB';display:block;font:600 8px system-ui;letter-spacing:2px;color:#9cafac;margin-top:3px}header small{display:none}
.icon-control,header #sound,header #palette{border-radius:14px!important;background:linear-gradient(145deg,#30454b,#15252c)!important;border:1px solid #8da7a34d!important;box-shadow:inset 0 1px 1px #ffffff20,0 3px 0 #07151b,0 5px 9px #0003;color:#f3e6c5}.icon-control:hover,header #sound:hover,header #palette:hover{border-color:#eacf8d!important;background:linear-gradient(145deg,#46615f,#243d40)!important}button:focus-visible{outline:3px solid #ffe2a0;outline-offset:3px}button:active:not(:disabled){translate:0 1px}
#rivals{gap:8px;margin-top:5px}.seat{position:relative;overflow:hidden;min-height:76px;padding:11px 12px 15px!important;border-radius:18px;border:1px solid #8ba5a44d!important;background:linear-gradient(120deg,#1e343cf5,#12232bf5)!important;box-shadow:0 5px 12px #0003,inset 0 1px #ffffff10;max-width:none;gap:10px}.seat.playing{border-color:#ebcc88!important;box-shadow:0 0 0 1px #ebcc8833,0 5px 15px #0004}.hud-avatar{width:40px;height:40px;flex:none;display:grid;place-items:center;background:linear-gradient(145deg,#537d7c,#254b54);border:1px solid #c9dcc077;border-radius:13px;box-shadow:inset 0 1px #ffffff35,0 3px 5px #0004;overflow:hidden}.hud-avatar svg{width:25px;height:25px;color:#ffedbd}.hud-avatar .hud-avatar-img{width:100%;height:100%;object-fit:cover;border-radius:12px}.hud-avatar .hud-avatar-initial{font-size:18px;font-weight:bold;color:#ffedbd}.opponent-identity{gap:9px}.opponent-identity>div{min-width:0}.opponent-identity b{display:block;font-size:12px}.opponent-identity small{display:block;font-size:9px;color:#a3bfbb;margin-top:3px}.seat.playing .opponent-identity small{color:#efd28a}.opponent-count{border:1px solid #c0d7ce22;background:#08171d66;border-radius:10px;padding:6px;color:#c8ddd4}.hud-score{text-align:center;display:grid;gap:1px;flex:none}.opponent-score{font:bold 27px system-ui;color:#ffe7ac;line-height:1.1}.hud-score small{font:10px system-ui;color:#a1b7b9;direction:ltr}.hud-progress{appearance:none;position:absolute;bottom:0;left:0;width:100%;height:3px;border:0;background:#08171d}.hud-progress::-webkit-progress-bar{background:#08171d}.hud-progress::-webkit-progress-value{background:linear-gradient(90deg,#729b84,#efd591)}.hud-progress::-moz-progress-bar{background:#efd591}
.boardtools{margin-top:6px;gap:8px}.boardtools>div{background:#0c1e25cf;border:1px solid #8da7a333;border-radius:17px;padding:3px;gap:3px}.boardtools .icon-control{box-shadow:none;border-color:transparent!important;background:transparent!important}.boardtools #fit{background:#45666666!important}.stat-pill{border-radius:16px!important;background:linear-gradient(120deg,#1b343bef,#0b2028ef)!important;box-shadow:inset 0 1px #ffffff15,0 3px 8px #0003;gap:7px;display:grid!important;grid-template-columns:22px auto;column-gap:8px;padding:7px 11px!important;min-height:48px}.stat-pill>svg{grid-row:1/3;color:#d9bd7a}.stat-pill>small{font-size:9px;line-height:1.3;font-weight:400;color:#b2c8c1}.stat-pill #total,.stat-pill #mycount{font:bold 22px system-ui;line-height:1;color:#ffe3a1}.status{background:#0b1c22d9;border:1px solid #a9c4a71a;border-radius:30px;color:#dfd4b2;box-shadow:0 2px 5px #0002;font-size:11px!important;margin:8px auto}
#draw{background:linear-gradient(145deg,#f5dc9a,#b9914c);color:#223035;border:1px solid #fff0bf;border-radius:16px;box-shadow:inset 0 1px #ffffff70,0 3px 0 #6f552c,0 5px 12px #0004;min-height:48px;min-width:77px}#draw:disabled{background:linear-gradient(145deg,#30444a,#1a2d32);color:#a8bcb5;border-color:#8da7a333;box-shadow:inset 0 1px #ffffff12;opacity:.75}.handbar{margin-top:8px}#self-bar{background:linear-gradient(110deg,#eee7d3,#fffaf0);border-radius:17px;padding:9px 13px;box-shadow:0 4px 12px #0004;min-height:56px}#self-bar .player-avatar{width:34px;height:34px;border-radius:11px;background:linear-gradient(145deg,#3a6965,#1b4148);color:#ffe4a8;border:1px solid #bca471;font-weight:700}.my-turn #self-bar{border-color:#e5be67;box-shadow:0 0 0 2px #ebd19020,0 5px 15px #0004}.actions{padding:5px;gap:12px}.actions .icon-control{background:linear-gradient(145deg,#344f53,#162d35)!important;color:#f6df9f;border-radius:15px!important}
@media(max-width:600px){main{padding:9px;gap:0}header{padding:7px 9px!important}header h1{font-size:22px}.seat{min-height:72px}.boardtools{min-height:56px}#rivals[data-count="3"] .seat,#rivals[data-count="2"] .seat{padding:8px 7px 12px!important;gap:6px}#rivals[data-count="3"] .hud-avatar,#rivals[data-count="2"] .hud-avatar{width:29px;height:29px;border-radius:9px}#rivals[data-count="3"] .hud-avatar svg{width:20px;height:20px}#rivals[data-count="3"] .opponent-identity{gap:4px}#rivals[data-count="3"] .opponent-identity small{font-size:8px}#rivals[data-count="3"] .hud-score,#rivals[data-count="2"] .hud-score{margin-inline-start:auto}#rivals[data-count="3"] .opponent-score{font-size:22px}#rivals[data-count="3"] .opponent-count{padding:4px}#arena{min-height:210px}}
@media(max-width:360px){header{gap:4px}header h1{font-size:19px}header .icon-control,header #sound,header #palette{width:40px!important;min-width:40px!important;padding:8px!important}.opponent-identity b{font-size:10px}.hud-avatar{width:34px;height:34px}.seat{gap:7px}}
/* A dedicated pre-game material gallery. */
#appearance{width:min(620px,96vw);max-width:620px;max-height:94dvh;padding:24px;background:radial-gradient(ellipse at top right,#2b454b,#101e29 65%);border-radius:26px;overflow-y:auto}#appearance [hidden]{display:none!important}.studio-heading h2{font-size:24px;margin:9px 0 0}.studio-heading p{font-size:11px;margin:7px 0 18px}.studio-preview{height:175px;border-radius:18px;border:1px solid #e0c88c66;background-image:linear-gradient(#0002,#0002),var(--table-image);background-size:cover;background-position:center;display:grid;place-items:center;position:relative;overflow:hidden;box-shadow:inset 0 0 35px #0008,0 8px 20px #0003}.studio-preview>div{display:flex;direction:ltr;align-items:center;filter:drop-shadow(0 8px 5px #0007)}.studio-preview>div>svg{width:45px;height:86px;transform:rotate(90deg);margin:0 18px}.studio-preview>div>svg:nth-child(2){transform:none;margin:0}.studio-preview>span{position:absolute;bottom:9px;font-size:9px;background:#081921cc;padding:3px 12px;border-radius:20px;color:#eed9a5}.studio-tabs{display:flex;padding:5px;gap:5px;border:1px solid #ffffff14;background:#07151e99;border-radius:15px;margin:20px 0 15px}.studio-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:11px;min-height:45px;background:transparent;color:#a8c1c2;font-size:13px}.studio-tabs svg{width:20px;height:20px}.studio-tabs [aria-selected=true]{background:linear-gradient(120deg,#f4dfac,#cba665);color:#263338;box-shadow:0 3px 10px #0004;font-weight:bold}#appearance .table-themes{gap:12px}#appearance .theme-sample{height:145px}#appearance .table-themes button,#appearance .swatches button{background:#07172188;border:1px solid #91b4b52b;border-radius:16px;padding:7px 7px 12px}#appearance .table-themes b{font-size:12px;margin-top:9px}#appearance .table-themes small{font-size:9px}#appearance .swatches{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}#appearance .swatches button{display:flex;align-items:center;flex-direction:column;gap:12px;min-height:175px;justify-content:center;font-size:12px}#appearance .swatches button>svg{width:49px;height:94px;filter:drop-shadow(0 5px 5px #0005)}#appearance [aria-pressed=true]{border-color:#f0d493!important;background:#53655644!important;outline:2px solid #e6c781;outline-offset:1px}#appearance-close{width:100%;position:sticky;bottom:0;margin-top:20px;border-radius:16px;box-shadow:0 -8px 18px #101e2988}.setup-style{display:flex;justify-content:center;align-items:center;gap:8px}.setup-style svg{width:22px;height:22px}#lobby .lobby-options{display:flex;flex-direction:column;gap:12px}#lobby .lobby-options button{display:flex;align-items:center;gap:15px;padding:15px;border:1px solid #9db4b733;background:linear-gradient(120deg,#2d464bcc,#162b32cc);border-radius:18px;text-align:right}#lobby-new>svg{width:34px;height:34px;color:#ecd194}#lobby-style>div{flex:1}.lobby-style-art{width:61px;height:65px;display:grid;place-items:center;background-image:var(--table-image);background-size:cover;border:1px solid #d3b87d66;border-radius:12px}.lobby-style-art>svg{width:26px;height:50px;transform:rotate(-12deg)}#lobby .hero-tiles{height:135px}#lobby .hero-tiles>svg{height:100px;width:52px}#lobby .hero-tiles>svg:nth-child(2){height:120px;width:62px}#lobby{background:radial-gradient(ellipse at top,#29434d,#0d1a27 70%)}#lobby-new b{color:#f5dfad}#lobby .lobby-caption{margin:12px 0 16px}.lobby-foot{margin-top:16px}
@media(max-width:420px){#appearance{padding:18px 14px}.studio-heading h2{font-size:21px}#appearance .theme-sample{height:115px}#appearance .table-themes{gap:8px}#appearance .table-themes small{font-size:8px}.studio-preview{height:150px}}
#appearance>.eyebrow{display:none}
/* A full-height mobile game surface, separate from the pre-match lobby. */
.mobile-game header #palette,.mobile-game header>[hidden],.mobile-game .matchsettings,.mobile-game #scores,.mobile-game #teamnote,.mobile-game #notice{display:none!important}
.mobile-game main{width:100%;max-width:540px;height:100dvh;max-height:100dvh;min-height:100dvh;margin:auto;padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;touch-action:manipulation}
.mobile-game{margin:0;background:#0a0512;overscroll-behavior:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.mobile-game header{flex:none;position:relative;background:transparent!important;border:0;padding:0!important;box-shadow:none;margin:0 0 5px;display:flex;gap:7px;align-items:center;min-height:40px}
.mobile-game header #sound{order:2;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-radius:50%!important}
.mobile-game header #lobby-open{order:0;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-radius:50%!important}
.mobile-game header .status{order:1;flex:1;min-width:0;margin:0;max-width:none;min-height:38px;display:grid;place-items:center;background:linear-gradient(120deg,#2b193fec,#171026f5);border:1px solid #d4af3744;border-radius:20px;font-size:11px!important;line-height:1.4;padding:4px 12px!important;color:#fcebca}
.mobile-game.my-turn header .status{background:linear-gradient(120deg,#6b299e,#37135c);border-color:#ffd70088;color:#fff;box-shadow:0 0 12px rgba(255,215,0,0.3)}
.mobile-game .table{flex:1;min-height:0;display:flex;flex-direction:column;border:5px solid #4a3424!important;border-radius:22px!important;box-shadow:0 2px 0 #c49c60,inset 0 0 0 1px #c39b5b66,inset 0 0 45px rgba(0,0,0,0.55),0 8px 24px rgba(0,0,0,0.45)!important;background:radial-gradient(ellipse at 50% 35%,var(--table-a,#194a3d),var(--table-b,#0c2923))!important;background-image:radial-gradient(ellipse at 50% 35%,rgba(0,0,0,0.1),rgba(0,0,0,0.45)),var(--table-image)!important;background-size:cover!important;background-position:center!important;padding:6px 8px 5px!important;position:relative;overflow:hidden;gap:2px}
.mobile-game .table:before{display:none}
.mobile-game #rivals{order:0;flex:none;margin:0 0 2px;width:100%}
.mobile-game #rivals[data-count="2"],.mobile-game #rivals[data-count="3"]{display:flex!important;flex-direction:row!important;gap:5px!important;width:100%!important}
.mobile-game #rivals[data-count="2"] .seat,.mobile-game #rivals[data-count="3"] .seat{flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important}
.mobile-game .seat{width:100%!important;max-width:100%!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;overflow:hidden!important;gap:6px!important;min-height:48px!important;padding:5px 8px!important;border-radius:14px!important;background:linear-gradient(120deg,rgba(30,19,46,0.92),rgba(17,11,28,0.96))!important;border:1px solid rgba(212,175,55,0.35)!important;box-shadow:0 3px 10px rgba(0,0,0,0.4),inset 0 1px rgba(255,255,255,0.12)!important}
.mobile-game .opponent-identity{min-width:0!important;flex:1 1 auto!important;display:flex!important;align-items:center!important;gap:6px!important;overflow:hidden!important}
.mobile-game .opponent-identity b{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.mobile-game .seat.playing{border-color:#ffd700!important;box-shadow:0 0 14px rgba(255,215,0,0.45),inset 0 1px rgba(255,255,255,0.25)!important}
.mobile-game .boardtools{order:1;flex:none;margin:1px 0;padding:0;min-height:36px!important;display:flex;justify-content:space-between;align-items:center}
.mobile-game .boardtools .stat-pill{min-height:34px!important;padding:3px 10px!important;font-size:14px!important;border-radius:14px!important;background:rgba(20,12,32,0.85)!important;border:1px solid #d4af3744}
.mobile-game .boardtools .stat-pill small{display:none}
.mobile-game .boardtools .stat-pill>svg{grid-row:auto;width:18px;height:18px}
.mobile-game .boardtools>div{padding:0;background:rgba(18,10,30,0.75);border-radius:18px;border:1px solid rgba(212,175,55,0.25)}
.mobile-game .boardtools .icon-control{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:5px!important;touch-action:manipulation}
.mobile-game #arena{order:2;flex:1;min-height:130px;height:auto;width:100%;position:relative;overflow:hidden;touch-action:none;border-radius:12px}
.mobile-game #choice{order:3;flex:none;margin:2px 0;padding:2px 4px;min-height:30px;display:flex;align-items:center;justify-content:center;background:transparent;border:0}
.mobile-game #choice[hidden]{display:none!important}
.mobile-game #choice strong{display:none}
.mobile-game #choices{margin:2px;display:flex;gap:5px}
.mobile-game #choices button{min-height:30px;padding:3px 10px;font-size:10px;font-weight:700;border-radius:14px;touch-action:manipulation}
.mobile-game #cancel{min-height:28px;padding:2px 8px;font-size:10px}
.mobile-game .handbar{order:4;flex:none;margin:4px 0 10px!important;min-height:40px!important;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:6}
.mobile-game .handbar .stat-pill{min-height:34px;padding:3px 9px!important;border-radius:14px}
.mobile-game .handbar .stat-pill small{display:none}
.mobile-game #hand{order:5;flex:none;min-height:96px!important;max-height:108px!important;width:100%!important;box-sizing:border-box!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:flex-end!important;justify-content:safe center!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:4px 0 4px!important;padding:16px 6px 4px!important;gap:6px!important;background:rgba(14,8,24,0.55)!important;border:1px solid rgba(212,175,55,0.22)!important;border-radius:14px!important;position:relative;z-index:4;touch-action:pan-x}
.mobile-game #hand::-webkit-scrollbar{display:none}
.mobile-game .tile{width:clamp(38px,11vw,47px)!important;height:auto!important;aspect-ratio:46/88!important;flex-shrink:0!important;transition:transform .16s cubic-bezier(0.2,0.8,0.2,1),filter .16s,box-shadow .16s!important;touch-action:pan-x!important}
.mobile-game .tile.playable{border:0!important;outline:0!important;box-shadow:none!important}
.mobile-game .tile.playable:after{content:''!important;position:absolute!important;inset:0!important;border:1.5px solid #ffd700!important;border-radius:7px!important;box-shadow:none!important;pointer-events:none!important}
.mobile-game .tile.selected{transform:translateY(-9px)!important;border:0!important;outline:0!important;box-shadow:none!important;filter:drop-shadow(0 10px 8px rgba(0,0,0,0.45)) drop-shadow(0 3px 2px rgba(0,0,0,0.25))!important;z-index:5!important}
.mobile-game .tile.selected:after{border:1.5px solid #ffd700!important;border-radius:7px!important;box-shadow:none!important}
.mobile-game .tile:disabled{opacity:0.6!important;filter:brightness(0.8) grayscale(25%)!important}
.mobile-game #self-bar{order:6;flex:none;min-height:46px!important;margin:4px 0 0!important;padding:5px 12px!important;border-radius:14px!important;background:linear-gradient(115deg,#fff7e4,#e8d9ba)!important;border:2px solid #d4af37!important;box-shadow:0 4px 14px rgba(0,0,0,0.45)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;position:relative;z-index:5}
.mobile-game.my-turn #self-bar{border-color:#ffd700!important;box-shadow:0 0 0 2px rgba(255,215,0,0.35),0 4px 18px rgba(255,215,0,0.25)!important}
.mobile-game .actions{order:7;flex:none;margin:0;padding:0;gap:8px;display:flex}
.mobile-game .actions .icon-control{width:36px!important;height:36px!important;min-height:36px!important;min-width:36px!important;padding:6px!important;border-radius:50%!important;touch-action:manipulation}
.mobile-game .hud-avatar{width:32px;height:32px}
.mobile-game #empty{font-size:26px}
.mobile-game #empty span{font-size:16px}
.lobby-top #help{width:38px;height:38px;min-height:38px;padding:7px;border-radius:50%}
.lobby-top #help svg{width:22px;height:22px}
#draw{height:38px!important;min-height:38px!important;max-height:38px!important;box-sizing:border-box!important;border-radius:19px!important;margin:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;padding:4px 14px!important;font-size:13px!important;font-weight:700!important;touch-action:manipulation}
#draw.draw-mode{background:linear-gradient(135deg,#f7dda1,#b68d49)!important;color:#241904!important;border:1.5px solid #fff2cb!important;box-shadow:0 2px 0 #6e501e,0 4px 10px rgba(0,0,0,0.3)!important}
#draw.draw-mode:hover{filter:brightness(1.08)}
#draw.draw-mode svg{width:18px!important;height:18px!important}
#draw.draw-mode .stock-count{font:bold 13px system-ui;color:#3b2505}
#draw.pass-mode{background:linear-gradient(135deg,#e39b36,#bc6b16)!important;color:#fff!important;border:1.5px solid #ffe19f!important;box-shadow:0 2px 0 #6b3506,0 4px 12px rgba(227,155,54,0.4)!important;font-weight:800;letter-spacing:.5px}
#draw.pass-mode svg{width:18px!important;height:18px!important;stroke-width:2.2}
#draw.pass-mode .pass-label{font-size:14px;font-weight:800}
#draw.pass-mode:hover{filter:brightness(1.1);transform:scale(1.02)}
#draw:disabled{opacity:.45!important;filter:grayscale(40%)!important;cursor:not-allowed;box-shadow:none!important}
@keyframes passBtnPulse{0%{box-shadow:0 0 12px #e39b3644,0 3px 0 #6b3506}100%{box-shadow:0 0 24px #e39b36aa,0 3px 0 #6b3506,0 0 0 3px #ffe19f44}}
@media(max-height:650px){.mobile-game .seat{min-height:52px}.mobile-game #hand{max-height:23dvh}.mobile-game .tile{width:35px}.mobile-game .hud-avatar{width:28px;height:28px}.mobile-game .opponent-identity small{display:none}.mobile-game #self-bar{min-height:42px}}
.mobile-game #rivals[data-count="3"] .seat,.mobile-game #rivals[data-count="2"] .seat{flex-wrap:wrap;gap:5px}.mobile-game #rivals[data-count="3"] .opponent-identity,.mobile-game #rivals[data-count="2"] .opponent-identity{flex-basis:100%;gap:5px}.mobile-game #rivals[data-count="3"] .opponent-identity small,.mobile-game #rivals[data-count="2"] .opponent-identity small{display:none}.mobile-game #rivals[data-count="3"] .hud-avatar,.mobile-game #rivals[data-count="2"] .hud-avatar{width:26px;height:26px}.mobile-game #rivals[data-count="3"] .hud-avatar svg,.mobile-game #rivals[data-count="2"] .hud-avatar svg{width:19px;height:19px}.mobile-game #rivals[data-count="3"] .opponent-identity b{font-size:10px}.mobile-game #rivals[data-count="3"] .hud-score,.mobile-game #rivals[data-count="2"] .hud-score{margin-inline-start:auto;display:flex;align-items:baseline;gap:3px}.mobile-game #rivals[data-count="3"] .opponent-score{font-size:20px}.mobile-game #rivals[data-count="3"] .opponent-count{padding:2px 5px}
