:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#f4f0df;background:#091b17;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button{cursor:pointer;border:1px solid #b9b6a850;background:#ffffff13;color:inherit;border-radius:9px;padding:10px 14px;transition:background .15s,transform .15s}button:hover:not(:disabled){background:#ffffff25}button:disabled{opacity:.38;cursor:not-allowed}header{display:flex;justify-content:space-between;align-items:center;padding:16px clamp(14px,3vw,38px);border-bottom:1px solid #ffffff20;background:#102820}.brand{display:flex;align-items:center;gap:12px}.symbol{font-size:40px;color:#dfbd72}.brand strong{display:block;letter-spacing:.2em;font-size:22px}.brand small{display:block;font-size:10px;letter-spacing:.16em;color:#d5bb83}.topbuttons{display:flex;gap:7px}main{max-width:1500px;margin:auto;padding:15px clamp(10px,2vw,28px)}.status{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:12px}.status h2{margin:4px 0;font-size:23px}.status p{margin:0;color:#c7d7cc;font-size:13px}.eyebrow,.area-label{font-size:10px;font-weight:800;letter-spacing:.13em;color:#e7d39b}.scoreboard{display:flex;align-items:center;gap:18px;text-align:center;background:#ffffff0c;padding:12px 20px;border:1px solid #ffffff1b;border-radius:12px}.scoreboard small{display:block;color:#c3cbbb;font-size:10px}.scoreboard b{font-size:27px;color:#f1d38c}.table-wrap{border:8px solid #6e4026;border-radius:110px;box-shadow:inset 0 0 0 3px #b27b49,0 15px 35px #0008;background:#2c573c;overflow:hidden}.felt{min-height:500px;position:relative;border-radius:100px;background:radial-gradient(ellipse at 50% 46%,#286b4c,#14432f 75%,#0d3224);box-shadow:inset 0 0 90px #031c13b8}.player{position:absolute;background:#0a281ee6;border:1px solid #ffffff30;border-radius:12px;padding:8px 15px;min-width:115px;text-align:center;font-size:13px;z-index:2}.player b{display:block}.player small{display:block;color:#c3d5c9;margin-top:3px}.player.active{border-color:#f7d88c;box-shadow:0 0 0 2px #e2ba6266}.north{top:10px;left:50%;transform:translateX(-50%)}.south{bottom:10px;left:50%;transform:translateX(-50%)}.west{left:9px;top:50%;transform:translateY(-50%)}.east{right:9px;top:50%;transform:translateY(-50%)}.center{position:absolute;inset:58px 130px;display:flex;flex-direction:column;justify-content:space-around;gap:8px}.team-area{min-height:95px;text-align:center}.melds{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:8px}.meld{display:flex;align-items:center;gap:0;background:#001c1488;padding:5px 8px;border:1px solid #d5c69c44;border-radius:10px;min-height:64px}.meld.clickable{cursor:pointer}.meld.clickable:hover{border-color:#e8cb80}.meld .card{margin-left:-12px;transform:scale(.76);transform-origin:center;margin-right:-9px}.meld .card:first-child{margin-left:0}.meld-label{font-size:10px;color:#f6dc93;margin-left:10px}.piles{display:flex;justify-content:center;align-items:center;gap:30px}.pile,.deadpile{display:flex;flex-direction:column;align-items:center;gap:5px;border:0;background:transparent;padding:0;font-size:10px;letter-spacing:.08em}.pile:hover:not(:disabled){background:transparent;transform:translateY(-3px)}.card{width:58px;height:82px;border-radius:7px;background:#fffdf5;color:#17291f;border:2px solid #d8d3c5;box-shadow:0 3px 6px #0005;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;padding:5px 6px;font-size:19px;font-weight:800;flex-shrink:0;user-select:none}.card.red{color:#c12d3c}.card .suit{font-size:22px;align-self:center}.card .corner{font-size:12px}.card.back{justify-content:center;align-items:center;background:repeating-linear-gradient(45deg,#163f38 0 5px,#225c4c 5px 10px);color:#e4cb8e;border:3px double #e3c789;font-size:25px;text-shadow:0 2px 3px #000}.card.back small{font-size:9px}.card.mini{height:62px}.hand-panel{margin-top:15px;border:1px solid #ffffff22;border-radius:16px;padding:14px;background:#10291f}.hand-header,.actions{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.hand-header strong{display:block;font-size:13px;letter-spacing:.15em}.hand-header small{color:#a9c7b6}.hand-tools{display:flex;gap:6px}.hand-tools button{font-size:12px;padding:7px}.hand{display:flex;justify-content:center;flex-wrap:wrap;gap:5px;padding:20px 0 15px;min-height:116px}.hand .card{cursor:pointer;transition:transform .13s,border-color .13s}.hand .card:hover{transform:translateY(-8px)}.hand .card.selected{transform:translateY(-14px);border:3px solid #e6bd5e;box-shadow:0 0 0 2px #e6bd5e77}.actions{justify-content:center}.primary{background:#d4ad5c;color:#10291f;font-weight:800;border-color:#f1cf83}.primary:hover:not(:disabled){background:#efd083}.danger{border-color:#e6a3a0;color:#ffd6d1}.actions span{color:#c5d4c6;font-size:12px}footer{text-align:center;padding:16px;color:#9ab2a4;font-size:11px}dialog{width:min(580px,94vw);max-height:85vh;overflow:auto;border:1px solid #d5b66e;background:#122c24;color:#f7f1e5;border-radius:18px;padding:25px;box-shadow:0 20px 80px #000a}dialog::backdrop{background:#000a}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{margin:0}.close{padding:7px 12px}dialog p,dialog li{line-height:1.65;font-size:14px;color:#e0e5d9}dialog h3{color:#e6c879}dialog label{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:15px 0}dialog select{padding:9px;background:#1b4535;color:white;border:1px solid #ffffff55;border-radius:7px}.full{width:100%;margin-top:12px}.result-table{width:100%;border-collapse:collapse;margin-top:15px}.result-table td,.result-table th{padding:9px;border-bottom:1px solid #ffffff26;text-align:right}.result-table td:first-child,.result-table th:first-child{text-align:left}#welcomeDialog{text-align:center}#welcomeDialog h2{font-size:35px;letter-spacing:.1em;color:#e6c879}#welcomeDialog label{text-align:left}@media(max-width:750px){header{padding:12px}.brand strong{font-size:16px}.brand small{font-size:8px}.symbol{font-size:27px}.topbuttons button{padding:7px;font-size:11px}.status{align-items:flex-start}.status h2{font-size:18px}.scoreboard{gap:8px;padding:9px}.scoreboard b{font-size:19px}.scoreboard small{font-size:8px}.table-wrap{border-width:5px;border-radius:45px}.felt{min-height:450px;border-radius:40px}.center{inset:67px 58px 48px}.player{min-width:62px;padding:6px;font-size:11px}.west{left:3px;top:48%}.east{right:3px;top:48%}.player small{font-size:9px}.meld{padding:3px}.meld .card{transform:scale(.6);margin-left:-21px;margin-right:-16px}.meld-label{font-size:8px}.piles{gap:14px}.pile,.deadpile{font-size:8px}.card{width:47px;height:69px;font-size:15px}.card .suit{font-size:18px}.hand{gap:3px}.hand .card{width:45px;height:66px}.hand-tools button{font-size:10px;padding:6px}.area-label{font-size:8px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* V2 — acessibilidade e painéis */
.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.stats-grid>div{padding:14px;border:1px solid #b8a77b55;border-radius:12px;display:flex;flex-direction:column;gap:5px}.stats-grid b{font-size:1.6rem}.stats-grid small{opacity:.8}dialog label{display:block;margin:14px 0}dialog input[type=checkbox]{width:18px;height:18px;vertical-align:middle}.high-contrast{filter:contrast(1.25)}.reduce-motion *, .reduce-motion *::before,.reduce-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.light-theme{filter:brightness(1.17) saturate(.88)}button:focus-visible,[role=button]:focus-visible{outline:3px solid #f7d47b;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.45}@media(max-width:620px){.topbuttons{flex-wrap:wrap}.topbuttons button{font-size:.76rem;padding:7px}.stats-grid{grid-template-columns:1fr 1fr}}

/* V3 enhancements */
.tutorial-actions{display:flex;gap:12px;justify-content:space-between;margin-top:18px}.events-list{max-height:55vh;overflow:auto}.events-list p{padding:9px 12px;border-bottom:1px solid #8c9c8c55;margin:0}.hand .card[draggable="true"]{cursor:grab}.hand .card[draggable="true"]:active{cursor:grabbing}.meld.clickable{transition:box-shadow .18s,transform .18s}.meld.clickable:hover{box-shadow:0 0 0 2px #d9bc74;transform:translateY(-2px)}.topbuttons{flex-wrap:wrap}@media(max-width:680px){.topbuttons{gap:5px}.topbuttons button{font-size:11px;padding:7px 8px}.tutorial-actions button{flex:1}}

.live-score{font-size:.78rem;color:#e8c980;margin:.35rem 0 0}.topbuttons{flex-wrap:wrap}

/* V6 — expanded public discard inspection and compact mobile controls */
.pile-gallery{display:flex;flex-wrap:wrap;gap:8px;padding:12px;max-height:55vh;overflow:auto;align-items:center}.pile-gallery .card{position:relative;transform:none!important;margin:0!important;flex-shrink:0}
@media(max-width:650px){.pile-gallery .card{width:44px;height:66px}.topbuttons{flex-wrap:wrap}.actions{flex-wrap:wrap;gap:8px}.actions button{min-height:42px}}

/* V7 — refined premium table, action feedback, and adaptive layouts */
:root{--gold:#e8c77c;--felt:#124631}body{background:radial-gradient(ellipse at 50% -10%,#234334,#091b17 65%)}header{position:relative;z-index:4;box-shadow:0 5px 24px #0003}.brand .symbol{filter:drop-shadow(0 2px 5px #0008)}.table-wrap{border-color:#71442a;box-shadow:inset 0 0 0 3px #bb8950,0 15px 45px #0009}.felt{background:radial-gradient(ellipse at 50% 44%,#32775a 0%,#18523b 54%,#0c3024 100%)}.felt:before{content:"";position:absolute;inset:12px;border:1px solid #e5c78022;border-radius:inherit;pointer-events:none}.player.active{animation:seatGlow 2s ease-in-out infinite}.my-turn .hand-panel{border-color:#dfc27e80;box-shadow:0 0 0 1px #d3a85d30}.last-move{margin:12px auto 0;display:flex;align-items:center;gap:12px;padding:11px 15px;border:1px solid #ffffff24;background:#112d24;border-radius:12px;font-size:12px}.last-move span{color:var(--gold);font-size:10px;font-weight:800;letter-spacing:.11em}.last-move strong{font-weight:500}.hand-dealt .card{animation:dealCard .24s ease-out both}.hand-dealt .card:nth-child(2n){animation-delay:.025s}.hand-dealt .card:nth-child(3n){animation-delay:.05s}.hand .card{touch-action:pan-y}.hand .card.selected{z-index:2}.pile:not(:disabled) .back{animation:stockFloat 2.5s ease-in-out infinite}.actions button{min-height:44px}.actions .primary{box-shadow:0 3px 12px #0003}button{touch-action:manipulation}@keyframes dealCard{from{opacity:.35;transform:translateY(12px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes seatGlow{50%{box-shadow:0 0 0 4px #e2ba6244}}@keyframes stockFloat{50%{transform:translateY(-3px)}}@media(max-width:950px){.center{inset:62px 95px}.status{flex-wrap:wrap}.topbuttons{justify-content:flex-end}.topbuttons button{padding:8px 9px}}@media(max-width:650px){header{align-items:flex-start;gap:10px;flex-wrap:wrap}.topbuttons{width:100%;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:5px}.topbuttons button{white-space:nowrap;flex-shrink:0}.table-wrap{border-radius:36px}.felt{min-height:510px;border-radius:29px}.center{inset:70px 53px 57px}.melds{gap:5px}.meld{max-width:100%;overflow-x:auto}.player{font-size:10px}.piles{gap:10px}.hand-panel{padding:9px}.hand{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;padding:23px 8px 17px;min-height:120px}.hand .card{width:52px;height:76px;flex-shrink:0;scroll-snap-align:start}.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.actions button{padding:11px 7px;font-size:12px}.actions span{grid-column:1/-1;text-align:center}.hand-tools{flex-wrap:wrap}.last-move{align-items:flex-start;flex-direction:column;gap:5px}}@media(max-width:390px){.center{inset:75px 46px 54px}.card{width:41px;height:62px}.piles{gap:7px}.scoreboard{width:100%;justify-content:center}.felt{min-height:540px}}@media(prefers-reduced-motion:reduce){.player.active,.pile:not(:disabled) .back,.hand-dealt .card{animation:none!important}}.reduce-motion .player.active,.reduce-motion .pile:not(:disabled) .back,.reduce-motion .hand-dealt .card{animation:none!important}

/* V8 — feedback de legalidade, foco visível e melhor leitura móvel */
.selection-feedback{font-size:13px;color:#e4d5a4;margin:7px 0 10px;min-height:1.3em}
button:focus-visible,[role="button"]:focus-visible{outline:3px solid #f2ce77;outline-offset:3px}
button:disabled{cursor:not-allowed;opacity:.48}
@media(max-width:680px){.selection-feedback{font-size:12px}.actions{flex-wrap:wrap}.actions button{min-height:44px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* V10 final: larger mobile targets, readable controls, responsive safe-area spacing. */
button:focus-visible,[role="button"]:focus-visible{outline:3px solid #ffd77c!important;outline-offset:3px}
button{touch-action:manipulation}
@media(max-width:700px){.topbuttons{gap:5px}.topbuttons button{min-height:40px}.actions button{min-height:46px}.hand{scroll-padding-inline:12px;overscroll-behavior-x:contain}.hand-panel{padding-bottom:max(16px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
