/* =============================================================================================
   Role Makers · A+ «Atelier» (autore, 2/12/2026) — direzione artistica conclusiva.
   Attiva con la classe `aplus` sul <body> (insieme a `v5`): togliendola si torna alla v6.
   Mobile prima di tutto: le composizioni desktop sono a parte, nelle @media in fondo a ogni sezione.
   Superfici antracite stratificate e grafite, dettagli in bronzo antico, testo avorio, luce localizzata;
   arancione e ciano originali solo come accenti. Rajdhani per titoli e numeri di gioco, Inter per testo e comandi.
   Nessun effetto continuo; ombre e luci statiche; animazioni brevi solo con movimento non ridotto.
   ============================================================================================= */

body.aplus{
  /* strati di superficie, dal fondo al rilievo */
  --ap-fondo:#0E0F12; --ap-s1:#15171B; --ap-s2:#1B1D22; --ap-s3:#22252B; --ap-grafite:#2B2E34;
  /* bronzo antico */
  --ap-bronzo:#B39865; --ap-bronzo-chiaro:#D6C08F; --ap-bronzo-scuro:#6F5C3B;
  --ap-filetto:rgba(179,152,101,.26); --ap-filetto-forte:rgba(179,152,101,.55);
  /* testo */
  --ap-avorio:#ECE5D6; --ap-avorio-2:#C3BCAD; --ap-muto:#8F8C85;
  /* accenti originali */
  --ap-arancio:#FF7A33; --ap-fisico:#E8621F; --ap-ciano:#33D6E8; --ap-ciano-scuro:#1BB5C7;
  /* accenti desaturati delle famiglie del diagramma */
  --ap-f-azione:#8FB394; --ap-f-offesa:#D08A63; --ap-f-difesa:#72B3BC; --ap-f-mente:#A996CF; --ap-f-identita:#CDAE6E;
  /* ombre */
  --ap-ombra-1:0 1px 0 rgba(255,255,255,.03) inset,0 6px 18px rgba(0,0,0,.28);
  --ap-ombra-2:0 1px 0 rgba(255,255,255,.04) inset,0 14px 34px rgba(0,0,0,.42);
  /* variabili già usate dall'app, riportate al sistema A+ */
  --antracite-1:#121317; --antracite-2:#1B1D22; --pannello-v4:#1B1D22; --bordo-pannello-v4:#2C2F35; --bordo-scuro:#383B41;
  --superficie-0:#0E0F12; --superficie-1:#15171B; --superficie-2:#1B1D22; --bordo-superficie:#2C2F35;
  --testo-primario-dark:#ECE5D6; --testo-secondario-dark:#A7A49C; --testo-secondario-dark-2:#C3BCAD;
  --oro-v4:#B39865;
  background:var(--ap-fondo);
  color:var(--ap-avorio);
}
/* fondo: luce calda in alto, vignettatura ai bordi (statica, nessun costo di animazione) */
body.aplus .view:not(#view-combat){background:radial-gradient(120% 60% at 50% -8%,rgba(179,152,101,.075),transparent 60%),radial-gradient(140% 100% at 50% 110%,rgba(0,0,0,.35),transparent 60%),var(--ap-fondo);}

/* ---------------------------------------------------------------- tipografia */
body.aplus h1,body.aplus h2,body.aplus h3,body.aplus .cc-title{font-family:var(--font-title);color:var(--ap-avorio);}
body.aplus .topbar h1{font-weight:600;font-size:23px;letter-spacing:.02em;}
body.aplus .helper-text{color:var(--testo-secondario-dark);}
/* titolo di sezione: maiuscolo spaziato in avorio, losanga di bronzo, filetto che sfuma */
body.aplus .section-title{font-family:var(--font-title);font-weight:600;font-size:14.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--ap-avorio-2);gap:10px;padding-bottom:7px;
  background:linear-gradient(90deg,var(--ap-filetto-forte),var(--ap-filetto) 35%,transparent 85%) left bottom/100% 1px no-repeat;}
body.aplus .section-title>.dot,body.aplus .section-title>.dot.neutral,body.aplus .section-title>.dot.physical,body.aplus .section-title>.dot.magic{width:7px;height:7px;border-radius:0;transform:rotate(45deg);background:var(--ap-bronzo);box-shadow:0 0 0 2px rgba(179,152,101,.16);flex:none;}
body.aplus .section-title>.dot.physical{background:var(--ap-fisico);}
body.aplus .section-title>.dot.magic{background:var(--ap-ciano-scuro);}
/* occhiello: piccola etichetta in bronzo sopra un titolo */
body.aplus .ap-occhiello{font:600 11px var(--font-body);letter-spacing:.2em;text-transform:uppercase;color:var(--ap-bronzo);}

