/* CACCIA AL MOSTRO MARKET 0.6 — SOLO TEMA VISIVO.
   Tutta la grafica utilizzata proviene dal pacchetto approvato 4.9.5.
   Nessun cambio a ID, API, autenticazione o regole di partita. */
:root{--monster-ink:#1a102d;--monster-violet:#2d1548;--monster-gold:#ffc35b;--monster-orange:#ff7c20;--monster-orange-dark:#e34b21;--monster-cream:#fff7e6;--monster-border:#e8bf80}
html{scroll-behavior:smooth}
body.player-theme,body.editor-theme{color:#291832;background:radial-gradient(ellipse at 11% -8%,#632d8f88,transparent 39%),radial-gradient(ellipse at 98% 14%,#f27a2140,transparent 33%),radial-gradient(ellipse at 76% 88%,#5b20827a,transparent 45%),linear-gradient(170deg,#130a25,#241237 65%,#130b26);background-attachment:fixed}
body.player-theme:before,body.editor-theme:before{content:"";z-index:0;background-image:radial-gradient(#ffddaa55 1px,transparent 1.6px),radial-gradient(#ffffff25 .8px,transparent 1.4px);background-size:87px 91px,47px 55px;background-position:11px 20px,3px 5px;mask-image:none;position:fixed;inset:0;pointer-events:none;opacity:.7}
body.player-theme>*,body.editor-theme>*{position:relative}
body.player-theme .topbar,body.editor-theme .topbar{max-width:1500px;border-bottom:1px solid #eeb36244;min-height:100px;padding:13px clamp(15px,2.8vw,35px)}
body.player-theme .topbar .official-header-logo,body.editor-theme .topbar .official-header-logo{width:clamp(170px,20vw,237px);filter:drop-shadow(0 5px 12px #0c061955)}
body.player-theme .identity h1,body.editor-theme .identity h1{font-size:clamp(16px,2vw,19px);color:#fff0d8;font-weight:850;letter-spacing:-.025em}
body.player-theme .identity h1 span,body.editor-theme .identity h1 span{color:#ffb65d;font-weight:800}
body.player-theme .identity p,body.editor-theme .identity p{color:#dfbde7;font-size:11px}
body.player-theme .topbar .logo,body.editor-theme .topbar .logo{background:transparent;border:0;box-shadow:none}
body.player-theme .topright,body.editor-theme .topright{gap:10px;flex-wrap:wrap;justify-content:flex-end}
.theme-nav{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.theme-nav a{color:#ffe4bf;text-decoration:none;border:1px solid #ffcc8a4f;background:#f9ae4612;border-radius:100px;padding:9px 13px;font-size:12px;font-weight:850;white-space:nowrap;transition:background .15s,transform .15s}
.theme-nav a:hover,.theme-nav a:focus-visible{background:#fa8c3c34;transform:translateY(-1px)}
body.editor-theme .beta{border-color:#ffbd7050;background:#ffb45120;color:#ffdfb3}
body.player-theme .panel,body.editor-theme .panel{background:linear-gradient(165deg,#fffdf7 0%,#fff4e4 100%);border:2px solid #e3b97e;border-radius:23px;box-shadow:0 13px 33px #08030f68, inset 0 1px #fffdf3}
body.player-theme .panel h3,body.editor-theme .panel h3{color:#49264a}
body.player-theme .panel-title,body.editor-theme .panel-title{border-bottom:1px dashed #dcbc8c;padding-bottom:11px}
body.player-theme .eyebrow,body.editor-theme .eyebrow{color:#a75b17;letter-spacing:.15em}
body.player-theme label,body.editor-theme label{color:#58344d}
body.player-theme input:not([type=range]):not([type=checkbox]),body.editor-theme input:not([type=range]):not([type=checkbox]),body.player-theme select,body.editor-theme select,body.player-theme textarea{background:#fffefa;border:1px solid #d7b995;color:#322139;box-shadow:inset 0 2px 2px #73301306}
body.player-theme input:focus,body.editor-theme input:focus,body.player-theme select:focus,body.editor-theme select:focus,body.player-theme textarea:focus{border-color:#eb8b42;outline:2px solid #f8a85b33;outline-offset:1px}
body.player-theme button.primary,body.editor-theme button.primary{background:linear-gradient(115deg,#ff9c30 5%,#f16721 70%,#ce4229 100%);border:1px solid #e85f22;color:white;box-shadow:0 7px 19px #db541b48, inset 0 1px #fff6;letter-spacing:.01em}
body.player-theme button.primary:hover:not(:disabled),body.editor-theme button.primary:hover:not(:disabled){background:linear-gradient(115deg,#ffa940,#e95f1b);box-shadow:0 10px 22px #d84c2048}
body.player-theme button.secondary,body.editor-theme button.secondary{background:#ffe7c5;color:#794525;border:1px solid #e3be83}
body.player-theme button.secondary:hover:not(:disabled),body.editor-theme button.secondary:hover:not(:disabled){background:#ffdb9f}
body.player-theme .helper,body.editor-theme .helper,body.player-theme .muted,body.editor-theme .muted{color:#785f74}
body.player-theme .mini,body.editor-theme .mini{background:#f9e6c8;color:#915620}
body.player-theme .clock,body.editor-theme .clock{color:#ffdd88;background:linear-gradient(135deg,#241439,#462154);border:1px solid #e5a45b;box-shadow:inset 0 0 18px #f48b1b1c,0 6px 20px #23102935}
body.player-theme .clock.urgent{color:#fff!important;background:#bf3924}
/* GIOCA: banner with the exact official illustration, not a newly-created picture */
body.player-theme .player-page{max-width:1390px;padding-top:12px}
.theme-intro{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr minmax(280px,45%);gap:10px;align-items:center;overflow:hidden;border:2px solid #f4b34b;border-radius:25px;background:radial-gradient(circle at 8% 95%,#793f9b,#2d1648 57%,#150c29);box-shadow:0 13px 36px #09040d70;margin:11px 0 18px;min-height:255px}
.theme-intro:before{content:"✦ ✧ ✦";position:absolute;right:10px;top:10px;color:#ffdd8350;font-size:45px;letter-spacing:15px;z-index:-1}
.theme-intro-copy{padding:23px clamp(20px,3.5vw,44px);position:relative;z-index:1}
.theme-overline{font-size:11px;font-weight:900;letter-spacing:.17em;color:#ffd087}
.theme-intro-copy h2{font-size:clamp(27px,3.7vw,49px);color:#fff5dc;letter-spacing:-.055em;line-height:1.05;margin:14px 0}
.theme-intro-copy h2 em{font-style:normal;color:#ffad40;text-shadow:0 2px 15px #f36b1739}
.theme-intro-copy p{max-width:370px;color:#f2dce6;font-size:15px;line-height:1.6}
.theme-intro-art{width:100%;height:100%;max-height:330px;min-height:255px;display:block;object-fit:cover;object-position:center;align-self:stretch;mask-image:linear-gradient(90deg,transparent 0%,black 25%)}
body.player-theme .quicknav{margin-bottom:14px;gap:9px}
body.player-theme .quicknav a{display:inline-flex;align-items:center;padding:8px 12px;background:#ffe1a919;color:#ffe4bc;border:1px solid #ffdb9961;border-radius:11px;text-decoration:none;font-weight:750}
body.player-theme .quicknav a:hover{background:#ffb3523d}
body.player-theme .demo-ribbon{background:#3e224f;color:#ffe3a9;border:1px dashed #f0aa6b;box-shadow:inset 0 1px #ffffff20;border-radius:12px}
body.player-theme .setup{max-width:810px;position:relative;overflow:hidden;padding:clamp(21px,4vw,34px)}
body.player-theme .setup h2,body.player-theme .game-head h2,body.player-theme .final-panel h2{color:#4c2348;font-weight:900}
.page-card-icon{float:right;width:49px;height:49px;display:grid;place-items:center;font-size:26px;border:2px solid #e8b77a;border-radius:16px;background:#ffdfa9;margin:0 0 10px 10px}
body.player-theme .setup .eyebrow{color:#a55b1d}
body.player-theme .monster-tile{background:#fff9ed!important;border:2px solid #e7c696!important;color:#633750!important;box-shadow:0 5px 16px #51242b18}
body.player-theme .monster-tile:hover:not(:disabled){border-color:#f29240!important;background:#fff0d7!important;box-shadow:0 7px 20px #e17c3540}
body.player-theme .monster-tile.captured{filter:grayscale(1);opacity:.48}
body.player-theme .score{border-color:#e5cda5}
body.player-theme .score b{color:#b46121}
body.player-theme .letters{color:#8b397d}
body.player-theme #phrasePanel{border-color:#e1bc8b}
body.player-theme #finishDialog{border:3px solid #f9a440;background:#fff4de;box-shadow:0 35px 100px #10051f}
body.player-theme #finishDialog::backdrop{background:#120924d9}
body.player-theme .finish-dialog h2{color:#b64227}
body.player-theme .final-panel{border-color:#f0a948}
/* ORGANIZZA: same adventure atmosphere and original cover, no replacement art */
body.editor-theme .page{max-width:1510px;padding-top:22px}
body.editor-theme .auth-layout{gap:clamp(24px,5vw,70px)}
body.editor-theme .auth-hero{padding:18px 0 22px 8px;min-height:unset}
body.editor-theme .auth-hero .eyebrow{color:#ffcc7e}
body.editor-theme .eyebrow-dot{background:#ffa340;box-shadow:0 0 0 4px #ffac443b}
body.editor-theme .auth-hero h2{font-size:clamp(41px,4.7vw,72px);color:#fff5e3;letter-spacing:-.06em;margin:15px 0 13px}
body.editor-theme .auth-hero h2 em{background:linear-gradient(95deg,#ffdb69,#ff9b39,#ff7457);color:transparent;background-clip:text}
body.editor-theme .auth-hero p{color:#ecceea}
body.editor-theme .hero-steps{gap:8px;margin:21px 0 0}
body.editor-theme .hero-steps span{background:#43245790;border:1px solid #ffbb7762;color:#f8ddc2;padding:10px 12px;border-radius:12px}
body.editor-theme .hero-steps b{color:#ffad40}
body.editor-theme .auth-art{position:relative;bottom:auto;left:auto;opacity:1;width:min(100%,510px);height:auto;max-height:none;margin:22px 0 0;overflow:hidden;border:2px solid #f6b25b;border-radius:20px;box-shadow:0 14px 34px #07031078}
body.editor-theme .auth-art img{display:block;width:100%;height:auto}
body.editor-theme .login-card{background:linear-gradient(155deg,#fffdf7 0%,#fff1d9 100%);border:2px solid #e8ad67;box-shadow:0 16px 49px #0e061d7f;max-width:565px}
body.editor-theme .login-card:before{height:7px;background:linear-gradient(90deg,#ffcc58,#ff792d,#b962bc)}
body.editor-theme .login-card .eyebrow{color:#a75c1d}
body.editor-theme .login-secure{color:#8b5872}
body.editor-theme .login-card h3{color:#4e2248;letter-spacing:-.05em}
body.editor-theme .login-card>p{color:#756174}
body.editor-theme .login-foot{border-color:#e9c89c}
body.editor-theme .login-foot p{color:#776374}
body.editor-theme .heading{color:#fff3df}
body.editor-theme .heading .eyebrow{color:#ffcf78}
body.editor-theme .heading p{color:#dbbfd3}
body.editor-theme .heading h2{color:#ffecc6}
body.editor-theme .marker-count{background:#fff0d7;border-color:#e8bc80;color:#9d5c28}
body.editor-theme .toggle{background:#fff5e5;border-color:#e8ccaa}
body.editor-theme .toggle span{color:#633c53}
body.editor-theme input[type=range],body.editor-theme input[type=checkbox]{accent-color:#ed7a2b}
body.editor-theme .pending-box{background:#fff2dc;border-color:#f0c584}
body.editor-theme .point-number{background:#fee5b5;color:#9c5f20}
body.editor-theme .game-choice.active{background:#fff0d7;border-color:#e9aa5f;box-shadow:inset 4px 0 #ff922f}
body.editor-theme .map-panel{background:#fffefa;border:2px solid #e1b87c}
body.editor-theme .map-toolbar h3{color:#4e2546}
body.editor-theme .editor-test-bar{max-width:1450px;margin:0 auto;padding:12px 22px;background:#4b2545;border:1px dashed #e8aa6e;border-radius:13px;color:#ffdaaa;font-size:12px;font-weight:750;line-height:1.5}
body.editor-theme .editor-test-bar a{color:#fff3ce}
body.editor-theme dialog{border:2px solid #efba79;background:#fffaf0}
body.editor-theme .dialog-content h2{color:#502849}
/* Keep map legible, unfiltered and interactive */
body.editor-theme #map{background:#e9efe8}
@media(max-width:980px){
 body.editor-theme .auth-layout{grid-template-columns:1fr;gap:18px}
 body.editor-theme .auth-hero{min-height:unset;padding-bottom:0}
 body.editor-theme .auth-art{max-width:550px}
 body.editor-theme .login-card{max-width:720px;justify-self:stretch}
}
@media(max-width:650px){
 body.player-theme .topbar,body.editor-theme .topbar{min-height:82px;padding:10px 12px;gap:8px}
 body.player-theme .topbar .official-header-logo,body.editor-theme .topbar .official-header-logo{width:130px}
 body.player-theme .identity,body.editor-theme .identity{gap:6px}
 body.player-theme .identity h1,body.editor-theme .identity h1{font-size:13px}
 body.player-theme .identity p,body.editor-theme .identity p{display:none}
 .theme-nav{gap:5px}.theme-nav a{padding:8px 9px;font-size:11px}
 body.editor-theme .beta{display:none}
 body.player-theme .player-page{padding:12px 9px 35px}
 .theme-intro{grid-template-columns:1fr;border-radius:17px}
 .theme-intro-copy{padding:21px 21px 4px}
 .theme-intro-copy h2{font-size:clamp(29px,7vw,39px)}
 .theme-intro-copy p{font-size:13px}
 .theme-intro-art{min-height:0;height:auto;max-height:185px;object-fit:cover;mask-image:linear-gradient(180deg,transparent 0%,black 20%)}
 body.editor-theme .page{padding:14px 11px 38px}
 body.editor-theme .auth-hero{padding:6px 4px 4px}
 body.editor-theme .auth-hero h2{font-size:clamp(35px,8vw,52px)}
 body.editor-theme .auth-art{margin-top:17px}
 body.editor-theme .login-card{padding:24px 20px}
}
@media(prefers-reduced-motion:reduce){.theme-nav a{transition:none!important}}
