/* One compact disclosure, anchored immediately below the bag. */
.board-area{position:relative}.support-dock{position:absolute;right:10px;top:49px;z-index:12}.support-dock>.support-trigger{width:42px;height:42px;min-height:42px;display:grid;place-items:center;padding:9px;border:1px solid #bf91e855;border-radius:14px;background:linear-gradient(145deg,#8956b8,#513571);box-shadow:inset 0 1px 0 #ffffff2b,0 3px 10px #150b2330;color:#f8dfa3}.support-dock>.support-trigger .icon{width:24px;height:24px;transition:transform .25s}.support-dock>.support-trigger[aria-expanded=true] .icon{transform:rotate(-22deg)}.support-dock>.support-trigger[aria-expanded=true]{background:#8a56b7;border-color:#d5a7fc}.supports-menu{position:absolute;right:0;top:49px;width:218px;padding:6px;border-radius:18px;background:#2d2040f5;border:1px solid #ab7dc36b;box-shadow:0 10px 32px #10071e6b;backdrop-filter:blur(16px);transform-origin:top right;animation:boost-reveal .18s ease-out}.support-item{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:11px 9px;min-height:57px;border:0;border-radius:12px;background:transparent;color:#fff6ff;font:inherit;cursor:pointer}.support-item:hover,.support-item:focus-visible{background:#b177e228;outline:1px solid #b687da55}.support-item>.icon{width:27px;height:27px;color:#e9b873;flex:none}.support-item:nth-child(2)>.icon{color:#ffe39c}.support-item:nth-child(3)>.icon{color:#99e4dc}.support-item>span:nth-child(2){flex:1}.support-item b{display:block;font-weight:800;font-size:14px}.support-item small{display:block;font-size:10px;color:#c8b6d8;margin-top:3px}.support-item>strong{font-size:14px;color:#ddb1fa}.support-item:disabled{opacity:.4;cursor:default}.support-shop{width:100%;display:flex;gap:7px;align-items:center;justify-content:center;color:#dec1f7;background:#b47cda16;border:0;border-radius:10px;padding:8px;font:750 11px var(--font,Nunito,sans-serif);cursor:pointer}.support-shop .icon{width:16px;height:16px}#supportStatus{font-size:10px;line-height:1.4;margin:4px 7px;color:#d6c0e4}#supportStatus:empty{display:none}.chat-open .support-dock{display:none}.support-dock>.hidden{display:none!important}
@keyframes boost-reveal{from{opacity:0;transform:translateY(-6px) scale(.92)}to{opacity:1;transform:none}}
/* Both turn-consuming choices have equal visual weight. */
body .minor-actions{display:grid!important;grid-template-columns:32px 32px minmax(0,1fr) minmax(0,1fr);gap:5px!important;align-items:stretch}body .minor-actions #pass,body .minor-actions #exchange{display:flex!important;width:auto!important;min-width:0!important;min-height:34px!important;height:34px;flex:initial!important;margin:0!important;padding:5px 5px!important;gap:4px!important;font:800 10px/1.05 var(--font,Nunito,sans-serif)!important;border:1px solid #a987be55!important;border-bottom:2px solid #6c4d8655!important;border-radius:10px!important;background:#9c75b71c!important;color:var(--ink)!important;white-space:normal!important;text-align:center;justify-content:center}body .minor-actions #pass .icon,body .minor-actions #exchange .icon{width:17px!important;height:17px!important;flex:none}body .minor-actions #pass>span,body .minor-actions #exchange>span{display:inline!important;font-size:10px!important}body .minor-actions #undo,body .minor-actions #shuffle{width:32px!important;min-width:32px!important;margin:0!important;height:34px!important}body .minor-actions #hint{display:none!important}body[data-theme=night] .minor-actions #pass,body[data-theme=night] .minor-actions #exchange{color:#eadcf7!important;background:#9766bf27!important;border-color:#a075be55!important}.minor-actions button:disabled{opacity:.35!important}#languageSelect{border-radius:12px;border:1px solid #9d79b755;padding:10px;background:var(--surface);color:var(--ink);font:750 14px var(--font,Nunito,sans-serif)}
/* The six brand tiles use the rack's proportions, shape size and quiet white face. */
body:is([data-view=home],[data-view=hub]) .home-story{position:relative!important;inset:auto!important;display:block!important;width:100%!important;padding:0!important;margin:0!important;height:auto!important;order:-3}body:is([data-view=home],[data-view=hub]) .brand-tiles{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px!important;width:min(100%,330px)!important;margin:auto!important;transform:none!important}body:is([data-view=home],[data-view=hub]) .brand-tiles .tile{width:100%!important;height:auto!important;aspect-ratio:1;min-width:0;min-height:0;transform:none!important;border-radius:10px!important;background:#fffdf8!important;border:1px solid #e5e0ed!important;border-bottom:3px solid #d4ccdf!important;opacity:1!important}body:is([data-view=home],[data-view=hub]) .brand-tiles .tile .tile-face{inset:4px!important}
.my-table-card{order:-2;width:100%;padding:15px 16px 4px;border:1px solid #946cbe44;border-radius:25px;background:radial-gradient(ellipse at 50% 70%,#6b42893b,transparent 72%),linear-gradient(145deg,#30213e,#20172e);overflow:hidden}.my-table-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.my-table-heading h2{font-size:17px;margin:0;color:#f5e7ff}.my-table-heading button{font-size:11px;color:#d7aff6;min-height:30px;padding:4px 8px}.table-stage{position:relative;width:100%;aspect-ratio:1.5;isolation:isolate;max-width:620px;margin:auto}.table-model{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.table-player{position:absolute;width:25%;aspect-ratio:.8;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;transform:translate(-50%,-50%)}.table-seat-0{left:50%;top:20%;z-index:0}.table-seat-1{left:15%;top:51%;z-index:2}.table-seat-2{left:85%;top:51%;z-index:2}.table-seat-3{left:50%;top:80%;z-index:3}.table-model{z-index:1}.table-character{position:relative!important;width:100%!important;height:auto!important;aspect-ratio:1;min-height:0!important;min-width:0!important;padding:0!important;border:0!important;background:none!important;cursor:pointer}.table-player-name{max-width:120%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eee2fa;background:#20152dca;border:1px solid #9b74bb33;padding:2px 7px;border-radius:8px;font:750 10px/14px Nunito,system-ui,sans-serif;z-index:2;margin-top:-9px}.empty-table-seat{width:26px;height:26px;display:grid;place-items:center;border:1px dashed #d9b6ef48;border-radius:50%;color:#e3c2f280;font-size:18px;margin-bottom:16px;background:#32213c77}.lobby-card .table-stage{max-width:440px;margin-top:-10px}.home-character .home-portrait{width:90px!important;height:90px!important}.profile-banner{min-height:116px!important}.player-strip .illustrated-avatar{width:53px!important;height:53px!important;flex:0 0 53px!important}.player-card{min-height:64px!important}.player-name{font-size:13px!important}.player-sub{font-size:10px!important}.player-score{font-size:22px!important}.player-strip{gap:6px!important}.player-card .avatar{margin-left:-3px}.player-strip:has(.player-card:nth-child(3)) .illustrated-avatar{width:43px!important;height:43px!important;flex-basis:43px!important}.player-strip:has(.player-card:nth-child(3)) .player-card{gap:3px!important}.player-strip:has(.player-card:nth-child(3)) .player-name{font-size:11px!important}.player-strip:has(.player-card:nth-child(3)) .player-score{font-size:17px!important}.player-strip:has(.player-card:nth-child(3)) .player-sub{font-size:9px!important}
@media(max-width:360px){body .minor-actions{grid-template-columns:27px 27px minmax(0,1fr) minmax(0,1fr);gap:3px!important}body .minor-actions #undo,body .minor-actions #shuffle{width:27px!important;min-width:27px!important}body .minor-actions #pass,body .minor-actions #exchange{font-size:9px!important;padding:4px 3px!important;gap:3px!important}body .minor-actions #pass>span,body .minor-actions #exchange>span{font-size:9px!important}.support-dock{right:8px}.my-table-card{padding:12px 10px 2px}.player-strip .illustrated-avatar{width:45px!important;height:45px!important;flex-basis:45px!important}}
@media(prefers-reduced-motion:reduce){.supports-menu{animation:none}.support-trigger .icon{transition:none}}body[data-motion=reduced] .supports-menu{animation:none}

/* High resolution expression sheets. Alpha floor removes near-transparent export dust. */
.alpha-filter{position:absolute;pointer-events:none;overflow:hidden}.character-art{background-size:200% 200%!important;background-position:0% 0%;filter:url(#character-alpha) hue-rotate(var(--avatar-hue)) saturate(var(--avatar-sat));transform-origin:50% 82%;contain:paint}.character-art[data-emotion=celebrate]{filter:url(#character-alpha) hue-rotate(var(--avatar-hue)) saturate(var(--avatar-sat)) drop-shadow(0 0 6px #e9ad6438)}.home-character .character-art,.table-character .character-art{animation:character-breathe 4.5s ease-in-out infinite}.table-seat-1 .character-art{animation-delay:-1.2s}.table-seat-2 .character-art{animation-delay:-2.4s}.table-seat-0 .character-art{animation-delay:-3.6s}.character-art[data-emotion]{animation:none!important}.character-stage{--portrait-size:clamp(190px,27dvh,250px);margin-top:-2px}.avatar-dialog .avatar-option{--choice-size:clamp(60px,10dvh,86px);background:transparent!important}.avatar-dialog{background:radial-gradient(ellipse at 50% 20%,#51356c,#251b36 70%)!important}.avatar-character-name{font-size:20px!important;margin-top:-2px!important;margin-bottom:10px!important}.expression-preview{display:flex;justify-content:center;gap:6px;margin-bottom:13px}.expression-preview button{border:1px solid #b58bce44;border-radius:9px;padding:7px 10px;font:750 10px Nunito,system-ui,sans-serif;color:#d8c2e8;background:#9f70c11c;cursor:pointer}.expression-preview button:nth-child(2){color:#ffe0a2}.winner-portrait{width:190px;height:190px;margin:-12px auto -6px}.winner-portrait>.illustrated-avatar{width:100%!important;height:100%!important}.winner-portrait .character-art{filter:url(#character-alpha) hue-rotate(var(--avatar-hue)) saturate(var(--avatar-sat)) drop-shadow(0 7px 14px #d397ff30)}
@keyframes character-breathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-2px) scale(1.012,.995)}}
@media(max-height:740px){.character-stage{--portrait-size:164px}.avatar-dialog .avatar-option{--choice-size:54px}.expression-preview{margin-bottom:8px}.avatar-character-name{margin-bottom:7px!important}.avatar-dialog .avatar-colors{margin:11px 0 14px!important}}@media(max-height:620px){.character-stage{--portrait-size:122px}.avatar-dialog .avatar-option{--choice-size:44px}.avatar-dialog{padding:14px!important}.expression-preview button{padding:5px 8px}.avatar-dialog .avatar-colors{margin:10px 0!important}}
@media(min-width:600px) and (max-height:500px){.avatar-dialog[open]{grid-template-columns:200px minmax(0,1fr)}.avatar-dialog .character-stage{grid-row:2/6;--portrait-size:190px}.avatar-dialog .avatar-character-name{grid-row:6}.avatar-dialog .expression-preview{grid-column:2;grid-row:4;margin:0}.avatar-dialog .avatar-save{grid-row:6}}
@media(prefers-reduced-motion:reduce){.character-art{animation:none!important}}body[data-motion=reduced] .character-art{animation:none!important}

body .minor-actions #pass>span,body .minor-actions #exchange>span{position:static!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;overflow:visible!important;white-space:normal!important;padding:0!important;margin:0!important}
.supports-menu{width:188px;padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none}.support-item{min-height:48px;margin-bottom:5px;padding:8px 10px;background:#30223ff5;border:1px solid #ac7ed160;box-shadow:0 3px 12px #10051c44;border-radius:14px}.support-item>.icon{width:24px;height:24px}.support-item b{font-size:12px}.support-item small{font-size:9px;margin-top:2px}.support-shop{width:max-content;margin-left:auto;padding:7px 12px;background:#3e2a53f5;border:1px solid #9e70ba55}.supports-menu #supportStatus:not(:empty){background:#32223fee;padding:6px 8px;margin:3px 0;border-radius:10px}

.character-2{--portrait-scale:1.15}.character-art{transform:scale(var(--portrait-scale,1))}.table-stage{margin-top:8px;margin-bottom:5px}.table-model{filter:url(#character-alpha)}.table-seat-0{top:17%;z-index:2}.table-seat-1{left:16%;top:54%}.table-seat-2{left:84%;top:54%}.table-seat-3{top:77%}.table-player{width:26%;aspect-ratio:.95}.table-player-name{font-size:9px;line-height:13px;margin-top:-5px}.empty-table-seat{margin-bottom:24px}.my-table-card{padding-bottom:8px}
@keyframes character-breathe{0%,100%{transform:translateY(0) scale(var(--portrait-scale,1))}50%{transform:translateY(-2px) scale(var(--portrait-scale,1)) scale(1.012,.995)}}

.table-model{z-index:0}.table-foreground{z-index:2;clip-path:inset(23% 0 0 0)}.table-seat-0{top:15%;z-index:1}.table-seat-1,.table-seat-2{z-index:3}.table-seat-3{z-index:4;top:76%}.table-character .character-art{--portrait-scale:1;background-image:var(--seat-image)!important;background-size:300% 100%!important;background-position:var(--seat-x) 0%}.table-scatter{position:absolute;left:43%;top:34%;width:18%;display:flex;gap:2px;transform:perspective(150px) rotateX(38deg) rotateZ(-7deg);z-index:3;pointer-events:none}.table-scatter .tile{width:25%!important;min-width:0!important;min-height:0!important;height:auto!important;aspect-ratio:1;padding:0!important;border-radius:3px!important;border-width:1px!important;opacity:1!important}.table-scatter .tile .tile-face{inset:1px!important}
@media(min-width:600px) and (max-height:500px){.avatar-dialog[open]{padding:12px!important;gap:5px 18px}.avatar-dialog .avatar-option{--choice-size:36px;height:54px!important;padding-bottom:3px!important}.avatar-dialog .avatar-choices{gap:6px!important}.avatar-dialog .avatar-choice-name{font-size:10px;line-height:14px}.avatar-dialog .avatar-colors{margin:3px 0!important}.avatar-dialog .expression-preview{margin:0!important;gap:5px}.avatar-dialog .expression-preview button{padding:5px 9px;font-size:10px}.avatar-dialog .avatar-save{min-height:36px!important}.avatar-dialog .character-stage{--portrait-size:170px}.avatar-dialog .avatar-character-name{font-size:17px!important}}
@media(max-width:540px){.profile-banner .profile-links{flex-direction:column!important;gap:5px!important;flex:0 0 34px!important;width:34px!important}.profile-banner .profile-links .text-button{display:grid!important;place-items:center;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:7px!important;font-size:0!important;gap:0!important;border-radius:11px!important}.profile-banner .profile-links .icon{width:20px!important;height:20px!important}.profile-title #name{font-size:21px!important;letter-spacing:-.4px}}

/* One actual 3D scene. These labels annotate projected world points; no character images. */
.real-table-stage{aspect-ratio:1.28!important;position:relative;margin:4px auto 6px!important;overflow:hidden;isolation:isolate;border-radius:17px;background:radial-gradient(ellipse at 50% 66%,#78599b24,transparent 70%);touch-action:pan-y}.table-scene-canvas{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;z-index:0;cursor:grab;touch-action:pan-y}.table-scene-canvas:active{cursor:grabbing}.table-scene-labels{position:absolute;inset:0;z-index:2;pointer-events:none}.table-seat-label{position:absolute;transform:translate(-50%,0);pointer-events:auto;max-width:94px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;border:1px solid #c7a2df33;border-radius:8px;padding:3px 7px;background:#24182ed9;color:#f8eaff;font:750 10px/14px Nunito,system-ui,sans-serif;box-shadow:0 2px 7px #1007162b;cursor:pointer}.table-seat-label.empty{display:grid;place-items:center;width:23px;height:23px;min-width:0;padding:0;border-style:dashed;background:#ac7cc314;color:#d6b8e596;font-size:16px;box-shadow:none;cursor:default}.table-seat-label:focus-visible,.table-orbit-button:focus-visible{outline:2px solid #e1b5ff;outline-offset:2px}.table-orbit-button{position:absolute;right:5px;bottom:4px;z-index:3;display:grid;place-items:center;width:32px;height:32px;border:1px solid #ae83c34d;border-radius:11px;background:#54386a77;color:#dfc6f1;cursor:pointer}.table-orbit-button .icon{width:18px;height:18px}.table-scene-status{position:absolute;inset:auto 14px 45px;z-index:3;color:#cfbbdf;font-size:12px;text-align:center}.table-scene-status:empty{display:none}.real-table-stage[data-scene-state=unavailable] .table-scene-labels{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:12px;padding:20px}.real-table-stage[data-scene-state=unavailable] .table-seat-label{position:static;transform:none;max-width:none;justify-self:center}.real-table-stage[data-scene-state=unavailable] .table-orbit-button{display:none}.my-table-card{background:radial-gradient(ellipse at 50% 60%,#4b345e,#24192f 76%)!important}.real-table-stage:not([data-scene-ready=true]) .table-seat-label{visibility:hidden}.real-table-stage[data-scene-state=unavailable] .table-seat-label{visibility:visible}

.table-seat-label.occupied{border:0;background:#24182c99;box-shadow:none;padding:2px 6px;font-size:9px;line-height:13px;transform:translate(-50%,-100%);max-width:90px}.real-table-stage{aspect-ratio:1.23!important}.table-seat-label.empty{background:#aa7bb326;color:#f1daffb3;border-color:#bfa3d05c}

.real-table-stage[data-scene-state=loading]:not([data-scene-ready=true]):before{content:'';position:absolute;left:calc(50% - 14px);top:calc(50% - 14px);width:28px;height:28px;border:2px solid #b88ad129;border-top-color:#c29ce1;border-radius:50%;animation:table-loading .8s linear infinite}@keyframes table-loading{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.real-table-stage:before{animation:none!important}}body[data-motion=reduced] .real-table-stage:before{animation:none!important}
/* Home atelier: identity, actual 3D table and primary actions form one hierarchy. */
body:is([data-view=home],[data-view=hub]){background:radial-gradient(ellipse at 50% 12%,#332147 0,transparent 55%),#15101e}
body:is([data-view=home],[data-view=hub]) .app-header{height:72px;padding:14px 24px;max-width:1040px}
body:is([data-view=home],[data-view=hub]) .home-screen{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);align-items:start;max-width:1040px!important;gap:16px!important;padding-top:8px!important}
body:is([data-view=home],[data-view=hub]) .home-story{position:relative!important;inset:auto!important;transform:none!important;width:auto;height:38px!important;grid-column:1/-1;order:-5;display:flex;justify-content:center;margin:0!important}
body:is([data-view=home],[data-view=hub]) .brand-tiles{height:34px!important;gap:7px!important;transform:none!important}
body:is([data-view=home],[data-view=hub]) .brand-tiles .tile{width:32px!important;height:33px!important;flex-basis:32px!important;animation:none!important;transform:none!important;box-shadow:0 3px 6px #0002!important}
body:is([data-view=home],[data-view=hub]) .my-table-card{order:-4;grid-column:1;grid-row:2/5;border:1px solid #c8a6e32b;border-radius:28px;padding:16px 14px 0;background:radial-gradient(ellipse at 50% 62%,#62467455,transparent 67%),linear-gradient(155deg,#35263f,#251b30)!important;box-shadow:inset 0 1px 0 #f1dcff12,0 18px 45px #09060f22;position:relative}
.my-table-card .profile-banner{display:flex!important;min-height:64px!important;padding:0 2px 12px!important;border:0!important;border-bottom:1px solid #dcc4eb15!important;border-radius:0!important;background:none!important;box-shadow:none!important;gap:12px!important;overflow:visible}
.my-table-card .profile-banner:before{display:none}
.my-table-card .home-character{width:58px!important;height:58px!important;min-width:58px!important;position:relative}
.my-table-card .home-character .home-portrait{width:58px!important;height:58px!important;min-width:0!important;border:0!important;border-radius:17px!important;background:#b48ac217!important;padding:0!important;box-shadow:none!important;overflow:visible}
.my-table-card .home-character .character-art{animation:none!important}
.my-table-card .portrait-edit{width:23px!important;height:23px!important;min-height:23px!important;right:-3px!important;bottom:0!important;padding:5px!important;background:#533761!important;border:1px solid #b892cd55!important}
.my-table-card .profile-title{gap:0 4px!important}
.my-table-card .profile-title #name{font-size:21px!important;letter-spacing:-.4px;min-height:29px!important;font-weight:850!important}
.my-table-card .profile-title #homePlayerId{font-size:10px!important;opacity:.7;letter-spacing:.6px}
.my-table-card .profile-title #editName{width:25px;height:25px;padding:6px;background:none}
.my-table-card .profile-links{display:flex!important;flex-direction:row!important;flex:0 0 auto!important;width:auto!important;gap:6px!important}
.my-table-card .profile-links .text-button{width:33px!important;height:33px!important;min-width:33px!important;min-height:33px!important;padding:7px!important;font-size:0!important;border:1px solid #c49ed326!important;border-radius:11px!important;background:#b68aca0b!important;color:#dbc0eb!important}
.my-table-card .profile-links .icon{width:19px!important;height:19px!important}
.my-table-heading{padding:14px 5px 0;position:relative;z-index:3}
.my-table-heading h2{font-size:13px;font-weight:750;letter-spacing:.1px;color:#e9d8f3}
.my-table-heading #homeTableOpen{padding:7px 12px;min-height:33px;border:1px solid #bf95dd3d;border-radius:11px;background:#b886d51c;color:#edd6ff;font-size:11px;font-weight:850}
.my-table-card .real-table-stage{aspect-ratio:1.18!important;margin:-3px auto 0!important;border-radius:0 0 26px 26px;background:radial-gradient(ellipse at 50% 70%,#ca91e015,transparent 65%);max-width:none}
body:is([data-view=home],[data-view=hub]) .play-card{grid-column:2;grid-row:2;order:-3;gap:0!important}
body:is([data-view=home],[data-view=hub]) .home-actions{gap:10px}
body:is([data-view=home],[data-view=hub]) .home-actions .button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;min-height:116px;padding:17px;border-radius:21px;font-size:19px;box-shadow:inset 0 1px 0 #ffffff28,0 7px 16px #09051022;border-color:#c49ef15c;background:linear-gradient(135deg,#9b61dd,#6741b8)}
body:is([data-view=home],[data-view=hub]) .home-actions .match-button{background:linear-gradient(135deg,#299e7d,#137761);border-color:#78d8b54d}
body:is([data-view=home],[data-view=hub]) .home-actions .button>.icon{width:30px;height:30px;padding:0;background:none;border:0;border-radius:0}
body:is([data-view=home],[data-view=hub]) .home-actions .button>span{font-size:19px;align-self:auto!important}
body:is([data-view=home],[data-view=hub]) .home-actions .button>small{display:none}
body:is([data-view=home],[data-view=hub]) .home-actions .button>i{position:absolute;right:14px;top:20px;width:22px;height:22px;background:#00000012}
body:is([data-view=home],[data-view=hub]) .join-row{grid-template-columns:minmax(0,1fr) 75px;gap:8px;margin-top:10px;padding:10px;border:1px solid #b18acd24;border-radius:17px;background:#ffffff04}
body:is([data-view=home],[data-view=hub]) .join-row label{grid-column:1/-1;font-size:10px;font-weight:700;gap:6px;color:#c3afcf;padding:0 2px}
body:is([data-view=home],[data-view=hub]) .join-row label .icon{width:14px;height:14px;background:none;padding:0}
body:is([data-view=home],[data-view=hub]) .join-row input{min-height:40px!important;height:40px;padding:8px 11px!important;border-radius:10px!important;border-color:#aa81c332!important;background:#17101f66!important;font-size:11px;letter-spacing:1.4px}
body:is([data-view=home],[data-view=hub]) .join-row .button{min-height:40px;padding:7px 10px;border-radius:10px;font-size:12px;background:#715092;border-color:#b58edc3d;box-shadow:none}
body:is([data-view=home],[data-view=hub]) .open-games{grid-column:2;order:-2;padding:14px!important;border:1px solid #b999d023!important;border-radius:20px!important;background:#ffffff03!important}
body:is([data-view=home],[data-view=hub]) .daily-reward{grid-column:2;min-height:170px;padding:18px;border:1px solid #ae80e541;border-radius:22px;background:radial-gradient(ellipse at 100% 0,#7e47a74d,transparent 65%),#2b1c41;overflow:hidden}
body:is([data-view=home],[data-view=hub]) .daily-reward h2{font-size:21px;letter-spacing:-.4px}
body:is([data-view=home],[data-view=hub]) .reward-copy{max-width:78%}
body:is([data-view=home],[data-view=hub]) .reward-copy p{display:none}
body:is([data-view=home],[data-view=hub]) .reward-art{width:150px;height:135px;top:2px;right:-13px;opacity:.8}
body:is([data-view=home],[data-view=hub]) .reward-days{display:none}
body:is([data-view=home],[data-view=hub]) .reward-claim{grid-column:2;grid-row:2;font-size:12px;min-height:38px;padding:8px 15px;min-width:0;border-radius:12px;z-index:2}
body:is([data-view=home],[data-view=hub]) #rewardStatus{grid-row:3;font-size:10px}
body:is([data-view=home],[data-view=hub]) .match-archive{grid-column:1/-1;padding:16px!important;background:#ffffff03!important;border:1px solid #b999d023!important;border-radius:22px!important}
body:is([data-view=home],[data-view=hub]) .open-games-heading h2,body:is([data-view=home],[data-view=hub]) .section-heading h2{font-size:15px}
body:is([data-view=home],[data-view=hub]) .open-game{border-radius:13px}
body:is([data-view=home],[data-view=hub]) .bottom-nav{background:#241b30ed;backdrop-filter:blur(20px);border-color:#bd98dc24;box-shadow:0 -6px 30px #10091830}
body:is([data-view=home],[data-view=hub]) .bottom-nav button{transition:color .2s,transform .35s cubic-bezier(.2,.8,.2,1)}
body:is([data-view=home],[data-view=hub]) .bottom-nav button:active{transform:scale(.94)}
body:is([data-view=home],[data-view=hub]) .bottom-nav [aria-current=page]:after{background:#c18cf1;box-shadow:0 0 14px #bd7cf047}
body:is([data-view=home],[data-view=hub]) .my-table-heading button,body:is([data-view=home],[data-view=hub]) .home-actions .button,body:is([data-view=home],[data-view=hub]) .join-row .button{transition:transform .35s cubic-bezier(.2,.8,.2,1),filter .2s,box-shadow .2s}
body:is([data-view=home],[data-view=hub]) .home-actions .button:active,body:is([data-view=home],[data-view=hub]) .my-table-heading button:active,body:is([data-view=home],[data-view=hub]) .join-row .button:active{transform:scale(.97);filter:brightness(1.08)}
@keyframes home-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
body:is([data-view=home],[data-view=hub]) #home.screen-enter{animation:none!important}
body:is([data-view=home],[data-view=hub]) #home.screen-enter>.my-table-card,body:is([data-view=home],[data-view=hub]) #home.screen-enter>.play-card{animation:home-arrive .55s cubic-bezier(.16,1,.3,1) both}
body:is([data-view=home],[data-view=hub]) #home.screen-enter>.play-card{animation-delay:60ms}
@media(max-width:650px){
 body:is([data-view=home],[data-view=hub]) .app-header{height:62px;padding:10px 16px}
 body:is([data-view=home],[data-view=hub]) .brand{font-size:27px}
 body:is([data-view=home],[data-view=hub]) .brand-app-icon{width:33px;height:33px}
 body:is([data-view=home],[data-view=hub]) .header-actions{gap:6px}
 body:is([data-view=home],[data-view=hub]) .header-actions .icon-button,body:is([data-view=home],[data-view=hub]) .help-trigger{width:32px;height:32px;min-height:32px;border-radius:10px;background:#b184c313;border-color:#bd95d12b}
 body:is([data-view=home],[data-view=hub]) .home-screen{display:flex!important;flex-direction:column;gap:12px!important;padding:0 12px 18px!important}
 body:is([data-view=home],[data-view=hub]) .home-screen>section{width:100%}
 body:is([data-view=home],[data-view=hub]) .home-story{height:30px!important;margin:0 0 1px!important}
 body:is([data-view=home],[data-view=hub]) .brand-tiles{height:28px!important;gap:7px!important}
 body:is([data-view=home],[data-view=hub]) .brand-tiles .tile{width:27px!important;height:28px!important;flex-basis:27px!important;border-radius:7px!important}
 body:is([data-view=home],[data-view=hub]) .my-table-card{padding:12px 10px 0;border-radius:24px}
 .my-table-card .profile-banner{gap:8px!important;padding-bottom:9px!important;min-height:56px!important}
 .my-table-card .home-character,.my-table-card .home-character .home-portrait{width:49px!important;height:49px!important;min-width:49px!important}
 .my-table-card .profile-title #name{font-size:19px!important}
 .my-table-card .profile-title{grid-template-columns:minmax(0,1fr) 22px}
 .my-table-card .profile-links{gap:4px!important}
 .my-table-card .profile-links .text-button{width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;padding:6px!important}
 .my-table-heading{padding:11px 4px 0}
 .my-table-heading h2{font-size:12px}
 .my-table-heading #homeTableOpen{font-size:10px;min-height:29px;padding:5px 9px}
 .my-table-card .real-table-stage{height:clamp(220px,32dvh,310px);aspect-ratio:auto!important;margin:-7px auto 0!important}
 body:is([data-view=home],[data-view=hub]) .home-actions .button{min-height:87px;gap:7px;padding:13px 15px;border-radius:18px;flex-direction:row;align-items:center;justify-content:flex-start}
 body:is([data-view=home],[data-view=hub]) .home-actions .button>.icon{width:25px;height:25px;flex:none}
 body:is([data-view=home],[data-view=hub]) .home-actions .button>span{font-size:17px}
 body:is([data-view=home],[data-view=hub]) .home-actions .button>i{display:none}
 body:is([data-view=home],[data-view=hub]) .join-row{margin-top:9px;padding:9px;grid-template-columns:minmax(0,1fr) 75px;gap:6px 8px}
 body:is([data-view=home],[data-view=hub]) .join-row label{display:none}
 body:is([data-view=home],[data-view=hub]) .daily-reward{min-height:154px;padding:16px;grid-template-columns:1fr 90px;gap:8px}
 body:is([data-view=home],[data-view=hub]) .daily-reward h2{font-size:21px}
 body:is([data-view=home],[data-view=hub]) .reward-copy{grid-column:1/3;max-width:80%}
 body:is([data-view=home],[data-view=hub]) .reward-wallet{margin-top:8px}
 body:is([data-view=home],[data-view=hub]) .reward-claim{grid-column:2;grid-row:2;margin-top:0;min-height:35px;align-self:end}
 body:is([data-view=home],[data-view=hub]) .reward-eyebrow{font-size:9px;letter-spacing:1px}
 body:is([data-view=home],[data-view=hub]) .bottom-nav{padding-top:9px;border-radius:23px 23px 0 0}
}
@media(max-width:350px){.my-table-card .profile-title #name{font-size:16px!important}.my-table-card .profile-links .text-button{width:27px!important;min-width:27px!important}.my-table-card .real-table-stage{height:220px}body:is([data-view=home],[data-view=hub]) .home-actions .button{gap:7px;padding:12px}body:is([data-view=home],[data-view=hub]) .home-actions .button>span{font-size:15px}}
@media(prefers-reduced-motion:reduce){body:is([data-view=home],[data-view=hub]) #home.screen-enter>section{animation:none!important}body:is([data-view=home],[data-view=hub]) button{transition:none!important}}
body[data-motion=reduced]:is([data-view=home],[data-view=hub]) #home.screen-enter>section{animation:none!important}body[data-motion=reduced]:is([data-view=home],[data-view=hub]) button{transition:none!important}
/* Browser-composited page transitions keep navigation steady. */
body:is([data-view=home],[data-view=hub]) .app-header{view-transition-name:home-header}body:is([data-view=home],[data-view=hub]) .bottom-nav{view-transition-name:home-navigation}
::view-transition-old(root){animation:home-page-out .15s ease-out both}::view-transition-new(root){animation:home-page-in .28s cubic-bezier(.16,1,.3,1) both}
@keyframes home-page-out{to{opacity:0;transform:translateY(-4px)}}@keyframes home-page-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}
body[data-motion=reduced]::view-transition-group(*),body[data-motion=reduced]::view-transition-old(*),body[data-motion=reduced]::view-transition-new(*){animation:none!important}
/* Social table interactions and a compact shared hand game. */
.table-heading-actions{display:flex;align-items:center;gap:5px}.my-table-heading #homeMiniGames{display:flex;align-items:center;gap:5px;padding:6px 8px;min-height:30px;border:0;border-radius:10px;background:#bb8bea12;color:#d9c1e8;font-size:10px;font-weight:800}.my-table-heading #homeMiniGames .icon{width:16px;height:16px}.table-seat-label.empty{width:32px;height:32px;min-width:32px;background:#694c7de0;border:1px dashed #e0c9f178;color:#f2e2ff;cursor:pointer;backdrop-filter:blur(8px);transition:background .2s,transform .25s}.table-seat-label.empty .icon{width:17px;height:17px}.table-seat-label.empty:hover{background:#976cb4;transform:translate(-50%,0) scale(1.1)}
.table-play-button{display:flex;align-items:center;gap:9px;width:100%;min-height:53px;padding:10px 13px;margin:4px 0 16px;border:1px solid #b590cf42;border-radius:15px;background:linear-gradient(120deg,#76549c2e,#bf8ee30a);color:#f0e1ff;font:850 13px Nunito,system-ui,sans-serif;cursor:pointer;text-align:left}.table-play-button>.icon{width:23px;height:23px;color:#d5b4ed}.table-play-button>small{margin-left:auto;font-size:9px;opacity:.7;font-weight:700}.table-play-button>.icon:last-child{width:15px;height:15px}.table-play-button.has-invite{background:#456f553b;border-color:#73c69a88}.table-play-button.has-invite small{color:#aff4c8;opacity:1}.empty-avatar{display:grid;place-items:center;border:1px dashed #b091c866;cursor:pointer}.empty-avatar .icon{width:21px;height:21px}
.table-games-dialog{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 32px);border:1px solid #af89c85c!important;border-radius:27px!important;padding:20px!important;background:radial-gradient(ellipse at 50% 5%,#5a3c71,#281d36 65%)!important;color:#f8efff;overflow-y:auto;box-shadow:0 28px 100px #08021188}.table-games-dialog::backdrop{background:#13091d9e;backdrop-filter:blur(6px)}.table-games-dialog .drawer-heading{margin-bottom:14px}.table-games-dialog .drawer-heading h2{font-size:16px}.mini-title{font:900 23px/1.25 Nunito,system-ui,sans-serif;text-align:center;margin:16px 0 12px;letter-spacing:-.5px}.mini-hand-trio{display:flex;justify-content:center;gap:12px;margin:15px 0 23px}.mini-hand{display:grid;place-items:center;width:65px;height:69px;border:1px solid #d1b0ed55;border-radius:20px;background:linear-gradient(145deg,#b17ce94d,#69468e30);color:#ead9fb;box-shadow:inset 0 1px 0 #ffffff16,0 7px 16px #12091d1a;transform:rotate(-8deg)}.mini-hand:nth-child(2){transform:translateY(-6px);color:#a6dfcf;background:linear-gradient(145deg,#60b9a343,#365d6633)}.mini-hand:nth-child(3){transform:rotate(8deg);color:#f3d3a2;background:linear-gradient(145deg,#e7b16c3d,#88695322)}.mini-hand svg{width:38px;height:38px}.mini-note{text-align:center;font-size:12px;line-height:1.6;color:#c7b5d8;margin:14px 0}.mini-rules{font-size:10px;opacity:.7}.mini-targets{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:15px 0 22px}.mini-target{padding:10px 13px;min-height:40px;border:1px solid #b18ec344;border-radius:12px;background:#a06fcc12;color:#ddc8ed;font:800 11px Nunito,system-ui,sans-serif;cursor:pointer}.mini-target[aria-pressed=true]{background:#9267b952;border-color:#d1a3ee;color:#fff}.table-games-dialog #tableGamesBody>.button{display:flex;justify-content:center;align-items:center;width:100%;min-height:46px;border-radius:14px;font-size:13px}.mini-players{display:flex;flex-direction:column;gap:8px;margin:14px 0}.mini-player{display:flex;align-items:center;gap:10px;min-height:64px;padding:8px 12px;border:1px solid #c6a8da26;border-radius:15px;background:#12091e32}.mini-player>.illustrated-avatar{width:46px!important;height:46px!important;min-width:46px!important;flex:none!important}.mini-player-name{flex:1;min-width:0}.mini-player-name b{display:block;font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mini-player-name small{display:block;margin-top:3px;font-size:10px;color:#bda8ce}.mini-player.result-win{border-color:#6dd7a376;background:#33975f20}.mini-player.result-win small{color:#a6ebbf}.mini-player.result-lose{border-color:#e98c9b38;background:#a53a4a12}.mini-player.result-draw{border-color:#e3c37c44;background:#8c6c3718}.mini-ready{font-size:20px;color:#a7e0c3;margin-right:5px}.mini-result-hand svg{width:31px;height:31px;color:#ddc5ef}.mini-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px}.mini-actions .button{min-height:44px;border-radius:13px;font-size:12px}.mini-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:20px 0 8px}.mini-choice{display:flex;flex-direction:column;align-items:center;gap:12px;padding:18px 6px 13px;border-radius:19px;border:1px solid #c99bea55;color:#eedbff;background:linear-gradient(140deg,#a06adf4d,#4c346b44);font:850 12px Nunito,system-ui,sans-serif;cursor:pointer;transition:transform .3s cubic-bezier(.2,.9,.2,1),background .2s}.mini-choice svg{width:40px;height:40px}.mini-choice:active{transform:scale(.94)}.mini-choice[aria-pressed=true]{border-color:#d9b2fa;background:#9b6cc264;box-shadow:0 0 20px #b97ef32a}.mini-choice:disabled:not([aria-pressed=true]){opacity:.35}.mini-choice:disabled{cursor:default}#tableGamesError{color:#ffb7c6;text-align:center;font-size:11px;line-height:1.4;margin:12px 0 0}#tableGamesError:empty{display:none}
@media(max-width:350px){.my-table-heading #homeMiniGames{font-size:9px;padding:5px}.my-table-heading #homeMiniGames .icon{width:14px;height:14px}.table-heading-actions{gap:2px}.table-games-dialog{padding:16px!important}.mini-title{font-size:20px}.mini-choices{gap:6px}.mini-choice svg{width:33px;height:33px}.mini-hand{width:56px;height:60px}}
.mini-cancel{display:block;margin:10px auto 0;font-size:11px;color:#bfa5cf;min-height:36px}.mini-result-hand{animation:mini-reveal .45s cubic-bezier(.16,1,.3,1) both}@keyframes mini-reveal{from{opacity:0;transform:translateY(7px) scale(.8)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.mini-result-hand{animation:none}}body[data-motion=reduced] .mini-result-hand{animation:none}
.mini-target{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mini-choice:focus-visible,.mini-target:focus-visible,.table-play-button:focus-visible,.table-seat-label.empty:focus-visible{outline:2px solid #edcaff;outline-offset:3px}
/* Profiles are cameras on the same articulated geometry used at the table. */
body .character-art{position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:100%!important;transform:none!important;filter:none!important;background:none!important;animation:none!important;contain:paint;overflow:visible}
.character-art>.character-canvas{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none;background:transparent}
body .illustrated-avatar{background:none!important;border:0!important;overflow:visible!important}.avatar-choice-art{overflow:visible!important}.character-art:not([data-model-ready=true]):before{content:'';position:absolute;inset:30%;border-radius:50%;background:#b18fca21;border:1px solid #c0a7d52b}.character-art[data-model-state=unavailable]:before{inset:22%;background:#ad80ce3d;border-radius:40% 40% 30% 30%}
.avatar-preview .character-art,.avatar-choice-art .character-art{min-width:0;min-height:0}.winner-portrait .character-art{filter:none!important}
/* Snapshot overlays must never eat a quick follow-up tap. */
::view-transition{pointer-events:none}::view-transition-group(*){pointer-events:none}
/* A table represents an actual waiting room; an unseated player sees only identity. */
body:is([data-view=home],[data-view=hub]) .my-table-card.is-unseated{grid-column:1/-1!important;grid-row:auto!important;padding:13px 16px!important;border-radius:21px!important}
.my-table-card.is-unseated .profile-banner{padding-bottom:0!important;border-bottom:0!important}
body:is([data-view=home],[data-view=hub])[data-table=none] .play-card{grid-column:1/-1!important;grid-row:auto!important}
body:is([data-view=home],[data-view=hub])[data-table=none] .open-games{grid-column:1/-1!important}
body:is([data-view=home],[data-view=hub]) .brand-tiles{width:max-content!important;max-width:100%;justify-content:center!important;gap:4px!important;flex:0 0 auto!important;margin:0 auto!important}
body:is([data-view=home],[data-view=hub]) .brand-tiles .tile{margin:0!important}
.table-player-dialog{width:min(340px,calc(100vw - 28px));text-align:center}.table-player-dialog>.illustrated-avatar{width:150px!important;height:150px!important;margin:2px auto 16px}.table-player-dialog .drawer-heading{text-align:left}.table-secret-game{display:flex;justify-content:center;align-items:center;gap:7px;width:100%;font-size:10px;min-height:36px;margin-top:11px;color:#b9a6cc;opacity:.8}.table-secret-game .icon{width:15px;height:15px}.table-secret-game:hover{opacity:1;color:#e9d3fa}.table-seat-label.has-table-challenge{box-shadow:0 0 0 1px #bb8bdd99;background:#5e3b79d9}.table-seat-label.has-table-challenge:after{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#dfb9ff;margin-left:5px;vertical-align:middle}
.avatar-color[data-original=true]{box-shadow:inset 0 0 0 4px #221833;border-color:#ab92c3}
/* Restore the larger reward banner, trophy and seven-day progress. */
body:is([data-view=home],[data-view=hub]) .daily-reward{grid-column:1/-1;grid-template-columns:minmax(0,1fr) 180px;min-height:225px;padding:25px 28px 22px;border:1px solid #7148ac;border-radius:25px;background:radial-gradient(ellipse at 100% 110%,#db318d9c,transparent 45%),radial-gradient(ellipse at 66% 24%,#5c38dfa6,transparent 55%),linear-gradient(120deg,#221657,#34156a);gap:10px}
body:is([data-view=home],[data-view=hub]) .reward-copy{grid-column:1;max-width:70%;z-index:2}body:is([data-view=home],[data-view=hub]) .daily-reward h2{font-size:clamp(24px,3.5vw,34px)}body:is([data-view=home],[data-view=hub]) .reward-copy p{display:block;font-size:13px}body:is([data-view=home],[data-view=hub]) .reward-art{width:240px;height:190px;right:11%;top:5px;opacity:1}body:is([data-view=home],[data-view=hub]) .reward-days{display:flex;grid-column:1;grid-row:2;align-items:center;justify-content:flex-start;gap:clamp(8px,3vw,30px);margin-top:6px;width:auto}body:is([data-view=home],[data-view=hub]) .reward-claim{grid-column:2;grid-row:2;min-height:49px;font-size:15px;padding:9px 20px;min-width:120px;border-radius:15px}body:is([data-view=home],[data-view=hub]) #rewardStatus{grid-column:1/-1;grid-row:3;font-size:11px}
@media(max-width:650px){body:is([data-view=home],[data-view=hub]) .my-table-card.is-unseated{padding:12px!important}body:is([data-view=home],[data-view=hub]) .brand-tiles{gap:4px!important}body:is([data-view=home],[data-view=hub]) .daily-reward{grid-template-columns:minmax(0,1fr) 91px;min-height:236px;padding:18px 16px;gap:13px}body:is([data-view=home],[data-view=hub]) .daily-reward h2{font-size:25px}body:is([data-view=home],[data-view=hub]) .reward-copy{max-width:80%;grid-column:1/3}body:is([data-view=home],[data-view=hub]) .reward-copy p{font-size:12px}body:is([data-view=home],[data-view=hub]) .reward-art{width:180px;height:145px;right:-8px;top:15px;opacity:.65}body:is([data-view=home],[data-view=hub]) .reward-days{grid-column:1/3;justify-content:space-between;width:100%;gap:clamp(5px,1.8vw,11px);padding-right:0;margin-top:0}body:is([data-view=home],[data-view=hub]) .reward-day i{width:27px;height:27px}body:is([data-view=home],[data-view=hub]) .reward-claim{grid-column:1/3;grid-row:3;min-height:43px;min-width:117px;font-size:13px;margin-top:-2px}body:is([data-view=home],[data-view=hub]) #rewardStatus{grid-row:4;margin-top:-6px}}

/* Lobby v2: table controls belong to the lobby, not to an active match. */
body[data-input="pointer"] :is(.illustrated-avatar,.home-portrait,.table-seat-label,.avatar-preview):focus{outline:none!important;box-shadow:none!important}
:is(.illustrated-avatar,.home-portrait,.table-seat-label):focus-visible{outline:2px solid #bc8cff;outline-offset:3px}
.table-gamepad-button{position:absolute;bottom:12px;left:12px;width:46px;height:40px;display:grid;place-items:center;background:#35244edb;border:1px solid #9971c16b;border-radius:14px;color:#eadcff;z-index:4;box-shadow:0 3px 12px #130c2533}
.table-gamepad-button svg{width:26px;height:26px}.table-gamepad-button i{display:none;position:absolute;right:0;top:0;width:10px;height:10px;border-radius:50%;background:#7df2a8;box-shadow:0 0 8px #7df2a8}.table-gamepad-button.has-invite i{display:block}.table-round-clock{position:absolute;left:37px;bottom:9px;font-size:12px;color:#d6b8ff}
.table-hand-bubble{position:absolute;transform:translate(-50%,0);display:grid;place-items:center;background:#fff8ed;color:#49276c;width:35px;height:35px;border-radius:12px;box-shadow:0 3px 12px #10072066;pointer-events:none}.table-hand-bubble svg{width:25px;height:25px}.table-hand-bubble.win{background:#c2f6d3;color:#14643b}.table-hand-bubble.lose{background:#f6d5df}
dialog.table-quick-game{position:fixed;inset:auto;margin:0;width:224px;max-width:calc(100vw - 20px);padding:10px;border-radius:20px;background:#291c40f5;border:1px solid #b78ce075;box-shadow:0 12px 35px #120a2b80;z-index:1100}#tableGamesBody{display:flex;gap:6px}#tableGamesBody .mini-choice{display:flex;flex:1;flex-direction:column;align-items:center;gap:5px;padding:10px 4px;background:#62438470;border:1px solid #b88ae14d;border-radius:13px;color:#f8eeff}#tableGamesBody svg{width:32px;height:32px}#tableGamesBody small{font-size:11px}#tableGamesError:empty,#tableQuickClock:empty{display:none}#tableGamesError{font-size:12px;margin:6px 0 0}
.lobby-exit-actions{display:flex;justify-content:center;gap:10px;margin:10px 0}.lobby-exit-actions button{padding:9px 13px;border-radius:12px;border:1px solid #a480bd55;background:#50356844;color:var(--text)}.lobby-exit-actions svg{width:16px;height:16px;vertical-align:middle;margin-right:5px}#disbandLobby{color:#edafc2}
.lobby-chat{margin-top:12px;padding:12px;border:1px solid #a380bd33;border-radius:18px;background:#20172c66}.lobby-chat h2{font-size:14px;margin:0 0 8px}#lobbyMessages{height:100px;overflow:auto;display:flex;flex-direction:column;gap:5px}.lobby-message{display:flex;gap:8px;padding:5px 8px;border-radius:9px;background:#78559522;font-size:12px;overflow-wrap:anywhere}.lobby-message b{color:#d4a9f3;white-space:nowrap}.lobby-message.own{background:#3c90602b}#lobbyChatForm{display:flex;gap:8px;margin-top:8px}#lobbyChatInput{min-width:0;flex:1;height:38px;border-radius:12px}#lobbySend{width:40px;border-radius:12px;background:#8751c5;color:white;border:0}#lobbySend svg{width:21px}
.avatar-accessories{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:12px 0}.avatar-accessories button{min-width:0;padding:9px 3px;font-size:12px;border-radius:12px;background:#77519b33;border:1px solid #a378c166;color:inherit}.avatar-accessories button[aria-pressed=true]{background:#8c50c775;border-color:#d1a2ff}.avatar-accessories small{display:block;font-size:10px;margin-top:5px}
#scores{position:relative;z-index:5;overflow:visible;padding-top:12px;padding-bottom:6px}.score-card{overflow:visible}.board-wrap{position:relative;z-index:1}
.character-hero{position:fixed;z-index:1400;width:156px;height:190px;pointer-events:none;filter:drop-shadow(0 12px 18px #50109355)}.character-hero .character-art{width:100%!important;height:100%!important}
@media(prefers-reduced-motion:reduce){.character-hero{display:none}}

.lobby-card{position:relative}.lobby-card .empty-seat{display:none}.lobby-card .lobby-divider{display:none}.lobby-card .lobby-seats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0}.lobby-card .seat{min-height:45px;padding:6px;gap:5px;flex-wrap:wrap}.lobby-card .seat .avatar{width:32px!important;height:32px!important;flex-basis:32px!important}.lobby-card .seat-name{font-size:11px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.lobby-card .seat-detail{font-size:9px}.lobby-card .seat-remove{width:26px;height:26px}.lobby-card .lobby-hint{font-size:11px;margin:6px 0}.lobby-card .room-code{font-size:22px;padding:10px 14px;min-height:45px}.lobby-card .lobby-invites{margin:8px 0;gap:8px}.lobby-card .lobby-invites button{min-height:38px;font-size:12px}.lobby-card .timer-option{margin:6px 0;min-height:34px}.lobby-card #start{min-height:42px}.lobby-card #lobbyLeave{min-height:30px;margin:4px auto}.lobby-card .lobby-exit-actions{margin:3px 0}.lobby-card .lobby-exit-actions button{font-size:11px;padding:7px 9px}.lobby-card .table-stage{height:245px;aspect-ratio:auto;margin-top:-8px}.lobby-card-top{margin:0 0 8px}.lobby-card>label:not(.timer-option){display:none}
@media(max-width:480px){.lobby-screen{padding-top:4px}.lobby-screen>h1{font-size:20px;margin:8px 0 12px}.lobby-card{padding:12px!important}.lobby-card .table-stage{height:225px}.lobby-card .lobby-chat{margin-top:8px;padding:9px}#lobbyMessages{height:70px}}

.lobby-card .seat{display:grid;grid-template-columns:32px minmax(0,1fr) 26px;grid-template-rows:auto auto;align-items:center;min-height:56px}.lobby-card .seat>.avatar{grid-column:1;grid-row:1/3}.lobby-card .seat-name{grid-column:2;grid-row:1;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lobby-card .seat-detail{grid-column:2;grid-row:2;white-space:nowrap}.lobby-card .seat-remove{grid-column:3;grid-row:1/3}.lobby-card .seat:not(:has(.seat-remove)){grid-template-columns:32px minmax(0,1fr)}
.expression-extra{display:flex;justify-content:center;gap:6px;margin:5px 0 10px}.expression-extra button{font-size:11px;padding:5px 9px;background:#80539e33;color:inherit;border:1px solid #ba8bdb44;border-radius:10px}.avatar-wallet{text-align:right;font-weight:800;font-size:13px;color:#dfb8ff;margin-top:10px}
#commit[data-heat="3"] .commit-fire{filter:blur(3px);inset:-18px!important}#commit[data-heat="3"]{box-shadow:0 0 30px #ff8c4099,inset 0 0 0 1px #fff0a0!important}

#scores .player-card{overflow:visible!important}#game>.board-area{position:relative;z-index:1}#game>#scores{z-index:5;flex-shrink:0}.avatar-accessories button{font-size:10px;overflow-wrap:anywhere;min-height:49px}.avatar-accessories small{font-size:10px}

#game>#scores.player-strip{height:auto!important;min-height:70px!important;flex:0 0 auto!important;padding:3px 0!important;overflow:visible!important}#scores>.player-card{min-height:64px!important}

.lobby-card .seat.empty-seat{display:none}

/* Wardrobe: bare characters, visual pieces, and independent attachment slots. */
.accessory-heading{display:flex;justify-content:space-between;align-items:center;margin:16px 0 10px;font-size:13px}.accessory-heading .avatar-wallet{margin:0}.accessory-categories{display:flex;gap:6px}.accessory-categories button{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 4px;border:1px solid #9870b14d;border-radius:13px;background:#49315b55;color:#d9c4e7;font-size:11px}.accessory-categories svg{width:23px;height:23px}.accessory-categories [aria-selected=true]{background:#8255b366;border-color:#c08aeb;color:#fff}.accessory-shelf{display:flex;gap:10px;justify-content:center;padding:14px 0 8px;min-height:108px}.accessory-item{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:96px;padding:10px 14px;border-radius:18px;border:1px solid #a680bf55;background:radial-gradient(ellipse at 50% 15%,#78509366,#32223f);color:#eadcf4;font-size:11px}.accessory-item>svg{width:56px;height:56px;filter:drop-shadow(0 4px 3px #130d2580);stroke:#e6b965}.accessory-item[aria-pressed=true]{background:radial-gradient(ellipse at 50% 15%,#9770cc80,#423052);border-color:#d8a7ff;box-shadow:inset 0 0 0 1px #c18ee34d}.accessory-item[aria-pressed=true]:after{content:'✓';position:absolute;right:6px;top:4px;color:#a2f2bb;font-size:14px}.accessory-item small{color:#dbb4f9}.equipped-accessories{display:flex;justify-content:center;gap:8px;min-height:34px;margin-bottom:7px}.equipped-accessories button{display:flex;align-items:center;gap:5px;background:#5b3b7544;border:1px solid #9e72b84d;border-radius:10px;color:#e8d7f0;padding:4px 7px}.equipped-accessories svg{width:23px;height:23px}.character-hero{width:240px;height:280px;z-index:1800;filter:drop-shadow(0 14px 24px #7b35b740)}.character-impact-ring{position:fixed;left:50%;top:47%;width:50px;height:50px;border-radius:50%;border:7px solid #ffdf9e;box-shadow:0 0 25px #ffba4e,inset 0 0 20px #e39dff;pointer-events:none;z-index:1799;animation:character-contact .85s ease-out both}.epic-banner{top:23%;z-index:1801}.epic-effects{z-index:1802}@keyframes character-contact{from{transform:translate(-50%,-50%) scale(.4);opacity:.9}to{transform:translate(-50%,-50%) scale(7);opacity:0}}body[data-motion=reduced] .character-impact-ring{display:none}@media(prefers-reduced-motion:reduce){.character-impact-ring{display:none}}

.character-stage-light{position:fixed;inset:0;z-index:1798;pointer-events:none;background:radial-gradient(ellipse at 50% 44%,#8051b431 0%,#150d29ac 75%);animation:character-spotlight 4.8s both}@keyframes character-spotlight{0%,100%{opacity:0}12%,88%{opacity:1}}

#scores .illustrated-avatar{position:relative}
.glass-knock{position:absolute;pointer-events:none;z-index:5;width:22px;height:22px;left:70%;top:50%;color:#ffe6a3;animation:glass-contact .38s ease-out both}
.glass-knock svg{width:100%;height:100%;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;filter:drop-shadow(0 0 3px #a56cff)}
@keyframes glass-contact{0%{opacity:0;transform:translate(-50%,-50%) scale(.65)}15%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.16)}}
body[data-motion="reduced"] .glass-knock{animation:glass-contact-still .38s linear both}
@keyframes glass-contact-still{0%,100%{opacity:0}20%,65%{opacity:1}}
@media(prefers-reduced-motion:reduce){.glass-knock{animation-name:glass-contact-still}}

.match-options{width:min(340px,calc(100vw - 32px));padding:25px;position:relative}
.match-options h2{margin:0 0 20px;font-size:22px}
.match-options .dialog-close{position:absolute;right:10px;top:10px;width:32px;height:32px}
.match-timers{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.match-timers button{min-height:64px;border:1px solid #9f7ce65c;border-radius:18px;background:linear-gradient(145deg,#593588,#342344);color:#fff;font-family:inherit;font-size:19px;font-weight:800;cursor:pointer;box-shadow:inset 0 1px #ffffff15}
.match-timers button:hover,.match-timers button:focus-visible{background:#7046a6;outline:2px solid #c3a5ff;outline-offset:2px}
/* Inset edges keep the turn light off the board and all touch targets. */
#game.has-turn-light>.board-area,#game.has-turn-light>.hand-panel{outline:1px solid #5af1a68a;outline-offset:-2px;box-shadow:inset 0 0 10px #37e38c18,0 0 9px #35d98328;transition:box-shadow .3s,outline-color .3s}
#game.has-turn-light>.board-area{border-color:#5af1a67a}

/* Android WebView's tap paint must never frame a character. Keyboard focus stays visible. */
.illustrated-avatar,.illustrated-avatar *,.player-card button{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}
.illustrated-avatar:focus:not(:focus-visible),.player-card button:focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
@media(pointer:coarse){.illustrated-avatar:focus,.player-card button:focus{outline:none!important}}
#game.has-turn-light>.board-area,#game.has-turn-light>.hand-panel{outline:2px solid #66ffb5;outline-offset:-3px;border-color:#52eda2;box-shadow:inset 0 0 15px #40ff9b25,0 0 5px #74ffc8a6,0 0 16px #32ed934d}



.illustrated-avatar,.illustrated-avatar *{-webkit-user-select:none;user-select:none}

.frame-character{position:fixed;z-index:32;pointer-events:none;opacity:0;contain:layout style;isolation:isolate}
.frame-character .character-art{width:100%;height:100%;display:block;clip-path:inset(0 0 31.5% 0)}
.frame-character .character-canvas{width:100%;height:100%;display:block}

/* The character studio keeps its controls usable on short and long phones. */
.avatar-dialog .character-stage{--portrait-size:clamp(132px,22dvh,190px);margin-top:0}
.avatar-dialog .avatar-option{--choice-size:clamp(44px,7dvh,60px);height:calc(var(--choice-size) + 24px)!important}
.avatar-dialog[open]{display:flex!important;flex-direction:column;overflow:hidden!important}
.avatar-dialog .drawer-heading,.avatar-dialog .avatar-save{flex:none}
.avatar-editor-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 4px 8px;margin:0 -4px}
.accessory-colours{display:flex;justify-content:center;gap:9px;padding:6px 4px 14px}.accessory-colours button{width:25px;height:25px;flex:0 0 25px;border:2px solid #e7d3f533;border-radius:50%;cursor:pointer}.accessory-colours button[aria-pressed=true]{outline:2px solid #ead1ff;outline-offset:3px}
.accessory-colours[hidden]{display:none}
.avatar-dialog .avatar-save{position:static;z-index:3;margin-top:8px!important}
.avatar-dialog .accessory-shelf{min-height:90px;padding-top:10px}
.avatar-dialog .accessory-item{padding:8px 14px}
.avatar-dialog .accessory-item>svg{width:46px;height:46px}
@media(max-height:650px){.avatar-dialog .character-stage{--portrait-size:118px}.avatar-dialog .avatar-choices{gap:5px!important}.avatar-dialog .avatar-option{--choice-size:36px;height:60px!important}.avatar-dialog .accessory-heading{margin:8px 0}.avatar-dialog .accessory-shelf{min-height:80px}.avatar-dialog .avatar-character-name{margin-bottom:5px!important}}
.frame-contact{position:absolute;left:0;right:0;height:2px;opacity:0;pointer-events:none}
.frame-contact i{position:absolute;width:13px;height:3px;border-radius:50%;background:#10091c80;filter:blur(1px);left:0;transform:translate(-50%,-20%)}
.frame-contact i+i{left:100%}
.frame-fog{position:absolute;left:37%;top:29%;width:29%;height:18%;border-radius:50%;background:radial-gradient(ellipse,#e8e1f2aa,transparent 70%);filter:blur(2px);opacity:0}
@media(prefers-reduced-motion:reduce){.frame-character{display:none}}
