@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');
:root{--bg:#101d20;--bg2:#15262a;--panel:#1b2d30;--cream:#f3ebd7;--muted:#9eafa9;--gold:#e5be81;--gold2:#b68a54;--felt:#183d36;--deep:#102d29;--red:#be5f55;--line:rgba(236,218,179,.13);--shadow:0 28px 90px rgba(1,10,10,.34)}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{min-height:100vh;margin:0;background:var(--bg);color:var(--cream);font-family:'DM Sans',Inter,system-ui,sans-serif;overflow-x:hidden}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.hidden{display:none!important}::selection{background:#e5be81;color:#183831}
.ambient{position:fixed;pointer-events:none;filter:blur(95px);z-index:-2;opacity:.35}.ambient-one{width:510px;height:510px;top:-230px;right:-150px;background:#326f5e;border-radius:50%;animation:float 16s ease-in-out infinite alternate}.ambient-two{width:470px;height:470px;bottom:-270px;left:-180px;background:#7a593f;border-radius:50%;animation:float 18s ease-in-out infinite alternate-reverse}.grain{position:fixed;inset:0;z-index:20;pointer-events:none;opacity:.12;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.2' filter='url(%23n)'/%3E%3C/svg%3E")}
.landing{min-height:100vh;max-width:1480px;margin:auto;padding:26px clamp(22px,5.2vw,88px) 24px;display:flex;flex-direction:column}.landing-head,.landing-footer,.topbar{display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:11px;font-family:'Playfair Display',Georgia,serif;font-size:25px;letter-spacing:.12em;font-weight:700;line-height:1}.brand small{display:block;font-family:'DM Sans',sans-serif;font-size:8px;letter-spacing:.3em;color:var(--gold);margin-top:8px}.brand-mark{width:44px;height:44px;border:1px solid rgba(230,193,133,.5);border-radius:11px;display:flex;align-items:center;justify-content:center;position:relative;color:var(--gold);font-size:31px;font-style:italic;letter-spacing:-.1em}.brand-mark span{font-size:11px;position:absolute;top:4px;right:4px}.head-note{font-size:10px;letter-spacing:.18em;color:#b1bfb3;font-weight:700}.live-dot,.pill-dot{display:inline-block;width:7px;height:7px;background:#92d1a2;border-radius:50%;box-shadow:0 0 12px #7dd794;margin-right:10px;animation:pulse 2.6s infinite}
.landing-main{flex:1;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(350px,.74fr);gap:7vw;align-items:center;padding:64px 0 86px}.hero{max-width:720px;position:relative;padding-bottom:120px}.eyebrow{font-size:10px;letter-spacing:.24em;font-weight:800;color:var(--gold);display:flex;align-items:center;gap:12px}.mini-diamond{font-size:14px}h1,h2,h3,h4,p{margin-top:0}.hero h1{font-family:'Playfair Display',Georgia,serif;font-weight:500;font-size:clamp(55px,5.8vw,100px);line-height:1.12;letter-spacing:-.055em;margin:25px 0 25px}.hero h1 em{color:var(--gold);font-weight:500}.hero p{font-size:15px;line-height:1.95;color:#aab9b2;max-width:475px}.features{display:flex;flex-wrap:wrap;gap:22px;margin-top:31px;font-size:10px;letter-spacing:.11em;color:#e7d9bd;font-weight:700}.features span{white-space:nowrap}.hero-cards{position:absolute;bottom:-135px;left:70px;height:230px;width:360px;pointer-events:none;filter:drop-shadow(0 23px 25px rgba(0,0,0,.25))}.show-card{position:absolute;width:141px;height:202px;background:#faf4e7;color:#242a28;border:7px solid #faf4e7;border-radius:11px;box-shadow:0 3px 0 #ded5c2,inset 0 0 0 1px #ded5c2;display:flex;flex-direction:column;justify-content:space-between;padding:4px;font-family:'Playfair Display',serif;font-size:30px}.show-card>b{align-self:center;font-size:81px;line-height:1;font-weight:400}.show-card>span:last-child{align-self:flex-end;transform:rotate(180deg)}.show-card-one{left:8px;transform:rotate(-19deg);z-index:1;animation:cardfloat 6s ease-in-out infinite}.show-card-two{left:99px;color:#b74447;transform:rotate(-2deg);z-index:2;animation:cardfloat 5.7s ease-in-out -.8s infinite}.show-card-three{left:188px;transform:rotate(17deg);z-index:3;background:#255045;border-color:#f1dfc1;padding:6px;animation:cardfloat 6.4s ease-in-out -1.4s infinite}.back-pattern{height:100%;width:100%;display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:79px;border:2px solid var(--gold);border-radius:5px;background:repeating-linear-gradient(45deg,transparent,transparent 8px,rgba(228,193,132,.14) 8px,rgba(228,193,132,.14) 9px)}
.entry-card{background:linear-gradient(155deg,rgba(37,62,62,.95),rgba(25,44,47,.94));border:1px solid rgba(241,222,179,.15);border-radius:24px;padding:clamp(28px,3.3vw,48px);box-shadow:var(--shadow);max-width:480px;width:100%;justify-self:end;position:relative;overflow:hidden}.entry-card:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 100% 0%,rgba(226,177,113,.1),transparent 50%);pointer-events:none}.entry-top{display:flex;justify-content:space-between;align-items:start}.card-badge{font-size:9px;letter-spacing:.19em;color:var(--gold);font-weight:800}.entry-sparkle{font-size:31px;color:var(--gold);line-height:1}.entry-card h2{font:500 47px 'Playfair Display',Georgia,serif;letter-spacing:-.04em;margin:20px 0 4px}.entry-sub{font-size:13px;color:#a7b9b1;margin-bottom:33px}.entry-card form{display:flex;flex-direction:column}.entry-card label{font-size:10px;letter-spacing:.15em;font-weight:800;color:#decba8;margin:0 0 11px}.entry-card label span{color:#7b9790;font-weight:500}.entry-card input{min-width:0;min-height:54px;background:#142c2c;color:var(--cream);border:1px solid #38524e;border-radius:10px;padding:0 16px;margin-bottom:21px;transition:border-color .2s,box-shadow .2s;outline:none}.entry-card input:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(229,190,129,.12)}.entry-card input::placeholder{color:#6f8983}.join-row{display:flex;gap:10px}.join-row input{flex:1;text-transform:uppercase;letter-spacing:.2em}.button{min-height:52px;border-radius:10px;padding:0 20px;font-weight:800;font-size:12px;letter-spacing:.025em;transition:transform .18s,background .18s,border-color .18s,box-shadow .18s;display:inline-flex;justify-content:center;align-items:center;gap:12px;white-space:nowrap}.button:hover:not(:disabled){transform:translateY(-2px)}.button:active:not(:disabled){transform:translateY(0) scale(.98)}.button span{font-size:18px;font-weight:400}.button-outline{height:54px;background:transparent;border:1px solid rgba(228,188,119,.6);color:var(--gold)}.button-outline:hover{background:rgba(225,188,130,.09)}.button-primary{background:linear-gradient(130deg,#f0cf96,#d5ab6d);border:1px solid #f7d7a2;color:#21302b;box-shadow:0 5px 22px rgba(210,165,103,.12)}.button-primary:hover{box-shadow:0 8px 28px rgba(210,165,103,.27)}.entry-rule{display:flex;align-items:center;gap:12px;white-space:nowrap;font-size:10px;color:#75948c;margin:-3px 0 19px}.entry-rule span{flex:1;border-top:1px solid #34524c}.entry-card .button-primary{width:100%}.privacy{color:#7f9991;font-size:10px;margin:23px 0 0;text-align:center}.privacy span{font-size:8px;color:#8ccd96;margin-right:3px}.landing-footer{font-size:9px;color:#708881;letter-spacing:.18em;font-weight:700;padding-bottom:4px}
.game-shell{max-width:1810px;margin:auto;min-height:100vh;padding:0 23px 30px}.topbar{min-height:84px;border-bottom:1px solid var(--line);gap:20px}.brand-small{font-size:19px}.brand-small .brand-mark{width:37px;height:37px;font-size:27px}.brand-small small{font-size:7px}.room-pill{border:1px solid var(--line);background:#203330;border-radius:40px;padding:10px 12px 10px 17px;font-size:10px;letter-spacing:.13em;color:#a9bab0}.room-pill strong{color:var(--gold);font-size:13px;letter-spacing:.18em;padding:0 8px}.room-pill button{border:0;border-radius:50%;width:26px;height:26px;background:#375249;color:var(--cream);font-size:17px}.top-actions{display:flex;align-items:center;gap:11px}.connection{font-size:10px;color:#9eb8ad;white-space:nowrap}.connection.offline{color:#e3a3a1}.icon-btn{height:37px;width:37px;background:#233a36;color:#decba8;border:1px solid var(--line);border-radius:9px;font-size:21px}.icon-btn:hover{background:#36534b}.exit-btn{font-size:19px;transform:rotate(45deg)}
.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 306px;gap:23px;margin-top:23px}.game-main{min-width:0}.game-meta{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:2px 3px 15px}.tiny{font-size:9px;letter-spacing:.2em}.game-meta h2{font:500 26px 'Playfair Display',Georgia,serif;margin:7px 0 0}.round-indicator{font-size:10px;letter-spacing:.15em;color:#aebeb5;border:1px solid var(--line);padding:11px 14px;border-radius:30px;white-space:nowrap}.felt-frame{border:11px solid #3b3229;border-radius:190px;box-shadow:0 2px 0 #665340,inset 0 0 0 1px #bea477,0 22px 65px rgba(0,0,0,.36);background:#40382e;padding:4px;position:relative}.felt{position:relative;min-height:535px;background:radial-gradient(ellipse at center,#235348 0%,#173e35 56%,#10322b 100%);border:2px solid #80694b;border-radius:178px;overflow:hidden}.felt:before{content:'';position:absolute;inset:0;opacity:.38;background:repeating-radial-gradient(circle at 50% 50%,transparent 0,transparent 3px,rgba(255,255,255,.018) 4px,transparent 5px);pointer-events:none}.felt-border{position:absolute;inset:27px;border:1px solid rgba(220,185,127,.22);border-radius:160px;pointer-events:none}.felt-logo{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:italic 110px 'Playfair Display',serif;color:rgba(226,200,154,.055);pointer-events:none;letter-spacing:-.13em}.felt-logo span{font-size:35px;align-self:center;margin-bottom:65px}.felt-logo small{position:absolute;top:65%;font:700 10px 'DM Sans',sans-serif;letter-spacing:.6em;color:rgba(226,200,154,.09)}
.seat{position:absolute;z-index:3;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:4px;min-width:100px;max-width:130px;text-align:center;transition:left .8s cubic-bezier(.2,.75,.2,1),top .8s cubic-bezier(.2,.75,.2,1);pointer-events:none}.seat .avatar-wrap{width:63px;height:63px;border-radius:50%;border:3px solid #5f806b;background:#e4cfaf;box-shadow:0 7px 16px rgba(0,0,0,.28);position:relative;overflow:visible}.seat svg.avatar{width:100%;height:100%;border-radius:50%;display:block}.seat.my-seat .avatar-wrap{border-color:#f2cb8e;box-shadow:0 0 0 4px rgba(228,184,112,.15),0 8px 20px rgba(0,0,0,.3)}.seat.defending .avatar-wrap{border-color:#eabf71;box-shadow:0 0 0 5px rgba(244,186,93,.15),0 0 25px rgba(229,179,94,.32)}.seat.leading .avatar-wrap:after{content:'✦';position:absolute;top:-13px;right:-6px;color:#f2cc8a;font-size:21px;filter:drop-shadow(0 3px 5px #10291f)}.seat .seat-name{font-size:11px;color:#f7e9d1;font-weight:800;background:rgba(10,34,29,.69);padding:5px 10px;border-radius:20px;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.seat .seat-detail{color:#d3c29e;font-size:10px;background:rgba(14,42,35,.7);border-radius:10px;padding:2px 8px}.seat.offline{filter:grayscale(.8);opacity:.59}.seat.finished .avatar-wrap{border-color:#a4d5a0}.seat-ready{position:absolute;right:-13px;bottom:0;background:#3f7862;color:#e9ffed;font-size:10px;padding:4px 5px;border-radius:50%;border:2px solid #163a2f}.seat-count{display:inline-block;padding:2px 6px;border-radius:6px;background:#d2a878;color:#17392f;font-weight:800}.seat-card-backs{display:flex;justify-content:center;height:12px}.seat-card-backs i{width:10px;height:17px;border:1px solid #d9bf93;background:linear-gradient(45deg,#284b42 25%,#d8b67e 26%,#284b42 28%,#284b42 70%,#d8b67e 71%,#284b42 74%);border-radius:2px;margin-left:-3px;transform:translateY(-4px) rotate(-12deg)}
.table-center{position:absolute;z-index:2;left:50%;top:49%;width:min(68%,630px);transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:16px;pointer-events:none}.status-message{background:rgba(11,37,31,.8);border:1px solid rgba(213,186,137,.23);padding:9px 18px;border-radius:30px;font-size:12px;font-weight:700;color:#e9d4ae;white-space:nowrap;box-shadow:0 5px 20px rgba(0,0,0,.12)}.table-zone{display:flex;align-items:center;justify-content:center;width:100%;min-height:165px;gap:22px}.deck-zone{width:86px;min-width:86px;text-align:center}.deck-holder{height:116px;display:flex;align-items:center;justify-content:center;position:relative}.deck-back{width:67px;height:97px;border:5px solid #ead9b8;border-radius:6px;background:repeating-linear-gradient(45deg,#264d44,#264d44 5px,#cbaa77 6px,#264d44 7px);box-shadow:2px 2px 0 #997a56,4px 4px 0 #d2b88c,0 10px 25px #08241f}.deck-trump{position:absolute;top:8px;left:42px;transform:rotate(90deg) scale(.65);transform-origin:center;width:67px;height:97px}.deck-label{font-size:10px;color:#d8c29c;margin-top:6px;white-space:nowrap}.table-pairs{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;min-width:0;max-width:100%;pointer-events:auto}.pair{position:relative;width:91px;height:140px;animation:deal .34s cubic-bezier(.18,.9,.2,1) both}.pair .playing-card{position:absolute;top:21px;left:0;transform:rotate(-11deg) scale(.84);transform-origin:top left}.pair .playing-card.cover{transform:translate(27px,-3px) rotate(9deg) scale(.84);z-index:2;box-shadow:0 8px 25px #061e1a99}.pair.clickable{cursor:pointer}.pair.clickable:after{content:'НАКРЫТЬ';position:absolute;bottom:-5px;left:3px;color:#e9ca91;font-size:9px;font-weight:800;letter-spacing:.09em}.pair.clickable .playing-card:not(.cover){box-shadow:0 0 0 2px #eac686,0 13px 25px #0006}.table-hint{font-size:10px;letter-spacing:.08em;color:#acc8b9;min-height:12px;text-align:center}
.playing-card{width:76px;height:110px;border-radius:7px;background:linear-gradient(155deg,#fffdf5,#e8dfcc);color:#222b2c;border:3px solid #faf4e7;box-shadow:0 2px 0 #c9bb9e,0 9px 19px rgba(1,14,11,.29);position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:2px;flex-shrink:0;user-select:none;transition:transform .23s cubic-bezier(.2,.7,.3,1),box-shadow .2s;will-change:transform}.playing-card.red{color:#c24d51}.card-corner{display:flex;flex-direction:column;align-items:center;align-self:start;font-size:16px;font-weight:800;line-height:.9;letter-spacing:-.08em}.card-corner small{font-size:18px;line-height:1}.card-corner.bottom{align-self:end;transform:rotate(180deg)}.card-symbol{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:43px;font-family:Georgia,serif;line-height:1}.card-face{font-family:'Playfair Display',Georgia,serif;font-weight:700;font-size:38px;letter-spacing:-.12em}.hand-section{padding:22px 10px 8px}.hand-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-tag{font-size:10px;letter-spacing:.14em;color:#e8d4a9;font-weight:800}.section-tag b{background:#31483f;padding:3px 8px;border-radius:14px;color:var(--cream);margin-left:7px;letter-spacing:0}.gold-dot{width:6px;height:6px;border-radius:50%;background:var(--gold);display:inline-block;margin-right:7px}#hand-hint{font-size:11px;color:#8aa69d}.hand{display:flex;align-items:flex-end;justify-content:center;min-height:165px;padding:22px 6px 5px;overflow-x:auto;overflow-y:visible;scrollbar-color:#50665c transparent;scrollbar-width:thin}.hand .playing-card{width:87px;height:126px;margin-left:-19px;cursor:pointer;border-radius:8px;flex-shrink:0;animation:deal .4s cubic-bezier(.2,.8,.2,1) both}.hand .playing-card:first-child{margin-left:0}.hand .playing-card .card-symbol{font-size:53px}.hand .playing-card .card-face{font-size:46px}.hand .playing-card:hover{transform:translateY(-18px) rotate(0)!important;z-index:7;box-shadow:0 18px 25px #0006}.hand .playing-card.selected{transform:translateY(-24px) rotate(0)!important;z-index:8;box-shadow:0 0 0 3px var(--gold),0 18px 25px #0007}.hand .playing-card.unplayable{opacity:.58}.empty-hand{font:italic 20px 'Playfair Display',serif;color:#869d94;align-self:center}.action-bar{display:flex;justify-content:center;flex-wrap:wrap;align-items:center;gap:11px;min-height:57px}.action-bar .button{min-width:135px;min-height:44px}.button-secondary{background:#25443c;color:#e9dcbe;border:1px solid #55715e}.button-danger{background:#684039;color:#ffe6c7;border:1px solid #aa7561}.action-note{font-size:11px;color:#96b2a5}.ready-banner{padding:10px 15px;background:#1c3431;border:1px solid #587c61;border-radius:11px;font-size:12px;color:#d1ead2}
.sidebar{background:linear-gradient(165deg,#1b302f,#15272a);border:1px solid var(--line);border-radius:17px;box-shadow:0 12px 40px #0002;display:flex;flex-direction:column;min-height:750px}.sidebar-top{padding:29px 24px 25px;border-bottom:1px solid var(--line)}.panel-kicker{font-size:10px;letter-spacing:.2em;color:var(--gold)}.sidebar-top h3{font:500 29px 'Playfair Display',Georgia,serif;margin:11px 0 9px}.sidebar-top>p{font-size:11px;color:#90aba2;line-height:1.75;margin-bottom:24px}.room-share{padding:15px;border:1px dashed rgba(214,187,141,.35);background:rgba(11,35,29,.45);border-radius:11px;display:flex;flex-direction:column;gap:8px}.room-share>span{font-size:9px;letter-spacing:.15em;color:#96aaa0;font-weight:700}.room-share strong{font-size:25px;letter-spacing:.25em;color:var(--gold)}.share-btn{margin-top:4px;border:0;border-radius:7px;background:#34594c;color:#e5ddc7;padding:10px;font-size:11px;font-weight:800}.share-btn:hover{background:#47715f}.panel-section{padding:20px 22px;border-bottom:1px solid var(--line)}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.panel-heading h4{font-size:10px;letter-spacing:.13em;color:#e4d3ae;margin:0}.panel-heading>span{font-size:10px;color:#95aba0}.sidebar-players{display:flex;flex-direction:column;gap:11px}.list-player{display:flex;align-items:center;gap:10px}.list-avatar{width:34px;height:34px;border-radius:50%;overflow:hidden;border:2px solid #537864;background:#dfc8a3;flex-shrink:0}.list-avatar svg{width:100%;height:100%}.list-player-info{min-width:0;flex:1}.list-player-info strong{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list-player-info small{font-size:9px;color:#8da69c}.list-chip{font-size:9px;padding:4px 6px;border-radius:6px;color:#abbeac;background:#2d473e;white-space:nowrap}.list-chip.is-ready{color:#e4eecb;background:#466448}.list-chip.is-offline{background:#4d403e;color:#e3b6ab}.feed-panel{flex:1;border-bottom:0}.feed{display:flex;flex-direction:column-reverse;gap:11px;max-height:220px;overflow-y:auto}.feed-item{display:flex;gap:9px;align-items:flex-start;animation:fadein .24s ease}.feed-icon{color:var(--gold);font-size:13px;line-height:1.2}.feed-text{font-size:11px;color:#abc0b5;line-height:1.5}.feed-text b{color:#f1dfc0}.live-indicator{color:#91cda4!important}.side-footer{font:italic 13px 'Playfair Display',serif;color:#77968a;padding:19px 23px;margin-top:auto;border-top:1px solid var(--line)}.side-footer span{color:#cdab70;font-size:18px;margin-right:6px}
.toast{position:fixed;z-index:70;left:50%;bottom:26px;transform:translate(-50%,15px);background:#f0dfbc;color:#26362c;font-size:12px;font-weight:800;border-radius:11px;padding:14px 23px;box-shadow:0 10px 30px #0006;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;text-align:center;max-width:90vw}.toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes pulse{50%{opacity:.45;box-shadow:0 0 3px #7dd794}}@keyframes float{to{transform:translate(85px,70px)}}@keyframes cardfloat{50%{translate:0 -9px}}@keyframes deal{from{opacity:0;translate:0 38px;filter:blur(3px)}to{opacity:1;translate:0 0;filter:blur(0)}}@keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes bang{to{transform:translate(132px,-35px) rotate(10deg) scale(1)}}@keyframes toy{0%,50%{transform:translate(70px,35px) rotate(-45deg)}75%{transform:translate(60px,-1px) rotate(25deg)}100%{transform:translate(68px,16px) rotate(20deg)}}@keyframes confetti{to{transform:translateY(110vh) rotate(900deg);opacity:0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(max-width:1280px){.game-layout{grid-template-columns:minmax(0,1fr) 260px;gap:14px}.sidebar-top{padding:21px 17px}.panel-section{padding:19px 15px}.felt{min-height:495px}.felt-frame{border-width:9px}.seat .avatar-wrap{width:55px;height:55px}.seat .seat-name{font-size:10px}.table-center{width:68%}.deck-zone{width:68px;min-width:68px}.table-zone{gap:10px}.pair{width:82px}.playing-card{width:69px;height:100px}}
@media(max-width:1000px){.landing-main{gap:4vw}.hero h1{font-size:clamp(50px,6vw,76px)}.hero-cards{left:20px;transform:scale(.8);transform-origin:left bottom}.game-layout{grid-template-columns:1fr}.sidebar{min-height:0;display:grid;grid-template-columns:1fr 1fr;align-items:start}.sidebar-top{grid-row:span 2}.feed-panel{grid-column:2}.side-footer{grid-column:1/-1}.felt{min-height:520px}}
@media(max-width:700px){.landing{padding:20px 20px 28px}.landing-head .head-note{font-size:8px;letter-spacing:.05em}.landing-main{grid-template-columns:1fr;gap:18px;padding:46px 0 32px}.hero{padding:0 0 40px}.hero h1{font-size:clamp(47px,10vw,67px);margin:18px 0}.hero p{font-size:13px;line-height:1.8}.features{gap:12px;font-size:9px;margin-top:18px}.hero-cards{display:none}.entry-card{justify-self:stretch;max-width:none;padding:26px}.entry-card h2{font-size:38px}.landing-footer span:nth-child(2){display:none}.brand{font-size:20px}.brand-mark{width:36px;height:36px;font-size:25px}.game-shell{padding:0 8px 35px}.topbar{min-height:69px;padding:0 8px;gap:6px}.brand-small{font-size:14px;gap:6px}.brand-small small{font-size:6px}.brand-small .brand-mark{width:28px;height:28px;font-size:20px;border-radius:7px}.room-pill{padding:5px 5px 5px 9px;font-size:8px;letter-spacing:0}.room-pill strong{font-size:10px;padding:0 2px}.room-pill button{width:22px;height:22px;font-size:13px}.top-actions{gap:5px}.connection{font-size:0}.connection:before{content:'●';font-size:12px;color:#9acbaa}.connection.offline:before{color:#e3a3a1}.icon-btn{height:30px;width:30px;font-size:16px}.game-layout{margin-top:13px}.game-meta{align-items:center;margin:0 9px 12px}.game-meta h2{font-size:21px}.round-indicator{padding:7px 8px;font-size:8px}.felt-frame{border-width:6px;border-radius:90px;padding:2px}.felt{height:460px;min-height:0;border-radius:84px}.felt-border{inset:13px;border-radius:80px}.felt-logo{font-size:65px}.felt-logo small{font-size:6px}.seat{min-width:58px;max-width:90px;gap:2px}.seat .avatar-wrap{width:43px;height:43px;border-width:2px}.seat .seat-name{font-size:9px;max-width:84px;padding:4px 5px}.seat .seat-detail{font-size:8px}.seat-card-backs{display:none}.seat-ready{font-size:8px;right:-8px}.table-center{width:85%;top:50%;gap:7px}.status-message{font-size:10px;padding:7px 10px;max-width:90%;overflow:hidden;text-overflow:ellipsis}.table-zone{min-height:136px;gap:0}.deck-zone{width:51px;min-width:51px}.deck-holder{height:86px;transform:scale(.71);transform-origin:center}.deck-label{font-size:9px;margin-top:-11px}.table-pairs{gap:3px}.pair{width:62px;height:97px}.pair .playing-card{transform:rotate(-11deg) scale(.63)}.pair .playing-card.cover{transform:translate(18px,-3px) rotate(9deg) scale(.63)}.pair.clickable:after{font-size:7px;bottom:-10px}.table-hint{font-size:9px;max-width:240px}.hand-section{padding:17px 2px}.hand-top{padding:0 7px}.section-tag{font-size:9px}#hand-hint{font-size:10px;text-align:right}.hand{justify-content:flex-start;min-height:158px;overflow-x:auto;padding:22px 14px 10px}.hand .playing-card{width:78px;height:116px;margin-left:-23px}.hand .playing-card .card-symbol{font-size:43px}.hand .playing-card .card-face{font-size:36px}.action-bar{padding:0 5px}.action-bar .button{min-width:0;flex:1;padding:0 12px;font-size:11px}.sidebar{grid-template-columns:1fr}.sidebar-top{grid-row:auto}.feed-panel{grid-column:auto}.side-footer{grid-column:auto}.sidebar-top>p{margin-bottom:15px}.room-share{gap:3px}.end-card{padding:26px 21px}}
@media(max-width:390px){.brand-small>span:last-child{display:none}.felt{height:415px}.seat .avatar-wrap{width:38px;height:38px}.seat .seat-name{font-size:8px}.pair{width:51px}.table-center{width:90%}.game-meta h2{font-size:19px}.round-indicator{font-size:7px}.hand .playing-card{width:73px;height:106px}}

/* v2: the table is the interface, not a dashboard. */
.invite-greeting,#invited-join{display:none}
.landing.invite-mode .landing-main{display:flex;justify-content:center;padding:65px 0}
.landing.invite-mode .hero{display:none}
.landing.invite-mode .entry-card{justify-self:center;width:min(100%,470px)}
.landing.invite-mode .entry-card h2{margin-top:14px}
.landing.invite-mode #code-group,.landing.invite-mode #create-group{display:none}
.landing.invite-mode .invite-greeting{display:block;color:#dcb97c;font-size:12px;line-height:1.6;margin:15px 0 20px}
.landing.invite-mode .invite-greeting strong{letter-spacing:.16em;margin-left:5px}
.landing.invite-mode #invited-join{display:flex;width:100%}

.game-shell{max-width:1500px;padding:0 15px 84px}
.topbar{min-height:66px}
.game-layout{display:block;margin-top:10px}
.game-main{display:flex;flex-direction:column;min-width:0}
.game-meta{margin:0 13px 8px;align-items:center}
.game-meta .eyebrow{display:none}
.game-meta h2{font-size:20px;margin:0}
.round-indicator{font-size:9px;padding:7px 12px}
.felt-frame{border-width:8px;border-radius:145px;padding:3px;box-shadow:0 2px 0 #665340,inset 0 0 0 1px #bea477,0 17px 45px rgba(0,0,0,.32)}
.felt{height:clamp(365px,56dvh,565px);min-height:0;border-radius:135px}
.felt-border{inset:18px;border-radius:125px}
.felt-logo{font-size:100px}
.felt-logo small{display:none}
.table-center{width:min(72%,790px);top:49%;z-index:4}
.table-zone{min-height:200px;gap:0}
.table-pairs{width:100%;display:grid;grid-template-columns:repeat(3,88px);justify-content:center;align-content:center;gap:12px 20px}
.pair{width:87px;height:117px;animation:none}
.pair .playing-card{top:10px;left:0;transform:rotate(-9deg) scale(.82)}
.pair .playing-card.cover{transform:translate(26px,-9px) rotate(8deg) scale(.82)}
.pair.clickable:after{content:'◆';font-size:15px;bottom:0;left:50%;color:#f7d194;text-shadow:0 0 9px #f4c275}
.pair .playing-card:not(.cover){transition:box-shadow .2s}
.table-lobby-mark{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:69px;color:#ddb67d66;animation:pulse 3s infinite}
.felt.is-lobby .table-lobby-mark{display:block}
.felt.is-lobby .table-zone{visibility:hidden}
.deck-zone{position:absolute;top:42%;left:2.2%;z-index:4;width:96px;min-width:0;transform:translateY(-50%);filter:drop-shadow(0 12px 16px #0005)}
.deck-surface{display:flex;flex-direction:column;align-items:center;gap:3px}
.deck-holder{height:99px;width:90px;position:relative}
.deck-back{position:relative;width:64px;height:91px;z-index:1;box-shadow:2px 2px 0 #967b53,4px 4px 0 #d0b48d,0 7px 22px #08241f}
.deck-trump{position:absolute;left:29px;top:10px;transform:rotate(84deg) scale(.68);transform-origin:center;opacity:.96}
.deck-trump .playing-card{box-shadow:0 2px 0 #bda980}
.trump-emblem{display:flex;align-items:center;justify-content:center;gap:6px;min-width:76px;background:#102f29d9;padding:5px 8px;border-radius:12px;border:1px solid #cbaa77aa;box-shadow:0 4px 12px #08241f99}
.trump-emblem .suit{font-size:29px;line-height:1;color:#f3dec0;text-shadow:0 0 14px #e3ba76aa}
.trump-emblem .suit.red-suit{color:#e98e8d}
.trump-emblem .count{font-size:11px;font-weight:800;color:#eccb92}
.hand-section{padding:7px 8px 14px;position:relative}
.hand-top{max-width:1050px;margin:auto}
.hand{max-width:1050px;margin:auto;min-height:133px;padding:12px 6px 5px;overflow-x:auto;justify-content:center}
.hand .playing-card{animation:none;margin-left:-15px}
.hand .playing-card.is-new{animation:deal .35s cubic-bezier(.2,.8,.2,1) both}
#hand-hint{display:none}
.action-bar{position:fixed;z-index:35;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:9px;min-height:54px;max-width:calc(100vw - 24px);width:max-content;padding:7px 10px;border-radius:17px;background:#142d2bec;backdrop-filter:blur(18px);border:1px solid #ddba8180;box-shadow:0 9px 45px #061a17bb,0 0 0 4px #10271e40}
.action-bar:empty{display:none}
.action-bar .button{min-height:43px;min-width:140px;border-radius:10px;font-size:13px}
.action-bar .action-note{display:none}
.action-bar .ready-banner{font-size:12px;padding:12px}
.dock-count{color:#e6d1a4;font-size:12px;font-weight:800;border-left:1px solid #d0ad7155;padding:10px 12px;white-space:nowrap}
.turn-prompt{display:flex;align-items:center;justify-content:center;width:48px;height:42px;font-size:24px;color:#d5c69e;animation:float-glyph 1.2s ease-in-out infinite alternate}
.turn-prompt.its-your-turn{color:#f4d392;text-shadow:0 0 13px #eebc6d}
.turn-flow{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}
.flow-line{fill:none;stroke:#f3c878;stroke-width:3.5;stroke-linecap:round;stroke-dasharray:9 8;animation:flow-dash 1.1s linear infinite;filter:drop-shadow(0 0 7px #efca7699)}
.flow-line.transfer{stroke:#d8a1ec;stroke-width:4.5;filter:drop-shadow(0 0 9px #d9a5faaa)}
.flow-origin{fill:#e3be7c;filter:drop-shadow(0 0 8px #f6bd5d)}
.flow-target{fill:none;stroke:#a7f3d2;stroke-width:3;filter:drop-shadow(0 0 8px #a7f3d2);animation:target-pulse 1.7s ease-in-out infinite}
.orbit-arrow{fill:none;stroke:#cba86e77;stroke-width:2;stroke-dasharray:7 13;animation:flow-dash 7s linear infinite}
.seat{z-index:5;transition:left .65s cubic-bezier(.2,.75,.2,1),top .65s cubic-bezier(.2,.75,.2,1)}
.seat .avatar-wrap{transition:border-color .22s,box-shadow .22s,transform .22s}
.seat.attacking .avatar-wrap{border-color:#fbd28f;box-shadow:0 0 0 6px #f2c77936,0 0 30px #ffbd5e88;animation:attacker-beat 1.5s ease-in-out infinite}
.seat.defending .avatar-wrap{border-color:#9ce8d1;box-shadow:0 0 0 6px #88eacb33,0 0 27px #79dec0bb;animation:target-beat 1.5s ease-in-out infinite}
.seat.transferring .avatar-wrap{border-color:#dfb5ff;box-shadow:0 0 0 7px #d19fea55,0 0 38px #bd83fcaa;animation:attacker-beat .65s ease-in-out infinite}
.seat .role-glyph{position:absolute;top:-17px;left:50%;transform:translateX(-50%);font-size:21px;color:#f9d495;text-shadow:0 0 8px #f2b95a;animation:float-glyph 1.1s ease-in-out infinite alternate}
.seat.defending .role-glyph{color:#b5f7de;text-shadow:0 0 9px #8de1cb}
.seat.transferring .role-glyph{color:#e4b3ff;text-shadow:0 0 10px #c690ef}
.seat .seat-detail{font-size:9px}
.flight-card{position:fixed!important;z-index:60!important;pointer-events:none!important;margin:0!important;animation:none!important;will-change:transform,opacity;box-shadow:0 15px 28px #001c1a99,0 0 24px #e3bf7766!important}
.pair.pending-attack>.playing-card:first-child,.pair .playing-card.pending-cover{opacity:0!important}
@keyframes flow-dash{to{stroke-dashoffset:-68}}
@keyframes target-pulse{50%{opacity:.55;stroke-width:6}}
@keyframes attacker-beat{50%{box-shadow:0 0 0 11px #f2c7791b,0 0 37px #ffbd5eb0}}
@keyframes target-beat{50%{box-shadow:0 0 0 11px #88eacb19,0 0 35px #79dec0df}}
@keyframes float-glyph{to{transform:translate(-50%,-6px)}}

@media(max-width:700px){
  .game-shell{padding:0 5px 88px}
  .topbar{min-height:61px;padding:0 5px}
  .game-layout{margin-top:5px}
  .game-meta{margin:0 8px 6px}
  .game-meta h2{font-size:17px}
  .felt-frame{border-width:6px;border-radius:78px}
  .felt{height:clamp(325px,50dvh,420px);border-radius:74px}
  .felt-border{inset:12px;border-radius:65px}
  .felt-logo{font-size:66px}
  .seat{min-width:52px;max-width:82px}
  .seat .avatar-wrap{height:43px;width:43px}
  .seat .seat-name{font-size:9px;max-width:82px}
  .seat .seat-detail{font-size:8px}
  .seat .role-glyph{font-size:15px;top:-13px}
  .table-center{width:75%;top:49%}
  .table-zone{min-height:136px}
  .table-pairs{grid-template-columns:repeat(3,60px);gap:3px 3px}
  .pair{width:60px;height:91px}
  .pair .playing-card{transform:rotate(-9deg) scale(.63);top:7px}
  .pair .playing-card.cover{transform:translate(16px,-8px) rotate(8deg) scale(.63)}
  .deck-zone{left:0;top:41%;width:58px;transform:translateY(-50%) scale(.78);transform-origin:left center}
  .trump-emblem{min-width:55px}
  .hand-section{padding:8px 1px 18px}
  .hand{max-width:100%;min-height:112px;padding:7px 8px 4px;justify-content:flex-start}
  .hand .playing-card{height:108px;width:74px;margin-left:-21px}
  .action-bar{bottom:max(7px,env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 10px);padding:6px;min-height:51px}
  .action-bar .button{min-width:118px;min-height:41px;padding:0 11px;font-size:12px}
}
@media(max-width:390px){.felt{height:330px}.table-pairs{grid-template-columns:repeat(3,52px);gap:2px}.pair{width:52px;height:85px}.pair .playing-card{transform:rotate(-9deg) scale(.55)}.pair .playing-card.cover{transform:translate(14px,-6px) rotate(7deg) scale(.55)}.hand .playing-card{width:70px;height:104px;margin-left:-22px}}

/* v3 — server-synced clocks and per-avatar Bito confirmations */
.meta-right{display:flex;align-items:center;gap:12px;flex-shrink:0}
.table-timer{position:relative;width:64px;height:55px;flex:none;display:flex;align-items:center;justify-content:center;color:#f4d49d;filter:drop-shadow(0 0 6px #efbf6655);transition:filter .2s}
.table-timer svg{width:55px;height:55px;transform:rotate(-90deg)}
.timer-track,.timer-progress{fill:none;stroke-width:4.5}
.timer-track{stroke:#8d7d6370}
.timer-progress{stroke:#f5ce84;stroke-linecap:round;stroke-dasharray:138.23;stroke-dashoffset:0;transition:stroke-dashoffset .08s linear,stroke .22s}
.table-timer.is-bito .timer-progress{stroke:#90e1bd}
.table-timer.urgent .timer-progress{stroke:#ff8d77}
.table-timer.urgent{filter:drop-shadow(0 0 10px #ef766eaa)}
.timer-value{position:absolute;left:0;right:0;top:13px;text-align:center;font-size:21px;font-weight:800;line-height:1.1;font-variant-numeric:tabular-nums;color:#fff2d8}
.timer-icon{position:absolute;bottom:7px;left:0;right:0;text-align:center;font-size:10px;line-height:1;color:#d7b575}
.table-timer.is-bito .timer-icon{color:#a1f4d0}
.seat.timed .avatar-wrap::before{content:'';position:absolute;inset:-8px;z-index:2;pointer-events:none;border-radius:50%;background:conic-gradient(from -90deg,#f5cd84 0deg,#f5cd84 var(--timer-angle,360deg),#ffffff2a var(--timer-angle,360deg),#ffffff2a 360deg);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3.5px));mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3.5px))}
.seat-pass{position:absolute;z-index:8;right:-15px;top:-10px;display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:linear-gradient(145deg,#a4f2c5,#4cbb8c);color:#103c2e;box-shadow:0 0 0 3px #10362d,0 0 21px #79e7acb0;border:1px solid #d9ffec;font-size:18px;font-weight:900;opacity:0;transform:scale(.2) rotate(-24deg);transition:opacity .16s,transform .25s cubic-bezier(.16,1.6,.3,1);pointer-events:none}
.seat-pass.visible{opacity:1;transform:scale(1) rotate(0deg);animation:bito-pop .35s cubic-bezier(.16,1.7,.28,1)}
@keyframes bito-pop{0%{transform:scale(.25) rotate(-30deg)}70%{transform:scale(1.2) rotate(7deg)}100%{transform:scale(1) rotate(0deg)}}
@media(max-width:700px){.meta-right{gap:5px}.table-timer{width:51px;height:45px}.table-timer svg{width:45px;height:45px}.timer-value{top:10px;font-size:18px}.timer-icon{bottom:3px;font-size:8px}.seat-pass{width:23px;height:23px;right:-12px;top:-9px;font-size:15px}.seat.timed .avatar-wrap::before{inset:-5px}}
@media(max-width:390px){.table-timer{width:43px}.table-timer svg{width:43px;height:43px}.meta-right{gap:3px}}
@media(prefers-reduced-motion:reduce){.seat-pass.visible{animation:none}.timer-progress{transition:none}}

/* v4 — clear TAKE callout and independent server-clock response / throw-in rings. */
.seat{--avatar-diameter:63px}
.seat .seat-take{
  position:absolute;z-index:9;left:50%;top:calc(var(--avatar-diameter) - 9px);
  padding:4px 12px 5px;border-radius:9px;
  color:#301b16;background:linear-gradient(140deg,#ffe5a6,#e9a873);
  border:1px solid #fff1c7;box-shadow:0 3px 0 #7c4937,0 7px 22px #000b,
  0 0 21px #f4b57499;
  font:900 12px/1.1 'DM Sans',sans-serif;letter-spacing:.13em;
  white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;
  transform:translate(-50%,-8px) scale(.6) rotate(-7deg);
  transition:opacity .18s,transform .28s cubic-bezier(.15,1.6,.3,1),visibility .18s;
}
.seat .seat-take.visible{
  visibility:visible;opacity:1;
  transform:translate(-50%,-4px) scale(1) rotate(-3deg);
  animation:take-pulse 1.35s ease-in-out infinite alternate;
}
.seat:has(.seat-take.visible) .avatar-wrap{
  border-color:#ffbf91;box-shadow:0 0 0 6px #ffc0802e,0 0 35px #ffb48288;
}
.table-timer.is-throw .timer-progress{stroke:#ffbb87}
.table-timer.is-throw .timer-icon{color:#ffccac}
.table-timer.is-defense .timer-progress{stroke:#83e0c8}
.table-timer.is-defense .timer-icon{color:#95efdb}
.seat.timed.defending .avatar-wrap::before{
  background:conic-gradient(from -90deg,#93eed2 0deg,#93eed2 var(--timer-angle,360deg),#ffffff2a var(--timer-angle,360deg),#ffffff2a 360deg)
}
@keyframes take-pulse{
  to{transform:translate(-50%,-8px) scale(1.05) rotate(2deg);
    box-shadow:0 3px 0 #7c4937,0 9px 26px #000b,0 0 28px #ffc478df}
}
@media(max-width:1280px){.seat{--avatar-diameter:55px}}
@media(max-width:700px){
  .seat{--avatar-diameter:43px}
  .seat .seat-take{font-size:10px;padding:3px 8px 4px;border-radius:7px;top:calc(var(--avatar-diameter) - 7px)}
}
@media(max-width:390px){.seat{--avatar-diameter:38px}}
@media(prefers-reduced-motion:reduce){.seat .seat-take.visible{animation:none}}

/* A speech bubble above the avatar must never cover the nickname. */
.seat .seat-take{top:-36px}
.seat:has(.seat-take.visible) .role-glyph{opacity:0}
@media(max-width:700px){.seat .seat-take{top:-28px}}


/* v5 — collectible portrait cards use the same dimensions, hit targets and animations. */
.playing-card.portrait-card{padding:0;overflow:hidden;isolation:isolate;background:#f5e9d7;border:2px solid #f6eddf}
.playing-card.portrait-card .card-art{width:100%;height:100%;display:block;object-fit:cover;object-position:center;border-radius:4px;pointer-events:none;user-select:none;-webkit-user-drag:none}
/* v6 — lightweight, temporary sticker reactions, independent of card/state repaints. */
.action-dock{position:fixed;bottom:max(11px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:45;display:flex;align-items:center;justify-content:center;gap:9px;padding:7px 9px;max-width:calc(100vw - 16px);background:linear-gradient(150deg,#193b37f5,#112825f7);border:1px solid #d8b77f80;border-radius:17px;box-shadow:0 10px 45px #001611b8,0 0 0 4px #1030283b;backdrop-filter:blur(19px)}
.action-dock .action-bar{position:static;z-index:auto;bottom:auto;left:auto;transform:none;max-width:none;width:auto;min-height:0;gap:8px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;flex-wrap:nowrap}
.action-dock .action-bar .button{min-width:132px;min-height:43px}
.action-dock .action-bar:empty{display:none}
.sticker-control{flex:none;position:static}
.sticker-trigger{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 11px;min-width:47px;height:45px;border-radius:12px;border:1px solid #c39e6794;background:linear-gradient(160deg,#4c5944,#263c35);color:#f0d49e;transition:background .2s,transform .18s,box-shadow .2s;box-shadow:inset 0 1px #f6e5b326}
.sticker-trigger:hover,.sticker-trigger.is-open{background:linear-gradient(155deg,#6b6649,#31463b);box-shadow:0 0 0 2px #e3bf803a;transform:translateY(-2px)}
.sticker-trigger:active{transform:scale(.94)}
.sticker-trigger svg{width:24px;height:24px;flex:none}
.sticker-trigger-caption{font-size:11px;font-weight:800;color:#f6e2bd}
.sticker-trigger.is-cooling:before{content:'';position:absolute;inset:-4px;border-radius:15px;background:conic-gradient(#edc889 0 var(--sticker-cooldown-fraction),transparent var(--sticker-cooldown-fraction) 100%);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;padding:2px;pointer-events:none}
.sticker-trigger-cooldown{display:none;position:absolute;right:-7px;top:-7px;min-width:20px;height:20px;border-radius:11px;background:#e9b970;color:#28332f;border:2px solid #152d2b;font-size:10px;font-weight:900;line-height:16px;text-align:center;font-variant-numeric:tabular-nums}
.sticker-trigger.is-cooling .sticker-trigger-cooldown{display:block}
.sticker-picker{position:absolute;bottom:calc(100% + 12px);left:50%;transform:translateX(-50%);width:min(385px,calc(100vw - 20px));max-height:min(450px,66dvh);overflow:hidden;display:flex;flex-direction:column;background:linear-gradient(145deg,#213e39f7,#122e2bfa);border:1px solid #dbbd8b8c;border-radius:20px;box-shadow:0 22px 65px #000a,0 0 0 4px #112b274d;backdrop-filter:blur(24px);animation:sticker-picker-pop .19s cubic-bezier(.2,.8,.2,1) both;transform-origin:50% 100%}
.sticker-picker-heading{padding:15px 18px 11px;display:flex;justify-content:space-between;align-items:center;gap:10px;color:#f7e6c6;font-size:11px;letter-spacing:.16em;font-weight:800;border-bottom:1px solid #d6c39c23}
.sticker-picker-heading i{font-style:normal;color:#e9c58f}
#sticker-cooldown-label{font-size:10px;color:#aebead;letter-spacing:0;font-weight:600}
.sticker-grid{padding:10px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8f7e5b #203d36}
.sticker-option{min-width:0;min-height:61px;aspect-ratio:1;border-radius:11px;border:1px solid transparent;background:transparent;padding:3px;display:grid;place-items:center;transition:transform .15s,background .16s,border-color .16s;position:relative}
.sticker-option img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 3px #06161278)}
.sticker-option:hover:not(:disabled),.sticker-option:focus-visible{background:#e3c58a1b;border-color:#e6bd767a;transform:translateY(-3px) scale(1.06);z-index:1}
.sticker-option:active:not(:disabled){transform:scale(.92)}
.sticker-option:disabled{opacity:.38;cursor:not-allowed}
.sticker-picker-foot{border-top:1px solid #e5d7a920;display:flex;justify-content:space-between;gap:12px;padding:10px 17px;color:#9db3a8;font-size:10px}
.sticker-picker-foot span:last-child{color:#e8c385}
.sticker-bubble{--sticker-life:3600ms;position:absolute;z-index:50;bottom:calc(100% + 4px);left:50%;width:clamp(80px,8.4vw,116px);aspect-ratio:1;transform:translateX(-50%);pointer-events:none;isolation:isolate;animation:sticker-bubble-life var(--sticker-life) ease-out both;filter:drop-shadow(0 7px 13px #0009);overflow:visible}
.sticker-bubble img{display:block;width:100%;height:100%;object-fit:contain;animation:sticker-bounce .54s cubic-bezier(.17,1.7,.38,1) both}
.sticker-bubble:before,.sticker-bubble:after{content:'✦';position:absolute;z-index:-1;color:#fce1a0;filter:drop-shadow(0 0 5px #ffc96b);font-size:18px;animation:sticker-spark 1.2s ease-in-out infinite alternate;pointer-events:none}
.sticker-bubble:before{top:10%;left:3%}.sticker-bubble:after{bottom:12%;right:0;animation-delay:.4s;font-size:13px}
.seat.sticker-left .sticker-bubble{left:calc(50% + 31px)}
.seat.sticker-right .sticker-bubble{left:calc(50% - 31px)}
.seat.sticker-below .sticker-bubble{top:calc(100% + 3px);bottom:auto}
.seat.sticker-below:not(.sticker-right) .sticker-bubble{left:calc(50% + 32px)}
.seat.sticker-below.sticker-right .sticker-bubble{left:calc(50% - 32px)}
@keyframes sticker-bubble-life{0%{opacity:0;translate:0 15px}10%{opacity:1;translate:0 0}73%{opacity:1;translate:0 -3px}100%{opacity:0;translate:0 -28px}}
@keyframes sticker-bounce{0%{transform:rotate(-17deg) scale(.35)}55%{transform:rotate(7deg) scale(1.19)}77%{transform:rotate(-3deg) scale(.94)}100%{transform:rotate(0deg) scale(1)}}
@keyframes sticker-spark{from{opacity:.28;transform:scale(.7) rotate(-20deg)}to{opacity:1;transform:scale(1.3) rotate(28deg)}}
@keyframes sticker-picker-pop{from{opacity:0;scale:.95;translate:0 8px}to{opacity:1;scale:1;translate:0 0}}
@media(max-width:700px){.action-dock{gap:6px;bottom:max(7px,env(safe-area-inset-bottom));padding:6px;border-radius:15px}.action-dock .action-bar{gap:6px;padding:0}.action-dock .action-bar .button{min-width:98px;min-height:41px;font-size:12px;padding:0 9px}.sticker-trigger{height:41px;min-width:42px;padding:0 9px}.sticker-trigger-caption{display:none}.sticker-trigger svg{width:24px;height:24px}.sticker-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:8px}.sticker-option{min-height:0}.sticker-picker{max-height:min(400px,59dvh)}.sticker-bubble{width:clamp(78px,23vw,102px)}.seat.sticker-left .sticker-bubble{left:calc(50% + 25px)}.seat.sticker-right .sticker-bubble{left:calc(50% - 25px)}}
@media(max-width:360px){.action-dock .action-bar .button{min-width:91px;font-size:11px}.sticker-option{padding:2px}.sticker-picker-foot{font-size:9px}}
@media(prefers-reduced-motion:reduce){.sticker-bubble,.sticker-bubble img,.sticker-bubble:before,.sticker-bubble:after,.sticker-picker{animation:none!important}.sticker-bubble{opacity:1}.sticker-option{transition:none}}


/* v7 — avatar-anchored match status; crown/clown scale with the avatar itself. */
.seat .winner-crown,.seat .loser-clown-hat{display:none;position:absolute;pointer-events:none;overflow:visible;z-index:10;left:50%;height:auto;transform-origin:center bottom}
.seat.crowned .avatar-wrap{border-color:#a6adb2;background:#777d7d;box-shadow:0 0 0 3px #aeb9bb28,0 7px 15px #0006}
.seat.crowned .avatar-wrap>svg.avatar{filter:grayscale(1) brightness(.83);opacity:.62}
.seat.crowned .seat-name{color:#c4cccd;background:#202e2dcc}
.seat.crowned .seat-detail{color:#9aa6a7;background:#1b2526bd}
.seat.crowned .winner-crown{display:block;width:92%;top:-39%;transform:translateX(-50%) rotate(-5deg);filter:drop-shadow(0 3px 2px #0b1e19d9);animation:crown-arrive .38s cubic-bezier(.2,1.5,.4,1) both}
.seat.clown .avatar-wrap{border-color:#f7ba9c;box-shadow:0 0 0 3px #e8969a55,0 5px 19px #0007}
.seat.clown .loser-clown-hat{display:block;width:80%;top:-61%;transform:translateX(-50%) rotate(6deg);filter:drop-shadow(0 3px 2px #0009);animation:clown-arrive .48s cubic-bezier(.2,1.7,.4,1) both}
.seat.clown .seat-detail{color:#fbd4bf;background:#824455bd}
@keyframes crown-arrive{from{opacity:0;translate:0 -14px;scale:.72}to{opacity:1;translate:0 0;scale:1}}
@keyframes clown-arrive{from{opacity:0;translate:0 -22px;scale:.65;rotate:-15deg}to{opacity:1;translate:0 0;scale:1;rotate:0}}
/* Table result is not a modal: everyone remains visible and can click Ready immediately. */
.felt.is-finished .table-lobby-mark{display:none}
.table-result{width:min(425px,100%);padding:20px 25px 18px;border-radius:23px;border:1px solid #f3d69c99;background:radial-gradient(circle at 50% 0%,#39635bfa 0%,#173b34f5 75%);box-shadow:0 18px 45px #041a16a3,inset 0 1px #ffe4ae3b;text-align:center;pointer-events:none;color:#f5e8cc;animation:result-arrive .55s cubic-bezier(.2,.9,.25,1) both;position:relative;isolation:isolate}
.table-result:before,.table-result:after{content:'✦';position:absolute;color:#ebc789;font-size:17px;top:14px;opacity:.76}
.table-result:before{left:18px}.table-result:after{right:18px}
.table-result-icon{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 8px;border-radius:50%;background:#dbb67427;border:1px solid #e8c68d75;color:#f5d498;font-size:25px;text-shadow:0 3px 15px #f0b35e55}
.table-result-overline{font-size:10px;font-weight:800;letter-spacing:.17em;color:#d6b986}
.table-result-title{font:500 clamp(23px,2.7vw,36px)/1.16 'Playfair Display',Georgia,serif;margin:8px 0 5px;overflow-wrap:anywhere;text-wrap:balance}
.table-result-subtitle{font-size:11px;color:#c2d3c3}
.table-result-ready{font-size:11px;letter-spacing:.01em;margin:14px auto 0;padding-top:11px;border-top:1px solid #dfc18735;color:#f0cc93}
@keyframes result-arrive{from{opacity:0;translate:0 14px;scale:.95}to{opacity:1;translate:0 0;scale:1}}
@media(max-width:700px){.table-result{padding:15px 14px 13px;border-radius:17px;max-width:min(100%,310px)}.table-result-icon{width:34px;height:34px;font-size:21px;margin-bottom:5px}.table-result-overline{font-size:8px}.table-result-title{font-size:clamp(20px,5vw,27px);margin:6px 0}.table-result-subtitle,.table-result-ready{font-size:9px}.table-result-ready{margin-top:10px;padding-top:9px}.seat.crowned .winner-crown{top:-38%}.seat.clown .loser-clown-hat{top:-61%}}
@media(prefers-reduced-motion:reduce){.seat.crowned .winner-crown,.seat.clown .loser-clown-hat,.table-result{animation:none}}

.felt.is-finished .table-zone{display:none}


/* v7.1 — Keep the upper-row taking label INSIDE the felt.
   Rather than floating outside the table, it occupies a small space between
   the avatar and the nickname. Keep the portrait centered inside its ring. */
.seat .avatar-wrap{display:grid;place-items:center;flex:0 0 auto;line-height:0;aspect-ratio:1}
.seat .avatar-wrap>svg.avatar{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;border-radius:50%;overflow:hidden;vertical-align:middle}
.seat.top-seat:has(.seat-take.visible){translate:0 9px}
.seat.top-seat .seat-take.visible{position:relative;left:auto;top:auto;order:0;margin:-6px auto -1px;padding:4px 10px 5px;transform:none;animation:take-pulse-inset 1.35s ease-in-out infinite alternate}
@keyframes take-pulse-inset{to{translate:0 -3px;scale:1.04;box-shadow:0 3px 0 #7c4937,0 8px 24px #000b,0 0 22px #ffc478cf}}
@media(max-width:700px){.seat.top-seat:has(.seat-take.visible){translate:0 7px}.seat.top-seat .seat-take.visible{padding:3px 8px 4px}}
@media(prefers-reduced-motion:reduce){.seat.top-seat .seat-take.visible{animation:none}}


/* v7.2 — Visual alignment: seat portraits and their animated rings share the
   same layout box. The seat layer stays ABOVE the side deck on small tables. */
#seat-layer{position:absolute;inset:0;z-index:6;pointer-events:none}
.seat .avatar-wrap{position:relative;display:grid;place-items:center;padding:0;margin-inline:auto;transform-origin:50% 50%;isolation:isolate}
.seat .avatar-wrap>svg.avatar{
  display:block;position:absolute;top:0;left:0;right:0;bottom:0;
  width:100%;height:100%;margin:0;padding:0;
  transform:none;transform-origin:center center;
  clip-path:circle(50% at 50% 50%);border-radius:50%;
}
/* Bottom action glyphs must NOT inherit the centered above-avatar motion:
   the old float-glyph moved ✦ left by 50% every cycle. */
.turn-prompt{position:relative;left:auto;transform:none;translate:0 0;min-width:32px;
  animation:turn-prompt-hover 1.4s ease-in-out infinite alternate}
@keyframes turn-prompt-hover{0%{translate:0 0}100%{translate:0 -4px}}
@media(prefers-reduced-motion:reduce){.turn-prompt{animation:none}}
/* Keep the side deck from visually covering the left player's ring on phones. */
@media(max-width:700px){
  .deck-zone{left:6px;top:20px;transform:none;width:28px;min-width:28px}
  .deck-holder{width:90px;height:40px;transform:scale(.36);transform-origin:center top}
  .trump-emblem{min-width:28px;max-width:28px;gap:0;padding:3px 1px;flex-direction:column;border-radius:8px}
  .trump-emblem .suit{font-size:21px}
  .trump-emblem .count{font-size:9px}
}


/* v7.3 — Consistent seat heights on both sides of the table.
   A wrapped card-count label changes the flex column height and, because the
   whole seat is vertically centered, nudges that player's portrait upwards. */
.seat .seat-detail{
  display:inline-flex;align-items:center;justify-content:center;
  white-space:nowrap;flex:0 0 auto;
  min-height:17px;line-height:1.12;
}
@media(max-width:700px){.seat .seat-detail{min-height:15px}}

/* The Ready tick is a proper circular badge, not an oval compressed by the
   avatar wrapper's line-height:0. It never participates in flex sizing. */
.seat .avatar-wrap>.seat-ready{
  position:absolute;z-index:11;right:-11px;bottom:-5px;
  display:grid;place-items:center;flex:0 0 auto;
  width:24px;height:24px;min-width:24px;min-height:24px;
  aspect-ratio:1/1;box-sizing:border-box;padding:0;
  border:2px solid #163a2f;border-radius:50%;
  background:linear-gradient(145deg,#a6f1bf,#47ad77);
  color:#153f2c;font:900 15px/1 'DM Sans',system-ui,sans-serif;
  text-align:center;white-space:nowrap;
  box-shadow:0 3px 7px #001b1670,0 0 0 1px #bdf6ce;
  transform:translateZ(0);
}
@media(max-width:700px){
  .seat .avatar-wrap>.seat-ready{
    width:21px;height:21px;min-width:21px;min-height:21px;
    right:-9px;bottom:-4px;font-size:13px;border-width:2px;
  }
}


/* v8 — host-controlled Cheater Mode. All card values look equally playable. */
.cheater-indicator{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border-radius:12px;
  color:#f6cfb4;background:linear-gradient(125deg,#55304d,#32273f);border:1px solid #da91ae88;
  box-shadow:inset 0 1px #f9d5ce2d,0 3px 12px #120a2090;font-size:12px;letter-spacing:.07em;white-space:nowrap}
.cheater-indicator.hidden{display:none}
.cheater-toggle{min-width:123px!important;padding:0 12px!important;font-size:11px!important;
  background:#352c44;color:#ead2ec;border:1px solid #b28cbe7e}
.cheater-toggle.enabled{background:linear-gradient(130deg,#794363,#462f4b);color:#fff0d9;border-color:#f0aecc}
.cheater-toggle:disabled{opacity:.45}
.felt.cheater-mode .pair .playing-card{cursor:crosshair}
.felt.cheater-mode .pair .playing-card:hover{box-shadow:0 0 0 2px #e6b3e8,0 0 18px #d98cd799}
.felt.cheater-mode .pair:not(.clickable):hover{filter:drop-shadow(0 0 5px #d7a5d255)}
.felt.cheater-mode .pair.clickable:after{content:none} /* no legal-move hint */
.felt.cheater-mode .pair .playing-card:active{filter:brightness(1.13)}
.seat .cheater-mark{display:none;position:absolute;z-index:11;right:-9px;bottom:-7px;
  width:24px;height:24px;min-width:24px;min-height:24px;box-sizing:border-box;
  border:2px solid #1d2630;border-radius:50%;align-items:center;justify-content:center;
  color:#ffe4bb;background:linear-gradient(145deg,#765274,#422b49);
  box-shadow:0 3px 8px #100d17a8, inset 0 1px 2px #ffe6ed50;
  pointer-events:none;transform-origin:center;animation:cheater-pop .3s cubic-bezier(.16,1.55,.28,1) both}
.seat.cheater-caught .cheater-mark{display:flex}
.seat .cheater-mark svg{display:block;width:15px;height:15px;flex:none}
.seat.cheater-caught .avatar-wrap{box-shadow:0 0 0 4px #e9a3b325,0 0 17px #f38ca142}
.cheat-return{pointer-events:none;z-index:500!important;filter:drop-shadow(0 0 12px #f997b7aa)}
@keyframes cheater-pop{from{opacity:0;scale:.6;translate:0 8px}to{opacity:1;scale:1;translate:0 0}}
@media(max-width:700px){.cheater-toggle{min-width:98px!important;padding:0 8px!important;font-size:10px!important}
 .cheater-indicator{gap:3px;padding:6px 8px;font-size:10px}.cheater-indicator b{display:none}
 .seat .cheater-mark{width:21px;height:21px;min-width:21px;min-height:21px;right:-8px;bottom:-6px}
 .seat .cheater-mark svg{width:13px;height:13px}}
@media(max-width:390px){.cheater-toggle{min-width:89px!important;font-size:9px!important}}
@media(prefers-reduced-motion:reduce){.seat .cheater-mark{animation:none}}

.game-shell.cheater-mode #hand-hint{display:none}
