@import url("/assets/cinzel.css");
@import url("/assets/inter.css");
:root{color-scheme:dark;--bg:#0c1717;--panel:#142424;--muted:#a2b7ad;--gold:#ddc08a;--border:#2e4640}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#f1f3ea;font:16px/1.5 system-ui,sans-serif}header{padding:25px 5vw;border-bottom:1px solid var(--border);display:flex;gap:24px;align-items:center}header span{font-size:11px;letter-spacing:2px;color:var(--muted);margin-left:auto}.brand{font-size:26px;letter-spacing:5px;color:var(--gold);text-decoration:none;font-weight:700}main{max-width:1280px;margin:auto;padding:45px 5vw}h1{font-family:Georgia,serif;font-size:clamp(32px,5vw,58px);line-height:1.1;margin:14px 0 20px;font-weight:400}h2{font-size:21px}h3{font-size:14px;color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:3px;color:var(--gold)}.muted,small,footer{color:var(--muted)}.login{max-width:650px;margin:auto}.login .panel{max-width:420px;margin-top:35px}.panel{padding:25px;background:var(--panel);border:1px solid var(--border);border-radius:16px}.layout{display:grid;grid-template-columns:1fr 360px;gap:35px;margin-top:35px}label{display:block;font-size:13px;color:var(--muted);margin:15px 0}input,select,button{font:inherit;border-radius:8px;border:1px solid var(--border);padding:11px;background:#0b1b18;color:#fff}input,select{display:block;width:100%;margin-top:7px}input[type=checkbox]{display:inline;width:auto}button{cursor:pointer;font-size:14px}button:hover{border-color:var(--gold)}button:disabled{opacity:.4;cursor:not-allowed}.primary{background:var(--gold);color:#13241d;border:0;font-weight:650;width:100%;margin:10px 0}small{display:block;font-size:12px}.subtle{float:right;background:transparent}.table{margin:14px 0;padding:22px;background:var(--panel);border:1px solid var(--border);border-radius:12px}.table p{color:var(--muted)}.table button{margin-right:8px}aside{padding:18px;border-left:2px solid var(--gold);background:#192723;font-size:13px;color:#c7d2c9;margin:30px 0}#notice:not(:empty){margin:20px 0;padding:14px 20px;border:1px solid var(--gold);border-radius:8px}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0}.row>div:first-child{flex:1}#connection{color:var(--muted);font-size:13px;margin-left:auto}.felt{background:radial-gradient(ellipse,#24513f,#18382d);border:1px solid #37614d;border-radius:28px;padding:30px;min-height:330px;box-shadow:inset 0 0 70px #0d221c}.cards{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}.card{background:#f4f1e7;color:#18231e;border:3px solid transparent;width:62px;height:88px;font:26px Georgia;padding:5px;text-align:center;box-shadow:0 3px 8px #081b1a55}.card.red{color:#b83835}.card.selected{border-color:#e4b864;transform:translateY(-7px)}.card.small{width:43px;height:60px;font-size:20px;display:inline-block;margin:3px}.backcard{background:#213d38;border:2px solid #89a995;color:#89a995}.rep{display:flex;gap:12px;align-items:center;max-width:480px}.rep select{width:auto;flex:1}summary{cursor:pointer;margin:20px 0}.empty{padding:45px 25px;border:1px dashed var(--border);border-radius:12px;color:var(--muted)}footer{padding:25px 5vw;font-size:11px;border-top:1px solid var(--border)}[hidden]{display:none!important}@media(max-width:800px){.layout{grid-template-columns:1fr}.felt{padding:18px}.card{width:49px;height:72px;font-size:22px}header span{display:none}main{padding-top:28px}}
/* Naipeon — identidade visual WEB */
:root{--nordic:#0f3d32;--gold:#d4af37;--blue:#1b2a46;--wine:#6b2e2e;--graphite:#1f2228;--paper:#e8e8e8;--bg:#031517;--panel:#092326;--muted:#adc0bb;--border:#294643;color-scheme:dark}
body{background:radial-gradient(ellipse at 80% 0,#0f3d324d,transparent 55%),var(--bg);color:var(--paper);font-family:Inter,system-ui,sans-serif}header{height:86px;padding:14px max(4vw,20px);background:#021416ed;border-bottom:1px solid #d4af3738}.brand{display:flex;align-items:center;gap:9px;font-family:Cinzel,Georgia,serif;font-size:31px;letter-spacing:-1px;color:#ecc675;font-weight:500}.brand img{width:36px;height:47px}header span{letter-spacing:3px;font-size:10px}main{max-width:1400px;padding:32px 4vw 45px}h1,h2{font-family:Cinzel,Georgia,serif}h1{font-size:clamp(32px,4vw,52px);font-weight:500;letter-spacing:-1.2px}h2{font-size:23px;font-weight:500}h3{color:#e8d5a8}.eyebrow{font-size:10px;color:#e3c882;letter-spacing:2.5px}p{line-height:1.65}button,a,input,select{touch-action:manipulation}button{transition:background .18s,border-color .18s,transform .18s}button:hover{background:#17463a}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #f0ce76;outline-offset:4px}input:focus,select:focus{outline:2px solid #d4af37;outline-offset:2px}input,select{background:#041b1e;border-color:#3e5551;min-height:45px}button{min-height:42px;background:#0f3d32;border-color:#506244}button:disabled{opacity:.55}.primary,.gold-link{background:linear-gradient(115deg,#f5d887,#dfb750 55%,#b9852f);color:#191b17;box-shadow:0 3px 15px #d4af371a;border:1px solid #d4af37;font-weight:700}.primary:hover,.gold-link:hover{background:linear-gradient(115deg,#ffe7a5,#e8c567);color:#101b18}.panel{background:linear-gradient(140deg,#102e2e,#061e22);border:1px solid #36504b;border-radius:14px;padding:25px;box-shadow:0 10px 32px #0002}.panel h2{margin:4px 0 20px}.layout{gap:28px;grid-template-columns:minmax(0,1fr) 340px;margin-top:32px}.layout+.panel{margin-top:26px}.login{max-width:none;min-height:570px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.8fr);align-items:center;gap:7%;padding:55px 6%;background:linear-gradient(90deg,#02171cdc,#04171930),url('/assets/nordic-hero.jpg') center/cover;border:1px solid #d4af3745;border-radius:18px;overflow:hidden}.login h1{font-size:clamp(36px,4.4vw,62px);color:#fff1d1;line-height:1.2}.login-story>p:not(.eyebrow){color:#d3dbd5;font-size:17px}.login .panel{margin:0;max-width:420px;width:100%;background:#031b20ed;backdrop-filter:blur(12px)}.suit-line{font-family:Georgia,serif;font-size:34px;letter-spacing:15px;color:#d6b770;margin-top:32px}.suit-line span{color:#b7515b}.lobby-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.lobby-heading{margin-bottom:22px}.profile-button{display:flex;gap:12px;align-items:center;background:transparent;border:0;text-align:left;font-size:13px;padding:0}.profile-button:hover{background:transparent}.profile-button img{width:46px;height:46px;object-fit:cover;border:2px solid #d4af37;border-radius:50%;padding:2px}.profile-button small{font-size:10px;color:#d6ba78}.hero{position:relative;overflow:hidden;border-radius:15px;padding:34px 38px;min-height:325px;background:linear-gradient(90deg,#01181dee 0%,#071b2065 55%,#04151a33),url('/assets/nordic-hero.jpg') center/cover;border:1px solid #ad8a465e;box-shadow:0 12px 35px #0005;display:flex;align-items:center;justify-content:space-between}.hero>div:first-child{z-index:1;position:relative}.hero h1{color:#fff0ce;line-height:1.13;margin:12px 0 16px}.hero p{font-size:14px;color:#e2e6df}.hero .eyebrow{font-size:10px;color:#f0d28d}.gold-link{text-decoration:none;display:inline-flex;align-items:center;gap:30px;padding:11px 24px;border-radius:7px;font-size:13px;margin-top:8px;min-height:43px}.hero-cards{display:flex;align-items:center;margin:35px 24px 0 0;filter:drop-shadow(0 12px 15px #0009);transform:rotate(5deg)}.ornament-card{width:105px;height:160px;border-radius:9px;background:linear-gradient(135deg,#fff9e9,#deceac);border:1px solid #c5a969;color:#182527;font:35px Georgia;padding:10px;box-shadow:inset 0 0 0 5px #fff5dd77;display:flex;flex-direction:column}.ornament-card small{font:70px Georgia;color:inherit;text-align:center;line-height:1.1}.ornament-card:first-child{transform:rotate(-19deg) translateY(10px);margin-right:-25px}.ornament-card:last-child{transform:rotate(15deg) translateY(10px);margin-left:-25px}.ornament-card.red{color:#8d283b;z-index:1}.section-heading{margin:26px 0 13px}.section-heading h2{margin:0}.section-heading>.muted{font-size:12px}.game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.game-tile{display:flex;flex-direction:column;align-items:flex-start;position:relative;text-align:left;padding:18px 20px;min-height:146px;border:1px solid #7c6839;border-radius:10px;background:radial-gradient(ellipse at top right,#956d3152,transparent 70%),linear-gradient(135deg,#143d32,#061719);overflow:hidden}.game-tile:after{content:'♠';font:130px Georgia;position:absolute;right:-10px;top:-25px;color:#ead39d0c;transform:rotate(20deg);pointer-events:none}.game-tile:hover{transform:translateY(-3px);background-color:#20503f}.game-tile strong{font-family:Cinzel,Georgia,serif;font-size:20px;font-weight:500;color:#f6e4ba}.game-tile small{font-size:11px;margin-top:4px;color:#c4d0c9}.tile-suits{font:32px Georgia;letter-spacing:5px;color:#e4ce98;margin-bottom:12px}.tile-suits i{font-style:normal;color:#bf6570}.blue-tile{background:radial-gradient(ellipse at top right,#33568a88,transparent),#0b2130}.wine-tile{background:radial-gradient(ellipse at top right,#6b2e2e99,transparent),#172528}.pending-tile{border-color:#355251;background:#0a2024}.pending-tile:hover{transform:none}.pending-tile small{color:#adbbb4}.table{background:linear-gradient(120deg,#0d302c,#071e23);border-color:#31544b}.table h3{font-size:14px;letter-spacing:.6px;color:#eed8a1}.table p{font-size:13px}.empty{background:linear-gradient(130deg,#0b282966,#06191f);min-height:150px;display:flex;align-items:center;border-color:#36574f;font-size:14px}.felt{position:relative;background:radial-gradient(ellipse at center,#195749,#0f3d32 55%,#06251f);border:6px double #b18b3e;border-radius:45px;padding:30px;box-shadow:inset 0 0 90px #021311c9,0 14px 35px #0005;min-height:350px}.felt:before{content:'♠';position:absolute;inset:12% 0;text-align:center;font:230px Georgia;color:#dcc47709;pointer-events:none}.felt>*{position:relative}.card{border-radius:7px;background:linear-gradient(140deg,#fff9e9,#e8e3d6);color:var(--graphite);border-width:2px;box-shadow:0 5px 8px #0004}.card:hover{background:#fff4d7;color:var(--graphite)}.card.red{color:#8f273a}.card.selected{border-color:#e8c563;box-shadow:0 0 0 2px #d4af3766,0 6px 20px #0005}.backcard{background:repeating-linear-gradient(45deg,#143d32,#143d32 5px,#1c4d3f 5px,#1c4d3f 6px);color:#d4af37}.player-badges{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:24px}.player-badge{display:flex;align-items:center;gap:9px;padding:8px 14px 8px 8px;background:#061e20cc;border:1px solid #6b784a;border-radius:30px;font-size:12px}.player-badge img,.player-silhouette{width:35px;height:35px;object-fit:cover;border-radius:50%;border:1px solid #d4af37}.player-silhouette{display:grid;place-items:center;font:24px Georgia;color:#d4af37;background:#1b2a46}.admin-banner{margin-top:22px;padding:28px;border-radius:14px;background:linear-gradient(90deg,#061b20ec,#091c2277),url('/assets/nordic-hero.jpg') 60% 45%/cover;border:1px solid #96763b70}.admin-banner h1{margin-top:0}.admin-banner p{margin-bottom:0;color:#decea8}#users p{padding:12px 18px;background:#082b28;border:1px solid #345149;border-radius:8px}aside{background:#092a2a;border-color:#a8843a;color:#bdcfca;border-radius:0 8px 8px 0;font-size:12px;line-height:1.75}#notice:not(:empty){background:#1b2a46;border-color:#9b8245;color:#f8e7bd}footer{background:#041316;color:#8ca5a2;text-align:center;letter-spacing:.4px;font-size:10px;padding:23px}dialog{width:min(640px,calc(100% - 28px));border:1px solid #ad8b43;border-radius:18px;background:linear-gradient(150deg,#123931,#051b22);color:#e8e8e8;padding:28px;box-shadow:0 25px 100px #000b}dialog::backdrop{background:#000b;backdrop-filter:blur(6px)}dialog .section-heading{margin:0}dialog h2{margin:8px 0}.avatar-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:25px 0}.avatar-grid button{background:transparent;border:1px solid transparent;padding:8px 4px;color:#d5c398}.avatar-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:50%;border:2px solid #957542;padding:3px;background:#02161a}.avatar-grid span{display:block;margin-top:10px;font-size:12px}.avatar-grid button[aria-pressed=true]{border-color:#d4af37;background:#d4af3717}.avatar-grid button[aria-pressed=true] img{border-color:#f5d277;box-shadow:0 0 14px #d4af373b}
@media(max-width:950px){.hero-cards{margin-right:0}.ornament-card{width:78px;height:125px;font-size:26px}.ornament-card small{font-size:55px}.layout{grid-template-columns:minmax(0,1fr) 300px;gap:18px}.login{padding:35px;gap:30px}.game-tile{padding:15px}.game-tile strong{font-size:18px}}
@media(max-width:700px){header{height:72px}.brand{font-size:27px}.brand img{height:38px;width:30px}main{padding:20px 18px 35px}.login{grid-template-columns:1fr;padding:28px 22px;gap:24px;background-position:65% center}.login .panel{max-width:none}.login h1{font-size:38px}.login-story>p:not(.eyebrow){font-size:14px}.suit-line{display:none}.lobby-heading{gap:8px}.lobby-heading>.eyebrow{font-size:8px;letter-spacing:1.5px;max-width:170px}.profile-button{font-size:11px}.profile-button img{width:39px;height:39px}.hero{padding:25px 23px;min-height:320px;align-items:flex-start;background-position:60% center}.hero h1{font-size:34px;max-width:340px}.hero-cards{position:absolute;right:10px;bottom:32px;opacity:.6;transform:scale(.68) rotate(9deg);transform-origin:bottom right}.hero p{max-width:220px;font-size:12px}.hero .gold-link{position:relative;z-index:2}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game-tile{min-height:130px}.section-heading>.muted{font-size:10px}.layout{grid-template-columns:1fr;margin-top:22px}.felt{padding:18px 12px;border-radius:25px}.card{width:48px;height:72px;font-size:21px}.cards{gap:6px}h2{font-size:21px}.avatar-grid{grid-template-columns:repeat(2,1fr);gap:8px}.avatar-grid img{max-width:125px}dialog{padding:20px}.player-badge{font-size:11px;padding-right:10px}.player-badges{gap:7px}.row h1{font-size:28px}.row button{font-size:12px}#actions{padding:17px}#actions .row{gap:8px}.section-heading{align-items:center}#avatarClose{min-width:40px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

.heading-icon{width:22px;height:22px;vertical-align:-3px;margin-right:10px}

.bot-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0}.bot-controls select{width:auto;flex:1;margin:0;min-width:160px}.bot-roster{color:#e3c882!important;font-size:12px!important}
/* Mesa Naipeon: cartas legíveis, assentos e movimento */
body,button,input,select{font-family:ui-rounded,'Arial Rounded MT Bold',Inter,system-ui,sans-serif}button{border-radius:13px}body.playing{background:linear-gradient(#031318d9,#020c10ed),url('/assets/nordic-hero.jpg') center/cover fixed}body.playing>header{height:60px}body.playing main{max-width:1500px;padding-top:12px}#match>.row:first-child{margin:4px 0}#match h1{font-family:ui-rounded,Inter,sans-serif;font-size:24px;font-weight:700;letter-spacing:-.5px;margin:3px 0}#match .eyebrow{margin:0;font-size:10px}#match>.row:nth-child(2){margin:8px 0;font-size:13px}#score{background:#06191ecc;border:1px solid #a98b4144;padding:8px 16px;border-radius:18px}.table-toolbar{display:flex;justify-content:space-between;align-items:center;margin:10px 5px}.table-toolbar label{display:flex;align-items:center;gap:10px;margin:0;font-size:11px}.table-toolbar select{width:auto;min-height:32px;margin:0;padding:5px 12px;border-radius:20px}.theme-picker{display:flex;gap:9px}.theme-picker button{width:30px;height:30px;min-height:30px;padding:0;border-radius:50%;color:transparent;background:#1c6753;border:3px solid #82908655;box-shadow:inset 0 0 8px #0006}.theme-picker button[data-theme=midnight]{background:#345fa3}.theme-picker button[data-theme=wine]{background:#803a51}.theme-picker button[aria-pressed=true]{border-color:#efc96d;outline:2px solid #d4af3722;outline-offset:3px}#match{--felt-light:#206551;--felt-dark:#0b342b;--felt-shadow:#031b19}#match[data-theme=midnight]{--felt-light:#294d7a;--felt-dark:#102744;--felt-shadow:#040e24}#match[data-theme=wine]{--felt-light:#754051;--felt-dark:#3c192c;--felt-shadow:#1b0d18}.felt{padding:0;border:10px solid #182828;border-radius:100px 100px 45px 45px;background:repeating-linear-gradient(35deg,#ffffff02 0 1px,transparent 1px 4px),radial-gradient(ellipse at 50% 35%,var(--felt-light),var(--felt-dark) 65%,var(--felt-shadow));box-shadow:0 0 0 2px #b18b48,0 0 0 7px #0b1416,0 0 0 9px #d1b77455,inset 0 0 0 2px #d7bd702a,inset 0 0 80px #0008,0 22px 40px #0008;margin:22px 5px 16px;overflow:hidden;transition:background .3s}.felt:before{display:none}.table-arena{min-height:430px;position:relative;padding:150px 150px 95px;display:flex;flex-direction:column;justify-content:center;align-items:center}.table-signature{position:absolute;top:48%;left:50%;transform:translate(-50%,-50%);font-family:Cinzel,serif;font-size:35px;letter-spacing:8px;opacity:.065;pointer-events:none;white-space:nowrap}.table-signature span{display:block;font:8px Inter;text-align:center;letter-spacing:5px}.player-badges{position:absolute;inset:0;margin:0;pointer-events:none}.seat{position:absolute;display:grid;grid-template-columns:66px auto;grid-template-rows:auto auto auto;column-gap:10px;row-gap:0;border:1px solid #dfc68066;background:linear-gradient(140deg,#081a22f2,#081a19e6);border-radius:23px;padding:9px 15px 9px 9px;min-width:175px;max-width:240px;box-shadow:0 8px 20px #0005;text-align:left;transition:box-shadow .25s,border-color .25s;pointer-events:auto}.seat img,.seat .player-silhouette{width:66px;height:66px;grid-column:1;grid-row:1/4;object-fit:cover;border:3px solid #d1ad60;padding:2px;box-shadow:0 2px 8px #0008}.seat>span{font-size:14px;font-weight:700;align-self:end}.seat small{font-size:10px;white-space:nowrap}.seat-clock{color:#dabf81;line-height:1.7}.seat-self{bottom:4px;left:50%;transform:translateX(-50%)}.seat-self img{width:72px;height:72px}.seat-self{grid-template-columns:72px auto}.seat-north{top:18px;left:50%;transform:translateX(-50%)}.seat-west{top:145px;left:12px}.seat-east{top:145px;right:12px}.active-seat{border-color:#f2d17c;box-shadow:0 0 0 3px #ebc55e22,0 0 25px #dbb94c44}.active-seat:after{content:'';position:absolute;bottom:0;left:15%;height:3px;width:calc(var(--remaining,100%) * .7);border-radius:4px;background:#dfc475;transition:width .25s linear}.urgent .seat-clock{color:#ffb287}.urgent{border-color:#df8c68}.mini-hand{position:absolute;bottom:-21px;left:50%;transform:translateX(-50%);display:flex;pointer-events:none}.mini-back{display:inline-grid;place-items:center;width:23px;height:32px;border:1px solid #cdb773;border-radius:3px;background:repeating-linear-gradient(45deg,#123d36 0 3px,#326357 3px 4px);color:#e1c481;font:18px Georgia;box-shadow:1px 2px 4px #0005}.mini-hand .mini-back+.mini-back{margin-left:-12px;transform:rotate(10deg)}#center{display:flex;align-items:center;justify-content:center;gap:30px;position:relative;z-index:1;min-height:120px}#center p{margin:0}.pile{display:flex;flex-direction:column;align-items:center;gap:9px;background:none!important;border:0;padding:0;box-shadow:none;min-width:83px;position:relative;opacity:1!important;transition:transform .2s}.pile:enabled:hover{transform:translateY(-5px)}.pile small{font-size:9px;letter-spacing:1.5px;color:#ebdfbb}.pile>strong{position:absolute;top:68px;background:#041917e8;border-radius:12px;font-size:12px;min-width:32px;padding:1px 7px;color:#f9e3a3}.deck-back{display:grid;place-items:center;width:77px;height:106px;border:4px solid #e5d5b2;border-radius:8px;background:repeating-linear-gradient(45deg,#164c42 0 5px,#285d51 5px 6px);color:#e6c878;font:52px Georgia;box-shadow:3px 3px 0 #b3b0a0,5px 5px 0 #f0e8d7,7px 7px 0 #778779,0 8px 15px #0007}.empty-pile{display:grid;place-items:center;width:77px;height:106px;border:2px dashed #d1c39555;border-radius:8px;font:40px Georgia;color:#e6d8aa55}.dead-piles{display:flex;gap:3px;position:absolute;right:-100px;bottom:25px;transform:rotate(8deg)}.dead-piles small{position:absolute;bottom:-22px;left:0;font-size:8px;letter-spacing:2px}.dead-piles .mini-back{width:30px;height:44px}.hand-dock{border-top:1px solid #dcc68d24;padding:10px 22px 19px;background:linear-gradient(#03171811,#020b1266);position:relative;z-index:2}.hand-heading{display:flex;justify-content:space-between;align-items:center;padding:0 8px}.hand-heading h3{font-size:12px;margin:0;color:#e8d7a6}.hand-heading span{font-size:10px;color:#bccbc2}.cards{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding:15px 10px 12px;margin:0;justify-content:center;gap:6px;scrollbar-width:thin;scrollbar-color:#b19a62 transparent}.card{position:relative;display:inline-block;flex:0 0 78px;width:78px;height:112px;border:1px solid #bcb5a1;background:linear-gradient(145deg,#fffefa,#eee9dc);border-radius:8px;padding:0;color:#162633;font-family:ui-rounded,'Arial Rounded MT Bold',Arial,sans-serif;box-shadow:0 3px 0 #aaa491,0 7px 12px #0005;vertical-align:middle;transition:transform .18s,box-shadow .18s,border-color .18s;overflow:hidden}.card:hover{background:#fffdf3}.card.red{color:#b22640}.card-index{position:absolute;top:6px;left:7px;display:flex;flex-direction:column;align-items:center;line-height:.9}.card-index b{font-size:26px;font-weight:800;letter-spacing:-1.5px}.card-index i{font-style:normal;font:21px Georgia;line-height:1.2}.card-index.bottom{top:auto;left:auto;bottom:5px;right:7px;transform:rotate(180deg)}.card-pip{position:absolute;top:30px;left:22px;font:54px Georgia;line-height:1}.card.selected{transform:translateY(-10px);border:2px solid #edc863;box-shadow:0 0 0 2px #e9c56a55,0 12px 18px #0007}.card:focus-visible{outline-offset:1px}.card.small{width:47px;height:67px;min-height:0;margin:0 3px 0 0;border-radius:5px;flex-basis:47px}.card.small .card-index{top:4px;left:4px}.card.small .card-index b{font-size:18px;letter-spacing:-1px}.card.small .card-index i{font-size:13px}.card.small .card-index.bottom{display:none}.card.small .card-pip{font-size:32px;top:27px;left:15px}.meld-zone{min-width:0;max-width:100%;padding:5px 10px;border-radius:10px;background:#00151122}.meld-zone h3{font-size:10px;margin:2px 0 5px;color:#d4dec9}.meld-line{display:inline-flex;flex-wrap:nowrap;max-width:100%;overflow-x:auto;margin:0 12px 8px 0;padding:0 4px 5px}.meld-line .card+.card{margin-left:-14px}#melds{display:flex;justify-content:center;gap:14px;width:100%;margin-top:22px;z-index:1}#melds .meld-zone:has(.meld-line){border:1px solid #d8c28333}.trick-value{position:absolute;top:-28px;white-space:nowrap;font-size:12px;color:#e5c97d}.trick-cards{display:flex;gap:12px;min-height:112px;min-width:120px;align-items:center}.vira{display:flex;align-items:center;flex-direction:column;gap:6px}.vira small{letter-spacing:2px;font-size:9px}#actions{border:0;background:transparent;box-shadow:none;padding:8px 0;max-width:920px;margin:auto}#actions .row{justify-content:center;margin:0 0 10px}#actions button{font-size:12px;padding:10px 17px}#discard,#play{background:linear-gradient(120deg,#f2d587,#ca9e43);color:#182018;font-weight:750}#actions details{background:#071b20db;border:1px solid #b08b4433;border-radius:14px;padding:0 18px}#actions summary{margin:12px 0;font-size:13px;color:#e9d5a6}#actions details p{font-size:12px}#actions details label{font-size:12px}.rep{display:inline-flex;margin:0 10px 8px 0}.rep select{max-width:75px}#blocked{margin:14px 0}.arriving{animation:card-deal .45s both;animation-delay:var(--deal,0ms)}.played{animation:card-play .32s ease-out}.table-event{position:absolute;top:105px;left:50%;transform:translateX(-50%);z-index:8;background:#092624ed;border:1px solid #d5b96d;padding:8px 17px;border-radius:24px;white-space:nowrap;font-size:12px;box-shadow:0 6px 25px #0005;animation:event-show .35s ease-out}.locked-pile:after{content:'🔒 Trancado';position:absolute;top:36px;left:0;right:0;background:#242130e8;color:#ffe0ba;font-size:11px;padding:5px;border-radius:8px}.morto-arriving{animation:morto-deal .8s ease-out}.seat-clock{min-height:17px}@keyframes card-deal{from{opacity:0;transform:translate(0,-45px) rotate(-8deg) scale(.85)}to{opacity:1;transform:translate(0,0)}}@keyframes card-play{from{opacity:.4;transform:translateY(32px) rotate(-12deg)}to{opacity:1;transform:translateY(0)}}@keyframes event-show{from{opacity:0;translate:0 -10px}to{opacity:1;translate:0 0}}@keyframes morto-deal{0%{filter:brightness(1);transform:translateY(-18px)}50%{filter:brightness(1.3)}100%{filter:brightness(1);transform:translateY(0)}}
@media(max-width:850px){.table-arena{padding:150px 80px 100px;min-height:420px}.seat{grid-template-columns:50px auto;min-width:145px;max-width:185px;padding:7px;gap:7px;border-radius:18px}.seat img,.seat .player-silhouette{width:50px;height:50px}.seat>span{font-size:12px}.seat small{font-size:9px}.seat-self{grid-template-columns:58px auto}.seat-self img{width:58px;height:58px}.seat-west{left:6px;top:112px}.seat-east{right:6px;top:112px}#center{margin-top:35px}.cards{justify-content:flex-start}.card{flex-basis:70px;width:70px;height:102px}.card-pip{left:20px;font-size:49px}.dead-piles{right:-55px}#melds{flex-direction:column;gap:3px}.felt{border-width:7px;border-radius:70px 70px 30px 30px}.hand-dock{padding:10px}}
@media(max-width:520px){body.playing main{padding:8px 9px 25px}body.playing header{height:55px}.brand{font-size:24px}#match h1{font-size:18px}#match .row>button{font-size:10px;padding:7px;min-height:34px}#score{font-size:11px;padding:6px 10px}.table-toolbar{margin:6px}.table-toolbar label{font-size:0}.table-toolbar select{font-size:11px;max-width:125px}.table-arena{padding:205px 20px 110px;min-height:480px}.seat-north{top:14px}.seat-west{top:107px;left:4px}.seat-east{top:107px;right:4px}.seat{min-width:128px;max-width:152px;grid-template-columns:46px auto;column-gap:5px}.seat img,.seat .player-silhouette{width:46px;height:46px}.seat-self,.seat-north{min-width:164px;grid-template-columns:60px auto}.seat-self img,.seat-north img{width:60px;height:60px}.seat small{font-size:8px}.seat>span{font-size:11px}#center{margin-top:0;gap:20px}.pile .card{width:66px;height:94px}.deck-back,.empty-pile{width:66px;height:94px}.pile>strong{top:61px}.dead-piles{right:-45px;bottom:40px}.dead-piles .mini-back{width:18px;height:28px}.dead-piles small{font-size:6px;letter-spacing:1px}.table-signature{font-size:24px;letter-spacing:5px}.hand-heading span{font-size:8px}.hand-dock{padding:9px 3px}.cards{gap:0;padding:14px 6px 10px}.cards>.card{flex-basis:65px;width:65px;height:99px}.cards>.card+.card{margin-left:-17px}.card-index b{font-size:25px}.card-index{left:5px}.card-pip{left:20px;font-size:45px;top:35px}.card-index.bottom{display:none}.card.small{width:43px;height:62px;flex-basis:43px}.felt{margin:16px 3px}.table-event{top:190px;font-size:10px}.truco-table .table-arena{min-height:480px}#actions .row{gap:5px}#actions button{font-size:11px;padding:9px 11px}.hand-heading{padding:0 8px}#connection{font-size:10px}#match>.row{gap:7px}#actions details{padding:0 12px}#actions details p{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.admin-shell{display:grid;grid-template-columns:235px minmax(0,1fr);gap:30px;min-height:70vh}.admin-shell nav{background:#071f22;border:1px solid #8e793b55;border-radius:18px;padding:22px 15px;align-self:start;position:sticky;top:20px}.admin-shell nav button{display:block;width:100%;text-align:left;margin:6px 0;background:transparent;border-color:transparent;font-size:13px}.admin-shell nav button[aria-current=page]{background:#185043;border-color:#bba05a;color:#f4deaa}.admin-shell nav a{display:block;color:#d7c184;text-decoration:none;padding:18px 10px;font-size:12px}.admin-shell nav small{border-top:1px solid #29463e;padding:15px 10px 0}.admin-workspace{min-width:0}.admin-workspace h1{font-family:ui-rounded,Inter,sans-serif;font-size:30px;letter-spacing:-.7px;margin:3px 0}.admin-workspace .section-heading{margin-top:0}.data-wrap{width:100%;overflow-x:auto;background:#081f22;border:1px solid #36504b;border-radius:14px;margin-top:18px}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.data-table th{color:#d9c08a;font-size:10px;text-transform:uppercase;letter-spacing:1px;background:#12312d;padding:15px}.data-table td{padding:14px;border-top:1px solid #28443b;vertical-align:middle}.data-table button{font-size:11px;min-height:32px;padding:5px 12px}.data-table input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:#d4af37}.admin-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}.admin-stats .panel{font-size:20px;color:#edd399}#pageActions{display:flex;gap:12px;align-items:center}#pageActions input{margin:0;max-width:360px}#pageActions button{white-space:nowrap}.settings-form{max-width:650px}.settings-form p{font-size:12px}.settings-form input[type=checkbox],#editor input[type=checkbox]{accent-color:#d4af37;min-height:18px;vertical-align:middle}#editorError{color:#ffc1b2;font-size:12px}#editor{max-height:90vh;overflow-y:auto}#editor .data-wrap{margin-top:8px}#editor .muted{font-size:11px}@media(max-width:750px){.admin-shell{grid-template-columns:1fr;gap:20px}.admin-shell nav{position:static;padding:12px}.admin-shell #menuItems{display:flex;overflow-x:auto;gap:5px}.admin-shell nav button{width:auto;white-space:nowrap;font-size:11px}.admin-shell nav>a,.admin-shell nav>small{display:inline-block;border:0;padding:8px;font-size:10px}.admin-workspace h1{font-size:24px}.data-table td,.data-table th{padding:10px}#pageActions{flex-wrap:wrap}.admin-stats{grid-template-columns:1fr 1fr}}
@media(min-width:851px) and (max-height:850px){body.playing>header{height:48px}body.playing main{padding-top:6px}#match h1{font-size:20px}#match .row{margin:4px 0!important}.table-toolbar{margin:5px}#score{padding:5px 12px}.felt{margin-top:16px}.table-arena{min-height:305px;padding:105px 190px 88px}.seat-north{top:7px}.seat-west,.seat-east{top:102px}.seat img,.seat .player-silhouette{width:57px;height:57px}.seat{grid-template-columns:57px auto}.seat-self{bottom:3px}.hand-dock{padding-top:6px;padding-bottom:6px}.cards{padding-top:12px;padding-bottom:9px}.cards>.card{height:100px;width:73px;flex-basis:73px}.cards .card-pip{top:29px;font-size:49px}#center{min-height:106px}#melds{margin-top:10px}.table-event{top:95px}}
.flying-card{position:fixed!important;pointer-events:none!important;z-index:1000!important;margin:0!important;animation:none!important}.card.incoming-hidden{visibility:hidden}.pile:focus-visible{outline:3px solid #e5c773;outline-offset:8px}.seat-self .seat-clock{max-width:150px;white-space:normal}
/* Mesa: superfície oval independente da mão e dos controles. */
#match .felt{border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;padding:0;margin:18px 0 10px;isolation:isolate}
#match .felt:before{content:'';position:absolute;inset:24px 34px 95px;border-radius:50%;border:15px solid #172626;background:repeating-linear-gradient(32deg,#ffffff03 0 1px,transparent 1px 4px),radial-gradient(ellipse at 50% 38%,var(--felt-light),var(--felt-dark) 75%);box-shadow:0 0 0 2px #b89b5b,0 0 0 7px #121d20,0 16px 35px #0009,inset 0 0 0 2px #d6bb7044,inset 0 0 65px #0008;z-index:-2}
#match .felt:after{content:'';position:absolute;inset:48px 58px 119px;border:1px dashed #ddc38745;border-radius:50%;pointer-events:none;z-index:-1}
#match .table-arena{height:440px;min-height:440px;padding:0;display:block;position:relative}
#match .seat{min-width:120px;width:140px;max-width:150px;display:flex;flex-direction:column;align-items:center;text-align:center;border:0;background:transparent;padding:0;box-shadow:none;gap:1px;border-radius:0}
#match .seat img,#match .seat .player-silhouette{width:72px;height:72px;border:3px solid #c7ab69;box-shadow:0 5px 16px #000a;background:#081c22}
#match .seat>span:not(.player-silhouette){padding:2px 9px;background:#071920e8;border-radius:8px;font-size:13px;color:#fff0ce;max-width:150px}
#match .seat small{font-size:10px;line-height:1.4;color:#d8dfda;text-shadow:0 1px 3px #000}
#match .seat-north{top:-8px;left:50%;transform:translateX(-50%)}
#match .seat-west{left:0;top:150px;transform:none}
#match .seat-east{right:0;top:150px;transform:none}
#match .seat-self{left:50%;bottom:-5px;transform:translateX(-50%)}
#match .seat-self img{width:78px;height:78px}
#match .active-seat img{border-color:#f3d782;box-shadow:0 0 0 5px #f4d77926,0 0 25px #e9c15c60}
#match .active-seat{box-shadow:none;background:none}
#match .seat.urgent img{border-color:#e79566}
#match .mini-hand{bottom:36px;left:calc(50% + 51px);transform:rotate(12deg);opacity:.85}
#match .mini-back{width:20px;height:30px;font-size:17px}
#match #center{position:absolute;top:193px;left:50%;transform:translateX(-50%);margin:0;min-height:90px;width:56%;display:flex;align-items:center;justify-content:center;gap:35px;z-index:3}
#match .table-signature{top:47%;opacity:.05;font-size:30px}
#match .pile{min-width:62px;gap:6px}
#match .pile .card,#match .deck-back,#match .empty-pile{width:62px;height:87px;min-height:87px}
#match .pile .card-pip{font-size:37px;left:23px;top:30px}
#match .pile .card-index b{font-size:22px}#match .pile .card-index i{font-size:16px}
#match .pile>strong{top:56px;font-size:11px;padding:1px 8px}
#match .pile>small{font-size:9px;letter-spacing:1px}
#match .discard-pile{max-width:260px;min-width:95px}
#match .discard-fan{display:flex;max-width:260px;overflow-x:auto;padding:5px 4px 3px;align-items:center;scrollbar-width:thin}
#match .discard-fan .card{flex:0 0 62px;box-shadow:0 2px 5px #0005}
#match .discard-fan .card+.card{margin-left:-35px}
#match .dead-piles{position:static;align-self:center;display:flex;flex-wrap:wrap;width:58px;gap:3px;transform:none}
#match .dead-piles .mini-back{width:24px;height:38px;margin:0}
#match .dead-piles small{width:100%;font-size:8px;letter-spacing:1px}
#match #melds{position:absolute;inset:0;margin:0;width:100%;pointer-events:none;display:block}
#match .meld-zone{position:absolute;left:18%;width:64%;height:87px;display:flex;align-items:center;justify-content:center;gap:12px;border:0!important;padding:14px 8px 0;background:none;overflow:auto;pointer-events:auto;scrollbar-width:thin}
#match .meld-other{top:98px}#match .meld-own{top:303px}
#match .meld-zone h3{position:absolute;top:0;left:0;width:100%;margin:0;text-align:center;font:9px Inter,sans-serif;letter-spacing:2px;text-transform:uppercase;color:#dfd5bc80}
#match .meld-line{display:flex;flex-shrink:0;white-space:nowrap;padding:0;border:0;background:none}
#match .meld-line .card.small{width:45px;height:61px;flex:0 0 45px;margin:0;box-shadow:0 2px 4px #0005}
#match .meld-line .card+.card{margin-left:-23px}
#match .meld-line .card-index{left:3px;top:3px}#match .meld-line .card-index b{font-size:19px}#match .meld-line .card-index i{font-size:14px}
#match .hand-dock{background:transparent;border:0;padding:7px 5% 0;margin:0 auto;max-width:980px}
#match .hand-heading{padding:0 10px;margin:0;display:flex;justify-content:space-between}
#match .hand-heading h3{font-size:10px;margin:0;color:#d7c795}#match .hand-heading span{font-size:9px}
#match .cards{width:max-content;max-width:100%;margin:0 auto;justify-content:flex-start;gap:0;padding:12px 10px 8px;overflow-x:auto;flex-wrap:nowrap}
#match .cards>.card{width:79px;flex-basis:79px;height:112px;border-radius:9px;box-shadow:0 4px 9px #0008}
#match .cards>.card+.card{margin-left:-26px}
#match .cards .card-pip{top:38px;font-size:49px;left:29px}
#match .cards .card-index b{font-size:29px}#match .cards .card-index i{font-size:20px}
#match .cards .card-index.bottom{display:none}
#match .cards>.card:hover{transform:translateY(-6px)}#match .cards>.card.selected{transform:translateY(-10px);border-color:#e8bd4d}
#match .table-event{top:185px}
#match #actions{max-width:800px;padding-top:0}
#match #actions button{border-radius:22px}#match #actions details{border-radius:12px}
@media(min-width:851px) and (max-height:850px){body.playing main{padding-top:5px}#match .table-toolbar{position:absolute;right:5%;top:105px;z-index:5}#match .felt{margin-top:8px}#match .table-arena{height:410px;min-height:410px}#match .seat-west,#match .seat-east{top:140px}#match #center{top:177px}#match .meld-other{top:87px}#match .meld-own{top:280px}#match .hand-dock{padding-top:0}#match .cards>.card{height:104px}#match .felt:before{inset:24px 34px 80px}#match .felt:after{inset:48px 58px 104px}}
@media(max-width:850px){#match .felt:before{inset:30px 12px 88px;border-width:11px}#match .felt:after{inset:48px 30px 106px}#match .seat{width:105px;min-width:105px}#match .seat img{width:60px;height:60px}#match .seat>span:not(.player-silhouette){font-size:11px}#match .table-arena{height:460px;min-height:460px}#match .seat-west,#match .seat-east{top:155px}#match #center{top:215px;width:64%;gap:15px}#match .meld-zone{left:19%;width:62%}#match .meld-own{top:315px}#match .discard-fan{max-width:165px}#match .mini-hand{display:none}#match .hand-dock{padding-left:3%;padding-right:3%}}
@media(max-width:520px){#match .table-arena{height:495px;min-height:495px}#match .seat-west,#match .seat-east{top:118px;width:86px;min-width:86px}#match .seat img{width:56px;height:56px}#match .seat-self img,#match .seat-north img{width:68px;height:68px}#match .seat small{font-size:8px}#match .meld-other{top:201px}#match .meld-own{top:354px}#match .meld-zone{left:12%;width:76%;height:64px}#match #center{top:271px;width:78%;gap:14px}#match .pile .card,#match .deck-back,#match .empty-pile{width:48px;height:68px;min-height:68px}#match .discard-fan .card{flex-basis:48px}#match .discard-fan .card+.card{margin-left:-27px}#match .discard-fan{max-width:119px}#match .pile .card-pip{font-size:30px;left:16px;top:30px}#match .pile .card-index b{font-size:19px}#match .pile>strong{top:43px}#match .dead-piles{width:33px}#match .dead-piles .mini-back{width:14px;height:27px}#match .cards>.card{width:66px;flex-basis:66px;height:98px}#match .cards>.card+.card{margin-left:-25px}#match .cards .card-index b{font-size:26px}#match .cards .card-pip{font-size:40px;left:23px}#match .hand-heading span{max-width:135px;text-align:right}#match .felt:before{inset:25px 2px 75px}#match .felt:after{inset:43px 20px 93px}#match .meld-line .card.small{width:36px;flex-basis:36px;height:48px}#match .meld-line .card+.card{margin-left:-18px}#match .meld-line .card-index b{font-size:16px}#match .meld-line .card-index i{font-size:11px}#match .table-event{top:252px}}
#match .felt:before{display:block}
#match .seat>span{align-self:center}
#match .dead-piles small{position:static;text-align:center}
#match .meld-zone{justify-content:flex-start}
#match .seat-north{display:grid;grid-template-columns:72px auto;grid-template-rows:24px 18px 20px;width:200px;max-width:220px;column-gap:10px;text-align:left;top:0}
#match .seat-north img{grid-row:1/4;grid-column:1}
#match .seat-north>span,#match .seat-north>small{grid-column:2;align-self:center;text-align:left;white-space:nowrap}
#match .seat-north .mini-hand{display:none}
#match .seat-self{bottom:-130px;left:3%;transform:none}
#match .hand-dock{padding-left:130px;padding-right:15px}
#match .seat-self:after{display:none}
@media(min-width:851px) and (max-height:850px){#match #connection{margin-right:350px}}
@media(max-width:850px){#match .seat-self{left:0;bottom:-126px}#match .hand-dock{padding-left:95px}#match .seat-north{grid-template-columns:60px auto}}
@media(max-width:520px){#match .seat-self{width:75px;min-width:75px;bottom:-126px}#match .seat-self img{width:60px;height:60px}#match .hand-dock{padding-left:75px;padding-right:0}#match .seat-north{grid-template-columns:68px auto}#match .hand-heading span{display:none}}
#match .meld-own{top:325px}
#match .pile .card-index.bottom{display:none}
#match .meld-line .card-pip{font-size:29px;left:17px;top:24px}
@media(min-width:851px) and (max-height:850px){#match .meld-own{top:310px}}
@media(max-width:850px){#match .meld-own{top:337px}}
@media(max-width:520px){#match .meld-own{top:364px}#match .meld-line .card-pip{font-size:22px;left:14px;top:22px}}
.sort-buttons{display:flex;align-items:center;gap:5px}.sort-buttons button{font-size:11px;padding:7px 12px;min-height:34px;border-radius:18px;background:#071d22;color:#becbc5}.sort-buttons button[aria-pressed=true]{background:#d8bd77;color:#182821;border-color:#f4dca2;box-shadow:0 0 0 2px #d8bd7720;font-weight:750}
#match.buraco-table .felt:before{inset:0 0 0;border-radius:12px;border-width:9px}
#match.buraco-table .felt:after{inset:17px;border-radius:4px;border-style:solid}
#match.buraco-table .felt{padding:14px 12px 12px;margin-top:12px}
#match.buraco-table .table-arena{height:470px;min-height:470px}
#match.buraco-table .seat-north{left:145px;top:8px;transform:none}
#match.buraco-table .seat-west{left:0;top:140px}
#match.buraco-table .seat-east{right:0;top:235px}
#match.buraco-table .seat-self{left:0;bottom:-130px}
#match.buraco-table #center{left:145px;right:145px;width:auto;top:233px;transform:none;justify-content:flex-start;gap:35px}
#match.buraco-table .dead-piles{margin-left:auto;flex-direction:column;flex-wrap:nowrap;align-items:center;width:65px;gap:12px}
#match.buraco-table .dead-piles .mini-back{width:52px;height:31px;border-radius:4px;box-shadow:2px 2px 0 #f0e9d3,4px 4px 0 #344a48,6px 6px 0 #d5d2bf;font-size:22px;line-height:26px;transform:none}
#match.buraco-table .dead-piles small{margin-top:3px}
#match.buraco-table .meld-zone{left:145px;width:calc(100% - 290px);height:132px;border:1px solid #e6d6a52e!important;border-radius:5px;background:#071b1718;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:10px;padding:25px 12px 9px;overflow:auto}
#match.buraco-table .meld-other{top:87px}
#match.buraco-table .meld-own{top:349px}
#match.buraco-table .meld-zone h3{top:8px;font-size:9px}
#match.buraco-table .meld-own{cursor:pointer}
#match.buraco-table .meld-own:focus-visible,#match.buraco-table .meld-line:focus-visible{outline:2px solid #f4d58a;outline-offset:3px}
#match.buraco-table .meld-own.drop-ready{border-color:#e8c97d!important;background:#d8bd7712}
#match.buraco-table .meld-line{cursor:pointer}
#match.buraco-table .drop-hint{font-size:11px;color:#c8d6cb75;align-self:center;margin:auto;pointer-events:none}
#match.buraco-table .meld-own:has(.meld-line) .drop-hint{font-size:9px;flex:1;min-width:100px;text-align:center}
#match.buraco-table .hand-dock{padding-top:28px;padding-bottom:4px}
#match.buraco-table #canastaActions{display:none}
#match.buraco-table #representations{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
#match.buraco-table #representations .rep[hidden]{display:none}
#match.buraco-table #representations:has(.rep:not([hidden])):before{content:'Coringa representa:';font-size:11px;align-self:center;color:#e7d19d}
#match.buraco-table .table-signature{top:54%}
@media(max-width:850px){#match.buraco-table .seat{width:100px;min-width:100px}#match.buraco-table .seat-north{left:110px;width:200px}#match.buraco-table #center{left:110px;right:110px;gap:18px}#match.buraco-table .meld-zone{left:110px;width:calc(100% - 220px)}#match.buraco-table .hand-dock{padding-left:100px}}
@media(max-width:520px){.sort-buttons button{font-size:10px;padding:6px 8px}#match.buraco-table .felt{padding:12px 5px}#match.buraco-table .seat-west,#match.buraco-table .seat-east{top:90px;width:77px;min-width:77px}#match.buraco-table .seat-north{left:50%;transform:translateX(-50%);top:0}#match.buraco-table .seat-self{width:65px;min-width:65px}#match.buraco-table .table-arena{height:510px;min-height:510px}#match.buraco-table .meld-zone{left:18px;width:calc(100% - 36px);height:120px}#match.buraco-table .meld-other{top:200px}#match.buraco-table .meld-own{top:418px}#match.buraco-table #center{top:325px;left:25px;right:25px;gap:14px}#match.buraco-table .dead-piles{gap:9px;width:45px}#match.buraco-table .dead-piles .mini-back{width:35px;height:22px;font-size:15px;line-height:18px}#match.buraco-table .hand-dock{padding-top:42px;padding-left:65px}#match.buraco-table .seat-self{bottom:-149px}#match.buraco-table .drop-hint{font-size:10px;text-align:center}}
.friends-open{white-space:nowrap}.friends-dialog{width:min(1050px,95vw);max-width:95vw;max-height:90vh;background:#082123;color:#e8e8e8;border:1px solid #aa8d48;border-radius:18px;padding:25px;overflow:auto}.friends-dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}.social-columns{display:grid;grid-template-columns:1fr 1.4fr;gap:28px}.social-columns>section{min-width:0}.friend-search{display:flex;align-items:end;gap:10px}.friend-search label{flex:1;margin:0}.friend-search button{margin-bottom:1px}.friend-row{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:12px 0;border-bottom:1px solid #36524c}.friend-row strong{flex:1;font-size:12px;overflow-wrap:anywhere}.friend-row button{font-size:11px;padding:6px 10px;min-height:32px}.friends-dialog h3{margin-top:24px}.friends-dialog .muted{font-size:12px}.friend-invite-picker{display:flex;gap:8px;align-items:center}.friend-invite-picker select{min-width:0}.friend-stats{padding:10px 15px;background:#15372e;border-radius:10px;font-size:12px}.chat-messages{max-height:250px;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid #35544a;border-radius:10px}.chat-message{align-self:flex-start;max-width:88%;padding:8px 12px;background:#193a40;border-radius:12px;overflow-wrap:anywhere}.chat-message.mine{align-self:flex-end;background:#1d5140}.chat-message p{margin:0;white-space:pre-wrap;font-size:13px}.chat-message small{font-size:9px;margin-top:3px;color:#bbccc2}.chat-form{display:flex;gap:8px;margin-top:10px}.chat-form textarea{flex:1;min-width:0;resize:vertical;background:#061a1e;color:#fff;border:1px solid #456457;border-radius:8px;padding:10px;font:13px Inter,sans-serif}.chat-form button{align-self:end}#socialNotice:not(:empty){padding:10px;border:1px solid #d4af3755;border-radius:8px;font-size:12px}#friendDetail>details p{font-size:11px}.lobby-heading .gold-link{font-size:12px;margin:0}@media(max-width:700px){.social-columns{grid-template-columns:1fr}.friend-search{flex-direction:column;align-items:stretch}.friends-dialog{padding:16px}.friends-open{font-size:11px;padding:7px}.lobby-heading{flex-wrap:wrap}.friend-invite-picker{flex-wrap:wrap}}
/* Buraco: o tabuleiro cresce com as cartas, sem recortes nem faixas ocultas. */
#match.buraco-table .table-arena{display:grid;grid-template-columns:130px minmax(0,1fr) 130px;grid-template-rows:86px auto auto auto;gap:15px 12px;height:auto;min-height:480px;padding:0}
#match.buraco-table #melds{display:contents}
#match.buraco-table .meld-zone{position:relative;inset:auto;left:auto;top:auto;width:100%;height:auto;min-height:126px;overflow:visible;grid-column:2;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;padding:27px 12px 12px;gap:12px}
#match.buraco-table .meld-other{grid-row:2}#match.buraco-table .meld-own{grid-row:4}
#match.buraco-table .meld-line{max-width:100%;flex-wrap:wrap;row-gap:7px;padding-right:0}
#match.buraco-table #center{position:relative;inset:auto;left:auto;top:auto;right:auto;transform:none;grid-column:2;grid-row:3;width:100%;min-height:120px;padding:5px 0;display:grid;grid-template-columns:68px minmax(0,1fr) 64px;gap:20px;align-items:center}
#match.buraco-table .discard-pile{width:100%;max-width:none;min-width:0}
#match.buraco-table .discard-fan{display:grid;grid-template-columns:repeat(auto-fill,28px);grid-auto-rows:90px;gap:5px 0;justify-content:start;width:100%;max-width:none;overflow:visible;padding:4px 34px 4px 0}
#match.buraco-table .discard-fan .card{margin:0!important}
#match.buraco-table .hand-dock{max-width:none;padding-top:22px}
#match.buraco-table .cards{display:flex;flex-wrap:wrap;overflow:visible;width:100%;max-width:100%;justify-content:center;gap:10px 5px;padding:12px 8px}
#match.buraco-table .cards>.card+.card{margin-left:0}
#match.buraco-table .cards>.card{width:72px;flex-basis:72px;height:106px}
#match.buraco-table .seat-east{top:44%}#match.buraco-table .seat-west{top:25%}
#match.buraco-table .seat-self{bottom:-135px}
#match.buraco-table .drop-hint{white-space:normal}
@media(max-width:850px){#match.buraco-table .table-arena{grid-template-columns:92px minmax(0,1fr) 92px;gap:12px 4px}#match.buraco-table .meld-zone{left:auto;width:100%;height:auto;top:auto}#match.buraco-table #center{left:auto;right:auto;top:auto;gap:12px;grid-template-columns:65px minmax(0,1fr) 55px}#match.buraco-table .meld-line .card+.card{margin-left:-20px}}
@media(max-width:520px){#match.buraco-table .table-arena{grid-template-columns:1fr;grid-template-rows:196px auto auto auto;gap:14px 0}#match.buraco-table .meld-zone,#match.buraco-table #center{grid-column:1;width:calc(100% - 18px);margin:0 9px;left:auto;right:auto;top:auto}#match.buraco-table .meld-zone{min-height:108px;padding:26px 8px 10px}#match.buraco-table .seat-west,#match.buraco-table .seat-east{top:92px}#match.buraco-table #center{grid-template-columns:50px minmax(0,1fr) 43px;gap:10px}#match.buraco-table .discard-fan{grid-template-columns:repeat(auto-fill,24px);grid-auto-rows:70px;padding-right:24px}#match.buraco-table .hand-dock{padding-top:22px;padding-left:64px}#match.buraco-table .cards>.card{flex-basis:62px;width:62px;height:96px}#match.buraco-table .seat-self{bottom:-135px}.sort-buttons{gap:3px}}
#match.buraco-table .meld-line{display:flex;flex-wrap:nowrap;max-width:none;gap:0;position:relative;transition:filter .15s}
#match.buraco-table .meld-line:hover,#match.buraco-table .meld-line:focus-visible{filter:brightness(1.12)}
#match.buraco-table .meld-line .card.small{width:calc(45px * var(--meld-scale,1));flex-basis:calc(45px * var(--meld-scale,1));height:calc(63px * var(--meld-scale,1));margin:0;border-radius:4px}
#match.buraco-table .meld-line .card+.card{margin-left:calc(-23px * var(--meld-scale,1))}
#match.buraco-table .meld-line .card-index b{font-size:calc(19px * var(--meld-scale,1))}
#match.buraco-table .meld-line .card-index i{font-size:calc(14px * var(--meld-scale,1))}
#match.buraco-table .meld-line .card-pip{font-size:calc(29px * var(--meld-scale,1));left:calc(17px * var(--meld-scale,1));top:calc(26px * var(--meld-scale,1))}
.meld-preview{position:fixed;z-index:1200;max-width:calc(100vw - 16px);width:max-content;background:#082624f5;border:1px solid #e2c77c;border-radius:12px;padding:12px;box-shadow:0 15px 45px #000a;pointer-events:none;color:#f0ddb5}
.meld-preview>strong{font-size:12px;display:block;margin-bottom:8px}.preview-cards{display:flex;flex-wrap:wrap;max-width:min(760px,calc(100vw - 42px));gap:5px}.preview-cards .card{width:62px;height:90px;flex:0 0 62px;margin:0!important}.preview-cards .card-index.bottom{display:none}.preview-cards .card-index b{font-size:25px}.preview-cards .card-pip{font-size:38px;left:22px;top:34px}
/* Persistent administrative navigation */
#menuItems .nav-group{margin:0 0 22px} .nav-group h2{display:flex;align-items:center;gap:9px;font:600 11px ui-rounded,Inter,sans-serif;text-transform:uppercase;letter-spacing:1px;color:#d9c08a;margin:16px 8px 8px}.menu-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;flex:0 0 24px;font-size:22px;line-height:1.1}.admin-shell #menuItems button,.navigation-preview button{display:flex;align-items:center;gap:10px;white-space:normal;overflow-wrap:anywhere}.admin-shell #menuItems button{padding:10px 8px}.navigation-editor{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:22px;align-items:start;margin-top:22px}.navigation-toolbar{display:flex;gap:10px;flex-wrap:wrap}.navigation-group-card{padding:20px;border:1px solid #51604b;border-radius:16px;background:#0b2525;margin-bottom:18px}.navigation-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.navigation-row h2{font-size:18px;margin:0 auto 0 0}.navigation-row strong{font-size:13px;flex:1}.navigation-order{display:flex;gap:5px}.navigation-order button{padding:4px 12px;min-height:36px}.navigation-fields{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:12px}.navigation-editor label{font-size:12px;display:block;margin-top:12px}.navigation-editor input,.navigation-editor select{width:100%;min-width:0}.navigation-page{border-top:1px solid #35514a;padding-top:15px;margin-top:20px}.navigation-preview{position:sticky;top:24px;border:1px solid #806e4055;border-radius:16px;padding:16px;background:#071f22}.navigation-preview>h2{font-size:16px}.navigation-preview button{width:100%;text-align:left;font-size:12px;background:transparent;border-color:transparent;padding:10px 4px;pointer-events:none}.navigation-preview button[aria-current=page]{background:#185043;color:#f4deaa}.navigation-editor button:disabled{opacity:.35;cursor:not-allowed}@media(max-width:1050px){.navigation-editor{grid-template-columns:minmax(0,1fr)}.navigation-preview{position:static}}@media(max-width:750px){.admin-shell #menuItems{display:block}.admin-shell #menuItems button{width:100%}.navigation-fields{grid-template-columns:1fr}.navigation-group-card{padding:14px}}
/* Automatic wildcards and readable movement across the table. */
#representations{display:none!important}.match-reference{display:flex;align-items:center;justify-content:flex-end;gap:10px;font:11px ui-monospace,monospace;color:#c3cdbd;overflow-wrap:anywhere;margin:4px 0}.match-reference button{min-height:28px;font-size:10px;padding:4px 10px;flex-shrink:0}.flying-card{display:inline-flex!important;box-shadow:0 12px 24px #0008!important;will-change:transform;contain:layout style;transform-origin:center}.flying-card .card-index b{font-size:22px}.flying-card .card-index i{font-size:18px}.flying-card .card-pip{font-size:32px}.motion-back{background:repeating-linear-gradient(45deg,#164638 0 5px,#26634f 5px 6px)!important;border:2px solid #e4ce94!important;color:#e4ce94!important;align-items:center;justify-content:center;font-size:34px!important}.card{transition:box-shadow .18s,border-color .18s,filter .18s}.card.selected{box-shadow:0 0 0 3px #f4cd6d,0 8px 18px #0006!important}#match.buraco-table .meld-zone{border-radius:16px;background:#041d1a25;border:1px solid #e6d6a51a!important}#match.buraco-table .meld-own.drop-ready{background:#f4ce7714;border-color:#e8c97d!important;box-shadow:inset 0 0 24px #e8c97d0d}#match.buraco-table .felt{border-radius:26px}#match.buraco-table .felt:before{border-radius:26px}#match.buraco-table .felt:after{border-radius:17px}.pile:enabled{cursor:pointer}.pile:enabled:hover{filter:brightness(1.15)}.table-toolbar{margin:6px 5px}#match .match-reference{margin-top:0}#match.buraco-table .hand-dock{padding-top:12px}#match.buraco-table .table-arena{min-height:405px;grid-template-rows:76px auto auto auto;gap:9px 12px}#match.buraco-table .meld-zone{min-height:108px}#match.buraco-table #center{min-height:100px}@media(max-width:520px){#match.buraco-table .table-arena{grid-template-rows:196px auto auto auto}.match-reference{font-size:9px;justify-content:flex-start}.match-reference button{font-size:9px}}
body.playing #notice{display:none}.table-feedback{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:1200;max-width:min(680px,90vw);padding:14px 22px;border-radius:18px;border:1px solid #e2c780;background:#0a2825f5;box-shadow:0 8px 30px #0008;font-size:14px;color:#f1e3ba}.felt>.match-reference{position:relative;z-index:2;justify-content:center;margin:6px 0 0!important;padding:3px 8px;color:#d3dacd}.felt>.match-reference button{background:#09251f80;border-color:#b4a36d55}body.playing footer{display:none}@media(min-width:850px) and (max-height:850px){body.playing>header{height:46px}body.playing main{padding-top:6px}#match h1{font-size:19px}#match.buraco-table .table-arena{grid-template-rows:66px auto auto auto;min-height:325px;gap:8px 12px}#match.buraco-table .meld-zone{min-height:86px;padding-top:23px;padding-bottom:6px}#match.buraco-table #center{min-height:86px}#match.buraco-table .hand-dock{padding-top:6px}.hand-heading{margin-bottom:0}.table-toolbar{margin:4px}#match.buraco-table .felt{margin-top:8px}.felt>.match-reference{font-size:10px}}
.lobby-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:18px 0}.lobby-filters input{flex:1 1 220px;margin:0;min-width:0}.lobby-filters select{flex:1 1 160px;width:auto;margin:0}.lobby-filters button{font-size:12px}.lobby-filters button[aria-pressed=true]{background:#31533c;border-color:#d4af37;color:#ffe4a4}.table-count{flex-basis:100%;padding:3px}.match-result{max-width:680px;margin:22px auto;padding:24px;text-align:center;border:1px solid #c6a44c;border-radius:18px;background:linear-gradient(135deg,#164a35,#091f24);box-shadow:0 12px 40px #0005}.match-result h2{font-family:ui-rounded,Inter,sans-serif;font-size:28px;color:#f4dda0;margin:0}.match-result>p:not(.muted){font-size:23px}.match-result .primary{width:auto}.hand-heading .clear-selection{font-size:11px;padding:4px 10px;min-height:30px;background:transparent;border-color:#8a9c7455}.hand-heading{flex-wrap:wrap}.flying-card{pointer-events:none!important}@media(prefers-reduced-motion:reduce){.card,.arriving,.played,.morto-arriving,.table-event{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
