/* The adventure map is DOM UI. The WebGL arena stays unloaded until Play. */
.game-dashboard{position:absolute;inset:0;z-index:7;background:radial-gradient(ellipse at 50% 5%,#61402b66,transparent 65%),#211813;color:#ffedce;touch-action:pan-y;overflow:hidden}
.dashboard-shell{height:100%;max-width:560px;margin:auto;display:flex;flex-direction:column;position:relative;background:linear-gradient(160deg,#3b2a21,#241914 70%);box-shadow:0 0 80px #0004;border-inline:1px solid #a57b4a33}
.dashboard-top{display:flex;align-items:center;justify-content:space-between;flex:none;gap:12px;padding:calc(10px + env(safe-area-inset-top)) 19px 10px;border-bottom:1px solid #d6ae7130;background:#251a14ed;z-index:2}
.dashboard-studio{display:flex;align-items:center;gap:10px;text-decoration:none;color:#f4dcac;min-height:44px}
.dashboard-studio img{width:62px;height:42px;object-fit:contain;background:#fff7e7;border:1px solid #c9a875;border-radius:6px}
.dashboard-studio span{font-size:11px;font-weight:750;letter-spacing:.13em;line-height:1.65}.dashboard-studio b{display:block;font-size:8px;letter-spacing:.17em;font-weight:650;color:#c6a47c}
.dashboard-index svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;display:block}
.dashboard-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9a754b #241914;scroll-padding:15px 0 25px;position:relative}
.dashboard-welcome{position:relative;display:flex;align-items:center;min-height:127px;padding:20px 22px 9px;background:radial-gradient(ellipse at 82% 60%,#c0934722,transparent 55%);overflow:hidden}
.dashboard-welcome>div{position:relative;z-index:1;flex:1}.dashboard-welcome h2{margin:0;color:#fff0d0;font-size:30px;letter-spacing:-.045em;line-height:1.05;font-weight:800;text-wrap:balance}.dashboard-welcome .game-eyebrow{font-size:9px;margin-bottom:7px}.dashboard-welcome>div>p:last-child{font-size:11px;color:#cdb59a;margin:10px 0 0;line-height:1.4}
.dashboard-welcome>img{width:130px;height:149px;object-fit:contain;object-position:bottom;margin:-15px -12px -9px -15px;filter:drop-shadow(0 5px 7px #0005);pointer-events:none}
.dashboard-map-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 20px 4px}.dashboard-map-heading .game-eyebrow{margin:0;font-size:10px}.dashboard-map-hint{font-size:10px;line-height:1.4;color:#c6af94;margin:4px 0}.dashboard-map-arrows{display:flex;gap:6px}
.dashboard-arrow{display:block;width:18px;height:18px;background:currentColor;mask:url('/assets/brand/firma-arrow.svg') center/contain no-repeat;-webkit-mask:url('/assets/brand/firma-arrow.svg') center/contain no-repeat}.dashboard-arrow.back{transform:rotate(180deg)}
.dashboard-chapter-nav{display:flex;gap:7px;overflow:auto;scroll-snap-type:x proximity;scroll-padding-inline:18px;padding:6px 19px 12px;scrollbar-width:none;overscroll-behavior-x:contain}.dashboard-chapter-nav::-webkit-scrollbar{display:none}.dashboard-chapter-nav button{scroll-snap-align:center;flex:none;position:relative}.dashboard-chapter-nav img{width:29px;height:29px;object-fit:contain;display:block;filter:drop-shadow(0 2px 3px #0004)}
.dashboard-map-world{isolation:isolate;position:relative;margin:0 12px;border:1px solid #bb945a88;border-radius:18px;background:radial-gradient(ellipse at 40% 35%,#c79f5d3b,transparent 70%),linear-gradient(140deg,#665131,#493621);overflow:hidden;min-height:610px;box-shadow:inset 0 0 0 4px #f2d79e09,0 8px 20px #130c0833}
.dashboard-map-art{position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,#23170a55,#29190a05 15%,#24180a05 80%,#23170a55),url('/gioco/assets/gamer/world-map-480.webp') center/cover no-repeat;pointer-events:none;opacity:.93}
.dashboard-map-world:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(90deg,#24170733,transparent 20%,transparent 80%,#24170733)}
.dashboard-chapter{position:relative}.dashboard-chapter-heading{position:relative;display:flex;gap:9px;align-items:center;margin:0;padding:12px 14px;background:#2a1b13e8;border-bottom:1px solid #d5b16e55;min-height:61px}.dashboard-chapter-heading .chapter-emblem{width:33px;height:37px;object-fit:contain}.dashboard-chapter-heading h3{color:#ffe4b1;font-size:14px;letter-spacing:-.02em;line-height:1.15;margin:0;flex:1;font-weight:750}.dashboard-chapter-heading>span{font-size:10px;color:#e5c891;white-space:nowrap}
.dashboard-stages{height:540px;position:relative;margin:0 12px 8px;isolation:isolate}
.dashboard-stages:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M56 92Q51 88 51 83T58 74Q63 70 63 65T57 56Q50 51 50 47T48 38Q46 34 46 29T56 20Q56 15 49 11' fill='none' stroke='%233c2515' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M56 92Q51 88 51 83T58 74Q63 70 63 65T57 56Q50 51 50 47T48 38Q46 34 46 29T56 20Q56 15 49 11' fill='none' stroke='%23eacb87' stroke-width='1.2' stroke-linecap='round' stroke-dasharray='1.2 1.1'/%3E%3C/svg%3E") center/100% 100% no-repeat}
.dashboard-stage{position:absolute;transform:translate(-50%,-50%);isolation:isolate;touch-action:manipulation}.dashboard-stage:nth-child(1){left:56%;top:92%}.dashboard-stage:nth-child(2){left:51%;top:83%}.dashboard-stage:nth-child(3){left:58%;top:74%}.dashboard-stage:nth-child(4){left:63%;top:65%}.dashboard-stage:nth-child(5){left:57%;top:56%}.dashboard-stage:nth-child(6){left:50%;top:47%}.dashboard-stage:nth-child(7){left:48%;top:38%}.dashboard-stage:nth-child(8){left:46%;top:29%}.dashboard-stage:nth-child(9){left:56%;top:20%}.dashboard-stage:nth-child(10){left:49%;top:11%}
.dashboard-stage:before{content:'';position:absolute;inset:5px;z-index:-1;background:url('/gioco/assets/gamer/ability-espresso.webp') center/contain no-repeat;opacity:.16;pointer-events:none}.dashboard-stage.completed:after{content:'✓';position:absolute;right:-5px;top:-7px;display:grid;place-items:center;width:18px;height:18px;background:#f0d49d;color:#4a3019;border:1px solid #fff0c2;border-radius:50%;font-size:11px}.dashboard-stage.chapter-finale:before{background-image:url('/gioco/assets/gamer/ability-forno.webp');opacity:.23}.dashboard-stage.chapter-finale:after{content:'BOSS';position:absolute;left:50%;top:calc(100% - 3px);transform:translateX(-50%);font-size:8px;font-weight:800;letter-spacing:.06em;background:#66283c;color:#ffe6b0;border:1px solid #d9ae65;padding:2px 6px;border-radius:4px;line-height:1.3}.dashboard-stage.selected{z-index:2}.dashboard-stage.selected:before{opacity:.24}
.dashboard-map-caption{position:absolute;bottom:10px;right:13px;pointer-events:none;font-size:7px;letter-spacing:.14em;color:#ffe3a17a;font-weight:750}
.dashboard-progress{display:flex;flex-wrap:wrap;align-items:center;gap:2px 12px;padding:13px 21px 0}.dashboard-progress p{font-size:10px;line-height:1.5;color:#d0bba0;margin:0;flex:1 1 150px}.dashboard-progress a{font-size:10px;min-height:44px;display:inline-flex;align-items:center}.dashboard-phase-note{font-size:10px;color:#bba58e;line-height:1.5;margin:0 21px 12px;min-height:0}
.dashboard-dock{position:relative;z-index:3;flex:none;padding:11px 18px calc(5px + env(safe-area-inset-bottom));background:linear-gradient(#35241df5,#251913);border-top:1px solid #be955c88;box-shadow:0 -10px 25px #170e0733;display:grid;gap:8px}
.dashboard-selection{min-width:0}.dashboard-selection>span{font-weight:750;color:#fff0cc;font-size:13px;display:block;line-height:1.3}.dashboard-selection p{margin:3px 0 0;font-size:10px;line-height:1.4;color:#c4ac8d;max-height:2.9em;overflow:auto}.dashboard-dock>button{width:100%}.dashboard-bottom-nav{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;margin-top:0}.dashboard-bottom-nav img{width:28px;height:29px;object-fit:contain;display:block}.dashboard-nav-current{display:flex;align-items:center;justify-content:center;gap:5px;color:#ffe2a2;font-size:10px;font-weight:750;min-height:44px;border-top:2px solid #c39656;padding-top:3px}
.levels-launch{position:sticky;bottom:-30px;background:#2c1e19f5;border-top:1px solid #b98c5b;padding:12px 0 4px;margin-top:18px;display:grid;gap:8px;z-index:2}.levels-launch p{font-size:12px;line-height:1.5;margin:0;color:#f0d29d}.levels-launch>button{width:100%}
.story-overlay{z-index:9;padding:14px}.story-card{max-width:440px;padding:0!important;overflow:auto;box-shadow:0 25px 90px #0007;background:#2a1c17}.story-illustration{height:clamp(180px,35svh,300px);position:relative;background:radial-gradient(ellipse at 50% 70%,#bd8a3d33,transparent 70%),#241913;overflow:hidden}.story-illustration:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 65%,#2a1c17)}.story-illustration img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 42%;pointer-events:none}.story-overlay[data-step='1'] .story-illustration img,.story-overlay[data-step='2'] .story-illustration img{object-fit:contain;padding:10px 20px 0}.story-content{padding:5px 25px 22px}.story-progress{font-size:10px;color:#d0aa70;letter-spacing:.1em;margin:7px 0 12px}.story-content h2{font-size:29px;margin:0 0 14px;color:#fff0ce;line-height:1.07;letter-spacing:-.04em}.story-content>p:not(.game-eyebrow):not(.story-progress){font-size:13px;line-height:1.65;color:#deccb5;margin:0 0 20px}.story-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:8px}.story-content>button{width:100%;margin-top:10px}
@layer guadagni-firma{
 html[data-guadagni-firma] body.gamer-studio .game-dashboard [data-guadagni-control=secondary]{background:#3e2a20!important;border-color:#a98658!important;color:#f5dfbc!important;box-shadow:none!important;min-height:44px!important}
 html[data-guadagni-firma] body.gamer-studio .dashboard-map-arrows button,html[data-guadagni-firma] body.gamer-studio .dashboard-index{width:44px!important;min-width:44px!important;height:44px!important;padding:10px!important;display:grid!important;place-items:center!important}
 html[data-guadagni-firma] body.gamer-studio .dashboard-chapter-nav button{min-width:53px!important;width:53px!important;height:48px!important;min-height:48px!important;padding:3px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;font-size:10px!important;border-radius:9px!important}
 html[data-guadagni-firma] body.gamer-studio .dashboard-chapter-nav button:is([aria-pressed=true],[aria-current=true]){border-color:#f7d28b!important;background:#79532e!important;color:#fff0c9!important}
 html[data-guadagni-firma] body.gamer-studio .dashboard-stages .dashboard-stage[data-guadagni-control]{width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;padding:3px!important;border:2px solid #c9a367!important;border-radius:14px!important;background:linear-gradient(145deg,#624830,#38251b)!important;color:#ffecc8!important;font-size:17px!important;font-weight:800!important;box-shadow:0 4px 0 #24160e,0 7px 12px #130a0844,inset 0 1px #ffe3a533!important;line-height:1!important}
 html[data-guadagni-firma] body.gamer-studio .dashboard-stages .dashboard-stage.completed[data-guadagni-control]{background:linear-gradient(145deg,#8b682f,#574222)!important;border-color:#e5c780!important}
 html[data-guadagni-firma] body.gamer-studio .dashboard-stages .dashboard-stage.selected[data-guadagni-control]{background:linear-gradient(145deg,#eed39b,#b68238)!important;color:#342012!important;border-color:#fff0be!important;box-shadow:0 4px 0 #6d4522,0 0 0 4px #efc67233,0 8px 20px #1b0b0655!important}
 html[data-guadagni-firma] body.gamer-studio .dashboard-dock [data-guadagni-control=primary]{min-height:52px!important;background:linear-gradient(110deg,#9b6938,#70402a)!important;color:#fff3da!important;border-color:#d0a466!important;font-size:17px!important;font-weight:750!important;box-shadow:0 3px 0 #160d08!important}
 html[data-guadagni-firma] body.gamer-studio .dashboard-bottom-nav button[data-guadagni-control]{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;border:0!important;border-top:2px solid transparent!important;background:transparent!important;color:#ceb18d!important;font-size:10px!important;padding:3px 0 0!important;min-height:44px!important;border-radius:0!important;white-space:normal!important;line-height:1.2!important}
 html[data-guadagni-firma] body.gamer-studio .dashboard-dock>:is(#dashboard-resume,#dashboard-result){font-size:12px!important;min-height:44px!important;padding:7px 10px!important}
 html[data-guadagni-firma] body.gamer-studio .story-content [data-guadagni-control]{min-height:48px!important;font-size:12px!important}
 html[data-guadagni-firma] body.gamer-studio .story-content>#story-skip{background:transparent!important;border-color:#997c5b88!important;color:#cdb497!important}
}
@media(min-width:700px){.game-dashboard{background:radial-gradient(ellipse at center,#5d402654,#170f0bdf),url('/gioco/assets/gamer/brigata-key-art-1536.webp') center/cover}.dashboard-shell{max-width:520px}.dashboard-map-art{background-image:linear-gradient(180deg,#23170a55,#29190a05 15%,#24180a05 80%,#23170a55),url('/gioco/assets/gamer/world-map-800.webp')}.dashboard-welcome{min-height:145px}.dashboard-welcome h2{font-size:34px}.dashboard-welcome>img{height:165px;width:155px}.dashboard-dock{padding-inline:22px}.dashboard-map-world{margin-inline:18px}.story-card{max-width:460px}}
@media(max-height:730px){.dashboard-top{padding-block:calc(6px + env(safe-area-inset-top)) 6px}.dashboard-welcome{min-height:105px;padding-top:12px}.dashboard-welcome h2{font-size:26px}.dashboard-welcome>img{height:126px;width:112px}.dashboard-welcome>div>p:last-child{margin-top:7px}.dashboard-dock{gap:7px;padding-top:8px}.dashboard-selection>span{font-size:12px}.dashboard-selection p{font-size:9px}.story-illustration{height:26svh}.story-content{padding:5px 20px 18px}.story-content h2{font-size:25px}.story-content>p:not(.game-eyebrow):not(.story-progress){font-size:12px;margin-bottom:15px}}
@media(max-width:359px){.dashboard-top{padding-inline:13px}.dashboard-studio{gap:7px}.dashboard-studio img{width:56px}.dashboard-studio span{font-size:10px}.dashboard-studio b{font-size:7px}.dashboard-welcome{padding-inline:16px}.dashboard-welcome h2{font-size:25px}.dashboard-welcome>img{width:104px}.dashboard-map-heading{padding-inline:14px}.dashboard-map-hint{font-size:9px}.dashboard-chapter-nav{padding-inline:12px}.dashboard-map-world{margin-inline:8px}.dashboard-stages{margin-inline:7px}.dashboard-chapter-heading{padding-inline:10px}.dashboard-chapter-heading h3{font-size:12px}.dashboard-dock{padding-inline:13px}.dashboard-bottom-nav img{width:25px;height:27px}.dashboard-chapter-heading .chapter-emblem{width:28px}.dashboard-progress{padding-inline:15px}}
@media(prefers-reduced-motion:reduce){.game-dashboard *{animation:none!important;scroll-behavior:auto!important}.dashboard-welcome>img{filter:none}}

.dashboard-chapter-nav .dashboard-chapter-tab>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.dashboard-chapter-nav .dashboard-chapter-tab:after{content:attr(data-chapter);font-size:10px;line-height:1;color:#ebc991}.dashboard-map-world .dashboard-stage>.stage-boss-label{display:none}
.dashboard-shell>.dashboard-map-heading,.dashboard-shell>.dashboard-chapter-nav{flex:none;background:#2c1e17}.dashboard-shell>.dashboard-map-heading{padding-top:8px}.dashboard-shell>.dashboard-chapter-nav{padding-bottom:9px;border-bottom:1px solid #b28d5833}.dashboard-scroll>.dashboard-map-world{margin-top:9px}.dashboard-studio span{font-size:10px;letter-spacing:.035em}.dashboard-studio b{font-size:7px;letter-spacing:.11em}.dashboard-map-arrows button:disabled{opacity:.4}
@media(max-width:359px){.dashboard-studio img{width:52px}.dashboard-studio span{font-size:9px}.dashboard-studio b{font-size:6px}.dashboard-top{gap:8px}.dashboard-map-heading .game-eyebrow{font-size:9px}.dashboard-map-hint{font-size:9px}}
.story-overlay[data-step='2'] #story-skip{display:none!important}
@layer guadagni-firma{html[data-guadagni-firma] body.gamer-studio .story-content button[data-guadagni-control=primary],html[data-guadagni-firma] body.gamer-studio .story-content button[data-guadagni-control=primary]:is(:hover,:focus-visible,:active):not(:disabled){background:#805032!important;color:#fff0d4!important;border-color:#d1a466!important}}
@layer guadagni-firma{
 html[data-guadagni-firma] body.gamer-studio .dashboard-dock:has(#dashboard-resume:not([hidden])) #dashboard-resume{background:#805032!important;border-color:#d1a466!important;color:#fff1d4!important;min-height:52px!important;font-size:16px!important;font-weight:750!important}
 html[data-guadagni-firma] body.gamer-studio .dashboard-dock:has(#dashboard-resume:not([hidden])) #dashboard-play{background:#3e2a20!important;color:#e5cdac!important;min-height:44px!important;font-size:12px!important;box-shadow:none!important}
}
