*{box-sizing:border-box}html{color-scheme:dark;--bg:#171717;--panel:#212121;--surface:#282828;--card:#353735;--card2:#2b2e2c;--line:#ffffff17;--text:#f2f2ee;--muted:#b0b3af;--sub:#939991;--green:#7ed0a7;--gold:#e6c17a;--greenfill:#24382f;--goldfill:#393329;--action:#20885c;--shade:#0005;--focus:#83d8ae;--neutral:#bbc5bd}html[data-theme=light]{color-scheme:light;--bg:#eeefed;--panel:#f9faf7;--surface:#e9ebe7;--card:#fff;--card2:#f1f3ef;--line:#202c221c;--text:#232c26;--muted:#59675f;--sub:#67736a;--green:#216b49;--gold:#8a6021;--greenfill:#e1eee5;--goldfill:#f0e8d8;--action:#19764f;--shade:#283a2218;--focus:#216b49;--neutral:#5f6c63}body{margin:0;color:var(--text);background:var(--bg);font:14px/1.5 'Noto Sans Arabic','Segoe UI',Tahoma,Arial,sans-serif}button,input,select{font:inherit;color:inherit}button{cursor:pointer;background:none;border:0;touch-action:manipulation}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,[tabindex]:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--focus);outline-offset:3px}button:active:not(:disabled){scale:.97}button{transition:background .18s,box-shadow .22s,scale .16s,border-color .2s}h1,h2,h3,p{margin:0}svg{flex:none;display:block}small{font-size:11px;color:var(--muted)}.lab{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 22px;background:#101110;color:#ddd;border-bottom:1px solid #fff1}.labbrand{font-size:12px;white-space:nowrap;font-weight:700}.labbrand span{font:10px monospace;background:#ffffff12;padding:3px 6px;border-radius:5px;margin-inline-start:6px}.labcontrols{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.labcontrols label{display:flex;align-items:center;gap:5px;font-size:11px}.lab button,.lab select{border:1px solid #ffffff15;border-radius:7px;background:#242624;color:#e4e7df;padding:5px 9px;font-size:11px;min-height:30px}.lab button[aria-pressed=true]{border-color:#a3c6a5;color:#a3c6a5}#stage.phone{padding:12px 0;background:#42433f}#stage.phone .app{max-width:414px;margin:auto;border-radius:24px;overflow:hidden;box-shadow:0 16px 60px #0008}.app{container-type:inline-size;background:var(--bg)}.shell{min-height:calc(100dvh - var(--lab-h,48px));display:flex;flex-direction:column;gap:14px;padding:16px clamp(14px,2cqw,34px) 16px;max-width:2300px;margin:auto}.top{display:flex;align-items:center;gap:12px;min-width:0}.brand{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:850;white-space:nowrap}.mark{width:41px;height:41px;display:grid;place-items:center;border-radius:12px;background:#20845b;color:#fff;font-size:26px;box-shadow:inset 0 -2px 0 #0002}.roomtitle{flex:1;min-width:0;padding-inline-start:13px;border-inline-start:1px solid var(--line)}.roomtitle b{display:block;font-size:16px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.roomtitle small{display:block}.online{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;white-space:nowrap;margin-inline-end:4px}.live{display:inline-block;width:7px;height:7px;background:#7ed0a7;border-radius:50%;box-shadow:0 0 0 4px #7ed0a71c}.iconbtn{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--panel);display:grid;place-items:center;flex:none}.iconbtn:hover{background:var(--surface)}.avatar{display:inline-block;position:relative;flex:none;width:48px;height:48px;border-radius:50%;background:var(--avatar,var(--surface));border:1px solid #ffffff26;overflow:hidden;vertical-align:middle}.avatar svg{width:100%;height:100%}.host-dot{position:absolute;bottom:0;right:0;width:18px;line-height:18px;border-radius:50%;font-size:11px;text-align:center;color:#3b2b12;background:#e6c17a}.top .avatar{width:40px;height:40px}.panel{border:1px solid var(--line);border-radius:20px;background:var(--panel);min-width:0;box-shadow:0 4px 12px var(--shade)}
/* Selected game banner — full width, one action, game-specific art. */
.hero{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(120px,27%);align-items:center;position:relative;isolation:isolate;overflow:hidden;min-height:124px;flex:none;padding:14px 24px;gap:20px;width:100%;text-align:start;border-radius:20px;color:#f6f5eb;background:#19372b;border:1px solid #6d9d7855;box-shadow:inset 0 0 60px #081b1555}.hero::before{content:'';position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(122deg,transparent 0 28px,#d4c19708 29px 30px,transparent 31px 56px),radial-gradient(ellipse at 12% 60%,#6b9d603f,transparent 63%)}.hero[data-game=diamonds]{background:#3d3325;border-color:#b89c6c55}.hero[data-game=mdagsh]{background:#343b34;border-color:#9eac9555}.hero[data-game=jakaroo]{background:#283b31}.hero:hover{box-shadow:inset 0 0 70px #ffffff08,0 0 0 1px #d6be7d66}.hero h1{font-size:clamp(27px,3.4cqw,42px);line-height:1.22;font-weight:850;margin:4px 0}.hero p{font-size:12px;color:#d3ded2}.eyebrow{display:flex;gap:8px;align-items:center;color:#e0c991;font-weight:700;font-size:11px}.hero-art{width:100%;height:auto;max-height:115px;overflow:visible;filter:drop-shadow(0 10px 9px #0005)}.hero-art .float2,.hero-art .float3{transform-box:fill-box;transform-origin:center;animation:artfloat 4.8s ease-in-out infinite}.hero-art .float3{animation-delay:-1.8s;animation-duration:5.8s}.hero:hover .hero-art{animation:artlift .55s cubic-bezier(.2,.8,.2,1)}.heroformat{display:flex;flex-direction:column;align-items:center;gap:6px;color:#d6e2d4;font-size:13px;white-space:nowrap}.heroformat .chev{display:flex;align-items:center;gap:6px;border:1px solid #ffffff30;border-radius:9px;background:#ffffff08;padding:6px 10px;color:#f4e6b9;font-size:11px}.heroformat .chev svg{rotate:180deg}.modebar{display:flex;align-items:center;gap:6px;justify-content:flex-end;flex:none}.modebar span{font-size:11px;color:var(--muted);margin-inline-end:5px}.modebar button{padding:6px 18px;border-radius:9px;border:1px solid var(--line);background:var(--panel);font-size:12px}.modebar button.on{background:var(--surface);border-color:var(--focus);color:var(--green);font-weight:750}
/* The approved table composition. */
.tablelayout{display:flex;flex-direction:column;flex:1;gap:14px;min-width:0}.tablearena{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.24fr) minmax(0,1fr);gap:16px;align-items:stretch;flex:1;padding:16px;min-height:330px;isolation:isolate;background:var(--panel)}.side{min-width:0;display:flex;flex-direction:column;gap:10px;padding:13px;border-radius:16px;background:var(--greenfill);border:1px solid color-mix(in srgb,var(--green) 17%,transparent);--team:var(--green)}.side.b{background:var(--goldfill);--team:var(--gold);border-color:color-mix(in srgb,var(--gold) 18%,transparent)}.teamhead{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:14px;color:var(--team);font-weight:800;white-space:nowrap}.teamname{display:flex;align-items:center;gap:7px}.teamicon{display:grid;place-items:center;width:28px;height:28px;border:1px solid color-mix(in srgb,var(--team) 27%,transparent);background:color-mix(in srgb,var(--team) 8%,transparent);border-radius:8px;font-size:18px}.teamcount{font-size:12px;opacity:.85;font-variant-numeric:tabular-nums}.cardrow{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:11px;flex:1;min-height:0}.seat{--rx:0deg;--ry:0deg;--px:50%;--py:50%;position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:110px;border:1px solid #ffffff24;background:linear-gradient(145deg,color-mix(in srgb,var(--card) 92%,var(--team) 8%),var(--card2));color:var(--text);border-radius:15px;padding:16px 26px 16px 15px;cursor:pointer;isolation:isolate;touch-action:pan-y;user-select:none;box-shadow:0 5px 12px #0003,inset 0 1px 0 #ffffff13;transform:perspective(850px) rotateX(var(--rx)) rotateY(var(--ry));transition:transform .25s cubic-bezier(.2,.75,.2,1),box-shadow .25s,translate .25s,border-color .2s}.seat::before{content:'';position:absolute;inset:4px;border-radius:10px;border:1px solid #ffffff0c;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at var(--px) var(--py),#ffffff12,transparent 65%)}.seat::after{content:'';position:absolute;inset:0;border-radius:inherit;opacity:0;pointer-events:none;background:radial-gradient(circle at var(--px) var(--py),#ffffff1d,transparent 45%);transition:opacity .22s}.seat:hover::after{opacity:1}.seat:hover{translate:0 -2px;border-color:color-mix(in srgb,var(--team) 45%,var(--line));box-shadow:0 9px 18px #0004,inset 0 1px 0 #ffffff20}.seat[data-mode=quick],.seat[data-mode=empty]{background:color-mix(in srgb,var(--panel) 86%,var(--team) 14%);border:1px dashed color-mix(in srgb,var(--team) 35%,var(--line));box-shadow:none}.seat[data-mode=bot]{background:linear-gradient(145deg,var(--surface),var(--card2))}.seat .corner{display:flex;flex-direction:column;align-items:center;position:absolute;top:7px;right:8px;line-height:1.1;font-size:11px;color:var(--team);font-weight:750}.corner b{font-size:13px}.corner.low{top:auto;bottom:7px;right:auto;left:8px;rotate:180deg;opacity:.5}.seat-options{position:absolute;top:5px;left:5px;display:grid;place-items:center;width:30px;height:30px;background:#ffffff08;border-radius:8px;z-index:3;color:var(--muted)}.seat-options:hover{background:var(--surface);color:var(--text)}.seatpic{flex:none;touch-action:none;z-index:2}.seatpic .avatar,.placeholder{width:clamp(45px,4.9cqw,75px);height:clamp(45px,4.9cqw,75px)}.placeholder{display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--team) 30%,var(--line));border-radius:50%;background:color-mix(in srgb,var(--team) 8%,var(--surface));color:var(--team)}.seatdetails{min-width:0;flex:1;text-align:start}.seatname{font-size:clamp(14px,1.4cqw,18px);font-weight:800;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.seatsub{font-size:11px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:1px}.seatfoot{display:flex;align-items:center;gap:5px;color:var(--team);font-size:10px;font-weight:700;margin-top:9px;white-space:nowrap}.statusdot{width:6px;height:6px;display:inline-block;border-radius:50%;background:currentColor}.seat[data-mode=quick] .statusdot{background:transparent;border:1px solid currentColor;animation:searchpulse 2s ease-out infinite}.seat[data-mode=empty] .seatfoot{color:var(--muted)}.suitwater{position:absolute;inset:0;display:grid;place-items:center;z-index:-1;pointer-events:none;font:clamp(64px,9cqw,136px) Georgia,serif;color:var(--team);opacity:.055}.seat.chosen,.person.chosen{outline:2px solid var(--focus);outline-offset:2px;box-shadow:0 0 0 5px #7ed0a71b}.dropover{outline:2px solid var(--focus)!important;outline-offset:2px;background:color-mix(in srgb,var(--greenfill) 75%,var(--surface))!important}.dragging{opacity:.38}.solo .side{background:transparent;border-color:transparent;padding:0;--team:var(--neutral)}.solo .seat{--team:var(--neutral)}.solo .teamhead{display:none}.solo .cardrow{gap:12px}.solo .seat .suitwater{opacity:.035}
/* Image-based room skin. Fading is applied to the image only, never the UI. */
.tablecenter{position:relative;min-width:0;min-height:300px;display:flex;align-items:center;justify-content:center;isolation:isolate;overflow:hidden;border-radius:17px;color:#f5ecdc;background:#181b18;border:1px solid #ffffff13;padding:12px;cursor:pointer}.map-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;mask-image:radial-gradient(ellipse 74% 76% at center,#000 43%,#000d 66%,transparent 100%);opacity:.96;transition:scale .7s cubic-bezier(.2,.7,.2,1)}.map-blur{position:absolute;inset:-12px;background-position:center;background-size:cover;z-index:-3;filter:blur(22px) brightness(.60);opacity:.65;mask-image:radial-gradient(ellipse,#000 12%,transparent 83%)}.tablecenter:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#0003,transparent 27%,transparent 72%,#0005);box-shadow:inset 0 0 32px #0004;border-radius:inherit}.tablecenter:hover .map-image{scale:1.025}.tablecenter:hover{border-color:#b7a27277}.skin-label{position:absolute;top:12px;right:12px;display:flex;gap:8px;align-items:center;max-width:calc(100% - 24px);font-size:12px;font-weight:750;background:#171917a8;color:#f1ecdf;border:1px solid #ffffff25;border-radius:10px;padding:7px 10px;backdrop-filter:blur(12px)}.skin-label svg{opacity:.78}.gamecover{position:relative;display:grid;place-items:center;width:80%;height:100%;min-height:130px;padding:15px 0}.gamecover .hero-art{max-width:245px;max-height:165px;filter:drop-shadow(0 16px 12px #0008);transition:scale .35s}.tablecenter:hover .gamecover .hero-art{scale:1.04}.skin-edit{position:absolute;bottom:12px;left:12px;display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#111a;color:#f1e8d4;border:1px solid #ffffff22;backdrop-filter:blur(10px)}
/* Spectators: bounded, searchable and accessible drop surface. */
.audience{display:flex;flex-direction:column;min-height:142px;max-height:230px;padding:12px 14px;gap:10px;flex:none}.audhead{display:flex;align-items:center;gap:10px;min-width:0}.audhead h2{font-size:15px;font-weight:800}.count{display:inline-grid;place-items:center;min-width:27px;padding:3px 7px;background:var(--surface);border:1px solid var(--line);border-radius:8px;font-size:12px;color:var(--muted)}.searchwrap{margin-inline-start:auto;display:flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:6px 9px;color:var(--muted);width:min(235px,48%)}.searchwrap input{width:100%;min-width:0;background:none;border:0;outline:none;font-size:12px;color:var(--text)}.searchwrap:focus-within{border-color:var(--focus)}.pool{display:grid;grid-template-columns:repeat(auto-fill,minmax(147px,1fr));gap:7px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;min-height:57px;max-height:148px;align-content:start;padding:3px;scrollbar-color:var(--sub) transparent}.person{display:flex;align-items:center;min-width:0;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:8px;cursor:pointer;user-select:none;transition:background .18s,translate .2s,outline .2s;touch-action:pan-y}.person:hover{background:color-mix(in srgb,var(--surface) 92%,var(--green) 8%);translate:0 -1px}.person .avatar{width:32px;height:32px;touch-action:none}.who{flex:1;min-width:0}.who b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.who small{font-size:10px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.grip{font-size:15px;color:var(--sub);touch-action:none}.emptymsg{grid-column:1/-1;display:grid;place-items:center;min-height:53px;color:var(--muted);font-size:12px}.actions{display:flex;align-items:center;gap:10px;padding:13px 15px;flex:none;min-height:76px}.status{flex:1;min-width:0;display:flex;align-items:center;gap:12px}.status b{display:block;font-size:14px;font-weight:800}.status small{display:block;white-space:normal}.segments{display:flex;gap:3px;flex:none}.segments i{width:7px;height:25px;border-radius:4px;background:var(--surface);border:1px solid var(--line);transition:background .25s,scale .25s}.segments i.human,.segments i.bot{background:var(--green);border-color:transparent}.segments i.quick{background:var(--gold);border-color:transparent;animation:searchpulse 2s ease-in-out infinite}.primary,.secondary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 18px;border-radius:12px;font-size:13px;font-weight:800;white-space:nowrap}.primary{background:var(--action);color:#fff;border:1px solid #ffffff1a;box-shadow:0 3px 0 #0a543b,0 4px 12px #0002}.primary:hover:not(:disabled){background:#249767;box-shadow:0 3px 0 #0a543b,0 5px 18px #218e5e33}.primary:active:not(:disabled){translate:0 2px;box-shadow:0 1px 0 #0a543b}.secondary{background:var(--surface);border:1px solid var(--line);color:var(--text)}.secondary:hover{background:color-mix(in srgb,var(--surface) 90%,var(--green) 10%)}.actions .primary{min-width:175px}.foot{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--sub);padding:0 2px}.selectstatus{position:fixed;z-index:20;bottom:92px;left:50%;transform:translateX(-50%);padding:8px 13px;border-radius:12px;border:1px solid var(--focus);background:var(--panel);box-shadow:0 7px 25px var(--shade);display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:12px;max-width:95vw}.selectstatus button{font-size:19px;line-height:1}.menu{position:fixed;z-index:50;min-width:168px;display:flex;flex-direction:column;gap:3px;padding:5px;background:var(--panel);border:1px solid var(--line);box-shadow:0 12px 30px #0005;border-radius:12px;animation:popin .18s ease-out}.menu button{display:flex;align-items:center;gap:8px;padding:10px;border-radius:8px;text-align:start;font-size:12px}.menu button:hover{background:var(--surface);color:var(--green)}
/* Modal sequences and feedback */
.overlay{position:fixed;inset:0;display:grid;place-items:center;padding:16px;z-index:100;background:#0008;backdrop-filter:blur(5px);animation:fadein .18s ease-out}.dialog{width:min(100%,490px);max-height:calc(100dvh - 32px);overflow:auto;border-radius:23px;padding:20px;background:var(--panel);border:1px solid var(--line);box-shadow:0 20px 80px #0006;display:flex;flex-direction:column;gap:12px;animation:dialogin .28s cubic-bezier(.16,1,.3,1)}.dialog h2{font-size:21px}.dialog p{color:var(--muted);font-size:12px}.dialogtop{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialogtop button{width:32px;height:32px;background:var(--surface);border:1px solid var(--line);border-radius:50%;font-size:20px;line-height:1}.dialog label{font-size:12px;color:var(--muted)}.dialog input{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:11px 12px}.gameoptions{display:grid;gap:8px}.gameoption{display:flex;align-items:center;text-align:start;gap:12px;padding:9px 11px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.gameoption:hover,.skinoption:hover{border-color:var(--focus);translate:0 -1px}.gameoption.active,.skinoption.active{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.thumb{width:78px;height:54px;border-radius:8px;background:#243c30;display:grid;place-items:center;overflow:hidden;flex:none}.thumb svg{width:100%;height:100%}.grow{flex:1;min-width:0}.skinlist{display:grid;grid-template-columns:1fr 1fr;gap:10px}.skinoption{position:relative;display:block;overflow:hidden;text-align:start;border:1px solid var(--line);border-radius:13px;padding:0;background:var(--surface);transition:translate .2s,border-color .2s,box-shadow .2s}.skinoption img{width:100%;height:112px;object-fit:cover;display:block}.skinoption strong{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:13px;padding:9px 10px}.skinoption.active strong{color:var(--green)}.center{text-align:center;align-items:stretch}.sequence{position:relative;display:grid;place-items:center;min-height:106px}.roundicon{position:relative;display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:var(--greenfill);border:1px solid var(--green);color:var(--green);font-size:32px;font-weight:850}.roundicon.searching:after,.roundicon.searching:before{content:'';position:absolute;inset:-6px;border:1px solid var(--green);border-radius:50%;animation:ring 2s ease-out infinite;pointer-events:none}.roundicon.searching:after{animation-delay:1s}.roundicon.ready{background:var(--goldfill);color:var(--gold);border-color:var(--gold)}.sequenceplayers{display:flex;align-items:center;justify-content:center;gap:12px;padding:4px 0}.sequenceplayers .avatar,.sequenceplayers .placeholder{width:42px;height:42px}.sequenceplayers .placeholder{--team:var(--green)}.sequenceprogress{height:6px;border-radius:6px;overflow:hidden;background:var(--surface)}.sequenceprogress i{display:block;height:100%;background:var(--green);width:var(--progress,0%);transition:width .4s}.dragghost{position:fixed;pointer-events:none;z-index:200;display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--focus);box-shadow:0 12px 35px #0007;border-radius:14px;padding:9px 13px;transform:translate(-50%,-62%) rotate(-4deg)}.dragghost .avatar{width:36px;height:36px}#toast{position:fixed;z-index:250;left:50%;bottom:22px;transform:translate(-50%,15px);opacity:0;pointer-events:none;transition:opacity .2s,transform .3s;background:var(--panel);border:1px solid var(--line);box-shadow:0 8px 28px #0005;border-radius:12px;padding:10px 17px;font-size:13px;max-width:calc(100% - 24px);text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}.spark{position:fixed;width:7px;height:10px;border-radius:2px;pointer-events:none;z-index:210;animation:spark .6s ease-out forwards}.fly{position:fixed;z-index:150;pointer-events:none}.fly .avatar{width:100%;height:100%}
@keyframes artfloat{0%,100%{translate:0 0;rotate:0deg}50%{translate:0 -4px;rotate:2deg}}@keyframes artlift{50%{transform:translateY(-4px) rotate(-2deg)}}@keyframes searchpulse{50%{opacity:.55}}@keyframes ring{from{scale:.85;opacity:.7}to{scale:1.65;opacity:0}}@keyframes popin{from{opacity:0;transform:translateY(-5px) scale(.96)}to{opacity:1;transform:none}}@keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes dialogin{from{opacity:0;transform:translateY(15px) scale(.98)}to{opacity:1;transform:none}}@keyframes spark{to{transform:translate(var(--dx),var(--dy)) rotate(var(--r));opacity:0}}
/* Portrait, landscape and desktop use the same composition, not scaled-down desktop cards. */
@container(max-width:1000px){.shell{gap:12px;padding:12px 15px}.tablearena{gap:10px;padding:12px;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1fr)}.side{padding:9px}.seat{padding:14px 23px 14px 10px;gap:7px}.teamhead{font-size:12px}.seatname{font-size:14px}.seatsub{font-size:10px}.tablecenter{min-height:270px}.actions .primary{min-width:135px}}
@container(max-width:760px){.shell{padding:10px;gap:10px}.top{gap:7px}.brand{font-size:21px;gap:6px}.mark{width:34px;height:34px;font-size:23px}.roomtitle{padding-inline-start:8px}.roomtitle b{font-size:13px}.roomtitle small{font-size:10px}.top .online{display:none}.iconbtn,.top .avatar{width:34px;height:34px;border-radius:10px}.hero{min-height:100px;padding:10px 14px;gap:6px;grid-template-columns:minmax(0,1fr) minmax(100px,36%)}.heroformat{display:none}.hero-art{max-height:90px}.hero h1{font-size:28px}.hero p{font-size:11px}.tablearena{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:9px;min-height:0;flex:none}.tablecenter{grid-column:1/-1;grid-row:1;min-height:175px;height:clamp(175px,47cqw,250px)}.tablecenter .gamecover .hero-art{max-height:115px;max-width:180px}.side{padding:8px;gap:8px}.teamhead{font-size:12px}.teamicon{width:24px;height:24px;font-size:15px}.cardrow{gap:8px}.seat{min-height:96px;gap:8px;padding:18px 20px 11px 9px;border-radius:12px}.seatpic .avatar,.placeholder{width:43px;height:43px}.seat-options{width:27px;height:27px;top:3px;left:3px}.seat-options svg{width:15px}.seatname{font-size:13px}.seatsub{font-size:10px}.seatfoot{font-size:9px;margin-top:6px}.seat .corner{top:6px;right:5px;font-size:9px}.seat .corner.low{left:5px;right:auto;top:auto;bottom:5px}.seat .corner b{font-size:11px}.audience{min-height:115px;max-height:245px;padding:10px;gap:7px}.pool{grid-template-columns:repeat(2,minmax(0,1fr));max-height:170px}.person{padding:6px;gap:6px}.person .avatar{width:29px;height:29px}.person b{font-size:11px}.actions{flex-wrap:wrap;gap:8px;padding:10px}.status{flex-basis:100%;gap:9px}.status b{font-size:12px}.status small{font-size:10px}.segments i{height:20px}.actions .secondary,.actions .primary{flex:1;min-width:0;padding:9px 6px;min-height:43px;font-size:12px}.foot{font-size:9px}.modebar button{padding:5px 15px}.tablelayout{gap:10px}}
@container(max-width:480px){.tablecenter{height:175px;min-height:175px}.seat{min-height:110px;flex-direction:column;justify-content:center;gap:5px;padding:16px 7px 9px;text-align:center}.seatdetails{text-align:center;width:100%;flex:0}.seatfoot{justify-content:center;margin-top:4px}.seatsub{font-size:10px}.seatpic .avatar,.placeholder{width:42px;height:42px}.side{padding:6px}.teamhead{font-size:11px;gap:4px}.teamname{gap:4px}.teamcount{font-size:10px}.teamicon{width:20px;height:20px;font-size:13px}.cardrow{gap:7px}.skin-label{top:8px;right:8px;font-size:11px;padding:5px 8px}.skin-edit{bottom:8px;left:8px;width:29px;height:29px}.solo .seat{min-height:110px}.solo .cardrow{gap:8px}.top .avatar{display:none}.hero h1{font-size:25px}.hero{min-height:94px}.tablecenter .gamecover .hero-art{max-height:102px}.shell{gap:9px}.person .grip{display:none}.audhead h2{font-size:14px}.searchwrap{width:45%}.searchwrap input{font-size:11px}}
@container(max-width:350px){.shell{padding:8px}.brand{font-size:19px}.mark{width:31px;height:31px}.top .iconbtn{width:31px;height:31px}.roomtitle small{display:none}.teamhead{font-size:10px}.teamcount{font-size:9px}.teamicon{width:17px;height:17px}.seatname{font-size:12px}.seat-options{width:24px;height:24px}.skin-label{font-size:10px}.grip{display:none}.actions .secondary,.actions .primary{font-size:11px}.searchwrap{width:44%}}
@media(max-width:620px){.lab{padding:6px 10px;gap:6px}.labbrand{font-size:11px}.labcontrols{gap:4px;justify-content:flex-end}.lab button,.lab select{padding:4px 6px;font-size:10px}.labcontrols label{font-size:10px}.dialog{padding:16px;border-radius:19px}.overlay{align-items:end;padding:9px}.skinoption img{height:96px}.dialog h2{font-size:19px}}html[data-theme=light] .seat{border-color:#17291c20;box-shadow:0 4px 9px #24332814,inset 0 1px 0 #fff}html[data-theme=light] .seat::before{border-color:#192d1b0b}html[data-theme=light] .seat-options{background:#182b1607}html[data-theme=light] .seat[data-mode=empty],html[data-theme=light] .seat[data-mode=quick]{border-color:color-mix(in srgb,var(--team) 36%,var(--line))}.quiet *,html.quiet *{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
/* Final QA adjustments: stable card bounds and a more compact desktop fold. */
.seat{overflow:hidden}.seat:hover .seatpic{scale:1.04}.seatpic{transition:scale .25s cubic-bezier(.2,.8,.2,1)}.teamcount{direction:ltr;unicode-bidi:isolate}.fly{border-radius:50%;transform-origin:top left}.fly .avatar{display:block}.tablecenter .map-image{mask-image:radial-gradient(ellipse 69% 73% at center,#000 39%,#000e 63%,transparent 100%)}.gamecover .hero-art{animation:coverbreath 6s ease-in-out infinite;transform-origin:center}@keyframes coverbreath{0%,100%{translate:0 0}50%{translate:0 -3px}}.heroformat .chev{transition:background .18s}.hero:hover .chev{background:#ffffff18}.person .who small{color:var(--muted)}
@container(min-width:1100px){.pool{grid-template-columns:repeat(6,minmax(0,1fr))}.shell{gap:12px;padding-block:12px}.hero{min-height:116px;padding-block:10px}.hero-art{max-height:100px}.tablearena{min-height:316px;padding:14px}.tablecenter{min-height:285px}.audience{padding-block:10px;gap:8px;max-height:204px}.pool{max-height:132px}.actions{min-height:68px;padding-block:9px}.foot{display:none}}
@container(min-width:1650px){.pool{grid-template-columns:repeat(6,minmax(0,1fr))}.hero{min-height:142px}.hero-art{max-height:120px}.tablearena{min-height:355px}.tablecenter .gamecover .hero-art{max-height:190px;max-width:280px}.audience{min-height:170px}.person{padding:10px}.person .avatar{width:37px;height:37px}}
@container(max-width:480px){.lab{max-width:100%}.seat{min-height:112px}.tablecenter{height:166px;min-height:166px}.foot{display:none}.person{padding:5px 6px}.pool{max-height:135px}.audience{min-height:116px}.hero{min-height:90px}}
.teamcount{direction:rtl;unicode-bidi:isolate}
@media (orientation:landscape) and (max-height:520px) and (min-width:761px){.lab{padding:5px 12px}.shell{gap:8px;padding:8px 12px}.top .iconbtn,.top .avatar,.mark{width:32px;height:32px}.brand{font-size:20px}.hero{min-height:76px;padding:7px 15px}.hero-art{max-height:69px}.hero h1{font-size:25px}.hero p,.heroformat .chev{font-size:10px}.tablelayout{gap:8px}.tablearena{min-height:205px;flex:0;padding:8px;gap:8px}.tablecenter{min-height:188px}.side{padding:7px;gap:5px}.teamhead{font-size:11px}.teamicon{width:20px;height:20px;font-size:14px}.cardrow{gap:6px}.seat{min-height:75px;padding:13px 20px 9px 8px;gap:6px}.seatpic .avatar,.placeholder{width:36px;height:36px}.seatname{font-size:12px}.seatsub,.seatfoot{font-size:9px}.seatfoot{margin-top:4px}.seat-options{width:23px;height:23px}.seat-options svg{width:14px}.seat .corner{font-size:9px}.seat .corner b{font-size:10px}.gamecover .hero-art{max-height:109px;max-width:160px}.audience{min-height:94px;max-height:132px;padding:8px;gap:6px}.pool{max-height:78px;grid-template-columns:repeat(5,minmax(0,1fr))}.person{padding:5px}.person .avatar{width:27px;height:27px}.actions{min-height:57px;padding:8px 10px}.actions .primary,.actions .secondary{min-height:38px;padding:8px 12px}.foot{display:none}}

/* V7: responsive mobile flow, adaptive spectator capacity, and seat shuffle. */
.shuffle-btn{flex:none;min-width:0}.shuffle-btn svg{transition:rotate .22s,scale .22s}.shuffle-btn:hover:not(:disabled) svg{rotate:-8deg;scale:1.12}.shuffle-btn:active:not(:disabled) svg{rotate:12deg}.seat.shuffling{z-index:8;pointer-events:none;will-change:transform}.actions .shuffle-btn:focus-visible{outline-offset:2px}
/* A preview must represent a phone, not the height of the host monitor. */
#stage.phone{min-height:calc(100dvh - var(--lab-h,48px))}
#stage.phone .app{width:min(414px,100%);max-height:max(320px,min(844px,calc(100dvh - var(--lab-h,48px) - 24px)));overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}
#stage.phone .shell{--mobile-budget:min(844px,calc(100dvh - var(--lab-h,48px) - 24px))}
@container(max-width:760px){
.shell{min-height:0;max-width:none;gap:9px;padding:10px 10px max(12px,env(safe-area-inset-bottom));--mobile-budget:calc(100dvh - var(--lab-h,48px))}
.tablelayout{flex:none;gap:9px}.tablearena{flex:none;gap:8px;padding:8px;border-radius:18px}.tablecenter{height:clamp(138px,40cqw,210px);min-height:0}.side{gap:6px;padding:7px}.cardrow{gap:7px}.teamhead{min-height:22px}.audience{flex:none;min-height:0;max-height:none;padding:9px;gap:7px;border-radius:16px}.pool{min-height:0;max-height:clamp(103px,calc(var(--mobile-budget) - 585px),440px);padding:2px;gap:6px;grid-auto-rows:max-content;align-content:start}.person{min-height:45px;padding:5px 7px}.actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:10px;border-radius:16px;min-height:0}.actions .status{min-width:0}.actions .shuffle-btn{justify-self:end;min-height:37px;padding:7px 10px;gap:6px;font-size:11px;max-width:100%;white-space:nowrap}.actions .shuffle-btn svg{width:16px;height:16px}.actions .primary,.actions .secondary:not(.shuffle-btn){width:100%;min-height:42px}.foot{display:none}.selectstatus{bottom:max(12px,env(safe-area-inset-bottom));max-width:calc(100vw - 18px)}
}
@container(max-width:480px){
.shell{padding-inline:9px;gap:8px}.top{gap:6px}.hero{min-height:84px;padding:8px 12px;border-radius:17px}.hero-art{max-height:75px}.hero h1{font-size:24px}.hero p{font-size:10px}.tablecenter{height:clamp(132px,38cqw,170px);border-radius:14px}.tablecenter .gamecover .hero-art{max-height:96px;max-width:166px}.tablearena{padding:7px;gap:7px}.side{padding:5px;gap:5px;border-radius:12px}.teamhead{min-height:20px}.cardrow{gap:6px}.seat,.solo .seat{min-height:101px;padding:15px 7px 8px;gap:4px}.seatpic .avatar,.placeholder{width:37px;height:37px}.seatname{font-size:13px}.seatsub{font-size:10px;line-height:1.35}.seatfoot{margin-top:3px;font-size:9px}.seat .corner{font-size:9px}.seat .corner.low{bottom:5px;left:5px}.seat-options{width:25px;height:25px}.audience{padding:8px;gap:6px}.audhead{gap:6px}.searchwrap{padding:5px 7px}.pool{max-height:clamp(101px,calc(var(--mobile-budget) - 540px),440px)}.person{min-height:43px}.person .avatar{width:28px;height:28px}.actions{padding:8px;gap:7px}.status{gap:6px}.status small{font-size:9px}.status b{font-size:11px}.segments{gap:2px}.segments i{width:5px;height:20px}.actions .shuffle-btn{font-size:11px;padding:6px 9px}.modebar{gap:5px}.modebar button{padding:4px 13px}
}
@container(max-width:350px){.shell{padding-inline:7px}.actions .shuffle-btn{font-size:10px;gap:4px;padding-inline:6px}.status b{font-size:10px}.status small{font-size:9px}.teamhead{font-size:10px}.seatname{font-size:12px}.seat-options{width:23px;height:23px}.top{gap:5px}}

/* Tight portrait composition: retain card details, use horizontal content within each seat. */
@container(max-width:480px){
.seat,.solo .seat{min-height:84px;flex-direction:row;justify-content:flex-start;gap:6px;padding:22px 9px 10px;text-align:start}.seatdetails{flex:1;width:auto;text-align:start}.seatfoot{justify-content:flex-start;margin-top:2px;line-height:1.15}.seatpic .avatar,.placeholder{width:35px;height:35px}.seatname{font-size:12px;line-height:1.3}.seatsub{font-size:10px;line-height:1.25}.seat .corner.low{bottom:4px;left:5px;opacity:.35}.seat-options{top:3px;left:3px;width:25px;height:25px}.tablecenter{height:clamp(125px,35cqw,155px)}.teamhead{min-height:19px}.cardrow{gap:6px}.solo .cardrow{gap:7px}
}
@container(max-width:350px){.seat,.solo .seat{gap:4px;padding-inline:6px;min-height:84px}.seatpic .avatar,.placeholder{width:29px;height:29px}.seatname{font-size:11px}.seatsub{font-size:9px}.seatfoot{font-size:8px}.seat .corner.low{display:none}.tablecenter{height:125px}.hero h1{font-size:23px}.teamicon{width:17px;height:17px}}
@container(max-width:760px){.pool{max-height:var(--pool-limit,140px)}.actions .status{gap:5px}.actions .shuffle-btn{font-weight:750}.actions .primary,.actions .secondary:not(.shuffle-btn){min-height:44px}}

/* Phase 0 shell, authentication and staging tools */
.hub{min-height:calc(100dvh - 48px);display:grid;place-items:center;padding:clamp(16px,4vw,56px)}.hub-card{width:min(100%,680px);padding:clamp(20px,4vw,36px);display:grid;gap:18px}.hub-card h1{font-size:32px}.hub-card p{color:var(--muted)}.hub-card label,.dialog label{display:grid;gap:6px;color:var(--muted);font-size:12px}.hub-card input,.dialog input{min-width:0;width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text)}.hub-card form{display:grid;gap:12px}.hub-logo{display:flex;gap:12px;align-items:center}.hub-logo .mark{width:58px;height:58px;font-size:32px}.room-list{display:grid;gap:8px;max-height:360px;overflow:auto}.room-item{display:flex;text-align:start;align-items:center;gap:12px;padding:12px;border-radius:12px;background:var(--surface);border:1px solid var(--line)}.room-item:hover{border-color:var(--green)}.room-item b{display:block}.room-item .grow{flex:1;min-width:0}.room-item b,.room-item small{overflow-wrap:anywhere}.room-item .thumb{width:56px;height:46px}.room-item .thumb svg{width:100%;height:100%}.hub-actions{display:flex;gap:8px;flex-wrap:wrap}.hub-actions button{flex:1}.err{color:#e4978e;font-size:13px;min-height:20px}.stage-note{font-size:11px;color:var(--muted);padding:8px 0}.lab .conn{font-size:11px;color:#9da9a0}.lab .conn.ok{color:#7ed0a7}.lab .conn.fail{color:#e6be72}.labcontrols{justify-content:flex-end}.labbrand{white-space:normal}.read-only .seat-options{opacity:.35;pointer-events:none}.read-only .skin-edit{display:none}.read-only .tablecenter,.read-only .hero{cursor:default}.seat[data-offline=true]{opacity:.72}.dev-pre{max-height:250px;overflow:auto;text-align:left;direction:ltr;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);padding:10px;border-radius:10px;color:var(--muted);font:11px/1.5 monospace}.dev-buttons{display:flex;gap:7px;flex-wrap:wrap}.dev-buttons button{flex:1}.dialog .dev-buttons input{min-width:70px;width:90px}.preview-table{position:relative;min-height:230px;border-radius:25px;background:#193d2c;border:1px solid #b6a16d66;overflow:hidden;display:grid;place-items:center;isolation:isolate}.preview-table:before{content:'';position:absolute;inset:5%;border:1px solid #e6c17a44;border-radius:40%;pointer-events:none}.preview-deck{display:grid;place-items:center;width:50px;height:70px;border:2px solid #bca77c;border-radius:8px;background:repeating-linear-gradient(45deg,#4f5143 0 4px,#394b3a 4px 8px);box-shadow:0 3px 0 #c2b99b,0 6px 0 #d9c9a8;color:#fff;z-index:2}.preview-card{position:absolute;width:36px;height:50px;border-radius:5px;border:1px solid #d0b890;background:#f0ead9;color:#295341;display:grid;place-items:center;font-size:24px;box-shadow:0 4px 8px #0004;transform:translate(var(--x),var(--y)) rotate(var(--r));animation:deal-preview .55s backwards;animation-delay:var(--delay)}@keyframes deal-preview{from{transform:translate(0,0) rotate(-10deg);opacity:0}to{transform:translate(var(--x),var(--y)) rotate(var(--r));opacity:1}}.quiet .preview-card{animation:none}.preview-label{text-align:center;color:var(--muted);font-size:12px}.dialog .copyfield{direction:ltr;text-align:left}.dialog .linkrow{display:flex;gap:6px;align-items:center}.dialog .linkrow input{flex:1}.dialog .linkrow button{flex:none}.stage-note[hidden]{display:none}.shell .foot span{font-size:10px}@media(max-width:600px){.lab{padding:6px 9px;gap:5px}.labbrand{font-size:10px}.lab .conn{font-size:10px}.lab button{padding:4px 7px;min-height:28px}.hub-card{padding:18px}.hub-card h1{font-size:24px}.hub{padding:14px}.dialog{max-height:90dvh}.hub-logo .mark{width:44px;height:44px}.preview-table{min-height:210px}}
html[data-theme=dark]{--bg:var(--brand-bg,#171717);--panel:var(--brand-panel,#212121);--green:var(--brand-green,#7ed0a7);--gold:var(--brand-gold,#e6c17a)}

.read-only .hero:disabled,.read-only .tablecenter:disabled{opacity:1}.read-only .hero .chev{visibility:hidden}.read-only .actions .primary:disabled{background:var(--surface);color:var(--muted);box-shadow:none;opacity:.72}.read-only .seat-options:disabled{opacity:.28}.seat[data-offline=true] .statusdot{background:var(--muted)}
/* Phase 1: clean game chrome, developer overlay, real card table */
:root{--lab-h:0px}.default-avatar{background:var(--raise,#363636);color:var(--muted,#a5a6a2);display:inline-grid;place-items:center}.default-avatar svg{width:57%;height:57%;stroke-width:1.6}.default-avatar .host-dot{color:#302516}.shell{min-height:100dvh}.disconnected .online::after{content:' · إعادة الاتصال';color:var(--gold)}
#dev-toggle[hidden],#dev-panel[hidden]{display:none!important}#dev-toggle{position:fixed;bottom:max(10px,env(safe-area-inset-bottom));left:10px;z-index:90;background:#141b17;color:#a0e9b9;border:1px solid #5da57460;border-radius:11px;min-width:42px;height:42px;font:700 17px ui-monospace,monospace;box-shadow:0 6px 22px #0005}#dev-panel{position:fixed;left:10px;bottom:60px;width:min(440px,calc(100vw - 20px));max-height:calc(100dvh - 76px);overflow:auto;z-index:91;background:#121815;color:#e2efe5;border:1px solid #57846685;border-radius:17px;box-shadow:0 24px 80px #0008;font-size:12px;direction:rtl}.dev-top{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;background:#1a251e;padding:12px 15px;border-bottom:1px solid #ffffff18;z-index:1}.dev-top b{font:700 14px ui-monospace,monospace;color:#99e2ad;display:block}.dev-top small{display:block}.dev-content{padding:14px;display:grid;gap:10px}.dev-content h3{color:#9ae7b5;font-size:13px;margin-top:3px}.dev-content textarea{width:100%;background:#0b100d;border:1px solid #ffffff25;border-radius:9px;color:#ddd;padding:8px;font:12px monospace;resize:vertical}.dev-content .secondary,.dev-content .iconbtn{background:#243229;color:#dce8df;border-color:#ffffff20}.dev-content input{min-width:0;width:65px;color:#dce8df;background:#18231c}.dev-content .dev-pre{max-height:220px;overflow:auto;direction:ltr;text-align:left;background:#0c120e;color:#a9cfb2;white-space:pre-wrap;overflow-wrap:anywhere}.dev-content .dev-buttons{display:flex;gap:6px;flex-wrap:wrap}.dev-content .muted{color:#a0b4a5}
/* Keep collapsed developer tools off match and lobby action buttons. */
#dev-toggle{left:4px;bottom:auto;top:50%;transform:translateY(-50%);min-width:34px;width:34px;height:38px;border-radius:9px;font-size:13px;opacity:.86}#dev-toggle:hover,#dev-toggle:focus-visible,#dev-toggle[aria-expanded=true]{opacity:1}#dev-panel{bottom:auto;top:50%;transform:translateY(-50%);left:44px;width:min(440px,calc(100vw - 54px));max-height:calc(100dvh - 30px)}
@media(max-width:600px){#dev-toggle{min-width:30px;width:30px;height:34px;left:2px;font-size:11px}#dev-panel{left:6px;width:calc(100vw - 12px);top:12px;transform:none;max-height:calc(100dvh - 24px)}}


/* The approved player identity occupies the left edge; keep the developer launcher clear. */
body:has(.live-table) #dev-toggle{top:calc(124px + var(--safe-top,0px));bottom:auto;left:calc(18px + var(--safe-left,0px));transform:none;width:34px;height:34px;min-width:34px} @media(max-width:600px){body:has(.live-table) #dev-toggle{top:calc(106px + var(--safe-top,0px));left:calc(9px + var(--safe-left,0px));width:28px;height:28px;min-width:28px}} @media(max-height:480px) and (orientation:landscape){body:has(.live-table) #dev-toggle{top:calc(94px + var(--safe-top,0px));left:calc(9px + var(--safe-left,0px));width:28px;height:28px;min-width:28px}}

/* Native accessible range controls, styled to match the approved lobby. */
.dialog.audio-dialog{width:min(100%,420px);gap:14px;padding:20px;color:var(--text)}
.audio-dialog .dialogtop{margin-bottom:2px}
.audio-dialog .volume-control{display:grid;gap:8px;padding:13px 14px 9px;border-radius:15px;border:1px solid var(--line);background:var(--surface)}
.audio-dialog .volume-heading{display:flex;align-items:center;gap:10px;color:var(--text);font-size:13px}
.audio-dialog .volume-icon{width:34px;height:34px;display:grid;place-items:center;color:var(--green);background:var(--green-bg);border-radius:10px;flex:none}
.audio-dialog .volume-heading output{margin-inline-start:auto;font-size:14px;font-weight:800;color:var(--text);font-variant-numeric:tabular-nums}
.audio-dialog input[type=range]{appearance:none;-webkit-appearance:none;direction:rtl;width:100%;height:30px;background:transparent;border:0;padding:0;margin:0;box-shadow:none;cursor:pointer;outline-offset:3px;touch-action:pan-x}
.audio-dialog input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:999px;background:linear-gradient(to left,#29875d 0%,#29875d var(--level),color-mix(in srgb,var(--muted) 22%,transparent) var(--level),color-mix(in srgb,var(--muted) 22%,transparent) 100%)}
.audio-dialog input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:19px;height:19px;margin-top:-5.5px;border:1px solid #ffffff80;border-radius:50%;background:#f5f4ee;box-shadow:0 1px 4px #0007;transition:box-shadow .16s}
.audio-dialog input[type=range]::-moz-range-track{height:8px;border-radius:999px;background:linear-gradient(to left,#29875d var(--level),color-mix(in srgb,var(--muted) 22%,transparent) var(--level))}
.audio-dialog input[type=range]::-moz-range-thumb{width:19px;height:19px;border-radius:50%;border:1px solid #ffffff80;background:#f5f4ee;box-shadow:0 1px 4px #0007}
.audio-dialog input[type=range]:active::-webkit-slider-thumb{box-shadow:0 0 0 5px #83c9a531,0 1px 4px #0007}
.audio-dialog .volume-ends{display:flex;justify-content:space-between;color:var(--muted);margin-top:-6px}
.audio-dialog .volume-done{min-height:43px;border-radius:12px}
@media(max-width:500px){.dialog.audio-dialog{padding:16px;gap:10px}}

/* Keep the circular crown badge intact outside the circular avatar. */
.default-avatar{overflow:visible}.default-avatar .host-dot{right:-3px;bottom:-3px;z-index:2;display:grid;place-items:center;width:19px;height:19px;line-height:1;border:1px solid var(--panel);box-shadow:0 2px 5px #0005}.person-menu{border:0;background:transparent;color:var(--muted);padding:4px;display:grid;place-items:center;flex:none;border-radius:7px}.person-menu:hover{background:var(--raise);color:var(--text)}

/* Phase 5 account surface, separate from the approved lobby. */
.account-avatar{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.profile-dialog{width:min(580px,calc(100vw - 24px));max-height:min(86dvh,780px);overflow:auto}.profile-hero{display:flex;align-items:center;gap:15px;padding:14px 0}.profile-hero .avatar{width:64px;height:64px}.profile-hero h2{font-size:23px}.profile-hero p{font-size:12px;color:var(--muted)}.profile-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.profile-kpis>div{border:1px solid var(--line);border-radius:15px;padding:12px 6px;display:grid;gap:5px;text-align:center;background:var(--surface)}.profile-kpis small{font-size:11px;color:var(--muted)}.profile-kpis strong{font-size:23px;color:var(--green)}.profile-games,.profile-history{display:grid;gap:6px}.profile-game,.profile-history>div{display:flex;align-items:center;gap:10px;padding:9px;border-radius:10px;background:var(--surface);border:1px solid var(--line)}.profile-game>div,.profile-history>div>span:nth-child(2){flex:1;min-width:0;display:grid;gap:3px}.profile-game small,.profile-history small{font-size:11px;color:var(--muted)}.profile-suit{font-size:25px;color:var(--gold);width:35px;text-align:center}.profile-result{font-size:11px;font-weight:700;color:var(--muted);width:40px;text-align:center}.profile-result.won{color:var(--green)}.profile-history{max-height:230px;overflow:auto}.recovery-details{font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:12px;padding:10px}.recovery-details summary{cursor:pointer;font-weight:700;color:var(--text)}.recovery-details[open]>*:not(summary){margin-top:10px}.discord-login{border-color:#5865f2!important}.hub-actions{flex-wrap:wrap}.profile-dialog h3{font-size:14px;margin-top:8px}.profile-dialog>p{line-height:1.6}

.account-avatar[hidden],.default-avatar svg[hidden]{display:none!important}
.profile-dialog>*{flex-shrink:0}.profile-dialog .profile-history{min-height:20px}.profile-dialog .profile-history p{line-height:1.6;padding:2px 0}.profile-dialog{scrollbar-width:thin}
/* Real deck preview in the approved lobby, independent from the room skin. */
.lobby-fan{width:clamp(112px,19vw,220px);height:clamp(82px,13vw,155px);position:relative;display:block;filter:drop-shadow(0 7px 6px #0008);isolation:isolate;direction:ltr}.lobby-fan img{width:43%;height:100%;object-fit:contain;position:absolute;top:0;left:50%;transform-origin:50% 90%;border-radius:6px;transition:transform .25s ease;filter:drop-shadow(0 3px 3px #0005)}.lobby-fan img:nth-child(1){transform:translateX(-106%) rotate(-17deg) translateY(8%)}.lobby-fan img:nth-child(2){transform:translateX(-70%) rotate(-6deg)}.lobby-fan img:nth-child(3){transform:translateX(-31%) rotate(6deg)}.lobby-fan img:nth-child(4){transform:translateX(8%) rotate(17deg) translateY(8%)}.tablecenter:hover .lobby-fan img:nth-child(1){transform:translateX(-109%) rotate(-21deg) translateY(8%)}.tablecenter:hover .lobby-fan img:nth-child(4){transform:translateX(11%) rotate(21deg) translateY(8%)}.read-only .tablecenter{cursor:pointer!important}.read-only .skin-edit{display:grid!important}.table-custom-dialog{width:min(620px,calc(100vw - 20px));max-height:88dvh;overflow:auto}.table-custom-dialog h3{font-size:15px;margin:10px 0 4px}.table-custom-preview{height:clamp(110px,25vw,185px);position:relative;display:grid;place-items:center;overflow:hidden;border-radius:15px;isolation:isolate}.table-custom-preview>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.78;z-index:-1}.table-custom-preview .lobby-fan{height:75%;width:45%;max-width:200px}.package-title{display:block;color:var(--gold);font-size:10px;line-height:1.25;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.who .package-title{color:var(--gold)}
@media(max-width:640px){.gamecover .lobby-fan{width:135px;height:96px}.seatdetails .package-title{font-size:9px}.table-custom-dialog .lobby-decks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.table-custom-dialog .lobby-decks img{height:65px;object-fit:contain}}
@media(max-height:480px){.gamecover .lobby-fan{height:75px;width:115px}}
/* Phase 7.1: session navigation stays within the approved lobby. */
.session-modebar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 2px;min-width:0}.session-switch,.session-modes button,.session-casual{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:6px 12px;border-radius:11px;font-weight:700;font-size:.85rem}.session-switch,.session-modes button{color:var(--text,#ddd);background:var(--panel,#232323);border:1px solid var(--line,#ffffff20);cursor:pointer}.session-switch span{opacity:.6}.session-modes{display:flex;align-items:center;gap:5px}.session-casual{background:#20885c25;color:#88cfa9;border:1px solid #20885c55}.session-modes .session-ranked{color:#d5af69;border-color:#d5af6955}.session-switch:hover,.session-ranked:hover{filter:brightness(1.15)}.sessions-dialog{max-width:520px!important}.session-row{display:grid;gap:6px;margin:8px 0}.session-select{display:flex;align-items:center;text-align:start;gap:12px;width:100%;padding:12px;border:1px solid var(--line,#ffffff20);background:var(--panel,#252525);color:var(--text,#eee);border-radius:14px;cursor:pointer}.session-select.active{border-color:#20885c;background:#20885c18}.session-select>span:nth-child(2){flex:1;min-width:0;display:grid;gap:4px}.session-select small,.session-count{opacity:.68;font-size:.8rem}.session-number{display:grid;place-items:center;min-width:34px;height:34px;border-radius:10px;background:#d5af6918;color:#d5af69;font-weight:800}.session-watch{width:100%;margin:3px 0}.session-admin{margin-top:16px;padding-top:12px;border-top:1px solid var(--line,#ffffff20)}.sessions-dialog .primary{width:100%;margin-top:8px}.sessions-dialog .primary:disabled{opacity:.42;cursor:not-allowed}@media(max-width:380px){.session-switch,.session-modes button,.session-casual{padding:5px 9px;gap:4px;font-size:.78rem}}
/* Phase 7.3: reserved-seat search scope, integrated in the existing lobby bar. */
.quick-scope{display:flex;align-items:center;gap:5px;border:0;padding:0;margin:0;min-width:0;flex-wrap:wrap}.quick-scope legend{float:right;font-size:.72rem;color:var(--muted);margin-inline-end:7px;align-self:center;padding:5px 0}.quick-scope label{cursor:pointer;position:relative}.quick-scope input{position:absolute;opacity:0;width:1px;height:1px}.quick-scope span{display:block;padding:5px 13px;border:1px solid #ffffff20;border-radius:8px;color:inherit;font-size:.8rem;font-weight:700}.quick-scope input:checked+span{border-color:#d5ad69;background:#d5ad6922;color:#d5ad69}.quick-scope input:focus-visible+span{outline:2px solid #d5ad69;outline-offset:2px}.quick-scope input:disabled+span{opacity:.65;cursor:default}.session-modebar{flex-wrap:wrap}

/* Session controls stay right, search scope centered, play modes stay left. */
.session-modebar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;direction:rtl}
.session-controls{grid-column:1;grid-row:1;display:flex;align-items:center;gap:6px;justify-self:start;min-width:0}
.session-modebar .quick-scope{grid-column:2;grid-row:1;justify-self:center;justify-content:center}
.session-modebar .session-modes{grid-column:3;grid-row:1;justify-self:end;white-space:nowrap}

@media(max-width:720px){.session-modebar{grid-template-columns:minmax(0,1fr) auto;row-gap:6px}.session-modebar .session-modes{grid-column:2;grid-row:1}.session-modebar .quick-scope{grid-column:1/-1;grid-row:2}.session-controls{gap:4px}.session-switch,.session-modes button,.session-casual{padding:5px 7px;min-height:34px;font-size:.75rem;gap:4px}}
@media(max-width:350px){.session-switch svg{display:none}.session-switch,.session-modes button,.session-casual{padding-inline:5px;font-size:.70rem}.session-switch span{display:none}}
.legal-links{font-size:12px;text-align:center;color:var(--muted,#a1ada4);line-height:1.8}.legal-links a{color:var(--brand-gold,#e6c17a);text-decoration:none}.legal-links a:hover{text-decoration:underline}.staff-link{text-decoration:none;text-align:center;display:block}.platform-notice{border:1px solid #ffffff18;border-radius:10px;padding:12px;background:#ffffff08;overflow-wrap:anywhere;white-space:pre-wrap}#report-form textarea,#report-form select{width:100%;padding:10px;border-radius:9px;background:var(--panel,#212121);color:inherit;border:1px solid #ffffff26}
/* Platform surfaces independent from live-game renderer. */
.access-stage{position:fixed;inset:0;display:grid;place-items:center;padding:24px;overflow:auto;background:radial-gradient(ellipse at 50% 28%,#325d484d,transparent 60%),linear-gradient(145deg,#121c18,#171717 65%);color:#f4f1e7}.access-card{width:min(100%,450px);border:1px solid #c6a96b44;border-radius:30px;background:linear-gradient(145deg,#26372d,#20211f 65%);box-shadow:0 30px 100px #0008;text-align:center;padding:32px;display:grid;justify-items:center;gap:15px;animation:access-arrive .4s ease-out}.access-card>img{width:54px;height:54px;border-radius:16px}.access-orbit{width:86px;height:86px;display:grid;place-items:center;border-radius:25px;background:#5865f2;color:#fff;box-shadow:0 0 0 12px #5865f217,0 14px 50px #5865f24a;font-size:48px}.access-orbit svg{width:48px}.access-card h1{font-size:30px;margin:0}.access-card p{line-height:1.9;color:#c5d0c8;margin:0}.access-launch{width:100%;display:flex;justify-content:center;gap:12px;text-decoration:none;color:#17271f;background:#e6c17a;padding:15px;border-radius:16px;font-weight:800}.access-footer{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;font-size:12px;color:#b6bfb7}.access-footer a,.restriction-card a{color:#e6c17a}.restriction-card .access-orbit{background:#853b3d;box-shadow:0 0 0 12px #a8585822}.platform-message{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:18px;background:#0008;backdrop-filter:blur(8px);color:#f3f0e7}.platform-message section{display:grid;justify-items:center;gap:12px;text-align:center;width:min(100%,440px);background:linear-gradient(150deg,#303e34,#1c211e);border:1px solid #e6c17a77;border-radius:24px;padding:26px;box-shadow:0 20px 90px #0008;animation:access-arrive .25s ease-out;max-height:90dvh;overflow:auto}.platform-message .notice-symbol{background:#e6c17a;color:#211c13;width:62px;height:62px;border-radius:18px;display:grid;place-items:center;font-size:36px;font-weight:800}.platform-message.warning section{border-color:#d16c6c}.platform-message.warning .notice-symbol{background:#a84949;color:white}.platform-message h2{margin:0;font-size:24px}.platform-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 6px;line-height:1.8;color:#d8ded7}.platform-message small{color:#e6c17a}.platform-message .primary{width:100%}.notice-error{font-size:12px;color:#f4a8a8}@keyframes access-arrive{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.access-card,.platform-message section{animation:none}}
.staff-workspace-frame{position:fixed;inset:0;width:100%;height:100dvh;border:0;z-index:2147482000;background:#171717;animation:access-arrive .22s ease-out}

/* Activity boot: quiet branded loader, never an interactive login form. */
.activity-startup{position:fixed;inset:0;display:grid;place-items:center;padding:clamp(16px,5vw,48px);overflow:auto;background:radial-gradient(ellipse at 50% 42%,#244d3a55,transparent 56%),#151917;color:#f5f2e8;text-align:center}
.activity-startup-content{display:grid;justify-items:center;gap:12px;width:min(100%,420px);margin:auto;padding:24px;animation:access-arrive .32s ease-out}
.activity-startup-content h1{font-size:clamp(27px,5vw,38px);margin:5px 0 0;font-weight:800;letter-spacing:.02em}.activity-startup-content p{font-size:14px;color:#bdc9bf;line-height:1.8;margin:0}.activity-startup-brand{font-size:11px;color:#b69f72;margin-top:10px;letter-spacing:.08em}
.activity-loader{position:relative;width:104px;height:104px;display:grid;place-items:center;margin-bottom:13px;border-radius:50%;box-shadow:0 0 46px #3f9a6620}.activity-loader:before{content:'';position:absolute;inset:0;border:2px solid #41584a;border-top-color:#e6c17a;border-right-color:#81d0a5;border-radius:50%;animation:activity-spin 1.15s linear infinite}.activity-loader:after{content:'';position:absolute;inset:8px;border:1px solid #82bc9833;border-radius:50%}.activity-loader img{width:60px;height:60px;filter:drop-shadow(0 7px 14px #0006)}
@keyframes activity-spin{to{transform:rotate(360deg)}}
.activity-startup-error{padding:28px;border-radius:24px;background:#202a24;border:1px solid #a28a5655;box-shadow:0 22px 80px #0005;gap:17px}.activity-startup-error h1{font-size:25px}.activity-error-mark{display:grid;place-items:center;width:52px;height:52px;border-radius:18px;background:#9e55502b;color:#ffb1a6;border:1px solid #b7716866;font-size:30px;font-weight:800}.activity-startup-error button{width:100%}.activity-startup-error details{width:100%;color:#b2bfb4;font-size:12px;overflow-wrap:anywhere}.activity-startup-error code,.activity-startup-error small{display:block;margin-top:10px;font-size:11px;color:#d8c398}.activity-startup-error summary{cursor:pointer}
@media(prefers-reduced-motion:reduce){.activity-loader:before,.activity-startup-content{animation:none}}html.quiet .activity-loader:before,html.quiet .activity-startup-content{animation:none}

.gamecover .lobby-board-preview,.table-custom-preview .lobby-board-preview{display:block;max-width:70%;width:auto;max-height:90%;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 8px 12px #0009);position:relative}.table-custom-preview .lobby-board-preview{position:absolute;inset:8% auto auto 50%;transform:translateX(-50%);height:84%;width:auto;z-index:2}

/* Keep the board preview and option artwork intact inside a scrollable mobile picker. */
.table-custom-dialog>*{flex-shrink:0}.table-custom-preview{min-height:clamp(126px,35vw,185px);flex:none}.table-custom-preview>img:not(.lobby-board-preview){opacity:.72}.table-custom-preview>.lobby-board-preview{inset:6% auto auto 50%;height:88%;width:auto;max-width:72%;max-height:88%;opacity:1;z-index:2}.skinoption[data-board] img{object-fit:contain;background:#151b18;padding:5px}.table-custom-dialog .skinlist,.table-custom-dialog .lobby-decks{flex:none}.tablecenter .gamecover .lobby-board-preview{max-height:100%;max-width:min(70%,220px);width:auto;height:100%;object-fit:contain}
