@font-face{font-family:Omi;src:url('/assets/NotoSans.ttf');font-weight:100 900;font-display:swap}
@font-face{font-family:OmiSi;src:url('/assets/NotoSansSinhala.ttf');font-weight:100 900;font-display:swap}
:root{color-scheme:dark;--bg:#071021;--line:#35536c;--cyan:#51edee;--muted:#a7bdd0;--gold:#f4cc86;--ice:#edf8ff;font-family:Omi,OmiSi,sans-serif;color:var(--ice);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;color:var(--ice);border:1px solid #4b6a88;border-radius:12px;min-height:46px;padding:10px 17px;background:linear-gradient(155deg,#284464,#121e3c 72%);box-shadow:inset 0 1px #a6d6f838,0 2px 8px #0004;font-weight:650;line-height:1.4}button:hover{border-color:var(--cyan);filter:brightness(1.12)}button:active{transform:translateY(1px)}button:disabled{opacity:.48;cursor:default;filter:none}.primary{color:#00222b;background:linear-gradient(#c4ffff,#18d7e4 22%,#00adca 80%,#047b9d);border:1px solid #77ffff;box-shadow:0 0 22px #00e5ff3b,inset 0 2px #efffff77}.gold{color:#221400;background:linear-gradient(#fff0ba,#ffd16a 28%,#d88a25);border-color:#ffe2a0}.danger{color:#ffbab9;background:#3d152b55;border-color:#9a5868}.quiet{background:#11213499;border-color:#345069;box-shadow:none}.tiny{min-height:36px;padding:6px 11px;font-size:.83rem}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.skip{position:fixed;top:-80px;left:16px;z-index:100}.skip:focus{top:10px}a{color:var(--cyan);text-underline-offset:4px}p{line-height:1.65;margin:8px 0 18px}h1,h2,h3{margin:0 0 12px;line-height:1.25}h1{font-size:clamp(2rem,3.6vw,4.2rem);letter-spacing:-.04em}h2{font-size:clamp(1.35rem,2.1vw,2rem)}h3{font-size:1.08rem}small,.muted{color:var(--muted)}small{font-size:.8rem}label{display:flex;flex-direction:column;gap:8px;font-size:.92rem;color:#cbdfec}input,select{width:100%;min-width:0;border:1px solid #47637a;border-radius:9px;background:#061526;color:#fff;padding:11px 12px;min-height:45px}input[type=checkbox]{width:22px;min-height:22px;accent-color:#16d9df}input[type=range]{padding:0;accent-color:#27dfeb}label.toggle{flex-direction:row;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid #38526977;gap:18px}.loading{display:grid;place-content:center;text-align:center;min-height:100dvh}.loading img{max-width:280px}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:13px}.spread{justify-content:space-between}.grow{flex:1;min-width:0}.columns,.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{background:linear-gradient(150deg,#152b44eb,#09192ce8);border:1px solid var(--line);border-top-color:#6999ba;border-radius:20px;padding:24px;box-shadow:0 14px 40px #0003;min-width:0}.eyebrow{font-size:.72rem;letter-spacing:.17em;font-weight:750;color:var(--cyan);text-transform:uppercase}.pill{display:inline-flex;gap:7px;align-items:center;font-size:.78rem;border:1px solid #456582;border-radius:99px;padding:4px 10px;background:#0a2336}.pill.good{color:#8bffc1}.dot{width:7px;height:7px;background:#61f1c3;border-radius:100%;display:inline-block}.dot.offline{background:#8a97ab}.dot.in-match{background:var(--gold)}.error{color:#ffc4b1}.hint{font-size:.85rem;color:#b9cfdf}
.shell{min-height:100dvh;background:radial-gradient(ellipse at 80% 50%,#202f5433,transparent 62%),#061326}.topbar{height:91px;display:flex;align-items:center;gap:17px;padding:13px 30px;border-bottom:1px solid #43688b;background:linear-gradient(120deg,#0b2039,#081226);position:relative;z-index:2}.logo{width:165px;height:58px;object-fit:contain}.sun{width:40px;height:40px;object-fit:contain}.brand-subtitle{font-size:.68rem;letter-spacing:.13em;max-width:125px;border-left:1px solid var(--cyan);padding-left:15px}.player-summary{margin-left:auto;display:flex;align-items:center;gap:15px}.wallet{display:flex;align-items:center;gap:9px;border:1px solid #5c77a0;border-radius:99px;background:#101d35;padding:9px 15px}.wallet img{width:28px;height:28px}.identity{max-width:190px}.identity strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shell-body{display:grid;grid-template-columns:200px 1fr;min-height:calc(100dvh - 91px)}.rail{padding:30px 12px;display:flex;flex-direction:column;gap:12px;border-right:1px solid #34527255;background:linear-gradient(180deg,#0a1c30c7,#0b132be6)}.rail button{background:transparent;border-color:transparent;box-shadow:none;text-align:left;display:flex;align-items:center;gap:16px;padding:14px 18px}.rail .active{background:linear-gradient(135deg,#1cb9c2,#087189);border-color:#6df5ff;box-shadow:0 0 24px #00cbdc40}.nav-icon{font-size:1.35rem;width:24px;text-align:center}.rail-bottom{margin-top:auto}.main{padding:32px;min-width:0}.home{display:grid;grid-template-columns:minmax(400px,1fr) 285px;gap:22px;min-height:calc(100dvh - 155px);position:relative;isolation:isolate}.home:before{content:"";position:absolute;inset:-32px;background:linear-gradient(#071a3040,#07122599),url('/assets/waterfront.png') center/cover;z-index:-1}.hero{display:flex;align-items:center;flex-direction:column;text-align:center;justify-content:center;padding:15px 0}.hero h1{font-style:italic}.hero-fan{height:285px;width:400px;max-width:95%;position:relative;margin:10px auto 0}.hero-fan .card{position:absolute;left:calc(50% - 59px);top:35px;width:118px;height:172px;transform:translateX(calc(var(--i)*76px)) rotate(calc(var(--i)*13deg));box-shadow:0 12px 35px #0007,0 0 13px #1fffff48}.hero-fan:after{content:"";position:absolute;left:3%;right:3%;bottom:22px;height:54px;border:2px solid #47efffc9;border-radius:50%;box-shadow:0 0 24px #00d9ff94,inset 0 0 25px #08dfff70;z-index:-1}.home-cta{display:grid;grid-template-columns:1.9fr 1fr 1fr;width:100%;gap:12px;margin-top:16px}.home-cta button{font-size:1rem;min-height:70px}.home-cta .primary{font-size:1.35rem}.home-aside{display:flex;flex-direction:column;gap:18px;justify-content:center}.home-aside .panel{background:linear-gradient(120deg,#17354de8,#0c1832ef)}.big-code{font-size:1.25rem;letter-spacing:.1em;font-weight:750;overflow-wrap:anywhere;color:var(--gold)}.cards-symbol{font-size:2.2rem;color:var(--cyan);margin-bottom:10px}.section-head{margin-bottom:24px}.empty{padding:22px 0;color:var(--muted)}.friend-item{border-bottom:1px solid #35536b88;padding:15px 0;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.friend-meta{flex:1;min-width:150px}.friend-meta strong,.friend-meta small{display:block}.invitation{border-color:#52e7cf;background:#143331b8}.form-grid{display:grid;gap:15px}.legal{display:flex;gap:18px;flex-wrap:wrap;font-size:.85rem;margin-top:20px}.tab-row{display:flex;gap:10px;margin:15px 0}.leader-row{display:grid;grid-template-columns:40px 1fr 70px 65px;padding:13px 5px;border-bottom:1px solid #34516a}
dialog{color:var(--ice);background:linear-gradient(145deg,#142b43,#10172e);border:1px solid #6585a8;border-top-color:#9dd3e4;border-radius:20px;width:min(600px,94vw);max-height:90dvh;padding:24px;box-shadow:0 30px 100px #000b}dialog::backdrop{background:#000a;backdrop-filter:blur(5px)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.modal-head h2{margin:0}.modal-body{display:flex;flex-direction:column;gap:15px}.auth-form{display:grid;gap:14px}.auth-divider{text-align:center;border-top:1px solid #46617a;padding-top:17px;color:var(--muted);font-size:.85rem}#google-button{min-height:44px;align-self:center}.feedback{min-height:24px;color:var(--gold);font-size:.85rem;overflow-wrap:anywhere}#notifications{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:40;max-width:90vw;pointer-events:none}#notifications:not(:empty){background:#102c3eea;border:1px solid #73c7d1;padding:13px 20px;border-radius:12px}.last-cards{display:flex;justify-content:center;gap:8px;padding:20px 0}.last-cards .card{width:88px;height:126px}
.card{display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;background:linear-gradient(135deg,#fffef8,#ecefe9);border:1px solid #e4d8bb;border-radius:8px;padding:6px;color:#101828;position:relative;flex:none;font-family:Georgia,serif;font-weight:700;box-shadow:0 4px 10px #0005;user-select:none;line-height:.95;overflow:hidden}.card.red{color:#b62139}.card.royal{background:linear-gradient(130deg,#fffbed,#f3e6c5);border-color:#dcb45f}.card .index{display:flex;flex-direction:column;align-items:center;align-self:flex-start;font-size:20px;line-height:.95;z-index:1}.card .index.bottom{align-self:flex-end;transform:rotate(180deg)}.card .pip{font-size:36px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);line-height:1}.card img.court{width:62%;height:68%;object-fit:contain;position:absolute;top:16%;left:19%}button.card{min-height:0;min-width:0;text-align:left}.card.legal{box-shadow:0 0 0 2px #66f6ee,0 0 12px #22d6ec8c;translate:0 -8px}.card.illegal{filter:brightness(.7);opacity:.8}.card:not(:disabled):hover{translate:0 -16px;z-index:12!important}.winner-card{outline:3px solid var(--gold)}.hand{display:flex;align-items:flex-end;justify-content:center;padding:16px 12px 7px;min-height:127px;isolation:isolate}.hand .card{width:76px;height:108px;margin-left:-11px}.hand .card:first-child{margin-left:0}.hand .card .index{font-size:21px}
.game-page{height:calc(100dvh - 150px);min-height:530px;display:grid;grid-template-rows:auto 1fr auto auto;gap:8px}.game-header{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:center}.team-pod{display:flex;flex-direction:column;gap:6px;background:#0b2038d9;border:1px solid #315a78;border-top:2px solid var(--cyan);border-radius:12px;padding:9px 14px}.team-pod.opponent{border-top-color:var(--gold)}.team-score{font-weight:750}.trick-text{font-size:.8rem;color:var(--muted)}.pips{display:flex;gap:4px}.trick-pip{width:10px;height:15px;border-radius:2px;border:1px solid #6089a1;background:#0c182b}.trick-pip.filled{background:var(--cyan);border-color:var(--cyan);box-shadow:0 0 8px #24d9eb50}.opponent .trick-pip.filled{background:var(--gold);border-color:var(--gold)}.trump-chip{color:var(--gold);text-align:center;font-size:.85rem}.suit-pip{font-size:23px}.game-table{position:relative;min-height:260px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse,#122e4744,transparent 70%)}.felt{position:absolute;width:86%;height:82%;background:radial-gradient(ellipse,#0a5470,#063146 68%,#032435);border:9px solid #292e35;border-radius:45%;box-shadow:inset 0 0 0 2px #a66d37,inset 0 0 40px #0009,0 15px 30px #0007}.felt:after{content:"";position:absolute;inset:12%;border:1px solid #37a6ba44;border-radius:45%}.felt-mark{position:absolute;width:56px;opacity:.2;pointer-events:none}.seat{position:absolute;display:flex;align-items:center;gap:8px;background:linear-gradient(125deg,#183550,#08172a);border:1px solid #537c99;border-radius:12px;padding:8px 12px;min-width:130px;max-width:160px;z-index:2;box-shadow:0 5px 14px #0006}.seat.active{outline:2px solid #6ff4f0;box-shadow:0 0 23px #28dae05c}.seat-avatar{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#19667b;border:1px solid #5adddf;color:#bdf9ff;font-size:.75rem;flex:none}.seat strong{font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.seat small{font-size:.72rem}.seat.top{top:0;left:50%;transform:translateX(-50%)}.seat.bottom{bottom:0;left:50%;transform:translateX(-50%)}.seat.left{left:0;top:50%;transform:translateY(-50%)}.seat.right{right:0;top:50%;transform:translateY(-50%)}.trick-cards{position:relative;z-index:3;width:192px;height:184px;pointer-events:none}.trick-cards .card{position:absolute;width:66px;height:94px}.trick-cards .pos-0{left:63px;top:90px}.trick-cards .pos-1{left:0;top:46px}.trick-cards .pos-2{left:63px;top:0}.trick-cards .pos-3{left:126px;top:46px}.action-dock{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#0c233bd9;border:1px solid #36617d;border-radius:12px;padding:9px 14px}.action-dock .hint{margin:0;flex:1}.trump-options{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}.trump-options button{min-width:61px;font-size:24px}.trump-options .blind{font-size:.85rem;flex-basis:100%}.announcement{position:absolute;top:27%;left:50%;transform:translateX(-50%);width:min(460px,80%);background:linear-gradient(140deg,#19334cec,#142540f2);box-shadow:0 0 25px #26dbff40;border:1px solid #5cb4d0;border-radius:15px;padding:16px 24px;text-align:center;z-index:8;pointer-events:none}.announcement button{pointer-events:auto;float:right;min-height:30px;padding:3px 9px}.call-suit{font-size:2rem;color:var(--gold);margin:5px}.announcement .card{width:46px;height:65px;margin:9px auto}.announcement .card .index{font-size:13px}.announcement .card .pip{font-size:22px}.banner-track{height:3px;background:#314963;border-radius:3px;overflow:hidden}.banner-fill{height:100%;background:var(--cyan);transform-origin:left}.result-veil{position:absolute;inset:0;background:#020b15a8;display:grid;place-items:center;z-index:7;border-radius:18px}.result-card{text-align:center;background:linear-gradient(145deg,#18334ce8,#091c35ed);border:1px solid #80d6dc;border-radius:20px;padding:22px 28px;box-shadow:0 0 80px #23bfd333;max-width:94%;max-height:96%;overflow:auto}.result-symbol{font-size:54px;color:var(--gold);margin:4px}.result-card h2{color:var(--gold)}.progress-timer{color:var(--gold);font-variant-numeric:tabular-nums}.lobby-code{text-align:center;font-size:2.4rem;letter-spacing:.2em;color:var(--gold);margin:15px 0}.player-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.player-slot{padding:16px;background:#102942;border:1px solid #3d5b77;border-radius:10px}.mode-label{font-size:.75rem;color:var(--muted);text-align:center}
@media(min-width:1500px){.main{padding:40px 55px}.home{grid-template-columns:minmax(500px,1fr) 340px;gap:40px}.hero-fan{height:345px;width:510px}.hero-fan .card{width:145px;height:211px;left:calc(50% - 72px);transform:translateX(calc(var(--i)*91px)) rotate(calc(var(--i)*13deg))}.hero-fan .card .index{font-size:28px}.hero-fan .card .pip{font-size:54px}}
@media(max-width:1050px){.shell-body{grid-template-columns:155px 1fr}.rail button{padding:12px}.main{padding:22px}.home{grid-template-columns:1fr}.home-aside{flex-direction:row;flex-wrap:wrap}.home-aside .panel{flex:1;min-width:220px}.brand-subtitle{display:none}.game-page{height:calc(100dvh - 135px)}}
@media(max-width:800px){html{font-size:14px}.topbar{height:71px;padding:9px 13px;gap:8px}.logo{width:86px;height:39px}.sun,.brand-subtitle{display:none}.player-summary{gap:8px}.identity{max-width:90px}.identity strong{font-size:.84rem}.wallet{padding:7px 10px;gap:4px}.wallet img{width:22px;height:22px}.wallet .muted{display:none}.account-button{padding:7px 10px;font-size:.8rem;min-height:38px}.shell-body{display:block;min-height:calc(100dvh - 71px)}.main{padding:18px 15px 91px}.rail{position:fixed;bottom:0;left:0;right:0;height:69px;padding:6px 7px calc(6px + env(safe-area-inset-bottom));z-index:15;flex-direction:row;gap:3px;border-top:1px solid #457d9c;border-right:0;background:#071b31f5;backdrop-filter:blur(18px)}.rail button{flex:1;min-width:0;font-size:.72rem;flex-direction:column;gap:2px;align-items:center;justify-content:center;text-align:center;padding:4px 1px}.rail .nav-icon{font-size:1.1rem}.rail-bottom{display:none}.home{min-height:0;display:block}.home:before{inset:-18px -15px;background-position:62% center}.hero{padding:11px 0 9px}.hero h1{font-size:2rem}.hero .eyebrow{font-size:.6rem;letter-spacing:.12em}.hero-fan{width:310px;height:230px;margin:0}.hero-fan .card{width:94px;height:139px;left:calc(50% - 47px);top:25px;transform:translateX(calc(var(--i)*57px)) rotate(calc(var(--i)*13deg))}.hero-fan .card .pip{font-size:40px}.hero-fan .card .index{font-size:21px}.hero-fan:after{bottom:29px;height:42px}.home-cta{grid-template-columns:1fr 1fr;margin-top:13px;gap:10px}.home-cta .primary{grid-column:1/-1;font-size:1.4rem;min-height:60px}.home-cta button{min-height:49px}.home-aside{display:flex;gap:12px;margin-top:16px}.home-aside .panel{padding:17px;min-width:0;width:100%;flex:auto}.cards-symbol{display:none}.columns,.settings-grid{grid-template-columns:1fr;gap:15px}.panel{padding:19px}.section-head{margin-bottom:18px}.tab-row button{flex:1;padding:8px}.game-page{height:calc(100dvh - 164px - env(safe-area-inset-bottom));min-height:450px;grid-template-rows:auto minmax(200px,1fr) auto auto;gap:7px}.game-header{grid-template-columns:1fr 1fr;gap:7px}.team-pod{padding:7px 9px;gap:4px}.team-score{font-size:.88rem}.trick-text{font-size:.78rem}.trick-pip{width:9px;height:12px}.pips{gap:3px}.trump-chip{grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:center;gap:7px;font-size:.83rem;min-height:23px}.suit-pip{font-size:18px}.game-table{min-height:200px}.felt{width:69%;height:88%;border-width:7px}.seat{min-width:0;padding:5px 7px;gap:4px;max-width:103px;border-radius:9px}.seat strong{font-size:.78rem;max-width:63px}.seat small{font-size:.72rem}.seat-avatar{width:22px;height:22px;font-size:.7rem}.seat.left{left:-3px}.seat.right{right:-3px}.trick-cards{width:146px;height:146px}.trick-cards .card{width:52px;height:74px;padding:4px}.trick-cards .card .index{font-size:16px}.trick-cards .card .pip{font-size:25px}.trick-cards .pos-0{left:47px;top:72px}.trick-cards .pos-1{left:0;top:36px}.trick-cards .pos-2{left:47px;top:0}.trick-cards .pos-3{left:94px;top:36px}.hand{min-height:108px;padding:13px 0 3px}.hand .card{width:63px;height:91px;margin-left:calc((min(100vw - 32px, 440px) - 504px)/7);padding:4px}.hand .card:first-child{margin-left:0}.hand .card .index{font-size:19px}.hand .card .pip{font-size:29px}.action-dock{padding:7px 9px;gap:8px;min-height:50px}.action-dock .hint{font-size:.8rem}.action-dock button{padding:7px 10px;min-height:38px;font-size:.79rem}.announcement{top:23%;width:87%;padding:10px 15px}.call-suit{font-size:1.5rem}.result-card{padding:17px}.result-card p{margin-bottom:10px}.result-symbol{font-size:36px}.result-card h2{font-size:1.3rem}.game-page .mode-label{display:none}dialog{padding:20px}.last-cards .card{width:65px;height:96px}.main:has(.game-page){padding:10px 12px 80px}#notifications{bottom:85px}.player-slot{padding:12px}}
@media(max-width:380px){.identity{max-width:68px}.player-summary{gap:5px}.topbar{padding:7px 10px}.topbar .logo{width:70px}.game-page{min-height:430px}.hand{min-height:100px}.hand .card{width:59px;height:86px;margin-left:calc((100vw - 28px - 472px)/7)}.hand .card:first-child{margin-left:0}.team-score{font-size:.84rem}.seat-avatar{display:none}}
@media(prefers-reduced-motion:no-preference){body:not(.reduce-motion) .result-symbol{animation:crest 1.3s ease-out both}@keyframes crest{0%{opacity:0;transform:scale(.35) rotate(-20deg)}55%{opacity:1;transform:scale(1.16)}100%{transform:scale(1)}}}
.reduce-motion *{animation:none!important;transition:none!important}
.identity{min-height:44px;padding:0 3px;text-align:left;box-shadow:none;border:0;background:transparent;font-weight:400}
.identity small{display:block;font-size:.72rem}.identity-code{display:block;color:var(--gold);font-size:.72rem}
@media(max-width:800px){
  .rail .rail-bottom{display:none}
  .game-page.choosing{grid-template-rows:auto minmax(135px,1fr) auto auto}
  .choosing .game-table{min-height:135px}
  .trump-options{gap:6px}
  .trump-options button{flex:1;min-width:0;padding:6px;font-size:.85rem;min-height:42px}
  .trump-options .blind{min-height:36px;padding:6px}
}

@media(min-width:801px){.choosing .game-table{min-height:180px}.trump-options button{font-size:16px;padding:8px 12px}.trump-options .blind{flex-basis:auto}}
/* 0.17: shared authoritative cosmetics and restrained, responsive account/shop chrome. */
.room-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 15px;margin-bottom:16px;border:1px solid #389cae;border-radius:12px;background:#10374bd9;font-size:.85rem}.host-warning{padding:16px;border:2px solid #ffbd65;border-radius:12px;background:#6a351e55;color:#ffdeb1;font-weight:700}.hosting-choice{border:1px solid #42617d;border-radius:14px;padding:16px;margin-bottom:14px;background:#0b203699}.shop-tabs{display:flex;gap:8px;overflow:auto;padding-bottom:9px}.shop-tabs button{white-space:nowrap}.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:18px}.shop-grid>.panel{padding:18px;display:flex;flex-direction:column;gap:8px}.shop-grid .hint{flex:1;margin:0}.product-art{height:190px;display:flex;align-items:center;justify-content:center;position:relative;isolation:isolate;border-radius:12px;background:radial-gradient(ellipse,#18677e55,#081629 70%);overflow:hidden}.product-art>img{max-width:90%;height:170px;object-fit:contain;filter:drop-shadow(0 5px 9px #0008)}.product-art.skins{gap:9px}.product-art.skins>img{width:99px;height:156px;transform:rotate(-9deg)}.product-art.skins>.card{width:96px;height:145px;transform:rotate(9deg);flex:none}.product-art.skins .card .index{font-size:19px}.product-art.skins .card .pip{font-size:48px}.product-art.tables>img{width:100%;height:100%;object-fit:contain}.product-art.outfits>img{height:190px;max-width:95%}.product-art .pack-table{width:94%;height:140px;opacity:.8}.product-art .pack-card{position:absolute;height:160px;right:14%;transform:rotate(13deg)}.product-art .tiny{position:absolute;right:8px;bottom:8px}.generic-frame{border:6px double #40d7e3;border-radius:50%;font-size:45px;width:110px;height:110px;text-align:center;line-height:98px}.win-crest{width:110px;height:110px;object-fit:contain;filter:drop-shadow(0 0 17px #4fdce6)}.replaying .effect-thumb{animation:crest 1.2s ease-out}.player-directory{max-height:49vh;overflow:auto}.player-record{padding:13px;border:1px solid #476d87;border-radius:9px;display:flex;flex-direction:column;gap:7px}.game-page .trump-chip{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.trump-chip .leave-game{font-size:.73rem;min-height:26px;padding:3px 9px}.hand .card.inspection:disabled{opacity:1;filter:none;cursor:default}.game-page .felt{background-image:var(--board-art,radial-gradient(ellipse,#0a5470,#063146 68%,#032435));background-size:100% 100%;background-position:center}.seat.bottom .seat-avatar{background-image:var(--frame-art);background-size:contain;border:0;overflow:visible}.seat:not(.bottom) .seat-avatar{background-image:var(--back-art);background-size:cover;background-position:center}.card[data-skin]{box-shadow:0 2px 7px #0007,inset 0 0 0 2px #86ced6}.card[data-skin*=gold],.card[data-skin*=lotus],.card[data-skin*=dragon]{background-color:#f4e8cd;box-shadow:0 3px 8px #0008,inset 0 0 0 3px #c99c41}.card[data-skin*=moonstone],.card[data-skin*=horizon]{background-color:#e7e7f6;box-shadow:0 3px 8px #0008,inset 0 0 0 3px #a3a2d5}.card[data-skin*=batik]{box-shadow:0 3px 8px #0008,inset 0 0 0 3px #9e84c4}.card[data-skin*=aurora]{box-shadow:0 3px 8px #0008,inset 0 0 0 3px #56b9b3}.card[data-skin*=ivory]{box-shadow:0 3px 8px #0008,inset 0 0 0 1px #a5a18e}.game-page[data-effect*=dragon] .result-card{box-shadow:0 0 90px #db98393b}.game-page[data-effect*=hole] .result-card{box-shadow:0 0 90px #9e58df55}
@media(max-width:800px){.room-strip{font-size:.78rem;gap:7px;padding:8px;margin-bottom:10px}.room-strip button{max-width:43%;font-size:.76rem}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shop-grid>.panel{padding:11px;border-radius:13px}.shop-grid h3{font-size:1rem;line-height:1.5}.product-art{height:150px}.product-art>img{max-height:140px}.product-art.skins{gap:1px}.product-art.skins>img{width:57px;height:108px}.product-art.skins>.card{width:57px;height:90px;padding:4px}.product-art.skins .card .index{font-size:14px}.product-art.skins .card .pip{font-size:28px}.product-art.outfits>img{height:150px}.shop-grid button{padding:8px;font-size:.82rem}.shop-grid .hint{font-size:.77rem}.shop-tabs{gap:6px}.shop-tabs button{font-size:.85rem;padding:8px 12px}.product-art .pack-card{height:110px;right:5%}.win-crest{width:88px;height:88px}.game-page .trump-chip{flex-wrap:nowrap;gap:5px}.game-page .trump-chip .leave-game{margin-left:auto;font-size:.7rem;padding:3px 6px}.rail button{font-size:.66rem}.seat.bottom .seat-avatar{display:grid}.seat-avatar{flex-shrink:0}.seat.bottom{max-width:115px}}
.reduce-motion .replaying .effect-thumb{animation:none}.pill.dev-badge{color:#ffe5ad;background:linear-gradient(135deg,#4f391e,#2a251d);border-color:#b98d4e;font-weight:700}.account-name-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end}.account-name-form button{min-width:105px}.modal-body>.row{gap:10px}.modal-body>.row>.big-code{margin:8px 0}.modal-body>.row>button{flex:1;min-width:90px}#notifications{top:13px;bottom:auto;right:20px;left:auto;transform:none;max-width:300px}
@media(min-width:801px){dialog[data-kind=withFriends]{width:min(900px,94vw)}dialog[data-kind=withFriends] .modal-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}dialog[data-kind=withFriends] .modal-body>p,dialog[data-kind=withFriends] .modal-body>section:last-child{grid-column:1/-1}.hosting-choice{gap:9px;margin-bottom:0}.hosting-choice p{margin:0 0 9px}}
@media(max-width:800px){#notifications{top:76px;bottom:auto;right:10px;max-width:260px}.hosting-choice{gap:8px;padding:12px}.hosting-choice p{margin-bottom:6px}.hosting-choice h3{margin-bottom:2px}.account-name-form{grid-template-columns:minmax(0,1fr) auto;gap:8px}.account-name-form button{min-width:70px;padding:9px}.modal-body>.row>.big-code{font-size:1rem}.pill.dev-badge{line-height:1.7}}
/* Muse media is decorative. The actual card ranks, faces, controls and hit
   targets stay in the normal DOM above it. */
.muse-surface {
  display: block; position: relative; flex: none; overflow: hidden;
  pointer-events: none; line-height: 0; isolation: isolate;
}
.muse-surface > picture, .muse-surface .muse-poster, .muse-surface > video, .muse-surface > canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill;
  pointer-events: none; border: 0;
}
.muse-video { opacity: 0 }
.muse-video.ready { opacity: 1 }
.muse-masked-frame > video, .muse-masked-frame > canvas {
  mask: var(--silhouette) center/100% 100% no-repeat;
  -webkit-mask: var(--silhouette) center/100% 100% no-repeat;
}
.card > .muse-surface { position: absolute; inset: 0; z-index: 0 }
.card:has(> .muse-surface) { border: 0 }
.card:has(> .muse-surface) .index { margin-left: 2px; margin-top: 1px; text-shadow: 0 0 2px #fff9 }
.card:has(> .muse-surface) .bottom { margin-left: 0; margin-right: 2px }
.card:has(> .muse-surface) .pip, .card:has(> .muse-surface) .court { z-index: 1 }
.hand .card.legal:has(> .muse-surface) { outline: 2px solid #66f6ee }
.muse-avatar { position: relative; display: inline-grid; width: 42px; height: 42px; place-items: center; flex: none }
.muse-avatar .avatar-initial {
  display: grid; place-items: center; width: 70%; height: 70%; border-radius: 50%;
  color: #f7e4b8; font-size: .85em; font-weight: 700; background: radial-gradient(at top,#275163,#122738 75%);
}
.muse-avatar > .muse-surface { position: absolute; inset: 0 }
.identity.framed-identity { display: flex; align-items: center; gap: 7px; max-width: 230px }
.identity-details { min-width: 0 }
.player-slot:has(.muse-avatar) { display: flex; align-items: center; gap: 12px }
.player-slot .muse-avatar { width: 38px; height: 38px }
.game-table .muse-avatar { width: 38px; height: 38px }
.game-page .muse-felt {
  container-type: size; width: min(84%,760px); height: 96%; border: 0;
  background: none; box-shadow: none; border-radius: 0; pointer-events: none;
}
.muse-felt::after { display: none }
.muse-felt > .muse-surface { width: 100%; height: 100%; border-radius: 49% / 31% }
@container (min-aspect-ratio: 1) {
  .muse-felt > .muse-surface {
    width: 100cqh; height: 100cqw; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(90deg);
  }
}
.muse-opponent-hand, .muse-deck {
  position: relative; display: block; background: #182437; border: 1px solid #d3c296;
  border-radius: 4px; box-shadow: -2px 1px #152536,-3px 1px #baab86,-5px 2px #243346;
}
.muse-opponent-hand { flex: none; width: 23px; height: 34px; transform: rotate(-6deg) }
.muse-deck { position: absolute; width: 40px; aspect-ratio: 2/3; left: 27%; top: 19%; transform: rotate(-8deg); pointer-events: none }
.muse-opponent-hand > .muse-surface, .muse-deck > .muse-surface { position: absolute; inset: 0; border-radius: 3px }
.product-art > .muse-surface { height: 94%; aspect-ratio: 2/3 }
.product-art.skins > .muse-surface { width: 99px; height: 156px; border-radius: 8px; transform: rotate(-9deg) }
.product-art.collections > [data-slot=table] { height: 90%; transform: rotate(-14deg) }
.product-art.collections > [data-slot=card-back] { position: absolute; height: 67%; right: 16%; bottom: 7%; transform: rotate(10deg); border-radius: 6px }
.product-art.frames > .muse-avatar { width: min(85%,163px); height: auto; aspect-ratio: 1; font-size: 3rem }
.muse-result { display: flex; align-items: center; gap: clamp(12px,3vw,38px); padding: 9px 24px 9px 10px }
.muse-result > .muse-surface { height: min(34dvh,280px); aspect-ratio: 2/3; border-radius: 8px }
.result-veil:has(.muse-result) { container-type: size }
.result-veil > .muse-result { max-height: 98%; padding-block: 5px }
.result-veil > .muse-result > .muse-surface { height: min(91cqh,55vw,520px) }
.muse-result .result-details { display: grid; justify-items: center; gap: 7px }
.muse-result .result-details > * { margin: 0 }
@media(max-width:800px) {
  .identity.framed-identity { max-width: 124px; gap: 3px }
  .framed-identity .muse-avatar { width: 32px; height: 32px }
  .framed-identity .identity-code { font-size: .59rem }
  .game-page .muse-felt { width: 88%; height: 94% }
  .game-table .muse-avatar { width: 28px; height: 28px }
  .muse-opponent-hand { width: 17px; height: 25px }
  .muse-deck { width: 26px; left: 21%; top: 22% }
  .product-art.skins > .muse-surface { width: 57px; height: 90px; border-radius: 5px }
  .product-art.frames > .muse-avatar { width: min(84%,124px) }
  .muse-result { max-width: 96%; gap: 12px; padding: 5px 12px 5px 7px }
  .muse-result > .muse-surface { height: min(24dvh,175px) }
  .muse-result .result-details { gap: 5px }
  .muse-result .result-details button { min-height: 34px; padding: 5px 10px }
}
@media(max-width:380px) {
  .wallet .dev-wallet-label { display: none }
  .identity.framed-identity { max-width: 102px }
  .framed-identity .muse-avatar { width: 27px; height: 27px }
  .game-page:has(.muse-felt) .trick-cards { width: 128px; height: 113px }
  .game-page:has(.muse-felt) .trick-cards .card { width: 46px; height: 64px }
  .game-page:has(.muse-felt) .trick-cards .pos-0 { left: 41px; top: 49px }
  .game-page:has(.muse-felt) .trick-cards .pos-1 { left: 0; top: 24px }
  .game-page:has(.muse-felt) .trick-cards .pos-2 { left: 41px; top: 0 }
  .game-page:has(.muse-felt) .trick-cards .pos-3 { left: 82px; top: 24px }
}

/* 0.19 shared four-slot sets, owned wardrobe and interactive in-game previews. */
.avatar-initial {overflow:hidden;}
.custom-avatar {width:100%;height:100%;object-fit:cover;display:block;border-radius:50%;}
.static-avatar-frame {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;}
.avatar-controls {padding:14px;border:1px solid #294459;border-radius:16px;background:#0b1a2bd9;}
.avatar-controls input[type=file] {max-width:100%;min-width:0;font-size:13px;}
.cosmetic-preview {width:min(920px,96vw);max-width:96vw;}
.cosmetic-preview>.stack {gap:12px;}
.preview-arena {height:280px;position:relative;isolation:isolate;overflow:hidden;border-radius:22px;background:#07121f;}
.preview-arena>.muse-surface,.preview-board {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;}
.preview-arena>.muse-surface {transform:rotate(90deg) scale(.7);}
.preview-playing-cards {position:absolute;display:flex;gap:8px;left:50%;top:37%;transform:translate(-50%,-30%);z-index:2;}
.preview-playing-cards .card {width:72px;height:105px;}
.preview-back {position:absolute;width:72px;height:105px;left:16%;top:26%;z-index:3;transform:rotate(-12deg);}
.preview-back>img,.preview-back>.muse-surface {width:100%;height:100%;object-fit:contain;}
.preview-back.showcase-back {left:calc(50% - 36px);transform:none;}
.preview-player {position:absolute;bottom:8px;left:50%;transform:translateX(-50%);display:flex;gap:10px;align-items:center;z-index:4;}
.preview-player .muse-avatar {width:60px;height:60px;}
.preview-victory {height:220px;display:flex;gap:20px;align-items:center;justify-content:center;overflow:hidden;padding:8px;border:1px solid #27495a;border-radius:16px;background:#09101d;}
.preview-victory>.muse-surface {width:140px;height:205px;position:relative;flex-shrink:0;}
.preview-victory>img {height:180px;width:180px;object-fit:contain;}
.lobby-teams {display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.lobby-team {min-width:0;padding:14px;border:1px solid #2a5267;border-radius:16px;background:#0c1e30;}
.lobby-team:nth-child(2) {border-color:#665331;}
.lobby-team h3 {font-size:18px;margin:0 0 12px;}
.team-seat {display:flex;min-height:96px;align-items:center;flex-wrap:wrap;gap:8px;width:100%;margin:8px 0;padding:12px;text-align:left;touch-action:manipulation;}
.team-seat strong {overflow-wrap:anywhere;flex:1;min-width:0;}
.team-seat small {width:100%;color:#a7bdce;}
.team-seat .muse-avatar {width:48px;height:48px;flex-shrink:0;}
.team-seat.selected {outline:3px solid #62ebff;background:#133849;}
.team-seat:disabled {opacity:1;cursor:default;}
.preference {display:flex;align-items:center;gap:10px;}
.product-art.wins {position:relative;}
@media(max-width:800px){
 .rail {grid-template-columns:repeat(6,minmax(0,1fr));}
 .rail button {min-width:0;padding-left:2px;padding-right:2px;font-size:10px;}
 .shop-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 .shop-grid .row {flex-wrap:wrap;}
 .shop-grid .row button {flex:1;min-width:0;}
 .lobby-teams {gap:8px;}.lobby-team{padding:8px;}.lobby-team h3{font-size:14px;}.team-seat{padding:8px;font-size:13px;}
 .preview-arena{height:200px;}.preview-victory{height:170px;}.preview-victory>.muse-surface{width:100px;height:150px;}.preview-victory>img{height:140px;width:140px;}
 .preview-playing-cards .card,.preview-back{width:52px;height:76px;}.preview-back{left:5%;}
 .avatar-controls .muse-avatar{width:52px;height:52px;}
}

/* Stable sizing and contrast for previews and owned-only grids. */
.pill.gold {color:#ffdf98;border-color:#a5894b;background:#3a2d1877;}
label.preference {flex-direction:row;align-items:center;gap:10px;}
.preview-arena {container-type:size;}
.preview-arena>.muse-surface {width:100cqh;height:100cqw;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%) rotate(90deg);}
.product-art.collections>img:first-child,.muse-avatar>img {mix-blend-mode:screen;}

.lobby-panel .lobby-code {margin-bottom:14px;}
.lobby-share {margin-top:14px;gap:7px;}
.cosmetic-preview .modal-body>.row:last-child {position:sticky;bottom:-24px;z-index:5;background:#101e31;padding:10px 0;border-top:1px solid #3a566c;}
@media(max-width:800px){
 .lobby-panel {padding:14px;}.lobby-panel .lobby-code{font-size:1.55rem;letter-spacing:.15em;margin-bottom:12px;}
 .lobby-panel .mode-label {font-size:12px;margin-bottom:8px;}.lobby-panel .team-seat{min-height:80px;}
 .lobby-share button {flex:1;min-width:38%;}.lobby-panel .hint{font-size:12px;}
 .shop-grid>.panel>.row {display:grid;grid-template-columns:1fr;gap:6px;}
 .shop-grid>.panel>.row button{width:100%;font-size:12px;min-height:40px;}
 .cosmetic-preview .modal-body>.row:last-child {bottom:-24px;}
}

@media(max-width:800px){
 .cosmetic-preview {padding:16px;}
 .cosmetic-preview .modal-head{margin-bottom:10px;}
 .cosmetic-preview .modal-head h2{font-size:18px;}
 .cosmetic-preview .preview-arena{height:150px;}
 .cosmetic-preview .preview-victory{height:120px;gap:10px;}
 .cosmetic-preview .preview-victory>.muse-surface{height:110px;width:74px;}
 .cosmetic-preview .preview-victory strong{font-size:13px;}
 .cosmetic-preview .modal-body>.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
 .cosmetic-preview .modal-body>.row button{padding:6px;font-size:12px;min-height:36px;}
 .cosmetic-preview .modal-body>.row:last-child{display:flex;bottom:-16px;}
 .cosmetic-preview .modal-body>.row:last-child button{flex:1;}
 .cosmetic-preview .preview-player .muse-avatar{width:42px;height:42px;}
}
/* 0.19.1: one measured arena and independent preview scroll/footer budgets. */
[hidden]{display:none!important}
body.in-table .main{padding:12px 24px 12px}
body.in-table .game-page{height:calc(100dvh - 115px);min-height:0;grid-template-rows:auto minmax(0,1fr) auto auto}
.board-slot{min-height:0;position:relative;display:flex;align-items:center;justify-content:center}
.game-table{min-height:0;min-width:0;flex:none;max-width:100%;max-height:100%}
.game-table .felt,.game-page .muse-felt{inset:21px 38px;width:auto;height:auto;max-width:none;max-height:none;border:0;border-radius:50%;background-size:contain;background-repeat:no-repeat;box-shadow:none}
.game-table .felt:after{display:none}
.game-table .seat{max-width:145px;min-width:100px;padding:6px 9px}
.game-table .seat.left{left:0}.game-table .seat.right{right:0}
.game-table .seat.top{top:0}.game-table .seat.bottom{bottom:0}
.game-table .muse-felt>.muse-surface{width:100%;height:100%;left:0;top:0;transform:none;border-radius:0}
@media(min-width:801px){.game-table .muse-felt>.muse-surface{width:100cqh;height:100cqw;left:50%;top:50%;transform:translate(-50%,-50%) rotate(90deg)}}
.trick-cards .pos-1{left:126px}.trick-cards .pos-3{left:0}
.card .index{position:absolute;left:5px;top:5px;font-size:clamp(12px,1.5vw,20px)}
.card .index.bottom{left:auto;top:auto;right:5px;bottom:5px}
.cosmetic-preview[open]{display:flex;flex-direction:column;overflow:hidden;height:min(820px,94dvh);max-height:94dvh;padding:16px}
.cosmetic-preview .modal-head{flex:none;margin:0 0 10px}
.cosmetic-preview .modal-body{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;position:relative;padding:0 2px 8px;gap:12px}
.cosmetic-preview .modal-body>*{flex-shrink:0}
.cosmetic-preview .modal-body>.preview-footer{position:static;bottom:auto!important;background:#101e31;padding:10px 0;margin:0;z-index:auto;flex:none;border-top:1px solid #476378}
.cosmetic-preview .preview-arena{height:clamp(150px,30dvh,260px);container-type:size}
.cosmetic-preview .preview-arena>.muse-surface{inset:auto;width:100cqh;height:calc(100cqh * 1.5);left:50%;top:50%;transform:translate(-50%,-50%) rotate(90deg)}
.preview-arena>.preview-board{object-fit:contain;height:100%;width:100%;inset:0}
.preview-playing-cards{top:37%;gap:6px}
.preview-playing-cards .card,.preview-back{width:58px;height:85px;min-height:85px;padding:4px}
.preview-playing-cards .card .index{font-size:15px;left:4px;top:4px}
.preview-playing-cards .card .index.bottom{left:auto;top:auto;right:4px;bottom:4px}
.preview-player{bottom:4px}.preview-player .muse-avatar{width:38px;height:38px}
.report-avatar{font-size:11px;min-height:24px;padding:3px 6px}.seat .report-avatar{position:absolute;top:100%;left:50%;transform:translateX(-50%);white-space:nowrap}
@media(max-width:800px){
 body.in-table .rail{display:none}
 body.in-table .main{padding:8px 10px max(10px,env(safe-area-inset-bottom))}
 body.in-table .game-page{height:calc(100dvh - 91px - env(safe-area-inset-bottom));min-height:0;gap:5px}
 .game-header{gap:7px}.game-header .team-pod{padding:5px 7px;gap:4px;min-height:62px}
 .game-header .team-score{font-size:12px;line-height:1.35}.game-header .trump-chip{font-size:11px;gap:3px;flex-wrap:wrap;max-width:90px}.game-header .suit-pip{font-size:18px}
 .trick-pip{height:11px;width:8px}.pips{gap:3px}
 .game-table .seat{min-width:76px;max-width:108px;padding:4px 6px;gap:4px}.game-table .seat strong{font-size:12px}.game-table .seat small{font-size:11px}
 .game-table .seat .muse-avatar{width:25px;height:25px}
 .game-page .hand{min-height:90px;height:90px;padding:8px 0 2px}
 .hand .card{width:59px;height:85px;margin-left:calc(min(0px,(100vw - 492px)/7));padding:4px}.hand .card:first-child{margin-left:0}.hand .card .index{font-size:17px}
 .action-dock{min-height:40px;padding:0;gap:7px}.action-dock p{font-size:11px;margin:0;line-height:1.4}.action-dock button{min-height:36px;padding:5px 11px;flex-shrink:0}
 .game-page .trick-cards{width:130px;height:122px}.game-page .trick-cards .card{width:46px;height:65px}.game-page .trick-cards .pos-0{left:42px;top:56px}.game-page .trick-cards .pos-1{left:84px;top:28px}.game-page .trick-cards .pos-2{left:42px;top:0}.game-page .trick-cards .pos-3{left:0;top:28px}
 .trump-options{gap:5px}.trump-options button{min-height:36px;padding:5px;font-size:12px}.trump-options .blind{min-height:36px}
 .result-card{max-height:100%;padding:8px}.result-card h2{font-size:18px}.result-details{gap:5px}
 .cosmetic-preview .modal-body>.row:last-child{bottom:auto}.cosmetic-preview .preview-victory{height:130px;min-height:130px}.cosmetic-preview .preview-victory>.muse-surface{height:120px;width:80px}
}
.epic-win{position:relative;width:180px;height:170px;flex:none;display:grid;place-items:center;isolation:isolate;overflow:hidden;pointer-events:none;filter:drop-shadow(0 0 10px color-mix(in srgb,var(--win-color),transparent 60%))}
.epic-win .win-emblem{width:62%;height:62%;object-fit:contain;z-index:2}.epic-win .win-ring{position:absolute;width:calc(48% + var(--n)*10%);height:calc(48% + var(--n)*10%);border:1px solid var(--win-color);border-radius:50%;opacity:.35;box-shadow:0 0 10px var(--win-accent)}
.epic-win .win-sigil{position:absolute;bottom:8px;color:var(--win-color);font-size:22px;z-index:3;letter-spacing:.4em}.epic-win.grand .win-sigil{font-size:28px}.epic-win.grand .win-emblem{width:72%;height:72%}
.epic-win .win-mote{position:absolute;width:4px;height:8px;background:var(--win-color);transform:rotate(var(--angle)) translateY(-65px);opacity:.4;box-shadow:0 0 7px var(--win-color)}
.epic-win.circuit .win-ring{border-radius:18%;transform:rotate(45deg);border-style:dashed}.epic-win.batik .win-ring{border-radius:28%;border-style:double;border-width:3px}.epic-win.batik .win-emblem{filter:hue-rotate(57deg)}.epic-win.aurora .win-emblem{filter:hue-rotate(55deg) saturate(1.6)}.epic-win.aurora .win-ring{height:30%;border-color:var(--win-accent);transform:rotate(-30deg)}
.product-art .epic-win{width:100%;height:100%}.preview-victory .epic-win{height:100%}.result-details>.epic-win{height:min(180px,23dvh)}
@media(max-width:800px){.epic-win{width:130px;height:120px}.epic-win .win-sigil{font-size:17px}.epic-win.grand .win-sigil{font-size:21px}}

.static-result{animation:none!important}
@media(max-width:600px){
 .topbar{gap:6px;padding-inline:9px}.topbar .logo{width:64px;flex-shrink:0}.player-summary{min-width:0;flex:1;gap:5px;justify-content:flex-end}.identity.framed-identity{min-width:0;max-width:104px;flex-shrink:1}.identity-details{min-width:0}.wallet{padding:6px 8px;flex-shrink:0}.wallet .dev-wallet-label{display:none}.account-button{padding:6px 8px;font-size:12px;flex-shrink:0}
 .shop-grid>.panel{min-width:0}.shop-grid button{overflow-wrap:anywhere}.team-score{overflow-wrap:anywhere}
}
/* The public thurumpu chip is one compact row; it must not consume four rows
   and squeeze the portrait arena or spill its announcement into the hand. */
@media(max-width:800px){
 .game-header .trump-chip{grid-column:1/-1;max-width:none;justify-content:center;flex-wrap:nowrap;min-height:27px;gap:7px}
 .game-table .seat strong{font-size:14px}.game-table .seat small{font-size:12px}
 .game-table .announcement{width:min(310px,98%);max-height:96%;padding:8px 10px;overflow:hidden}
 .game-table .announcement .call-suit{font-size:21px;line-height:1.3;margin:5px 0}
 .game-table .announcement .card{width:38px;height:55px;min-height:55px;margin:5px auto;padding:3px}
 .game-table .announcement .card .index{font-size:12px;left:3px;top:3px}.game-table .announcement .card .index.bottom{top:auto;left:auto;right:3px;bottom:3px}
}

.moderation-avatar{width:72px;height:72px;object-fit:cover;border-radius:50%;border:1px solid #6a8ba4}
.avatar-controls label.row{flex-direction:row;flex-wrap:nowrap;align-items:flex-start;gap:10px}
.avatar-controls label.row input{flex:0 0 22px;margin-top:2px}.avatar-controls label.row span{flex:1;min-width:0}
.epic-win.batik .win-emblem{filter:grayscale(1) brightness(1.35) sepia(.15) hue-rotate(195deg) saturate(3)}
.game-page:has(.result-veil) .hand:empty{display:none}
.board-slot>.result-veil .muse-result{width:min(600px,96%);min-width:0;overflow-x:hidden}
.board-slot>.result-veil .result-details{min-width:0;flex:1}
.board-slot>.result-veil .muse-result>.muse-surface{flex-shrink:0;max-width:45%}
.board-slot>.result-veil h2{overflow-wrap:anywhere}
/* A rail keeps its source aspect on short phones. Plaques use the surrounding
   gutters so their text never sits beneath the four public trick cards. */
@media(max-width:600px) and (max-height:700px){
 .game-table .seat.left{left:calc(50% - (100vw - 20px)/2)}
 .game-table .seat.right{right:calc(50% - (100vw - 20px)/2)}
 .game-table .seat small{white-space:nowrap}
 .game-table .seat.top,.game-table .seat.bottom{max-width:160px;min-width:110px;padding:3px 6px}
 .game-table .seat.top>div,.game-table .seat.bottom>div{display:flex;align-items:center;gap:5px;min-width:0}
 .game-table .seat.top strong,.game-table .seat.bottom strong{max-width:64px}
 .game-table .seat.top .muse-avatar,.game-table .seat.bottom .muse-avatar{width:20px;height:20px}
}