/* ---------------------------------------------------------------- contenitori: tre pesi diversi */
/* 1. sezione normale: superficie sobria, nessuna barra colorata */
body.aplus .box{background:linear-gradient(180deg,var(--ap-s2),var(--ap-s1));border:1px solid #26292E;border-radius:10px;box-shadow:var(--ap-ombra-1);}
body.aplus .box>.box-bar{display:none;}
/* 2. pannello in evidenza: luce calda localizzata e filetto di bronzo in alto */
body.aplus .in-evidenza,body.aplus .ap-evidenza{position:relative;background:radial-gradient(110% 120% at 0% 0%,rgba(179,152,101,.12),transparent 55%),linear-gradient(180deg,var(--ap-s3),var(--ap-s2));border:1px solid var(--ap-filetto);box-shadow:var(--ap-ombra-2);}
body.aplus .in-evidenza::before,body.aplus .ap-evidenza::before{content:'';position:absolute;left:18px;right:18px;top:-1px;height:1px;background:linear-gradient(90deg,transparent,var(--ap-bronzo-chiaro),transparent);opacity:.7;pointer-events:none;}
/* 3. righe ed elenchi: niente scatola, solo separatori (vedi le singole famiglie) */

/* ---------------------------------------------------------------- comandi */
body.aplus .btn{font-family:var(--font-body);font-weight:600;letter-spacing:.01em;border-radius:8px;}
body.aplus .btn-primary{background:linear-gradient(180deg,#FF8A47,var(--ap-arancio) 55%,#F26E28);border:1px solid #FF9358;color:#1A1208;box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 2px 6px rgba(255,122,51,.16);}
body.aplus .btn-primary:hover{filter:brightness(1.05);}
body.aplus .btn-primary:disabled{filter:saturate(.35) brightness(.7);box-shadow:none;}
body.aplus .btn-ghost{background:linear-gradient(180deg,#22252A,#1B1D21);border:1px solid #393C42;color:var(--ap-avorio);}
body.aplus .btn-ghost:hover{border-color:var(--ap-filetto-forte);}
body.aplus .btn:focus-visible{outline:2px solid var(--ap-bronzo-chiaro);outline-offset:2px;}
body.aplus .btn-icon{border-radius:8px;}
body.aplus .chip{background:#1F2227;border:1px solid #393C42;color:var(--ap-avorio-2);border-radius:999px;}
/* campi */
body.aplus .field label{color:var(--ap-avorio-2);font-weight:500;}
body.aplus input[type=text],body.aplus input[type=number],body.aplus input[type=search],body.aplus input[type=email],body.aplus input[type=password],body.aplus textarea,body.aplus select{background:#101114;border:1px solid #34373D;color:var(--ap-avorio);border-radius:8px;}
body.aplus input:focus,body.aplus textarea:focus,body.aplus select:focus{border-color:var(--ap-bronzo);box-shadow:0 0 0 3px rgba(179,152,101,.18);outline:none;}

/* ---------------------------------------------------------------- testata e schede */
body.aplus .topbar{background:linear-gradient(180deg,rgba(21,23,27,.96),rgba(14,15,18,.92));border-bottom:1px solid #24272C;box-shadow:0 1px 0 rgba(179,152,101,.08);}
body.aplus .tabs{border-bottom:1px solid #26292E;background:transparent;}
body.aplus .tab-btn{font-family:var(--font-body);font-weight:500;font-size:14px;letter-spacing:.01em;color:#9C998F;background:transparent;border:0;border-radius:0;position:relative;}
body.aplus .tab-btn.active,body.aplus .tab-btn[aria-pressed="true"]{color:var(--ap-avorio);background:transparent;box-shadow:inset 0 -2px 0 var(--ap-bronzo);}
body.aplus .tab-btn.active::after,body.aplus .tab-btn[aria-pressed="true"]::after{content:'';position:absolute;left:50%;bottom:-4px;width:7px;height:7px;margin-left:-3.5px;background:var(--ap-bronzo);transform:rotate(45deg);box-shadow:0 0 6px rgba(179,152,101,.6);}

/* ---------------------------------------------------------------- barra di navigazione (icone originali invariate) */
body.aplus #rm-nav{background:linear-gradient(180deg,#16181C,#0F1013);border-top:1px solid #26292E;box-shadow:0 -1px 0 rgba(179,152,101,.1);}
body.aplus .rm-nav-item{color:#8D8A82;}
body.aplus .rm-nav-item.active{color:var(--ap-avorio);background:radial-gradient(46% 60% at 50% 0%,rgba(179,152,101,.14),transparent 100%);box-shadow:inset 0 2px 0 var(--ap-bronzo);}
body.aplus .rm-nav-item.active svg{stroke:var(--ap-bronzo-chiaro);}
@media (min-width:900px){
  body.aplus #rm-nav{border-top:0;border-right:1px solid #26292E;box-shadow:1px 0 0 rgba(179,152,101,.08);}
  body.aplus .rm-nav-item.active{box-shadow:inset 3px 0 0 var(--ap-bronzo);background:radial-gradient(70% 50% at 0% 50%,rgba(179,152,101,.12),transparent 100%);}
}

/* ---------------------------------------------------------------- finestre, fumetti, stati vuoti */
body.aplus .confirm-modal{background:rgba(6,7,9,.72);}
body.aplus .cc-box{position:relative;background:radial-gradient(120% 80% at 50% 0%,rgba(179,152,101,.10),transparent 60%),linear-gradient(180deg,#1F2227,#16181C);border:1px solid var(--ap-filetto);border-radius:12px;box-shadow:0 24px 60px rgba(0,0,0,.6);}
body.aplus .cc-box::before{content:'';position:absolute;left:50%;top:-5px;width:9px;height:9px;margin-left:-4.5px;background:#1F2227;border:1px solid var(--ap-bronzo);transform:rotate(45deg);}
body.aplus .cc-title{font-weight:600;font-size:20px;letter-spacing:.02em;}
body.aplus #rm-fumetto{background:#1E2125;border:1px solid var(--ap-filetto-forte);color:var(--ap-avorio);box-shadow:0 12px 30px rgba(0,0,0,.5);}
body.aplus .rm-aiuto{border-color:var(--ap-filetto-forte);color:var(--ap-bronzo-chiaro);background:#17191D;}
body.aplus .rm-vuoto{border:1px dashed #3A3D43;background:radial-gradient(120% 90% at 50% 0%,rgba(179,152,101,.08),transparent 60%),#15171B;}
body.aplus .rm-vuoto-ico{background:#1C1F24;border-color:var(--ap-filetto);stroke:var(--ap-bronzo-chiaro);}
body.aplus .btn.btn-distruttivo{background:#E25C55;border-color:#EE6C65;color:#140B0A;box-shadow:0 1px 0 rgba(255,255,255,.2) inset;}

/* ---------------------------------------------------------------- microinterazioni (solo con movimento non ridotto) */
@media (prefers-reduced-motion:no-preference){
  html:not(.a11y-reduce-motion) body.aplus .btn,html:not(.a11y-reduce-motion) body.aplus .tab-btn,html:not(.a11y-reduce-motion) body.aplus .rm-nav-item{transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .18s ease,filter .14s ease;}
  html:not(.a11y-reduce-motion) body.aplus .cc-box{animation:ap-apri .2s cubic-bezier(.2,.7,.2,1);}
  html:not(.a11y-reduce-motion) body.aplus .view.active-view,html:not(.a11y-reduce-motion) body.aplus .tab-panel.active{animation:ap-dissolvi .18s ease-out;}
}
@keyframes ap-apri{from{opacity:0;transform:translateY(6px) scale(.985);}to{opacity:1;transform:none;}}
@keyframes ap-dissolvi{from{opacity:0;}to{opacity:1;}}
@keyframes ap-luce{0%{box-shadow:0 0 0 0 rgba(214,192,143,.55);}100%{box-shadow:0 0 0 10px rgba(214,192,143,0);}}

/* =============================================================================================
   PERSONAGGIO: testata compatta, risorse sempre visibili, diagramma riprogettato
   ============================================================================================= */
body.aplus .sheet-header{gap:12px;padding:10px 14px 10px;background:radial-gradient(90% 140% at 0% 0%,rgba(179,152,101,.10),transparent 60%),linear-gradient(180deg,#17191D,#121317);border-bottom:1px solid #25282D;}
body.aplus .header-avatar{width:52px;height:52px;flex:none;border-radius:8px;border:1px solid var(--ap-filetto-forte);box-shadow:0 0 0 3px rgba(14,15,18,.9),0 0 0 4px rgba(179,152,101,.22),0 8px 18px rgba(0,0,0,.45);background-size:cover;}
body.aplus .sheet-header .who{min-width:0;flex:1;}
body.aplus .sheet-header .name-input{font-family:var(--font-title);font-weight:700;font-size:24px;letter-spacing:.02em;color:var(--ap-avorio);background:transparent;border:1px solid transparent;padding:0 4px;margin-left:-4px;}
body.aplus .sheet-header .name-input:focus{border-color:var(--ap-filetto-forte);box-shadow:none;}
body.aplus .sheet-header .sub{font-size:12.5px;line-height:1.3;color:var(--ap-avorio-2);white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
body.aplus .sheet-header .sub .ap-lv{display:inline-block;padding:0 6px;border:1px solid var(--ap-filetto-forte);border-radius:6px;font:700 12px/1.45 var(--font-title);letter-spacing:.04em;color:var(--ap-avorio);background:#1A1C20;}
body.aplus .sheet-header .btn-icon{width:38px;height:38px;min-width:38px;}
@media (max-width:359px){
  body.aplus .sheet-header{gap:8px;padding:8px 10px;}
  body.aplus .header-avatar{width:42px;height:42px;}
  body.aplus .sheet-header .name-input{font-size:20px;}
  body.aplus .sheet-header .btn-icon{width:34px;height:34px;min-width:34px;}
}
/* HP, MP, PP, P.R.: una fascia unica sotto la testata, su ogni scheda */
body.aplus #view-sheet .risorse-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0;padding:8px 10px 9px;background:linear-gradient(180deg,#141619,#111215);border-bottom:1px solid #24272C;border-radius:0;box-shadow:none;}
body.aplus .risorse-strip:empty{display:none;}
body.aplus .risorse-strip .rs{position:relative;padding:2px 8px 0;min-width:0;border:0;background:none;}
body.aplus .risorse-strip .rs+.rs::before{content:'';position:absolute;left:0;top:4px;bottom:4px;width:1px;background:linear-gradient(180deg,transparent,#34373D,transparent);}
body.aplus .risorse-strip .rs-lab{display:flex;align-items:center;gap:4px;font:600 10.5px var(--font-body);letter-spacing:.12em;color:var(--ap-muto);}
body.aplus .risorse-strip .rs-lab svg{width:12px;height:12px;}
body.aplus .risorse-strip b{display:block;font:700 19px/1.15 var(--font-title);color:var(--ap-avorio);white-space:nowrap;}
body.aplus .risorse-strip b small{font:500 11px var(--font-body);color:var(--ap-muto);margin-left:1px;}
body.aplus .risorse-strip .rs-bar{display:block;height:3px;margin-top:4px;background:#25282D;border-radius:2px;overflow:hidden;}
body.aplus .risorse-strip .rs-bar i{display:block;height:100%;border-radius:2px;}
body.aplus .risorse-strip .rs-hp .rs-bar i{background:linear-gradient(90deg,#B44E1B,var(--ap-fisico));box-shadow:0 0 6px rgba(232,98,31,.45);}
body.aplus .risorse-strip .rs-mp .rs-bar i{background:linear-gradient(90deg,#16889A,var(--ap-ciano));box-shadow:0 0 6px rgba(51,214,232,.4);}
body.aplus .risorse-strip .rs-pp .rs-bar i{background:linear-gradient(90deg,#8E8A80,#E6E0D2);}
body.aplus .risorse-strip .rs-pr .rs-bar i{background:linear-gradient(90deg,#6F5C3B,var(--ap-bronzo-chiaro));}
@media (max-width:359px){body.aplus .risorse-strip b{font-size:16.5px;}body.aplus .risorse-strip .rs{padding:2px 5px 0;}}
@media (prefers-reduced-motion:no-preference){html:not(.a11y-reduce-motion) body.aplus .risorse-strip .rs-bar i{transition:width .32s cubic-bezier(.2,.7,.2,1);}}

/* ---- diagramma: stessi nodi, stessi 18 collegamenti, nuovo rivestimento ---- */
body.aplus .gioco-col-diagram .box{background:radial-gradient(80% 55% at 50% 42%,rgba(179,152,101,.075),transparent 70%),linear-gradient(180deg,#191B1F,#131417);border-color:#2A2D32;}
body.aplus #stat-diagram svg g[stroke] line{stroke:rgba(190,163,112,.58);stroke-width:1.35;}
body.aplus #stat-diagram svg g[stroke]:last-of-type line{stroke:rgba(190,163,112,.46);}
body.aplus #stat-diagram .dg-rect{fill:#121316;stroke:var(--ap-filetto-forte);stroke-width:.9;}
body.aplus #stat-diagram .dg-anello{fill:none;stroke:rgba(214,192,143,.20);stroke-width:.7;}
body.aplus #stat-diagram .dg-c{fill:url(#ap-nodo);stroke:#4C4537;stroke-width:1.1;}
body.aplus #stat-diagram .dg-c.dg-c-hp,body.aplus #stat-diagram .dg-c.dg-c-mp{fill:url(#ap-nodo-grande);stroke:#5A5141;stroke-width:1.3;}
body.aplus #stat-diagram .dg-arco{fill:none;stroke-width:2.1;stroke-linecap:round;stroke:var(--ap-bronzo);opacity:.95;}
body.aplus #stat-diagram .dg-arco.dg-fam-action{stroke:var(--ap-f-azione);}
body.aplus #stat-diagram .dg-arco.dg-fam-offense{stroke:var(--ap-f-offesa);}
body.aplus #stat-diagram .dg-arco.dg-fam-defense{stroke:var(--ap-f-difesa);}
body.aplus #stat-diagram .dg-arco.dg-fam-mental{stroke:var(--ap-f-mente);}
body.aplus #stat-diagram .dg-arco.dg-fam-identity{stroke:var(--ap-f-identita);}
body.aplus #stat-diagram .dg-arco.dg-c-hp{stroke:var(--ap-fisico);stroke-width:2.6;filter:drop-shadow(0 0 2px rgba(232,98,31,.55));}
body.aplus #stat-diagram .dg-arco.dg-c-mp{stroke:var(--ap-ciano);stroke-width:2.6;filter:drop-shadow(0 0 2px rgba(51,214,232,.5));}
body.aplus #stat-diagram .dg-arco.dg-c-sm{stroke:rgba(214,192,143,.55);stroke-width:1.5;}
body.aplus #stat-diagram .dg-lab{font-family:var(--font-title);font-weight:700;font-size:9.8px;letter-spacing:.7px;fill:#D2CBBB;}
body.aplus #stat-diagram .dg-input{font-family:var(--font-body);font-weight:600;font-size:14.5px;color:var(--ap-avorio);font-variant-numeric:tabular-nums;border-radius:50%;}
body.aplus #stat-diagram .dg-input[data-dg="hprim"],body.aplus #stat-diagram .dg-input[data-dg="mprim"]{font-family:var(--font-title);font-weight:700;font-size:18px;}
body.aplus #stat-diagram .dg-input.dg-ro{color:#BDB6A6;}
/* modifica: solo una sottolineatura ferma sotto il numero (niente ovale luminoso né transizione) */
body.aplus #stat-diagram .dg-input:not(.dg-ro):focus{color:var(--ap-avorio);background:transparent;box-shadow:inset 0 -2px 0 rgba(214,192,143,.85);border-radius:2px;outline:none;transition:none;}
body.aplus #stat-diagram .dg-input.dg-buffed{color:#F3D27A !important;text-shadow:0 0 8px rgba(243,210,122,.35);}
/* controlli +/− come piccole monete */
body.aplus #stat-diagram .dg-pm-btn{width:15px;height:15px;font-size:10px;border:1px solid var(--ap-filetto-forte);background:radial-gradient(circle at 50% 35%,#2B2E33,#16181B);color:var(--ap-avorio);box-shadow:0 0 0 1.5px #0F1013,0 2px 4px rgba(0,0,0,.5);}
body.aplus #stat-diagram .dg-pm-plus{color:var(--ap-arancio);border-color:rgba(255,122,51,.65);}
body.aplus #stat-diagram .dg-pm-btn:disabled{opacity:.45;}
@media (max-width:379px){body.aplus #stat-diagram .dg-pm-btn{width:14px;height:14px;font-size:9px;}body.aplus #stat-diagram .dg-input{font-size:13px;}}
body.aplus #stat-diagram .dg-input{background:transparent;border:0;box-shadow:none;}

/* =============================================================================================
   INVENTARIO (Sacchetto e Creazioni): caselle di grafite, pittogrammi in bronzo, stati distinti
   selezione = luce e cornice bronzo · su un personaggio = sigillo in alto a sinistra ·
   quantità = cifra in basso a destra · premio = stella bronzo in alto a destra
   ============================================================================================= */
body.aplus .inventory-filters{gap:6px;}
body.aplus .inventory-filter{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:6px 11px;border-radius:8px;background:linear-gradient(180deg,#1E2025,#17191D);border:1px solid #33363C;color:#B9B3A5;font:500 13px var(--font-body);}
body.aplus .inventory-filter .inventory-filter-pg{width:17px;height:17px;flex:none;color:#9E9580;--pg-accento:#9E9580;}
body.aplus .inventory-filter.active{color:var(--ap-avorio);border-color:var(--ap-filetto-forte);background:radial-gradient(90% 120% at 50% 0%,rgba(179,152,101,.2),transparent 70%),#1E2025;box-shadow:0 0 0 1px rgba(179,152,101,.18) inset;}
body.aplus .inventory-filter.active .inventory-filter-pg{color:var(--ap-bronzo-chiaro);--pg-accento:var(--ap-arancio);}
body.aplus .inventory-grid{gap:8px;}
body.aplus .inventory-tile{position:relative;border-radius:9px;background:linear-gradient(160deg,#202328,#15171A 70%);border:1px solid #2E3137;box-shadow:0 1px 0 rgba(255,255,255,.035) inset,0 4px 10px rgba(0,0,0,.3);}
body.aplus .inventory-tile::after{content:'';position:absolute;left:7px;top:7px;width:7px;height:7px;border-left:1px solid rgba(179,152,101,.35);border-top:1px solid rgba(179,152,101,.35);pointer-events:none;}
body.aplus .inventory-art{position:relative;display:grid;place-items:center;}
body.aplus .inventory-art .inventory-pg{width:58%;height:58%;color:#D3C4A0;--pg-accento:#E07A43;filter:drop-shadow(0 2px 3px rgba(0,0,0,.5));}
body.aplus .inventory-art img{filter:drop-shadow(0 3px 5px rgba(0,0,0,.55));}
body.aplus .inventory-tile:hover{border-color:#4A4438;}
body.aplus .inventory-tile.is-selected,body.aplus .inventory-tile[aria-current="true"]{border-color:var(--ap-bronzo);background:radial-gradient(80% 80% at 50% 40%,rgba(214,192,143,.2),transparent 70%),linear-gradient(160deg,#25282D,#17191C 70%);box-shadow:0 0 0 1px rgba(214,192,143,.4),0 0 8px rgba(214,192,143,.14);}
body.aplus .inventory-quantity{right:4px;bottom:3px;padding:0 4px;min-width:18px;border-radius:4px;background:rgba(10,11,13,.85);border:1px solid #3A3D43;font:600 11px/16px var(--font-body);color:var(--ap-avorio);font-variant-numeric:tabular-nums;}
body.aplus .inventory-special{border-color:rgba(214,192,143,.45);background:radial-gradient(90% 90% at 50% 30%,rgba(214,192,143,.14),transparent 70%),linear-gradient(160deg,#23252A,#16181B 70%);}
body.aplus .inventory-prize{color:var(--ap-bronzo-chiaro);text-shadow:0 0 6px rgba(214,192,143,.6);}
/* su un personaggio: sigillo (losanga piena) in alto a sinistra, al posto dell'angolare */
body.aplus .inventory-assegnato::after{border:0;width:8px;height:8px;left:6px;top:6px;background:var(--ap-arancio);transform:rotate(45deg);box-shadow:0 0 0 2px #15171A,0 0 6px rgba(255,122,51,.6);}
body.aplus .inventory-su{display:none;}
body.aplus .inventory-tile-name{color:var(--ap-avorio-2);}
/* dettaglio dell'oggetto */
body.aplus .inventory-details,body.aplus .inventory-inline{background:radial-gradient(100% 60% at 50% 0%,rgba(179,152,101,.1),transparent 60%),linear-gradient(180deg,#1C1E23,#141619);border:1px solid var(--ap-filetto);border-radius:12px;color:var(--ap-avorio);box-shadow:var(--ap-ombra-2);}
body.aplus .inventory-detail-head{border-bottom:1px solid #2C2F35;}
body.aplus .inventory-detail-art{border-radius:10px;background:radial-gradient(circle at 50% 40%,#2A2D33,#131417);border:1px solid var(--ap-filetto-forte);}
body.aplus .inventory-detail-art .inventory-pg{color:#DCCDA8;--pg-accento:#E07A43;}
body.aplus .inventory-type{font:600 11px var(--font-body);letter-spacing:.16em;text-transform:uppercase;color:var(--ap-bronzo);}
body.aplus .inventory-details h2,body.aplus .inventory-detail-head h2{font-family:var(--font-title);font-weight:700;font-size:24px;}
body.aplus .inventory-effect{border-left:2px solid var(--ap-bronzo);background:linear-gradient(90deg,rgba(179,152,101,.12),transparent);}
body.aplus .inventory-stat-grid dt,body.aplus .inventory-stat-grid span{color:var(--ap-muto);}
body.aplus .inventory-stat-grid dd,body.aplus .inventory-stat-grid b{color:var(--ap-avorio);font-variant-numeric:tabular-nums;}
body.aplus .inventory-description{font-style:italic;color:#D5CEBE;}
@media (prefers-reduced-motion:no-preference){
  html:not(.a11y-reduce-motion) body.aplus .inventory-tile{transition:border-color .14s ease,box-shadow .2s ease,background .2s ease;}
  html:not(.a11y-reduce-motion) body.aplus .inventory-tile.is-selected{animation:ap-luce .45s ease-out;}
}
body.aplus .inventory-art .inventory-pg{width:64%;height:64%;}

/* =============================================================================================
   STORIE, MONDI, CAMPAGNE, COMPENDIO: la copertina originale è la superficie della carta.
   Sfumatura asimmetrica solo dove sta il testo; il resto dell'illustrazione resta pulito.
   ============================================================================================= */
body.aplus .storia-mondo{position:relative;display:block;min-height:200px;overflow:hidden;border:1px solid #3A3529;border-radius:12px;background:#111214;box-shadow:var(--ap-ombra-2);}
body.aplus .storia-mondo .storia-mondo-copertina{position:absolute;inset:0;width:100%;height:100%;min-height:0;object-fit:cover;object-position:70% 30%;border:0;}
body.aplus .storia-mondo::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,12,14,.94) 0%,rgba(11,12,14,.82) 38%,rgba(11,12,14,.25) 72%,rgba(11,12,14,0) 100%),linear-gradient(0deg,rgba(11,12,14,.55),transparent 45%);pointer-events:none;}
body.aplus .storia-mondo::after{content:'';position:absolute;left:16px;right:16px;top:-1px;height:1px;background:linear-gradient(90deg,var(--ap-bronzo-chiaro),transparent 70%);opacity:.7;}
body.aplus .storia-mondo .box-pad{position:relative;z-index:1;max-width:72%;padding:18px 18px 16px;display:flex;flex-direction:column;gap:6px;}
body.aplus .storia-mondo h2{font-family:var(--font-title);font-weight:700;font-size:30px;letter-spacing:.04em;margin:0 !important;text-shadow:0 2px 10px rgba(0,0,0,.6);}
body.aplus .storia-mondo .helper-text{margin:0;color:#D2CBBB;text-shadow:0 1px 6px rgba(0,0,0,.7);}
body.aplus .storia-mondo .helper-text[style*="italic"]{font-family:var(--font-body);font-size:13.5px;line-height:1.45;color:#E6DECD;}
body.aplus .storia-mondo .btn{align-self:flex-start;margin-top:6px;}
@media (min-width:900px){body.aplus .storia-mondo{display:block;min-height:240px;}body.aplus .storia-mondo .box-pad{max-width:56%;padding:24px 26px;}body.aplus .storia-mondo h2{font-size:36px;}}

/* carta di una storia con Narratore: copertina del mondo se c'è, altrimenti stemma */
body.aplus .storia-editoriale{position:relative;display:block;min-height:150px;overflow:hidden;border-radius:12px;border:1px solid #3A3529;background:linear-gradient(160deg,#1E2025,#141619);}
body.aplus .storia-editoriale .storia-editoriale-copertina{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% 30%;border:0;}
body.aplus .storia-editoriale:has(.storia-editoriale-copertina)::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,12,14,.94),rgba(11,12,14,.78) 45%,rgba(11,12,14,.1) 100%);}
body.aplus .storia-editoriale .storia-editoriale-stemma{position:absolute;right:14px;top:14px;width:64px;height:64px;min-height:0;border:1px solid var(--ap-filetto-forte);border-radius:50%;font-size:28px;background:radial-gradient(circle at 50% 40%,rgba(179,152,101,.25),transparent 70%),#17191D;}
body.aplus .storia-editoriale .box-pad{position:relative;z-index:1;max-width:78%;}
body.aplus .storia-editoriale-titolo{font-size:22px !important;}

/* Compendio: il manuale e i mondi con la loro copertina come superficie */
body.aplus .library-item-card.con-copertina{position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;min-height:190px;padding:16px;overflow:hidden;border:1px solid #3A3529;border-radius:12px;background:#111214;box-shadow:var(--ap-ombra-2);}
body.aplus .library-item-card.con-copertina .library-item-art{position:absolute;inset:0;width:auto;height:auto;border:0;border-radius:0;background:none;}
body.aplus .library-item-card.con-copertina .library-item-art img{object-position:70% 30%;}
body.aplus .library-item-card.con-copertina::before{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(11,12,14,.93),rgba(11,12,14,.7) 50%,rgba(11,12,14,.05)),linear-gradient(0deg,rgba(11,12,14,.6),transparent 50%);}
body.aplus .library-item-card.con-copertina .info,body.aplus .library-item-card.con-copertina>.btn{position:relative;z-index:2;max-width:74%;}
body.aplus .library-item-card.con-copertina>.btn{margin-top:10px;}
body.aplus .library-item-card .name{font-family:var(--font-title);font-weight:700;font-size:26px;}
@media (max-width:1099px){body.aplus .library-item-card.con-copertina{display:flex;padding:16px;}body.aplus .library-item-card.con-copertina .library-item-art{grid-row:auto;width:auto;min-height:0;}body.aplus .library-item-card.con-copertina .info{padding:0;}body.aplus .library-item-card.con-copertina>.btn{grid-column:auto;margin:10px 0 0;}}

/* dettaglio di una storia e pagina del mondo: copertina in testa, sfumata solo in basso */
body.aplus .storia-hero-copertina{border-color:#3A3529;box-shadow:var(--ap-ombra-2);}
body.aplus .setting-cover img,body.aplus .setting-figure img{border-radius:10px;border:1px solid #3A3529;box-shadow:var(--ap-ombra-2);}
body.aplus .setting-quote{font-family:var(--font-body);font-style:italic;color:#E2DACA;}
body.aplus .storia-premessa>p{border-left-color:var(--ap-bronzo);background:linear-gradient(90deg,rgba(179,152,101,.1),transparent 70%);}
/* Le tue storie (campagne): stemma e stato */
body.aplus #acc-campaign-list .char-card{border:1px solid #2E3137;background:radial-gradient(80% 120% at 0% 0%,rgba(179,152,101,.1),transparent 60%),linear-gradient(180deg,#1C1E23,#15171A);}
/* Solitaria: avventure come carte con un filetto di bronzo */
body.aplus .solo-slot{border-color:#2E3137 !important;background:radial-gradient(90% 120% at 0% 0%,rgba(179,152,101,.09),transparent 60%),linear-gradient(180deg,#1C1E23,#15171A) !important;}
body.aplus .solo-slot::before{background:linear-gradient(180deg,var(--ap-bronzo-chiaro),var(--ap-bronzo-scuro)) !important;}
body.aplus .solo-h2{font-family:var(--font-title);color:var(--ap-bronzo-chiaro) !important;letter-spacing:.06em;}
body.aplus .storia-mondo .storia-mondo-copertina,body.aplus .storia-editoriale .storia-editoriale-copertina{z-index:0;}
body.aplus .storia-mondo::before,body.aplus .storia-editoriale:has(.storia-editoriale-copertina)::before{z-index:1;}
body.aplus .storia-mondo::after{z-index:2;}
body.aplus .storia-mondo .box-pad,body.aplus .storia-editoriale .box-pad{z-index:2;}
@media (min-width:1100px){body.aplus #adventures-list{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:1240px;}body.aplus #adventures-list>.box{margin:0;}}

/* =============================================================================================
   ZAINO (Equipaggiamento): stesse caselle del Sacchetto, pittogrammi della stessa famiglia
   ============================================================================================= */
body.aplus .zaino-grid{gap:8px;}
body.aplus .zaino-slot{position:relative;border:1px dashed #2A2D32;border-radius:9px;background:rgba(255,255,255,.012);}
body.aplus .zaino-slot.filled{border:1px solid #2E3137;background:linear-gradient(160deg,#202328,#15171A 70%);box-shadow:0 1px 0 rgba(255,255,255,.035) inset,0 4px 10px rgba(0,0,0,.3);color:#D3C4A0;--pg-accento:#E07A43;}
body.aplus .zaino-slot.filled::after{content:'';position:absolute;left:6px;top:6px;width:6px;height:6px;border-left:1px solid rgba(179,152,101,.35);border-top:1px solid rgba(179,152,101,.35);}
body.aplus .zaino-slot.filled:hover,body.aplus .zaino-slot.filled:focus-visible{border-color:var(--ap-bronzo);box-shadow:0 0 0 1px rgba(214,192,143,.35),0 0 14px rgba(214,192,143,.16);}
body.aplus .zaino-pg{width:58%;height:58%;filter:drop-shadow(0 2px 3px rgba(0,0,0,.5));}
body.aplus .zaino-slot.zaino-icon-hp{--pg-accento:var(--ap-fisico);}
body.aplus .zaino-slot.zaino-icon-mp{--pg-accento:var(--ap-ciano);}
body.aplus .zaino-slot.zaino-icon-buff{--pg-accento:var(--ap-bronzo-chiaro);}
body.aplus .zaino-qta{position:absolute;right:4px;bottom:3px;padding:0 4px;min-width:16px;border-radius:4px;background:rgba(10,11,13,.85);border:1px solid #3A3D43;font:600 10.5px/15px var(--font-body);color:var(--ap-avorio);font-variant-numeric:tabular-nums;}
@media (prefers-reduced-motion:no-preference){html:not(.a11y-reduce-motion) body.aplus .zaino-slot.filled{transition:border-color .14s ease,box-shadow .2s ease;}}

/* =============================================================================================
   SCONTRO: le finestre restano sempre nella palette A+ (la variante chiara riguarda solo il tabellone)
   ============================================================================================= */
body.aplus #combat-scene-modal,body.aplus #combat-environmental-modal,body.aplus #combat-own-actions-menu,
body.aplus #combat-target-picker,body.aplus #combat-source-picker,body.aplus #combat-flags-modal,body.aplus #combat-reveal-picker{
  --antracite-1:#14161A;--antracite-2:#1E2126;--pannello-v4:#1E2126;--bordo-pannello-v4:#3A3F47;--bordo-scuro:#3A3D43;
  --testo-primario-dark:var(--ap-avorio);--testo-secondario-dark:#A9A496;--testo-secondario-dark-2:#C9C3B4;color:var(--ap-avorio);
}
body.aplus #combat-flags-modal .chk-inline{justify-content:flex-start;gap:10px;padding:10px 12px;font-size:14px;color:var(--ap-avorio);background:linear-gradient(180deg,#1E2025,#17191D);border-color:#33363C;border-radius:9px;}
body.aplus #combat-flags-modal .chk-inline:has(input:checked){border-color:var(--ap-filetto-forte);background:radial-gradient(90% 120% at 0% 50%,rgba(179,152,101,.16),transparent 70%),#1E2025;}
body.aplus #combat-flags-modal .cc-box>p{color:#B9B3A5;}

/* avviso breve (toast): lastra di grafite con filetto bronzo, non più pillola bianca */
body.aplus #toast{background:linear-gradient(180deg,#24262B,#1A1C20);color:var(--ap-avorio);border:1px solid var(--ap-filetto-forte);font-family:var(--font-body);font-weight:500;font-size:13px;border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.55),0 0 0 1px rgba(0,0,0,.4);}

/* titoli editoriali (Il tuo tavolo, Account): losanga di bronzo al posto della barretta grigia */
body.aplus .home-section-title,body.aplus .account-progress-body h3{font-family:var(--font-title);font-weight:700;letter-spacing:.03em;}
body.aplus .home-section-title::before,body.aplus .account-progress-body h3::before{width:7px;height:7px;border-radius:0;transform:rotate(45deg);background:var(--ap-bronzo);box-shadow:0 0 0 2px rgba(179,152,101,.16);}
body.aplus .home-section-title::after,body.aplus .account-progress-body h3::after{content:'';flex:1;height:1px;margin-left:6px;background:linear-gradient(90deg,var(--ap-filetto-forte),transparent 80%);}

/* =============================================================================================
   MICROINTERAZIONI di gioco: acquisizione, riconoscimento, progressione, apertura dei dettagli.
   Brevi (≤ .6 s), una sola volta, solo opacità/trasformazioni; spente con il movimento ridotto.
   ============================================================================================= */
body.aplus .ap-acquisito{display:grid;place-items:center;width:64px;height:64px;margin:2px auto 12px;border-radius:50%;color:#DCCDA8;--pg-accento:var(--ap-arancio);
  background:radial-gradient(circle at 50% 40%,rgba(214,192,143,.22),transparent 68%),#17191D;border:1px solid var(--ap-filetto-forte);box-shadow:0 0 0 4px rgba(179,152,101,.07);}
body.aplus .ap-acquisito .zaino-pg{width:34px;height:34px;}
@media (prefers-reduced-motion:no-preference){
  html:not(.a11y-reduce-motion) body.aplus .ap-acquisito{animation:ap-acquisisci .6s cubic-bezier(.2,.7,.2,1) both;}
  html:not(.a11y-reduce-motion) body.aplus .ap-lv.ap-sale{animation:ap-sale .6s ease-out;}
  html:not(.a11y-reduce-motion) body.aplus .achievement-detail>.achievement-icon{animation:ap-acquisisci .55s cubic-bezier(.2,.7,.2,1) both;}
  html:not(.a11y-reduce-motion) body.aplus .inventory-details{animation:ap-apri .2s cubic-bezier(.2,.7,.2,1);}
}
@keyframes ap-acquisisci{0%{opacity:0;transform:scale(.7);box-shadow:0 0 0 0 rgba(214,192,143,.6);}60%{opacity:1;transform:scale(1.04);}100%{transform:none;box-shadow:0 0 0 14px rgba(214,192,143,0);}}
@keyframes ap-sale{0%{box-shadow:0 0 0 0 rgba(255,122,51,.6);border-color:var(--ap-arancio);}100%{box-shadow:0 0 0 12px rgba(255,122,51,0);}}

/* telefoni stretti (≤ 359 px): il nome del tratto su una riga intera, i comandi sotto — mai «Geo-gra-fia» */
@media (max-width:359px){
  body.aplus .trait-row{flex-wrap:wrap;row-gap:6px;}
  body.aplus .trait-row .t-name{flex:1 1 100%;hyphens:manual;overflow-wrap:normal;}
  body.aplus .trait-row .trait-stepper{margin-left:auto;}
}

/* Colore pieno sotto ogni gradiente dei componenti con testo: se il gradiente non si disegna (o un controllo di
   contrasto legge solo background-color) il testo resta sempre sul fondo giusto, mai sul bianco del tabellone. */
body.aplus .box{background-color:#15171A;}
body.aplus .in-evidenza,body.aplus .ap-evidenza{background-color:#1A1C20;}
body.aplus .btn-primary{background-color:#FF7A33;}
body.aplus .btn-ghost{background-color:#1B1D21;}
body.aplus .topbar{background-color:#0E0F12;}
body.aplus #rm-nav{background-color:#0F1013;}
body.aplus .cc-box{background-color:#16181C;}
body.aplus .sheet-header{background-color:#121317;}
body.aplus #view-sheet .risorse-strip{background-color:#111215;}
body.aplus .gioco-col-diagram .box{background-color:#131417;}
body.aplus .inventory-filter,body.aplus #combat-flags-modal .chk-inline{background-color:#17191D;}
body.aplus .inventory-tile,body.aplus .zaino-slot.filled,body.aplus #acc-campaign-list .char-card{background-color:#15171A;}
body.aplus .inventory-details,body.aplus .inventory-inline,body.aplus .storia-editoriale{background-color:#141619;}
body.aplus #toast{background-color:#1A1C20;}

/* =============================================================================================
   REVISIONE CONCLUSIVA A+ (autore, 2/12/2026): densità, leggibilità, spazio. Nessun nuovo stile.
   ============================================================================================= */

/* ---- A · Home: logo e motto proporzionati all'altezza disponibile, «Continua come ospite» sempre a vista,
   il modulo non finisce mai sotto la barra (scorre solo .cover-scroll, sopra la barra) */
body.aplus .cover-header{padding-top:calc(62px + var(--safe-top));}
body.aplus .cover-top-image{max-width:min(300px,31vh);max-width:min(300px,31dvh);}
body.aplus .cover-payoff{margin-top:8px;}
body.aplus .cover-payoff-image{max-width:min(320px,33vh);max-width:min(320px,33dvh);}
body.aplus .cover-content{padding-top:14px;gap:12px;padding-bottom:calc(20px + var(--safe-bottom));}
body.aplus .cover-actions{gap:10px;margin-top:0;}
body.aplus .cover-ospite{width:100%;min-height:46px;font-size:15px;font-weight:600;color:var(--ap-avorio);border:1px solid var(--ap-filetto-forte);background:linear-gradient(180deg,#22242A,#1A1C20);background-color:#1B1D21;}
body.aplus .cover-ospite-nota{font-size:12.5px;line-height:1.45;}
body.aplus #acc-authmode-toggle{gap:4px;}
body.aplus #acc-auth-form .field{margin-bottom:8px;}
@media (max-height:620px){body.aplus .cover-header{padding-top:calc(58px + var(--safe-top));}}
/* desktop: marchio e motto a sinistra, accesso a destra; il marchio resta in alto e il motto nella metà superiore,
   come chiesto il 18/9/2026 (tests/e2e/brand-cover.spec.js), l'accesso centrato nell'altezza */
@media (min-width:900px){
  body.aplus .cover-scroll{display:grid;grid-template-columns:minmax(300px,460px) minmax(340px,400px);grid-template-rows:auto auto 1fr;
    grid-template-areas:"marchio acc" "motto acc" ". acc";justify-content:center;column-gap:clamp(48px,7vw,120px);padding:clamp(24px,6vh,72px) 32px 24px;}
  body.aplus .cover-header{grid-area:marchio;padding:0;}
  body.aplus .cover-top-image{max-width:min(420px,46vh);}
  body.aplus .cover-payoff{grid-area:motto;margin-top:16px;padding:0;}
  body.aplus .cover-payoff-image{max-width:min(450px,49vh);}
  body.aplus .cover-content{grid-area:acc;align-self:center;padding:0;}
  body.aplus .cover-actions{max-width:none;padding:22px;border:1px solid #2A2D33;border-radius:12px;
    background:linear-gradient(180deg,rgba(179,152,101,.06),transparent 40%),#131417;box-shadow:var(--ap-ombra-2),inset 0 1px 0 rgba(214,192,143,.12);}
}
/* account permanente: accountStatusHtml() non mette niente in copertina; senza questa riga resta la scheda vuota (2/12) */
body.aplus .cover-actions:empty{display:none!important;}
body.aplus .cover-content>.update-banner{order:0;}
body.aplus .cover-content>.cover-actions{order:1;}
body.aplus .cover-content>[data-getting-started]{order:2;}
body.aplus .cover-actions a{color:var(--ap-bronzo-chiaro);}
@media (min-width:900px){
  body.aplus #acc-submit-auth{align-self:stretch;min-height:42px;}
  body.aplus #rm-nav{justify-content:flex-start;gap:6px;}
  body.aplus .rm-nav-item{flex:none;min-height:66px;justify-content:center;}
}
/* ---- A · Il tuo tavolo: luce dei pulsanti contenuta nel pulsante, personaggi recenti in griglia adattiva (nessuna carta tagliata) */
body.aplus #home-characters-row .home-card-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;overflow:visible;padding:0;margin:0;scroll-snap-type:none;}
body.aplus #home-characters-row .home-mini-card{width:auto;min-width:0;max-width:none;flex:none;min-height:58px;padding:8px 12px 8px 8px;}
body.aplus #home-characters-row .hmc-testo{min-width:0;}
body.aplus #home-characters-row .hmc-volto{width:38px;height:38px;flex:none;}
body.aplus #home-characters-row .hmc-meta{font-size:12px;}
body.aplus #home-characters-row .hmc-title,body.aplus #home-characters-row .hmc-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.aplus .home-resume-card .hr-volto{flex:none;width:44px;height:44px;border-radius:8px;border:1px solid var(--ap-filetto-forte);background-size:cover;background-position:center;display:grid;place-items:center;font-family:var(--font-title);font-weight:700;font-size:20px;color:var(--ap-avorio-2);background-color:#1B1D22;}
@media (min-width:900px){
  body.aplus #view-home .home-scroll{max-width:1180px;margin:0 auto;padding-top:40px;row-gap:28px;}
  body.aplus #home-characters-row .home-card-row{grid-template-columns:repeat(2,minmax(0,1fr));}
}
/* ---- B · Creazione guidata: pulsanti leggibili, stato disabilitato leggibile ma spento, descrizioni compatte */
body.aplus .wiz-nav-wrap{background:linear-gradient(180deg,rgba(14,15,18,0),#0E0F12 22%);background-color:transparent;padding-top:14px;}
body.aplus .wiz-nav .btn{min-height:46px;font-size:15px;font-weight:600;letter-spacing:.01em;}
body.aplus .wiz-nav #wiz-prev{color:var(--ap-avorio);border-color:#3A3D44;}
body.aplus .wiz-nav .btn:disabled{opacity:1;filter:none;background:#1B1D21;background-image:none;border:1px dashed #4A4D54;color:#9A968C;box-shadow:none;}
body.aplus .wiz-next-hint{font-size:12.5px;line-height:1.4;color:#C9B88F;text-align:left;margin:0 0 8px;}
body.aplus .cg-tendina{margin:0 0 10px;padding-left:0;gap:4px;font-size:13px;}
body.aplus .cg-tendina select{min-height:38px;font-size:13.5px;}
body.aplus .cg-motivo{opacity:1;color:var(--testo-secondario-dark);line-height:1.4;}
body.aplus .cg-ruolo{display:inline-block;margin-right:4px;padding:0 6px;border-radius:4px;font-weight:600;font-size:11.5px;color:#E7CF9E;background:rgba(179,152,101,.14);}
body.aplus .cg-ruolo-no{color:#9A968C;background:rgba(255,255,255,.05);}
body.aplus .cg-intervallo{color:#8F8C85;white-space:nowrap;}
body.aplus .build-card .bc-gioco{margin:4px 0 6px;font-size:13.5px;line-height:1.4;color:var(--ap-avorio-2);}
body.aplus .build-card .bc-per{font-size:11px;color:#8F8C85;}
body.aplus .build-card.locked{opacity:.55;}
body.aplus #view-create #retro-build-note{font-size:12.5px;}
body.aplus #cg-tecab .helper-text .btn,body.aplus #cg-tecab .cg-chips .btn{display:inline-flex;width:auto;margin:0 6px 6px 0;vertical-align:top;}
body.aplus #cg-tecab .cg-chips{display:flex;flex-wrap:wrap;gap:0;}
body.aplus #cg-tecab .helper-text b:first-child{color:var(--ap-avorio);}
body.aplus #view-create #retro-build-note{display:none;}
/* ---- C · Fronte Scheda: diagramma più largo, campo Danno leggibile ---- */
body.aplus .diagram-wrap{max-width:460px;}
@media (min-width:700px){body.aplus .diagram-wrap{max-width:560px;}}
body.aplus .bar-controls #hp-dmg-input{width:auto;flex:1 1 96px;min-width:96px;max-width:160px;font-size:14px;padding:8px 6px;}
/* Azioni del Fronte Scheda in tre gruppi funzionali: stesso contenuto, stessi comandi */
.ap-gruppo-azioni{display:flex;flex-direction:column;gap:8px;}
.ap-gruppo-tit{margin:10px 0 0;font:700 12px/1.2 var(--font-title);letter-spacing:.18em;text-transform:uppercase;color:var(--testo-secondario-dark-2);}
body.aplus .ap-gruppo-tit{color:var(--ap-bronzo-chiaro);display:flex;align-items:center;gap:10px;}
body.aplus .ap-gruppo-tit::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--ap-filetto-forte),transparent);}
body.aplus .ap-gruppo-azioni .section-title{font-size:13.5px;}
/* riepilogo Livello/P.R./Iniziativa/Build: una sola riga compatta invece di quattro riquadri grandi */
body.aplus .ap-gr-gestione .hud-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;}
body.aplus .ap-gr-gestione .hud-tile{min-width:0;padding:7px 8px;}
body.aplus .ap-gr-gestione .hud-tile .ht-label{font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.aplus .ap-gr-gestione .hud-tile .ht-value{font-size:17px;}
body.aplus .ap-gr-gestione .hud-tile #hud-build{font-size:13px !important;overflow:hidden;text-overflow:ellipsis;}
body.aplus .ap-gr-gestione .hud-tile .ht-sub{font-size:9.5px;}
body.aplus .ap-gr-gestione .hud-tile .ht-sub .inline-max-input{width:3.2em;}
/* Scheda Livelli: la tabella dei limiti sta nella larghezza anche a 320 px (l'intestazione con le barre andava a capo male) */
[data-panel="livelli"] table.data-table th{overflow-wrap:anywhere;}
@media (max-width:420px){
  [data-panel="livelli"] table.data-table thead th,[data-panel="livelli"] table.data-table tbody td{padding:7px 5px;}
  [data-panel="livelli"] table:has(#level-table-body) td:nth-child(3){white-space:nowrap;}
}
@media (max-width:359px){body.aplus .ap-gr-gestione .hud-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
/* I tuoi personaggi: le famiglie di statistiche usano gli stessi colori degli archi del diagramma */
body.aplus{--rm-stat-offense:var(--ap-f-offesa);--rm-stat-defense:var(--ap-f-difesa);--rm-stat-action:var(--ap-f-azione);--rm-stat-mental:var(--ap-f-mente);--rm-stat-identity:var(--ap-f-identita);}

/* ---- D · pulsanti sopra le illustrazioni: più compatti, sempre leggibili, allineati in basso al testo ---- */
body.aplus .storia-mondo .btn{min-height:38px;padding:7px 14px;font-size:14px;margin-top:8px;box-shadow:0 2px 10px rgba(0,0,0,.45);}
body.aplus .storia-mondo .box-pad{min-height:200px;justify-content:flex-end;}
body.aplus .storia-mondo::before{background:linear-gradient(90deg,rgba(11,12,14,.95) 0%,rgba(11,12,14,.86) 42%,rgba(11,12,14,.3) 74%,rgba(11,12,14,0) 100%),linear-gradient(0deg,rgba(11,12,14,.7),transparent 50%);}
@media (min-width:900px){body.aplus .storia-mondo .box-pad{min-height:240px;}}
@media (max-width:379px){body.aplus .storia-mondo .box-pad{max-width:80%;padding:14px;}body.aplus .storia-mondo h2{font-size:25px;}}
/* Genera PNG: il campo Livello è stretto (numero), così la classe non si tronca */
#npc-randomizer-modal .field-row,.cc-box:has(#npc-rand-build) .field-row{display:flex;gap:10px;}
.cc-box:has(#npc-rand-build) .field-row>.field{flex:1 1 0;min-width:0;}
.cc-box:has(#npc-rand-build) .field-row>.field:has(#npc-rand-level){flex:0 0 76px;}
.cc-box:has(#npc-rand-build) select{min-width:0;padding-right:26px;}
@media (max-width:429px){.cc-box:has(#npc-rand-build) .field-row:has(#npc-rand-quality){flex-direction:column;gap:6px;}}
.cc-box:has(#npc-rand-build) #npc-rand-roll{white-space:nowrap;}

/* ---- I · Traguardi: card compatte e di larghezza uniforme; acquisite appena più ricche, bloccate più asciutte ---- */
body.aplus #account-progress-root .achievement-grid,body.aplus .account-progress-content .achievement-grid{display:grid;grid-template-columns:1fr;gap:6px;}
body.aplus .achievement-card,body.aplus .achievement-card.acquired{width:100%;box-sizing:border-box;margin:0;padding:8px 10px;row-gap:1px;column-gap:9px;min-height:0;grid-template-columns:20px minmax(0,1fr) auto;}
body.aplus .achievement-card>.achievement-icon{width:20px;height:20px;grid-row:1/span 4;margin-top:1px;}
body.aplus .achievement-card>.inventory-type{font-size:9.5px;letter-spacing:.12em;line-height:1.3;}
body.aplus .achievement-card>b{font-size:14.5px;line-height:1.25;margin:0;}
body.aplus .achievement-card>span:not(.inventory-type):not(.achievement-state):not(.achievement-premio){font-size:12.5px;line-height:1.35;margin:0;}
body.aplus .achievement-card>.achievement-state{font-size:10.5px;padding:1px 6px;line-height:1.4;}
body.aplus .achievement-card:not(.acquired){padding:6px 10px;opacity:.88;}
body.aplus .achievement-card:not(.acquired) .achievement-state{color:var(--testo-secondario-dark);border-color:#3A3F47;}
body.aplus .achievement-premio{margin-top:3px;padding:0 7px;font-size:10.5px;line-height:1.6;}
body.aplus .account-progress-filters{display:flex;flex-direction:column;gap:6px;}
body.aplus .account-progress-filters .inventory-filter{min-height:32px;padding:4px 11px;font-size:13px;}
@media (min-width:700px){body.aplus #account-progress-root .achievement-grid,body.aplus .account-progress-content .achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}}
@media (min-width:1100px){body.aplus #account-progress-root .achievement-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
body.aplus .achievement-card>.achievement-premio{justify-self:start;width:auto;max-width:100%;}

/* ---- G · Inventari: pittogrammi ~18% più grandi nella stessa cella, colore per famiglia (desaturato, distinto dalla rarità) ---- */
body.aplus .inventory-art .inventory-pg{width:76%;height:76%;}
body.aplus .inventory-pg.inv-fam-armi{color:#C9A28C;--pg-accento:#D9875A;}
body.aplus .inventory-pg.inv-fam-munizioni{color:#BBA98F;--pg-accento:#C98A5E;}
body.aplus .inventory-pg.inv-fam-armature{color:#AEB8C2;--pg-accento:#8FA3B5;}
body.aplus .inventory-pg.inv-fam-scudi{color:#A3B4AA;--pg-accento:#86A394;}
body.aplus .inventory-pg.inv-fam-consumabili{color:#ABC1A4;--pg-accento:#8FB394;}
body.aplus .inventory-pg.inv-fam-chiavi,body.aplus .inventory-pg.inv-fam-oggetto{color:#CBC2AE;--pg-accento:#B89E73;}
body.aplus .inventory-pg.inv-fam-carte{color:#C2B394;--pg-accento:#A88E63;}
body.aplus .inventory-pg.inv-fam-png{color:#B5A9C6;--pg-accento:#9C8BBA;}
body.aplus .inventory-pg.inv-fam-set{color:#A9BBC6;--pg-accento:#72B3BC;}
body.aplus .inventory-pg.inv-fam-premi{color:#D3C4A0;--pg-accento:#E07A43;}

/* ---- G · Equipaggiamento: silhouette in metallo satinato avorio invece del ciano da progetto tecnico
   (stessa anatomia, stesse coordinate e interazioni; stati: libero, indossato, selezionato) ---- */
body.aplus .equip-blueprint{background:linear-gradient(180deg,#1B1C1F,#151619);border-color:#33302A;}
body.aplus .eb-drawing{background-image:linear-gradient(rgba(214,192,143,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(214,192,143,.035) 1px,transparent 1px);}
body.aplus .eb-contour{stroke:rgba(201,190,168,.42);fill:rgba(214,205,186,.03);}
body.aplus .eb-contour.occupata{stroke:rgba(226,214,190,.9);fill:rgba(214,205,186,.10);}
body.aplus .eb-seam{stroke:#8F8678;opacity:.45;}
body.aplus .eb-axis{stroke:#8F8678;opacity:.2;}
body.aplus .eb-light{fill:rgba(214,192,143,.16);stroke:#E3CF9F;filter:drop-shadow(0 0 3px rgba(214,192,143,.4));}
body.aplus .eb-dot{fill:#CFC3AA;}
body.aplus .eb-target.on .eb-dot{fill:#F1E3C2;filter:drop-shadow(0 0 2px rgba(214,192,143,.8));}
body.aplus .eb-caption{color:var(--ap-bronzo-chiaro);}
body.aplus .eb-locations button{color:#CFC6B4;border-bottom-color:#2E2B26;}
body.aplus .eb-locations button span{color:#9A9180;}
body.aplus .eb-locations button[aria-pressed="true"]{color:var(--ap-avorio);background:linear-gradient(90deg,rgba(214,192,143,.14),transparent);border-bottom-color:rgba(214,192,143,.6);}
body.aplus .eb-locations button[aria-pressed="true"] .eb-nome small{color:var(--ap-bronzo-chiaro);}
body.aplus .eb-locations button:disabled{opacity:.45;}

/* ---- F · Solitaria: impostazioni tecniche del Narratore IA in fondo e richiudibili; mondi con la copertina come in Storie ---- */
.solo-impostazioni-ia>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;font-size:13px;}
.solo-impostazioni-ia>summary::before{content:"▸";color:var(--testo-secondario-dark);}
.solo-impostazioni-ia[open]>summary::before{content:"▾";}
body.aplus .solo-impostazioni-ia{margin-top:18px;opacity:.92;}
body.aplus .solo-choice-illustrata{position:relative;overflow:hidden;min-height:150px;text-align:left;display:flex;flex-direction:column;justify-content:flex-end;gap:4px;padding:16px;border:1px solid #3A3529;border-radius:12px;background:#111214;}
body.aplus .solo-choice-illustrata .solo-choice-copertina{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% 30%;z-index:0;}
body.aplus .solo-choice-illustrata::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(11,12,14,.95),rgba(11,12,14,.8) 45%,rgba(11,12,14,.15));}
body.aplus .solo-choice-illustrata>b,body.aplus .solo-choice-illustrata>span{position:relative;z-index:2;max-width:72%;text-shadow:0 1px 6px rgba(0,0,0,.7);}
body.aplus .solo-choice-illustrata>b{font:700 24px var(--font-title);letter-spacing:.03em;}

/* ---- Desktop: Statistiche su due colonne, Tratti con i tre gruppi affiancati (comandi vicini alle etichette) ---- */
@media (min-width:1100px){
  body.aplus .tab-panel[data-panel="statistiche"].active{display:block;column-count:2;column-gap:24px;}
  body.aplus .tab-panel[data-panel="statistiche"].active>*{break-inside:avoid;margin-bottom:10px;}
  body.aplus .tab-panel[data-panel="statistiche"].active>.section-title{break-after:avoid;margin-top:6px;}
  body.aplus .tab-panel[data-panel="statistiche"].active>.table-scroll table{width:100%;}
  body.aplus #trait-lists{display:grid;grid-template-rows:auto auto auto;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);column-gap:20px;row-gap:8px;align-items:start;}
  body.aplus #trait-lists>.section-title{margin-top:0;}
}
