/* 2PISO V8 — approved visual direction; compact, accessible, mobile-first */
:root{--bg:#05291f;--ink:#fff9e9;--gold:#ffda84;--muted:#d4e8de;--card:#0b3529}
html{scroll-padding-top:75px}body{background:#053126;color:#fff9e9}
.ambient{display:none}.sitebar{height:73px;min-height:73px;background:#05271fef;border-bottom:1px solid #f3d18c39;padding:0 clamp(15px,3.8vw,72px)}
.brand-badge{width:52px;height:52px;font-size:35px;background:#ffdc8a}.brand-name{font-size:30px}.brand-name small{font-size:8px;letter-spacing:2.5px;color:#eedfb9}.navlinks{gap:30px}.navlinks a{font-size:13px}.coin-top{white-space:nowrap;color:#ffe5a4}.btn-gold{color:#072b21;background:linear-gradient(130deg,#fff2ba,#ffdb85 44%,#e7af54);box-shadow:0 8px 27px #f6ba6641}.btn-outline{border-color:#d7c78a76;background:#092d24ab}.btn-quiet{border-color:#fcebc02f;background:#ffffff08}.btn{border-radius:13px;min-height:46px}
.v8-main{width:100%;max-width:1600px;margin:auto}.v8-hero{position:relative;display:grid;grid-template-columns:minmax(0,.97fr) minmax(0,1.03fr);align-items:center;min-height:510px;padding:35px clamp(22px,5vw,90px) 16px;gap:5px;isolation:isolate;background:radial-gradient(ellipse 67% 76% at 85% 43%,#126f4a 0%,#074332 50%,transparent 83%)}.v8-hero:before{content:"";pointer-events:none;position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 26% 50%,#13392a4f,transparent 60%)}
.v8-kicker,.v8-hero .v8-kicker{font-size:11px;font-weight:900;letter-spacing:3px;color:#f8d588;display:flex;gap:9px;align-items:center;margin:0 0 24px}.v8-kicker .status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#c5ff97;box-shadow:0 0 15px #d0ff89}
.v8-hero h1{font-family:'DM Sans',sans-serif;font-weight:900;letter-spacing:-3px;font-size:clamp(42px,4.4vw,72px);line-height:1.09;color:#fff8e9;margin:0 0 22px;max-width:760px}.v8-hero h1 em{font-style:normal;color:#ffda85;display:inline}.v8-lead{font-size:clamp(14px,1.18vw,17px);color:#e2eee5;max-width:520px;line-height:1.65;margin-bottom:30px}.v8-hero-actions{display:flex;flex-wrap:wrap;gap:11px}.v8-big-btn{min-height:54px;font-size:12px;padding:0 18px}.v8-hero-caption{font-size:11px;color:#bfd3c5;margin:22px 0 0;letter-spacing:.5px}
.v8-hero-visual{height:455px;position:relative;display:grid;place-items:center;min-width:0}.v8-board-glow{position:absolute;width:75%;height:75%;border-radius:50%;background:#e7bc5850;filter:blur(65px)}.v8-hero-image{position:relative;display:block;width:min(100%,710px);max-height:455px;object-fit:contain;border-radius:28px;filter:drop-shadow(0 25px 26px #0009);transform:rotate(-1deg);transition:transform .4s ease,filter .4s ease;mask-image:radial-gradient(ellipse 75% 80% at 50% 52%,#000 55%,transparent 99%)}.v8-hero-visual:hover .v8-hero-image{transform:translateY(-6px) rotate(0deg) scale(1.018)}.v8-hero-label{position:absolute;top:11%;left:0;color:#ffe1a0;background:#10382be6;border:1px solid #fae3a688;border-radius:24px;padding:9px 16px;font-weight:900;font-size:11px;letter-spacing:.5px;box-shadow:0 10px 24px #0007}.v8-hero-visual canvas{display:none}
.v8-themes{margin:0 clamp(16px,4.6vw,78px);padding:16px 18px;background:linear-gradient(135deg,#0b4638,#0a342a);border:1px solid #c5dfbb45;border-radius:22px;display:flex;align-items:center;gap:15px;position:relative;box-shadow:0 12px 35px #0004}.v8-themes-title{flex:0 0 182px;display:flex;align-items:center;gap:12px}.v8-themes-title h2{font-size:16px;line-height:1.2;margin:0 0 4px}.v8-themes-title p{color:#c9ded4;font-size:11px;line-height:1.45;margin:0}.v8-icon{font-size:27px;color:#f5d68b}.v8-themes-track{flex:1;min-width:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.v8-theme{border:2px solid #ffffff28;padding:0;display:block;position:relative;height:89px;min-width:0;border-radius:14px;overflow:hidden;background:#0b281e;color:#fff;transition:transform .2s,border-color .2s,box-shadow .2s}.v8-theme img{width:100%;height:100%;object-fit:cover;display:block;opacity:.75;transition:transform .25s}.v8-theme:hover img,.v8-theme:focus-visible img{transform:scale(1.09)}.v8-theme span{position:absolute;bottom:0;left:0;right:0;padding:17px 4px 7px;line-height:1.1;font-weight:900;font-size:12px;text-align:center;background:linear-gradient(transparent,#08211fe5);text-shadow:0 2px 5px #000}.v8-theme.selected{border-color:#ffe39e;box-shadow:0 0 0 2px #f2bf6388}.v8-theme small{font-size:10px;opacity:.9}.v8-shop-link{background:transparent;border:0;color:#f7d894;font-size:11px;font-weight:900;max-width:110px;line-height:1.4;cursor:pointer}.v8-shop-link:hover{text-decoration:underline}
.v8-perks{margin:18px clamp(16px,4.6vw,78px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #e6d6a74e;border-radius:20px;min-height:88px;background:linear-gradient(110deg,#093f32,#082f27);box-shadow:0 15px 36px #0003}.v8-perks>div{padding:17px 13px;display:grid;grid-template-columns:34px auto;grid-template-rows:auto auto;column-gap:7px;align-content:center;min-width:0}.v8-perks>div:not(:last-child){border-right:1px solid #e8d0a447}.v8-perk-symbol{grid-row:span 2;color:#ffdb92;font-size:26px;line-height:1.2}.v8-perks strong{font-size:14px;line-height:1.15}.v8-perks small{color:#cadfd3;font-size:11px;margin-top:4px}
.v8-lobby{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:20px;margin:16px clamp(16px,4.6vw,78px) 10px}.v8-lobby-intro,.v8-public{padding:24px 26px;border:1px solid #d1bc7b59;border-radius:22px;background:linear-gradient(130deg,#0a4535,#0c2a24);box-shadow:0 14px 36px #0003}.v8-lobby-intro .v8-kicker{font-size:10px;margin-bottom:10px}.v8-lobby-intro h2,.v8-bottom h2{font-family:'DM Sans',sans-serif;font-weight:900;letter-spacing:-1.3px;font-size:clamp(26px,2.4vw,39px);margin:0 0 8px}.v8-lobby-intro h2 em,.v8-bottom h2 em{font-style:normal;color:#ffdc89}.v8-lobby-intro p,.v8-bottom p{font-size:13px;color:#d2e4db;line-height:1.5}.v8-lobby-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.v8-lobby-actions .btn{min-height:42px;padding:0 12px;font-size:11px}.v8-public-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:12px;border-bottom:1px solid #e8daab36}.v8-public-top strong{color:#ffe3a5;font-size:14px}.v8-public-top span{color:#d0dfd4;font-size:11px}.v8-public .open-rooms{display:block;margin:8px 0 0}.v8-public .open-room-item{display:flex;align-items:center;justify-content:space-between;gap:9px;border-radius:10px;background:#ffffff0b;padding:7px 9px;margin:5px 0}.v8-public .open-room-item .btn{min-height:33px;padding:0 12px}.v8-empty{padding:18px 0;color:#d9e9d8;font-size:13px;line-height:1.5}
.v8-bottom{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:12px clamp(16px,4.6vw,78px) 22px;padding:18px 20px;border-radius:18px;background:#082e27;border:1px solid #f8df9e35}.v8-bottom .v8-kicker{margin:0 0 5px;font-size:9px}.v8-bottom h2{font-size:26px}.v8-bottom p{margin:0 0 6px}.v8-text-link{border:0;background:none;color:#ffdd8e;font-weight:800;padding:0;text-align:left;font-size:12px;cursor:pointer}.v8-bottom-actions{display:grid;gap:10px;min-width:210px}.v8-rank-details{font-size:12px;color:#ebdfb5}.v8-rank-details summary{cursor:pointer;text-align:center}.v8-rank-details .leaderboard{max-height:205px;overflow:auto;min-width:200px}.v8-footer{margin:0;background:#05251e;padding:20px clamp(16px,4.6vw,78px);display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;border-top:1px solid #e5c5743e;color:#b8cebf;font-size:11px}.v8-footer strong{color:#f6d990}.v8-footer .footer-brand{font-weight:900;font-size:17px;color:#fff8e9}.v8-footer .footer-brand small{display:block;font-size:8px;letter-spacing:2px;color:#ffdd9c}
/* Keep the actual game board, buttons and sidebar accessible; selected theme shows during play. */
.board-toolbar{background:transparent}.game-mobile-dock button{min-height:49px}.die:focus-visible,.v8-theme:focus-visible,.btn:focus-visible{outline:3px solid #ffdc8c;outline-offset:3px}
body[data-home-theme="madera"] .v8-hero-image{filter:sepia(.32) saturate(.8) drop-shadow(0 25px 26px #0009)}
body[data-home-theme="medianoche"] .v8-hero-image{filter:hue-rotate(65deg) saturate(1.36) drop-shadow(0 25px 26px #0009)}
body[data-home-theme="esmeralda"] .v8-hero-image{filter:hue-rotate(110deg) saturate(1.12) drop-shadow(0 25px 26px #0009)}
@media(max-width:1060px){.v8-hero{grid-template-columns:1fr 1fr;padding-left:30px;padding-right:30px}.v8-hero-visual{height:390px}.v8-hero h1{font-size:clamp(39px,4.4vw,60px)}.v8-hero-actions{gap:7px}.v8-big-btn{font-size:11px;padding:0 12px}.v8-themes{flex-wrap:wrap}.v8-themes-title{flex:0 0 140px}.v8-shop-link{max-width:none}}
@media(max-width:820px){.sitebar{height:65px;min-height:65px;padding:0 14px}.navlinks{display:none}.brand-badge{height:42px;width:42px;font-size:28px}.brand-badge span{font-size:18px}.brand-name{font-size:23px}.brand-name small{font-size:6px;letter-spacing:1.5px}.bar-actions{gap:6px}.bar-actions .btn{min-height:40px;padding:0 12px;font-size:10px}.coin-top{font-size:11px}.v8-hero{min-height:0;display:flex;flex-direction:column;align-items:stretch;gap:2px;padding:28px 16px 0}.v8-hero-content{z-index:1}.v8-kicker{margin-bottom:14px}.v8-hero h1{font-size:clamp(38px,7.6vw,59px);letter-spacing:-1.4px;line-height:1.13;margin-bottom:12px}.v8-lead{margin-bottom:17px;font-size:13px;max-width:600px}.v8-hero-actions{gap:8px}.v8-big-btn{font-size:11px;min-height:48px;flex:1 1 30%;padding:0 8px}.v8-hero-caption{font-size:10px;margin:12px 0 0}.v8-hero-visual{height:auto;max-height:none;margin:auto;max-width:680px;width:100%;min-height:235px}.v8-hero-image{width:100%;max-height:370px}.v8-hero-label{top:7%;left:2%;font-size:9px}.v8-themes,.v8-perks,.v8-lobby,.v8-bottom{margin-left:13px;margin-right:13px}.v8-themes{padding:12px;gap:10px}.v8-themes-title{flex:1 1 100%}.v8-themes-track{flex:1 1 100%}.v8-theme{height:85px}.v8-shop-link{width:100%;text-align:center}.v8-perks{grid-template-columns:repeat(2,1fr)}.v8-perks>div:nth-child(2){border-right:0}.v8-perks>div:nth-child(-n+2){border-bottom:1px solid #e8d0a447}.v8-lobby{grid-template-columns:1fr}.v8-bottom{align-items:flex-start}}
@media(max-width:520px){.sitebar{gap:6px}.bar-actions{gap:4px}.bar-actions .btn{padding:0 8px;font-size:9px}.sitebar .coin-top{display:none}.v8-hero{padding:24px 13px 0}.v8-hero h1{font-size:clamp(35px,10vw,48px)}.v8-hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.v8-hero-actions .btn:first-child{grid-column:1/-1}.v8-lead{font-size:13px;line-height:1.55}.v8-hero-caption{font-size:10px}.v8-hero-visual{min-height:175px;margin-top:5px}.v8-hero-image{max-height:270px;object-fit:cover}.v8-themes{margin-top:6px;border-radius:17px}.v8-themes-track{display:flex;overflow-x:auto;gap:9px;scroll-snap-type:x mandatory;padding:2px 2px 6px}.v8-theme{flex:0 0 42%;height:90px;scroll-snap-align:start}.v8-perks{border-radius:17px;margin-top:12px}.v8-perks>div{padding:11px 8px;grid-template-columns:29px auto}.v8-perks strong{font-size:11px}.v8-perks small{font-size:10px}.v8-perk-symbol{font-size:22px}.v8-lobby{gap:10px;margin-top:10px}.v8-lobby-intro,.v8-public{padding:18px;border-radius:18px}.v8-lobby-intro h2{font-size:29px}.v8-lobby-actions .btn{flex:1 1 40%;font-size:10px}.v8-bottom{flex-direction:column;padding:17px}.v8-bottom-actions{width:100%}.v8-footer{justify-content:center;text-align:center;padding:15px}.v8-footer .footer-brand{display:none}}
@media(prefers-reduced-motion:reduce){.v8-hero-image,.v8-theme img{transition:none!important}.v8-hero-visual:hover .v8-hero-image{transform:none}}
/* No mostrar controles reservados para usuarios con sesión activa. */
[hidden]{display:none!important}
