/* /Components/Hangar/ConfrontoPezzi.razor.rz.scp.css */
.cmp-parts[b-tvpnjrc3my] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.cmp-card[b-tvpnjrc3my] {
    padding: 1.2rem 1.2rem 1.3rem;
    background: rgba(20, 26, 37, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
}

.cmp-slot[b-tvpnjrc3my] {
    color: var(--accent);
    font: 700 0.85rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

table[b-tvpnjrc3my] {
    width: 100%;
    margin-top: 0.8rem;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
}

th[b-tvpnjrc3my], td[b-tvpnjrc3my] {
    padding: 0.42rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

thead th[b-tvpnjrc3my] {
    vertical-align: bottom;
    text-align: center;
    font: 700 0.9rem/1.15 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

thead th:first-child[b-tvpnjrc3my] { width: 36%; }

thead th small[b-tvpnjrc3my] {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font: 500 0.72rem/1.2 'Inter', sans-serif;
    text-transform: none;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

tbody th[b-tvpnjrc3my] {
    text-align: start;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.82rem;
}

td[b-tvpnjrc3my] {
    text-align: center;
    font: 700 1.05rem/1 'Rajdhani', 'Inter', sans-serif;
    color: #c4cfe0;
}

/* Le due colonne portano il colore del loro mecha: oro questo, magenta il rivale. */
thead .mine-col[b-tvpnjrc3my] { color: rgb(var(--tinta)); border-bottom: 2px solid rgb(var(--tinta)); }
thead .rival-col[b-tvpnjrc3my] { color: rgb(255, 92, 160); border-bottom: 2px solid rgb(255, 92, 160); }

td.win[b-tvpnjrc3my] {
    color: #fff;
    position: relative;
}

td.mine-col.win[b-tvpnjrc3my] { background: rgba(var(--tinta), 0.16); box-shadow: inset 0 0 0 1px rgba(var(--tinta), 0.35); }
td.rival-col.win[b-tvpnjrc3my] { background: rgba(255, 92, 160, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 92, 160, 0.35); }

td.win[b-tvpnjrc3my]::after {
    content: "▲";
    margin-inline-start: 0.35rem;
    font-size: 0.6rem;
    vertical-align: middle;
}

td.mine-col.win[b-tvpnjrc3my]::after { color: rgb(var(--tinta)); }
td.rival-col.win[b-tvpnjrc3my]::after { color: rgb(255, 92, 160); }

.cmp-lists[b-tvpnjrc3my] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.cmp-lists ul[b-tvpnjrc3my] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cmp-lists li[b-tvpnjrc3my],
.cmp-lists p[b-tvpnjrc3my] {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0.45rem 0.6rem;
    font-size: 0.8rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
}

.cmp-lists strong[b-tvpnjrc3my] { color: #d6deea; font-weight: 600; }
.cmp-lists .mine-col li[b-tvpnjrc3my], .cmp-lists p.mine-col[b-tvpnjrc3my] { border-inline-start: 2px solid rgba(var(--tinta), 0.7); }
.cmp-lists .rival-col li[b-tvpnjrc3my], .cmp-lists p.rival-col[b-tvpnjrc3my] { border-inline-start: 2px solid rgba(255, 92, 160, 0.7); }

@media (max-width: 900px) {
    .cmp-parts[b-tvpnjrc3my] { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .cmp-card[b-tvpnjrc3my] { padding: 1rem 0.7rem; }
    thead th:first-child[b-tvpnjrc3my] { width: 32%; }
    th[b-tvpnjrc3my], td[b-tvpnjrc3my] { padding: 0.38rem 0.3rem; }
}
/* /Components/Hangar/RadarChart.razor.rz.scp.css */
.radar[b-fza5mqr1yw] {
    margin: 0;
}

svg[b-fza5mqr1yw] {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.ring[b-fza5mqr1yw] {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
}

.ring:last-of-type[b-fza5mqr1yw] { stroke: rgba(255, 255, 255, 0.16); }

.spoke[b-fza5mqr1yw] { stroke: rgba(255, 255, 255, 0.07); }

.avg[b-fza5mqr1yw] {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.45);
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
}

/* Il poligono del mecha nasce dal centro: si legge come una forma che si apre, non come un
   disegno già lì. */
.mine[b-fza5mqr1yw] {
    fill: rgba(var(--tinta), 0.22);
    stroke: rgb(var(--tinta));
    stroke-width: 2.5;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(var(--tinta), 0.55));
    transform-origin: 0 0;
    animation: apri-b-fza5mqr1yw 0.9s cubic-bezier(.2, .8, .2, 1) both;
}

/* Il rivale: magenta, il solo colore che nessuna classe usa, e tratteggiato perché è l'ospite. */
.rival[b-fza5mqr1yw] {
    fill: rgba(255, 92, 160, 0.14);
    stroke: rgb(255, 92, 160);
    stroke-width: 2;
    stroke-dasharray: 7 4;
    stroke-linejoin: round;
    transform-origin: 0 0;
    animation: apri-b-fza5mqr1yw 0.9s 0.15s cubic-bezier(.2, .8, .2, 1) both;
}

.dot[b-fza5mqr1yw] {
    fill: #0b0e14;
    stroke: rgb(var(--tinta));
    stroke-width: 2;
    animation: compari-b-fza5mqr1yw 0.9s 0.5s both;
}

@keyframes apri-b-fza5mqr1yw {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes compari-b-fza5mqr1yw {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Le etichette arrivano come markup (vedi il .razor), quindi senza l'attributo isolato: ::deep. */
svg[b-fza5mqr1yw]  .label {
    fill: #b6c3d7;
    font: 600 13px 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

figcaption[b-fza5mqr1yw] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem 1.2rem;
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.key[b-fza5mqr1yw] {
    display: inline-block;
    width: 22px;
    height: 0;
    margin-inline-end: 0.45rem;
    vertical-align: middle;
}

.mine-key[b-fza5mqr1yw] { border-top: 3px solid rgb(var(--tinta)); }
.avg-key[b-fza5mqr1yw] { border-top: 2px dashed rgba(255, 255, 255, 0.6); }
.rival-key[b-fza5mqr1yw] { border-top: 3px dashed rgb(255, 92, 160); }

@media (prefers-reduced-motion: reduce) {
    .mine[b-fza5mqr1yw], .rival[b-fza5mqr1yw], .dot[b-fza5mqr1yw] { animation: none; }
}
/* /Components/Home/HeroCarousel.razor.rz.scp.css */
/* ---------- hero a schermo pieno ----------
   La barra in alto è fissa e trasparente sopra la Home (vedi app.css, body:has(.home)), quindi
   l'hero prende tutta l'altezza. svh e non vh: sui telefoni vh conta anche la barra del browser. */
.hero[b-vu5gldzpkb] {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    isolation: isolate;
    background: #07090d;
}

.slides[b-vu5gldzpkb],
.slide[b-vu5gldzpkb],
.hero-veil[b-vu5gldzpkb],
.hero-grid[b-vu5gldzpkb] {
    position: absolute;
    inset: 0;
}

.slides[b-vu5gldzpkb] { z-index: -3; }

.slide[b-vu5gldzpkb] {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.4s ease, transform 8s ease-out;
}

.slide.active[b-vu5gldzpkb] {
    opacity: 1;
    transform: scale(1);
}

/* I segnaposto: un colore per slide, un esagono che respira. Spariscono da soli quando
   in images/carousel arriva il file vero. */
.ph-1[b-vu5gldzpkb] { --tinta: 255, 209, 102; background: radial-gradient(ellipse at 70% 40%, rgba(255, 168, 60, 0.35), transparent 60%), linear-gradient(135deg, #1a1408, #07090d 70%); }
.ph-2[b-vu5gldzpkb] { --tinta: 77, 142, 247;  background: radial-gradient(ellipse at 30% 60%, rgba(77, 142, 247, 0.35), transparent 60%), linear-gradient(135deg, #08101f, #07090d 70%); }
.ph-3[b-vu5gldzpkb] { --tinta: 242, 104, 95;  background: radial-gradient(ellipse at 65% 65%, rgba(var(--danger-rgb), 0.32), transparent 60%), linear-gradient(135deg, #1c0a0a, #07090d 70%); }
.ph-4[b-vu5gldzpkb] { --tinta: 89, 192, 138;  background: radial-gradient(ellipse at 40% 35%, rgba(var(--ok-rgb), 0.3), transparent 60%), linear-gradient(135deg, #07170f, #07090d 70%); }
.ph-5[b-vu5gldzpkb] { --tinta: 192, 122, 232; background: radial-gradient(ellipse at 75% 55%, rgba(192, 122, 232, 0.32), transparent 60%), linear-gradient(135deg, #140a1c, #07090d 70%); }

.ph-art[b-vu5gldzpkb] {
    position: absolute;
    inset-inline-end: -5%;
    top: 5%;
    width: min(70vw, 900px);
    height: 90%;
    fill: none;
    stroke: rgba(var(--tinta), 0.35);
    stroke-width: 1.2;
    filter: drop-shadow(0 0 18px rgba(var(--tinta), 0.5));
    animation: respiro-b-vu5gldzpkb 9s ease-in-out infinite;
}

.ph-art path:nth-child(2)[b-vu5gldzpkb] { stroke: rgba(var(--tinta), 0.55); }
.ph-art path:nth-child(3)[b-vu5gldzpkb] { fill: rgba(var(--tinta), 0.18); stroke: rgba(var(--tinta), 0.9); }

@keyframes respiro-b-vu5gldzpkb {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(6deg) scale(1.04); }
}

/* Il velo scurisce a sinistra e in basso, dove stanno titolo e didascalia: leggibile
   qualunque immagine arrivi. */
.hero-veil[b-vu5gldzpkb] {
    z-index: -2;
    background:
        linear-gradient(to top, #0b0e14 0%, rgba(11, 14, 20, 0.2) 35%, transparent 60%),
        linear-gradient(to right, rgba(7, 9, 13, 0.85) 0%, rgba(7, 9, 13, 0.35) 55%, transparent 80%);
}

:root[dir="rtl"] .hero-veil[b-vu5gldzpkb] {
    background:
        linear-gradient(to top, #0b0e14 0%, rgba(11, 14, 20, 0.2) 35%, transparent 60%),
        linear-gradient(to left, rgba(7, 9, 13, 0.85) 0%, rgba(7, 9, 13, 0.35) 55%, transparent 80%);
}

/* La griglia esagonale appena accennata, il tavolo del gioco. */
.hero-grid[b-vu5gldzpkb] {
    z-index: -1;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23ffffff' stroke-width='0.8'/%3E%3C/svg%3E");
    mask-image: radial-gradient(ellipse at 50% 60%, #000 20%, transparent 75%);
}

/* ---------- titolo ---------- */
.hero-inner[b-vu5gldzpkb] {
    align-self: center;
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 6rem clamp(1rem, 5vw, 3rem) 2rem;
}

.eyebrow[b-vu5gldzpkb] {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
    color: var(--accent);
    font: 600 0.9rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    animation: sale-b-vu5gldzpkb 0.9s 0.1s both cubic-bezier(.2, .7, .2, 1);
}

.eyebrow[b-vu5gldzpkb]::before {
    content: "";
    width: 2.5rem;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.hero-title[b-vu5gldzpkb] {
    margin: 0;
    font: 700 clamp(2.9rem, 9vw, 7.5rem)/0.92 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #f4f7fc;
    text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
    animation: sale-b-vu5gldzpkb 0.9s 0.2s both cubic-bezier(.2, .7, .2, 1);
}

.hero-title span[b-vu5gldzpkb] {
    display: block;
    background: linear-gradient(90deg, #ffd166, #ff9f43 60%, var(--danger));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 22px rgba(255, 170, 70, 0.35));
}

.hero-tagline[b-vu5gldzpkb] {
    max-width: 34rem;
    margin: 1.4rem 0 2rem;
    color: #c4cfe0;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.6;
    animation: sale-b-vu5gldzpkb 0.9s 0.35s both cubic-bezier(.2, .7, .2, 1);
}

.hero-cta[b-vu5gldzpkb] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    animation: sale-b-vu5gldzpkb 0.9s 0.5s both cubic-bezier(.2, .7, .2, 1);
}

@keyframes sale-b-vu5gldzpkb {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

/* ---------- didascalia e comandi ---------- */
.hero-bottom[b-vu5gldzpkb] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3rem) 2.5rem;
}

.caption[b-vu5gldzpkb] {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 30rem;
    min-height: 3.6rem;
}

.caption-num[b-vu5gldzpkb] {
    font: 700 2.2rem/1 'Rajdhani', 'Inter', sans-serif;
    color: var(--accent);
    opacity: 0.9;
}

.caption strong[b-vu5gldzpkb] {
    display: block;
    font: 700 1.05rem/1.2 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #eef3fb;
}

.caption span[b-vu5gldzpkb] {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.controls[b-vu5gldzpkb] {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.arrow[b-vu5gldzpkb] {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.arrow:hover[b-vu5gldzpkb] {
    border-color: var(--accent);
    background: rgba(255, 209, 102, 0.12);
    transform: scale(1.06);
}

.arrow svg[b-vu5gldzpkb] {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

:root[dir="rtl"] .arrow svg[b-vu5gldzpkb] { transform: scaleX(-1); }

.dots[b-vu5gldzpkb] {
    display: flex;
    gap: 0.45rem;
}

.dot[b-vu5gldzpkb] {
    position: relative;
    width: 26px;
    height: 4px;
    padding: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 0;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: width 0.3s;
}

.dot.active[b-vu5gldzpkb] { width: 52px; }

/* Un bersaglio di tocco da 4px è troppo piccolo: l'area cliccabile si allarga senza
   allargare il segno. */
.dot[b-vu5gldzpkb]::before {
    content: "";
    position: absolute;
    inset: -12px -2px;
}

.fill[b-vu5gldzpkb] {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform-origin: left;
    animation: riempi-b-vu5gldzpkb 7s linear forwards;
}

:root[dir="rtl"] .fill[b-vu5gldzpkb] { transform-origin: right; }
.fill.paused[b-vu5gldzpkb] { animation-play-state: paused; }

@keyframes riempi-b-vu5gldzpkb {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.arrow:focus-visible[b-vu5gldzpkb],
.dot:focus-visible[b-vu5gldzpkb] {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.scroll-cue[b-vu5gldzpkb] {
    position: absolute;
    bottom: 1.1rem;
    left: 50%;
    width: 22px;
    height: 36px;
    margin-left: -11px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
}

.scroll-cue span[b-vu5gldzpkb] {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: var(--accent);
    border-radius: 2px;
    animation: rotella-b-vu5gldzpkb 1.8s ease-in-out infinite;
}

@keyframes rotella-b-vu5gldzpkb {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- telefono ---------- */
@media (max-width: 720px) {
    .hero-inner[b-vu5gldzpkb] { padding-top: 5.5rem; }
    .eyebrow[b-vu5gldzpkb] { letter-spacing: 0.22em; font-size: 0.78rem; }
    .hero-cta .btn[b-vu5gldzpkb] { flex: 1 1 auto; }

    .hero-bottom[b-vu5gldzpkb] {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 1.5rem;
    }

    .controls[b-vu5gldzpkb] { justify-content: space-between; }
    .scroll-cue[b-vu5gldzpkb] { display: none; }
    .ph-art[b-vu5gldzpkb] { width: 120vw; inset-inline-end: -40%; opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
    .slide[b-vu5gldzpkb] { transition: opacity 0.4s; transform: none; }
    .ph-art[b-vu5gldzpkb], .scroll-cue span[b-vu5gldzpkb], .eyebrow[b-vu5gldzpkb], .hero-title[b-vu5gldzpkb], .hero-tagline[b-vu5gldzpkb], .hero-cta[b-vu5gldzpkb] { animation: none; }
    .fill[b-vu5gldzpkb] { animation: none; transform: scaleX(1); }
}

/* Il `button:hover` globale di app.css ha più peso di una classe sola: senza queste righe i
   comandi del carosello diventerebbero pannelli grigi al passaggio del mouse. */
.dot:hover:not(:disabled)[b-vu5gldzpkb] { background: rgba(255, 255, 255, 0.4); border: 0; }
/* /Components/Home/LoreNext.razor.rz.scp.css */
.lore-next[b-j1hrd8gd50] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: min(1200px, 100%);
    margin: clamp(4rem, 8vw, 6rem) auto 0;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.next-card[b-j1hrd8gd50] {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.5rem;
    color: inherit;
    text-decoration: none;
    background: rgba(20, 26, 37, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    transition: transform 0.3s, border-color 0.3s;
}

.next-card:hover[b-j1hrd8gd50],
.next-card:focus-visible[b-j1hrd8gd50] {
    transform: translateY(-4px);
    border-color: rgba(255, 209, 102, 0.5);
    outline: none;
}

.next-icon svg[b-j1hrd8gd50] {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.4;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.next-label[b-j1hrd8gd50] {
    margin-top: 0.4rem;
    font: 700 1.35rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.next-text[b-j1hrd8gd50] {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.next-go[b-j1hrd8gd50] {
    position: absolute;
    top: 1.4rem;
    inset-inline-end: 1.4rem;
    color: var(--accent);
    transition: transform 0.25s;
}

.next-card:hover .next-go[b-j1hrd8gd50] { transform: translateX(4px); }
:root[dir="rtl"] .next-go[b-j1hrd8gd50] { transform: scaleX(-1); }

@media (max-width: 860px) {
    .lore-next[b-j1hrd8gd50] { grid-template-columns: 1fr; }
}
/* /Components/Home/WorldSection.razor.rz.scp.css */
/* Il worldbuilding sta su una fascia più scura, a tutta larghezza: è il cambio di tono della
   pagina, dal gioco al mondo. */
.world[b-csdkwui913] {
    position: relative;
    margin-top: clamp(4rem, 9vw, 7rem);
    padding: clamp(4rem, 9vw, 7rem) 0;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(77, 142, 247, 0.12), transparent 50%),
        radial-gradient(ellipse at 90% 100%, rgba(255, 159, 67, 0.1), transparent 50%),
        #080a10;
    border-block: 1px solid rgba(255, 255, 255, 0.06);
    scroll-margin-top: 0;
}

.world-inner[b-csdkwui913] {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3rem);
}

/* ---------- schede ---------- */
.tabs[b-csdkwui913] {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 2.2rem;
    padding: 0.35rem;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.tab[b-csdkwui913] {
    flex-shrink: 0;
    padding: 0.7rem 1.3rem;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: var(--muted);
    font: 700 0.95rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

/* Più peso del `button:hover` globale di app.css. */
.tab:hover:not(:disabled)[b-csdkwui913] { background: rgba(255, 255, 255, 0.05); border: 0; color: var(--text); }

.tab.active[b-csdkwui913],
.tab.active:hover:not(:disabled)[b-csdkwui913] {
    background: linear-gradient(135deg, #ffd166, #ff9f43);
    color: #1b1405;
}

.tab:focus-visible[b-csdkwui913],
.chip:focus-visible[b-csdkwui913] {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.panel-wrap[b-csdkwui913] {
    animation: entra-b-csdkwui913 0.45s cubic-bezier(.2, .7, .2, 1);
}

@keyframes entra-b-csdkwui913 {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* ---------- storia ---------- */
.history[b-csdkwui913] {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
}

.history-text p[b-csdkwui913] {
    color: #c4cfe0;
    font-size: 1.02rem;
    line-height: 1.8;
}

.history-drop[b-csdkwui913]::first-letter {
    float: inline-start;
    margin: 0.1rem 0.6rem 0 0;
    font: 700 3.6rem/0.85 'Rajdhani', 'Inter', sans-serif;
    color: var(--accent);
}

.timeline[b-csdkwui913] {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline[b-csdkwui913]::before {
    content: "";
    position: absolute;
    inset-block: 0.5rem;
    inset-inline-start: 6px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(255, 209, 102, 0.05));
}

.timeline li[b-csdkwui913] {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-block: 0 1.6rem;
    padding-inline: 2rem 0;
}

.timeline li:last-child[b-csdkwui913] { padding-block-end: 0; }

/* Il segno dell'era: un esagono pieno d'oro (::before) con dentro uno scuro (::after). Un border con
   clip-path resterebbe solo sui lati dritti. */
.timeline li[b-csdkwui913]::before,
.timeline li[b-csdkwui913]::after {
    content: "";
    position: absolute;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.timeline li[b-csdkwui913]::before {
    inset-inline-start: -1px;
    top: 0.1rem;
    width: 16px;
    height: 18px;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(255, 209, 102, 0.6);
}

.timeline li[b-csdkwui913]::after {
    inset-inline-start: 1px;
    top: calc(0.1rem + 2px);
    width: 12px;
    height: 14px;
    background: #080a10;
}

.timeline li:first-child[b-csdkwui913]::after { background: var(--accent); }

.tl-era[b-csdkwui913] {
    color: var(--accent);
    font: 600 0.8rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.timeline strong[b-csdkwui913] {
    font: 700 1.15rem/1.2 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tl-text[b-csdkwui913] {
    color: var(--muted);
    font-size: 0.9rem;
}

.quote[b-csdkwui913] {
    margin: 2.5rem 0 0;
    padding: 1.6rem 2rem;
    border-inline-start: 3px solid var(--accent);
    background: linear-gradient(90deg, rgba(255, 209, 102, 0.08), transparent);
    font: 600 clamp(1.15rem, 2.4vw, 1.6rem)/1.35 'Rajdhani', 'Inter', sans-serif;
    color: #eef3fb;
}

/* ---------- mecha: le cinque classi ---------- */
.classes[b-csdkwui913] {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.9rem;
}

.cls-c[b-csdkwui913] { --c: 146, 161, 184; }
.cls-b[b-csdkwui913] { --c: 89, 192, 138; }
.cls-a[b-csdkwui913] { --c: 77, 142, 247; }
.cls-s[b-csdkwui913] { --c: 192, 122, 232; }
.cls-z[b-csdkwui913] { --c: 255, 209, 102; }

.class-card[b-csdkwui913] {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.2rem;
    background: linear-gradient(to bottom, rgba(var(--c), 0.12), rgba(16, 21, 31, 0.6) 45%);
    border: 1px solid rgba(var(--c), 0.3);
    border-radius: 14px;
    overflow: hidden;
}

.class-letter[b-csdkwui913] {
    position: absolute;
    inset-block-start: -1.2rem;
    inset-inline-end: -0.4rem;
    font: 700 7rem/1 'Rajdhani', 'Inter', sans-serif;
    color: rgba(var(--c), 0.14);
    pointer-events: none;
}

.class-card h3[b-csdkwui913] {
    margin: 0 0 0.6rem;
    font: 700 1.2rem/1.1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgb(var(--c));
}

.class-card p[b-csdkwui913] {
    flex: 1;
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.models[b-csdkwui913] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0.9rem 0 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Il puntino ha il colore della casa che costruisce il modello. */
.models li[b-csdkwui913] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font: 600 0.92rem/1.2 'Rajdhani', 'Inter', sans-serif;
    letter-spacing: 0.04em;
}

.models li[b-csdkwui913]::before {
    content: "";
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    background: var(--casa);
    box-shadow: 0 0 8px var(--casa);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ---------- case ---------- */
.houses[b-csdkwui913] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.house[b-csdkwui913] {
    position: relative;
    padding: 1.6rem 1.5rem;
    background: rgba(20, 26, 37, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 3px solid var(--casa);
    border-radius: 6px 6px 14px 14px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.house:hover[b-csdkwui913] {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -20px var(--casa);
}

.house-mark[b-csdkwui913] {
    display: grid;
    place-items: center;
    width: 52px;
    height: 58px;
    margin-bottom: 1rem;
    background: color-mix(in srgb, var(--casa) 18%, transparent);
    color: var(--casa);
    font: 700 1.2rem/1 'Rajdhani', 'Inter', sans-serif;
    letter-spacing: 0.05em;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.house h3[b-csdkwui913] {
    margin: 0 0 0.3rem;
    font: 700 1.3rem/1.1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.house-motto[b-csdkwui913] {
    margin: 0 0 0.9rem;
    color: var(--casa);
    font: italic 500 0.9rem/1.4 'Inter', sans-serif;
}

.house p[b-csdkwui913] {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.house .house-count[b-csdkwui913] {
    margin: 0;
    color: #c4cfe0;
    font: 600 0.8rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ---------- piloti ---------- */
.pilots-intro[b-csdkwui913] {
    max-width: 46rem;
    color: #c4cfe0;
    line-height: 1.7;
}

.filters[b-csdkwui913] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.4rem 0 1.6rem;
}

.chip[b-csdkwui913] {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--muted);
    font: 600 0.85rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.chip:hover:not(:disabled)[b-csdkwui913] { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.25); color: var(--text); }

.chip.active[b-csdkwui913],
.chip.active:hover:not(:disabled)[b-csdkwui913] {
    background: rgba(255, 209, 102, 0.14);
    border-color: var(--accent);
    color: var(--accent);
}

.pilots[b-csdkwui913] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.pilot[b-csdkwui913] {
    display: flex;
    gap: 1rem;
    padding: 1.3rem;
    background: rgba(20, 26, 37, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    animation: entra-b-csdkwui913 0.4s cubic-bezier(.2, .7, .2, 1) both;
}

.pilot:nth-child(2)[b-csdkwui913] { animation-delay: 0.04s; }
.pilot:nth-child(3)[b-csdkwui913] { animation-delay: 0.08s; }
.pilot:nth-child(4)[b-csdkwui913] { animation-delay: 0.12s; }
.pilot:nth-child(5)[b-csdkwui913] { animation-delay: 0.16s; }
.pilot:nth-child(6)[b-csdkwui913] { animation-delay: 0.2s; }

/* Ritratto segnaposto: le iniziali dentro un esagono nel colore della casa. Le illustrazioni
   arriveranno con le immagini dei piloti. */
.pilot-avatar[b-csdkwui913] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 58px;
    height: 64px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--casa) 45%, #0b0e14), #0b0e14);
    color: #fff;
    font: 700 1.2rem/1 'Rajdhani', 'Inter', sans-serif;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.pilot-body[b-csdkwui913] { min-width: 0; }

.pilot h3[b-csdkwui913] {
    margin: 0;
    font: 700 1.15rem/1.15 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pilot-meta[b-csdkwui913] {
    margin: 0.2rem 0 0.7rem;
    color: var(--casa);
    font-size: 0.82rem;
}

.pilot dl[b-csdkwui913] {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 0.7rem;
    margin: 0;
    font-size: 0.84rem;
}

.pilot dt[b-csdkwui913] {
    color: #6f7f97;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    padding-top: 0.12rem;
}

.pilot dd[b-csdkwui913] {
    margin: 0;
    color: #c4cfe0;
}

/* ---------- formati ---------- */
@media (max-width: 1080px) {
    .classes[b-csdkwui913] { grid-template-columns: repeat(3, 1fr); }
    .houses[b-csdkwui913], .pilots[b-csdkwui913] { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .history[b-csdkwui913] { grid-template-columns: 1fr; }
    .classes[b-csdkwui913] { grid-template-columns: repeat(2, 1fr); }
    .houses[b-csdkwui913], .pilots[b-csdkwui913] { grid-template-columns: 1fr; }
    /* Due per due: in riga la quarta scheda finiva fuori vista, e una barra di scorrimento
       nascosta non dice a nessuno che c'è. */
    .tabs[b-csdkwui913] { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .tab[b-csdkwui913] { padding-inline: 0.5rem; }
}

@media (max-width: 480px) {
    .classes[b-csdkwui913] { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .panel-wrap[b-csdkwui913], .pilot[b-csdkwui913] { animation: none; }
    .house[b-csdkwui913] { transition: none; }
}

.models a[b-csdkwui913] {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.models a:hover[b-csdkwui913] { color: rgb(var(--c)); }

.to-page[b-csdkwui913] {
    display: inline-flex;
    gap: 0.5rem;
    margin-top: 1.6rem;
    color: var(--accent);
    font: 700 0.95rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    text-decoration: none;
}

.to-page:hover span[b-csdkwui913] { transform: translateX(4px); }
.to-page span[b-csdkwui913] { display: inline-block; transition: transform 0.2s; }

/* Il nome del pilota apre la sua scheda; il link si allarga a tutta la card. */
.pilot[b-csdkwui913] { position: relative; }
.stretch[b-csdkwui913] { color: inherit; text-decoration: none; }
.stretch[b-csdkwui913]::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.pilot:hover[b-csdkwui913] { border-color: color-mix(in srgb, var(--casa) 60%, transparent); }

.house-more[b-csdkwui913] {
    display: inline-flex;
    gap: 0.4rem;
    margin-top: 1rem;
    color: var(--casa);
    font: 700 0.85rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-decoration: none;
}

.house-more span[b-csdkwui913] { transition: transform 0.2s; }
.house-more:hover span[b-csdkwui913] { transform: translateX(4px); }

.timeline strong a[b-csdkwui913] { color: inherit; text-decoration: none; }
.timeline strong a:hover[b-csdkwui913] { color: var(--accent); }
/* /Components/Layout/LanguageMenu.razor.rz.scp.css */
.lang[b-dijpqetk7h] {
    position: relative;
}

.lang-toggle[b-dijpqetk7h] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font: 600 0.82rem/1 'Rajdhani', 'Inter', sans-serif;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.lang-toggle:hover[b-dijpqetk7h],
.lang.open .lang-toggle[b-dijpqetk7h] {
    border-color: rgba(255, 209, 102, 0.55);
    background: rgba(255, 209, 102, 0.08);
}

.lang-toggle:focus-visible[b-dijpqetk7h],
.lang-item:focus-visible[b-dijpqetk7h] {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

img[b-dijpqetk7h] {
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.lang-caret[b-dijpqetk7h] {
    width: 10px;
    height: 6px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    transition: transform 0.2s;
}

.lang.open .lang-caret[b-dijpqetk7h] {
    transform: rotate(180deg);
}

.lang-veil[b-dijpqetk7h] {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.lang-list[b-dijpqetk7h] {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 0.5rem);
    z-index: 41;
    min-width: 12rem;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    background: rgba(16, 21, 31, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    animation: lang-in-b-dijpqetk7h 0.16s ease-out;
}

@keyframes lang-in-b-dijpqetk7h {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.lang-item[b-dijpqetk7h] {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.5rem 0.65rem;
    background: none;
    border: 0;
    border-radius: 8px;
    color: var(--text);
    font: 500 0.92rem/1.2 'Inter', sans-serif;
    text-align: start;
    cursor: pointer;
}

.lang-item:hover[b-dijpqetk7h] {
    background: rgba(255, 255, 255, 0.06);
}

.lang-item.current[b-dijpqetk7h] {
    background: rgba(255, 209, 102, 0.12);
    color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
    .lang-list[b-dijpqetk7h] { animation: none; }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-tice1tk52l] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- barra in alto ----------
   Vetro scuro sopra la pagina: resta appiccicata e lascia intravedere l'hero della Home.
   ⚠ Proprietà logiche (inline-start/end) e non left/right: con l'arabo la barra si specchia. */
.topbar[b-tice1tk52l] {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem clamp(0.75rem, 2vw, 1.5rem);
    background: rgba(11, 14, 20, 0.78);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: sticky;
    top: 0;
    z-index: 30;
}

.brand[b-tice1tk52l] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #eef3fb;
    flex-shrink: 0;
}

[b-tice1tk52l] .brand-mark {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.6;
    filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.45));
}

[b-tice1tk52l] .brand-mark path + path {
    fill: rgba(255, 209, 102, 0.25);
}

.brand-name[b-tice1tk52l] {
    font: 700 1.08rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.topnav[b-tice1tk52l] {
    display: flex;
    gap: 1.4rem;
}

.topnav[b-tice1tk52l]  a {
    position: relative;
    white-space: nowrap;
    color: #9fb0c9;
    text-decoration: none;
    font: 600 0.95rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.55rem 0.1rem;
    transition: color 0.2s;
}

.topnav[b-tice1tk52l]  a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.topnav[b-tice1tk52l]  a:hover { color: #eef3fb; }
.topnav[b-tice1tk52l]  a.active { color: var(--accent); }
.topnav[b-tice1tk52l]  a.active::after,
.topnav[b-tice1tk52l]  a:hover::after { transform: scaleX(1); }

/* ---------- la tendina «Il mondo» ---------- */
.nav-group[b-tice1tk52l] {
    position: relative;
    display: flex;
}

.nav-group-toggle[b-tice1tk52l] {
    display: flex;
    white-space: nowrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.1rem;
    background: none;
    border: 0;
    border-radius: 0;
    color: #9fb0c9;
    font: 600 0.95rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.nav-group-toggle:hover:not(:disabled)[b-tice1tk52l] { background: none; border: 0; color: #eef3fb; }
.nav-group-toggle.active[b-tice1tk52l] { color: var(--accent); }

.nav-group-toggle[b-tice1tk52l]  svg {
    width: 10px;
    height: 6px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    transition: transform 0.2s;
}

.nav-sub[b-tice1tk52l] {
    position: absolute;
    top: 100%;
    inset-inline-start: -0.9rem;
    z-index: 35;
    display: flex;
    flex-direction: column;
    min-width: 12rem;
    padding: 0.4rem;
    background: rgba(13, 17, 24, 0.97);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.nav-group:hover .nav-sub[b-tice1tk52l],
.nav-group:has(:focus-visible) .nav-sub[b-tice1tk52l],
.nav-group.open .nav-sub[b-tice1tk52l] {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.nav-group:hover .nav-group-toggle[b-tice1tk52l]  svg,
.nav-group.open .nav-group-toggle[b-tice1tk52l]  svg { transform: rotate(180deg); }

.topnav .nav-sub[b-tice1tk52l]  a {
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
}

.topnav .nav-sub[b-tice1tk52l]  a::after { display: none; }
.topnav .nav-sub[b-tice1tk52l]  a:hover { background: rgba(255, 255, 255, 0.06); }

/* L'ospite vede le voci del menu ma spente: aprirle porta al cancello «riservato ai profili». */
.topnav.guest[b-tice1tk52l]  a,
.topnav.guest .nav-group-toggle[b-tice1tk52l] { opacity: 0.5; }
.topnav.guest[b-tice1tk52l]  a:hover { opacity: 0.8; }

.topbar-end[b-tice1tk52l] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-inline-start: auto;
}

/* L'hamburger esiste solo sotto i 1000px: con lettore, profilo e lingue la barra non ci sta. */
.burger[b-tice1tk52l] {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 36px;
    padding: 0 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
}

.burger span[b-tice1tk52l] {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}

.burger.open span:nth-child(1)[b-tice1tk52l] { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2)[b-tice1tk52l] { opacity: 0; }
.burger.open span:nth-child(3)[b-tice1tk52l] { transform: translateY(-7px) rotate(-45deg); }

/* ⚠ Fra il menu a tendina (sotto i 1000 px) e lo schermo largo c'è una fascia in cui le voci non ci
   stavano e la barra usciva a destra: lì si stringono spazi e spaziatura, e sotto i 1180 il marchio
   resta senza nome. */
@media (min-width: 1001px) and (max-width: 1360px) {
    .topbar[b-tice1tk52l] { gap: 0.9rem; }
    .topnav[b-tice1tk52l] { gap: 0.85rem; }
    .topnav[b-tice1tk52l]  a, .nav-group-toggle[b-tice1tk52l] { letter-spacing: 0.05em; font-size: 0.86rem; }
    .brand-name[b-tice1tk52l] { letter-spacing: 0.08em; font-size: 0.98rem; }
}

@media (min-width: 1001px) and (max-width: 1180px) {
    .brand-name[b-tice1tk52l] { display: none; }
    .topnav[b-tice1tk52l] { gap: 0.7rem; }
}

@media (max-width: 1000px) {
    .burger[b-tice1tk52l] { display: flex; }

    .topnav[b-tice1tk52l] {
        position: fixed;
        inset: 52px 0 auto 0;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1rem 1rem;
        background: rgba(11, 14, 20, 0.97);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transform: translateY(-120%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s;
    }

    .topnav.open[b-tice1tk52l] {
        transform: none;
        visibility: visible;
    }

    /* Voci più piccole e più fitte: il menu resta a tutta larghezza, ma sta in uno schermo. */
    .topnav[b-tice1tk52l]  a {
        padding: 0.6rem 0.25rem;
        font-size: 0.92rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .topnav[b-tice1tk52l]  a::after { display: none; }

    /* Su telefono il gruppo è sempre aperto: una tendina dentro un menu a scomparsa è un clic in più. */
    .nav-group[b-tice1tk52l] { flex-direction: column; }
    .nav-group-toggle[b-tice1tk52l] { padding: 0.7rem 0.25rem 0.3rem; font-size: 0.72rem; color: var(--muted); pointer-events: none; }
    .nav-group-toggle[b-tice1tk52l]  svg { display: none; }

    .nav-sub[b-tice1tk52l] {
        position: static;
        min-width: 0;
        padding: 0 0 0 0.9rem;
        background: none;
        backdrop-filter: none;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .topnav .nav-sub[b-tice1tk52l]  a { padding: 0.5rem 0.6rem; font-size: 0.88rem; }
}

/* Su telefono la barra porta lettore, profilo, lingue e menu: la scritta del marchio cede il
   posto, l'esagono resta. */
@media (max-width: 560px) {
    .brand-name[b-tice1tk52l] { display: none; }
    .topbar-end[b-tice1tk52l] { gap: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .topnav[b-tice1tk52l], .burger span[b-tice1tk52l], .topnav[b-tice1tk52l]  a::after { transition: none; }
}

/* La schermata di battaglia vuole tutta la larghezza che c'è: con 1400px su un monitor largo
   restavano due bande vuote ai lati e per vedere tutto bisognava rimpicciolire la pagina.
   ⚠ E vuole anche tutta l'ALTEZZA: con 1,25rem sopra e 2,5rem sotto, più la barra, su un monitor
   largo si vedeva mezza mappa e mezza HUD. Il fondo generoso serviva alle pagine che si leggono
   scorrendo, non a quella che si guarda tutta insieme. */
.content[b-tice1tk52l] {
    flex: 1;
    padding: 0.8rem 1rem 1.2rem;
    max-width: 1760px;
    width: 100%;
    margin: 0 auto;
}

/* Le pagine vetrina (Home, hangar, storia, case, piloti) vanno da bordo a bordo: i loro sfondi
   sono parte del disegno, e il contenuto si centra da sé dentro ogni sezione.
   ⚠ Sta qui e non in app.css: lì perdeva contro questa stessa .content, caricata dopo. */
.content:has(.home, .hangar, .hm, .lore, .officina, .pf, .mp, .pl:not(.pl-hud), .sf, .lb)[b-tice1tk52l] {
    max-width: none;
    padding: 0;
}

/* La battaglia non ha un tetto di larghezza: è l'unica pagina in cui ogni pixel in più è mappa. */
.content:has(.layout-battle)[b-tice1tk52l] {
    max-width: none;
}

/* La battaglia occupa lo schermo esatto sotto la barra: niente margini, niente tetto di larghezza,
   e la pagina non scorre (scorrono i pannelli dell'HUD, vedi wwwroot/css/battle.css). */
.content:has(.bt)[b-tice1tk52l] {
    max-width: none;
    padding: 0;
}

/* Il pallino di quello che aspetta: messaggi non letti e richieste d'amicizia. */
.nav-badge[b-tice1tk52l] {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    margin-inline-start: 0.3rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font: 700 0.68rem/1 'Inter', sans-serif;
    box-shadow: 0 0 10px rgba(var(--danger-rgb), 0.7);
}
/* /Components/Layout/MusicPlayer.razor.rz.scp.css */
.player[b-mq29xeqcr7] {
    position: relative;
    display: flex;
    align-items: center;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.player.playing[b-mq29xeqcr7] {
    border-color: rgba(255, 209, 102, 0.55);
    box-shadow: 0 0 14px rgba(255, 209, 102, 0.2);
}

.player-main[b-mq29xeqcr7],
.player-more[b-mq29xeqcr7] {
    display: grid;
    place-items: center;
    height: 100%;
    padding: 0;
    background: none;
    border: 0;
    color: var(--text);
    cursor: pointer;
}

.player-main[b-mq29xeqcr7] { width: 36px; border-radius: 50%; }
.player-more[b-mq29xeqcr7] { width: 24px; padding-inline-end: 4px; color: var(--muted); }
.player-main:hover:not(:disabled)[b-mq29xeqcr7], .player-more:hover:not(:disabled)[b-mq29xeqcr7] { background: none; border: 0; color: var(--accent); }

.player-main svg[b-mq29xeqcr7] { width: 16px; height: 16px; fill: currentColor; margin-inline-start: 2px; }
.player-more svg[b-mq29xeqcr7] { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.2s; }
.player.open .player-more svg[b-mq29xeqcr7] { transform: rotate(180deg); }

/* L'equalizzatore: quattro barre che ballano mentre suona. */
.eq[b-mq29xeqcr7] { display: flex; align-items: flex-end; gap: 2px; height: 14px; }

.eq i[b-mq29xeqcr7] {
    width: 3px;
    background: var(--accent);
    border-radius: 1px;
    animation: eq-b-mq29xeqcr7 0.9s ease-in-out infinite;
}

.eq i:nth-child(2)[b-mq29xeqcr7] { animation-delay: 0.2s; }
.eq i:nth-child(3)[b-mq29xeqcr7] { animation-delay: 0.45s; }
.eq i:nth-child(4)[b-mq29xeqcr7] { animation-delay: 0.1s; }

@keyframes eq-b-mq29xeqcr7 {
    0%, 100% { height: 4px; }
    50% { height: 14px; }
}

.player-veil[b-mq29xeqcr7] { position: fixed; inset: 0; z-index: 40; }

.player-panel[b-mq29xeqcr7] {
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline-end: 0;
    z-index: 41;
    width: 19rem;
    padding: 1rem;
    background: rgba(16, 21, 31, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    animation: player-in-b-mq29xeqcr7 0.16s ease-out;
}

@keyframes player-in-b-mq29xeqcr7 {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.player-kicker[b-mq29xeqcr7] {
    margin: 0 0 0.7rem;
    color: var(--accent);
    font: 700 0.72rem/1 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.player-now[b-mq29xeqcr7] { display: flex; align-items: center; gap: 0.8rem; }
.player-now strong[b-mq29xeqcr7] { display: block; font: 700 1.05rem/1.15 'Rajdhani', 'Inter', sans-serif; }
.player-now span[b-mq29xeqcr7] { color: var(--muted); font-size: 0.8rem; }

/* Il disco: un esagono che gira mentre suona. */
.player-disc[b-mq29xeqcr7] {
    width: 44px;
    height: 50px;
    flex-shrink: 0;
    background:
        radial-gradient(circle, #0b0e14 0 18%, transparent 19%),
        conic-gradient(from 0deg, #ffd166, #ff9f43, var(--danger), #ffd166);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.player-disc.spin[b-mq29xeqcr7] { animation: gira-b-mq29xeqcr7 3s linear infinite; }

@keyframes gira-b-mq29xeqcr7 {
    to { transform: rotate(360deg); }
}

.player-bar[b-mq29xeqcr7] {
    position: relative;
    height: 6px;
    margin: 1rem 0 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    cursor: pointer;
}

.player-bar span[b-mq29xeqcr7] {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #ff9f43, var(--accent));
}

.player-time[b-mq29xeqcr7] { color: var(--muted); font-size: 0.75rem; text-align: end; font-variant-numeric: tabular-nums; }

.player-controls[b-mq29xeqcr7] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
    margin: 0.6rem 0;
}

.player-controls button[b-mq29xeqcr7] {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text);
}

.player-controls button.big[b-mq29xeqcr7] {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd166, #ff9f43);
    border: 0;
    color: #1b1405;
}

.player-controls button:hover:not(:disabled)[b-mq29xeqcr7] { border-color: var(--accent); background: rgba(255, 209, 102, 0.12); }
.player-controls button.big:hover:not(:disabled)[b-mq29xeqcr7] { background: linear-gradient(135deg, #ffe09a, #ffb066); }
.player-controls svg[b-mq29xeqcr7] { width: 18px; height: 18px; fill: currentColor; }
.player-controls .big svg[b-mq29xeqcr7] { width: 22px; height: 22px; }
:root[dir="rtl"] .player-controls svg[b-mq29xeqcr7] { transform: scaleX(-1); }

.player-volume[b-mq29xeqcr7] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
}

.player-volume svg[b-mq29xeqcr7] { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; flex-shrink: 0; }
.player-volume input[b-mq29xeqcr7] { flex: 1; accent-color: var(--accent); }
.sr[b-mq29xeqcr7] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.player-list[b-mq29xeqcr7] {
    max-height: 11rem;
    overflow-y: auto;
    margin: 0.8rem 0 0;
    padding: 0.5rem 0 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.player-list button[b-mq29xeqcr7] {
    display: flex;
    gap: 0.6rem;
    width: 100%;
    padding: 0.45rem 0.5rem;
    background: none;
    border: 0;
    border-radius: 8px;
    color: #c4cfe0;
    text-align: start;
    font-size: 0.85rem;
}

.player-list button:hover:not(:disabled)[b-mq29xeqcr7] { background: rgba(255, 255, 255, 0.05); border: 0; }
.player-list button.on[b-mq29xeqcr7] { color: var(--accent); background: rgba(255, 209, 102, 0.08); }
.player-list .n[b-mq29xeqcr7] { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Su telefono il pannello si apre a tutta larghezza sotto la barra. ⚠ La freccia che lo apre deve
   restare: nasconderla per far spazio lasciava il lettore senza comandi, solo play e pausa. */
@media (max-width: 480px) {
    .player-more[b-mq29xeqcr7] { width: 22px; }
    .player-panel[b-mq29xeqcr7] { position: fixed; top: 56px; inset-inline: 0.5rem; width: auto; max-height: calc(100dvh - 68px); overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .eq i[b-mq29xeqcr7], .player-disc.spin[b-mq29xeqcr7], .player-panel[b-mq29xeqcr7] { animation: none; }
}
/* /Components/Layout/ProfileMenu.razor.rz.scp.css */
.profile[b-ni0jphjyg2] { position: relative; }

.profile-toggle[b-ni0jphjyg2] {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.profile-toggle:hover:not(:disabled)[b-ni0jphjyg2],
.profile.open .profile-toggle[b-ni0jphjyg2] {
    background: rgba(255, 209, 102, 0.1);
    border-color: rgba(255, 209, 102, 0.55);
}

.profile-toggle svg[b-ni0jphjyg2] {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.profile-veil[b-ni0jphjyg2] { position: fixed; inset: 0; z-index: 40; }

.profile-panel[b-ni0jphjyg2] {
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline-end: 0;
    z-index: 41;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 15rem;
    padding: 0.5rem;
    background: rgba(16, 21, 31, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    animation: profile-in-b-ni0jphjyg2 0.16s ease-out;
}

@keyframes profile-in-b-ni0jphjyg2 {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.profile-head[b-ni0jphjyg2] {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.5rem 0.8rem;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-avatar[b-ni0jphjyg2] {
    display: grid;
    place-items: center;
    width: 38px;
    height: 42px;
    flex-shrink: 0;
    background: rgba(255, 209, 102, 0.12);
    color: var(--accent);
    font: 700 1.1rem/1 'Rajdhani', sans-serif;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.profile-head strong[b-ni0jphjyg2] { display: block; font: 700 1rem/1.1 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; }
.profile-head span[b-ni0jphjyg2] { color: var(--muted); font-size: 0.78rem; }

.profile-item[b-ni0jphjyg2] {
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font: 600 0.92rem/1 'Inter', sans-serif;
}

.profile-item:hover[b-ni0jphjyg2] { background: rgba(255, 255, 255, 0.06); }
.profile-item.primary[b-ni0jphjyg2] { background: linear-gradient(135deg, #ffd166, #ff9f43); color: #1b1405; text-align: center; }
.profile-item.primary:hover[b-ni0jphjyg2] { background: linear-gradient(135deg, #ffe09a, #ffb066); }

/* Su telefono il pannello non sta appeso al pulsante: sborderebbe. Si apre sotto la barra. */
@media (max-width: 480px) {
    .profile-panel[b-ni0jphjyg2] { position: fixed; top: 56px; inset-inline: 0.5rem; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .profile-panel[b-ni0jphjyg2] { animation: none; }
}

/* In sviluppo il profilo finto si riconosce subito: iniziali e bordo verde acqua. */
.profile.dev .profile-toggle[b-ni0jphjyg2] { border-color: rgba(94, 234, 212, 0.6); color: #5eead4; }
.profile-initials[b-ni0jphjyg2] { font: 700 0.78rem/1 'Rajdhani', sans-serif; letter-spacing: 0.04em; }

.profile-dev[b-ni0jphjyg2] {
    margin-inline-start: 0.35rem;
    padding: 0.1rem 0.35rem;
    border: 1px solid #5eead4;
    border-radius: 3px;
    color: #5eead4;
    font: 700 0.62rem/1 'Rajdhani', sans-serif;
    font-style: normal;
    letter-spacing: 0.15em;
    vertical-align: middle;
}

button.profile-item[b-ni0jphjyg2] {
    width: 100%;
    background: none;
    border: 0;
    color: var(--text);
    text-align: start;
    cursor: pointer;
}

button.profile-item:hover:not(:disabled)[b-ni0jphjyg2] { background: rgba(255, 255, 255, 0.06); border: 0; }

.profile-xp[b-ni0jphjyg2] {
    height: 4px;
    margin: -0.3rem 0.5rem 0.4rem;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    overflow: hidden;
}

.profile-xp span[b-ni0jphjyg2] {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ff9f43, #ffd166);
    box-shadow: 0 0 8px rgba(255, 209, 102, 0.6);
}

.profile-out[b-ni0jphjyg2] { margin: 0; }

.profile-item.admin[b-ni0jphjyg2] { color: #5eead4; }

.profile-avatar img[b-ni0jphjyg2] { width: 66%; height: 66%; object-fit: contain; }
.profile-initials img[b-ni0jphjyg2] { width: 18px; height: 18px; object-fit: contain; display: block; }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-rwdybtgcnr],
.components-reconnect-repeated-attempt-visible[b-rwdybtgcnr],
.components-reconnect-failed-visible[b-rwdybtgcnr],
.components-pause-visible[b-rwdybtgcnr],
.components-resume-failed-visible[b-rwdybtgcnr],
.components-rejoining-animation[b-rwdybtgcnr] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-rwdybtgcnr],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-rwdybtgcnr],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-rwdybtgcnr],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-rwdybtgcnr],
#components-reconnect-modal.components-reconnect-retrying[b-rwdybtgcnr],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-rwdybtgcnr],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-rwdybtgcnr],
#components-reconnect-modal.components-reconnect-failed[b-rwdybtgcnr],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-rwdybtgcnr] {
    display: block;
}


#components-reconnect-modal[b-rwdybtgcnr] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-rwdybtgcnr 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-rwdybtgcnr 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-rwdybtgcnr 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-rwdybtgcnr]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-rwdybtgcnr 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-rwdybtgcnr {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-rwdybtgcnr {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-rwdybtgcnr {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-rwdybtgcnr] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-rwdybtgcnr] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-rwdybtgcnr] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-rwdybtgcnr] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-rwdybtgcnr] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-rwdybtgcnr] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-rwdybtgcnr] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-rwdybtgcnr 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-rwdybtgcnr] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-rwdybtgcnr {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/HangarIndex.razor.rz.scp.css */
.hangar[b-jmhxmrs4qf] {
    overflow-x: clip;
    padding-bottom: 5rem;
}

.hg-hero[b-jmhxmrs4qf] {
    position: relative;
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 7rem clamp(1rem, 4vw, 3rem) 2rem;
}

.hg-hero[b-jmhxmrs4qf]::before {
    content: "";
    position: absolute;
    inset: 0 -30vw;
    z-index: -1;
    background: radial-gradient(ellipse 50% 70% at 20% 30%, rgba(255, 159, 67, 0.14), transparent 70%);
}

.hg-hero h1[b-jmhxmrs4qf] {
    margin: 0 0 1rem;
    font: 700 clamp(3rem, 8vw, 6rem)/0.92 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
}

.hg-hero .lead[b-jmhxmrs4qf] { max-width: 44rem; }

/* La barra sotto il titolo: classi a sinistra, filtri al centro, officina in fondo. */
.hg-bar[b-jmhxmrs4qf] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
}

.hg-classes[b-jmhxmrs4qf] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hg-filters[b-jmhxmrs4qf] {
    display: inline-flex;
    padding: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.hg-filter[b-jmhxmrs4qf] {
    padding: 0.55rem 1rem;
    background: none;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    font: 600 0.9rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.hg-filter b[b-jmhxmrs4qf] {
    margin-inline-start: 0.35rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
}

.hg-filter:hover:not(:disabled)[b-jmhxmrs4qf] { background: rgba(255, 255, 255, 0.06); border: 0; color: var(--text); }
.hg-filter.on[b-jmhxmrs4qf], .hg-filter.on:hover:not(:disabled)[b-jmhxmrs4qf] { background: rgba(255, 209, 102, 0.16); color: var(--accent); }
.hg-filter.mine.on[b-jmhxmrs4qf], .hg-filter.mine.on:hover:not(:disabled)[b-jmhxmrs4qf] { background: rgba(94, 234, 212, 0.14); color: #5eead4; }

.hangar .hg-build[b-jmhxmrs4qf] { margin-inline-start: auto; padding: 0.85rem 1.4rem; }
.hg-build svg[b-jmhxmrs4qf] { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }

.hg-classes a[b-jmhxmrs4qf] {
    display: grid;
    place-items: center;
    width: 52px;
    height: 58px;
    background: rgba(var(--tinta), 0.12);
    color: rgb(var(--tinta));
    font: 700 1.5rem/1 'Rajdhani', sans-serif;
    text-decoration: none;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    transition: background 0.2s, transform 0.2s;
}

.hg-classes a:hover[b-jmhxmrs4qf] { background: rgba(var(--tinta), 0.3); transform: translateY(-3px); }

.hg-class[b-jmhxmrs4qf] {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem) 0;
    scroll-margin-top: 3rem;
}

.hg-class-head[b-jmhxmrs4qf] {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(var(--tinta), 0.25);
}

.hg-letter[b-jmhxmrs4qf] {
    font: 700 4.5rem/0.8 'Rajdhani', sans-serif;
    color: rgb(var(--tinta));
    text-shadow: 0 0 30px rgba(var(--tinta), 0.5);
}

.hg-class-head h2[b-jmhxmrs4qf] {
    margin: 0 0 0.2rem;
    font: 700 1.6rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hg-class-head p[b-jmhxmrs4qf] { margin: 0; color: var(--muted); font-size: 0.9rem; }

.hg-class-title[b-jmhxmrs4qf] { flex: 1; min-width: 0; }

/* ---------- il carosello ---------- */
.hg-pager[b-jmhxmrs4qf] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hg-arrow[b-jmhxmrs4qf] {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(var(--tinta), 0.1);
    border: 1px solid rgba(var(--tinta), 0.35);
    border-radius: 50%;
    color: rgb(var(--tinta));
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.hg-arrow svg[b-jmhxmrs4qf] { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hg-arrow:hover:not(:disabled)[b-jmhxmrs4qf] { background: rgba(var(--tinta), 0.25); border-color: rgb(var(--tinta)); }
.hg-arrow:disabled[b-jmhxmrs4qf] { opacity: 0.3; cursor: default; }
:root[dir="rtl"] .hg-arrow svg[b-jmhxmrs4qf] { transform: scaleX(-1); }

.hg-dots[b-jmhxmrs4qf] { display: flex; gap: 0.4rem; }

.hg-dot[b-jmhxmrs4qf] {
    width: 9px;
    height: 9px;
    padding: 0;
    background: rgba(255, 255, 255, 0.18);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: width 0.3s, background 0.3s;
}

.hg-dot.on[b-jmhxmrs4qf], .hg-dot.on:hover:not(:disabled)[b-jmhxmrs4qf] { width: 26px; background: rgb(var(--tinta)); border: 0; }

/* Le pagine stanno in fila; la striscia scorre di una pagina intera. Lo spazio sopra e sotto
   lascia respirare l'ombra e il sollevamento delle schede, che il clip altrimenti taglierebbe. */
.hg-viewport[b-jmhxmrs4qf] {
    overflow: hidden;
    margin: -12px -14px;
    padding: 12px 14px 30px;
    touch-action: pan-y;
}

.hg-track[b-jmhxmrs4qf] {
    display: flex;
    gap: 28px;
    transform: translateX(calc(var(--p) * (-100% - 28px)));
    transition: transform 0.55s cubic-bezier(.2, .8, .2, 1);
}

:root[dir="rtl"] .hg-track[b-jmhxmrs4qf] { transform: translateX(calc(var(--p) * (100% + 28px))); }

.hg-grid[b-jmhxmrs4qf] {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-content: start;
    gap: 1rem;
    transition: opacity 0.4s;
}

.hg-grid[aria-hidden="true"][b-jmhxmrs4qf] { opacity: 0.25; }

.hg-card[b-jmhxmrs4qf] {
    position: relative;
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 210px;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(var(--tinta), 0.1), rgba(13, 17, 24, 0.9) 55%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hg-card[b-jmhxmrs4qf]::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    background: var(--casa);
    box-shadow: 0 0 12px var(--casa);
}

.hg-card:hover[b-jmhxmrs4qf],
.hg-card:focus-visible[b-jmhxmrs4qf] {
    transform: translateY(-5px);
    border-color: rgba(var(--tinta), 0.55);
    box-shadow: 0 24px 50px -24px rgba(var(--tinta), 0.6);
    outline: none;
}

.hg-art[b-jmhxmrs4qf] {
    display: grid;
    place-items: center;
    padding: 0.8rem;
    background:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 18px 18px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 18px 18px;
}

.hg-art img[b-jmhxmrs4qf],
.hg-art[b-jmhxmrs4qf]  .silhouette {
    width: 100%;
    height: 100%;
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.hg-card:hover .hg-art img[b-jmhxmrs4qf],
.hg-card:hover .hg-art[b-jmhxmrs4qf]  .silhouette { transform: scale(1.06); }

.hg-info[b-jmhxmrs4qf] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.2rem 1.2rem 1.4rem 0.4rem;
}

.hg-name[b-jmhxmrs4qf] {
    font: 700 1.55rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.hg-name em[b-jmhxmrs4qf] {
    margin-inline-end: 0.3em;
    font-style: normal;
    color: rgb(var(--tinta));
}

.hg-pilot[b-jmhxmrs4qf] { color: var(--muted); font-size: 0.85rem; }

.hg-cost[b-jmhxmrs4qf] {
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 209, 102, 0.08);
    border: 1px solid rgba(255, 209, 102, 0.25);
    border-radius: 4px;
    color: var(--accent);
    font: 700 0.85rem/1 'Rajdhani', 'Inter', sans-serif;
    letter-spacing: 0.05em;
}

/* ---------- i tuoi mecha: verde acqua, angolo tagliato e tratteggio, si riconoscono a colpo d'occhio ---------- */
.hg-card.mine[b-jmhxmrs4qf] {
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.12), rgba(13, 17, 24, 0.92) 55%);
    border: 1px dashed rgba(94, 234, 212, 0.45);
}

.hg-card.mine[b-jmhxmrs4qf]::after { background: #5eead4; box-shadow: 0 0 12px #5eead4; }
.hg-card.mine .hg-name[b-jmhxmrs4qf] { color: #e6fffa; }
.hg-card.mine:hover[b-jmhxmrs4qf], .hg-card.mine:focus-visible[b-jmhxmrs4qf] { border-color: #5eead4; box-shadow: 0 24px 50px -24px rgba(94, 234, 212, 0.6); }
.hg-card.mine .hg-go[b-jmhxmrs4qf] { color: #5eead4; }

.hg-mine-tag[b-jmhxmrs4qf] {
    align-self: flex-start;
    padding: 0.2rem 0.5rem;
    border: 1px solid #5eead4;
    border-radius: 3px;
    color: #5eead4;
    font: 700 0.68rem/1 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

/* ---------- vuoto e da sistemare ---------- */
.hg-empty[b-jmhxmrs4qf] {
    display: grid;
    justify-items: center;
    gap: 0.8rem;
    width: min(640px, 100% - 2rem);
    margin: 3rem auto 0;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px dashed rgba(94, 234, 212, 0.4);
    border-radius: 18px;
    background: radial-gradient(ellipse at top, rgba(94, 234, 212, 0.08), transparent 70%);
}

.hg-empty[b-jmhxmrs4qf]  .silhouette { width: 120px; height: 140px; }
.hg-empty h2[b-jmhxmrs4qf] { margin: 0; font: 700 1.8rem/1 'Rajdhani', sans-serif; text-transform: uppercase; }
.hg-empty p[b-jmhxmrs4qf] { margin: 0 0 0.6rem; color: var(--muted); }

.hg-broken[b-jmhxmrs4qf] {
    width: min(1240px, 100% - 2rem);
    margin: 4rem auto 0;
    padding: 1.4rem 1.6rem;
    border: 1px solid rgba(255, 107, 107, 0.35);
    border-radius: 14px;
    background: rgba(255, 107, 107, 0.05);
}

.hg-broken h2[b-jmhxmrs4qf] { margin: 0 0 0.3rem; font: 700 1.2rem/1 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; color: #ff8a8a; }
.hg-broken p[b-jmhxmrs4qf] { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.9rem; }
.hg-broken ul[b-jmhxmrs4qf] { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.hg-broken li[b-jmhxmrs4qf] { display: flex; justify-content: space-between; gap: 1rem; }
.hg-broken a[b-jmhxmrs4qf] { color: var(--accent); }

.hg-nums[b-jmhxmrs4qf] {
    display: flex;
    gap: 0.9rem;
    margin-top: 0.6rem;
    font: 700 1.15rem/1 'Rajdhani', 'Inter', sans-serif;
}

.hg-nums small[b-jmhxmrs4qf] {
    display: block;
    margin-top: 0.15rem;
    color: var(--muted);
    font: 500 0.65rem/1 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hg-go[b-jmhxmrs4qf] {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    color: rgb(var(--tinta));
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s, transform 0.25s;
}

.hg-card:hover .hg-go[b-jmhxmrs4qf] { opacity: 1; transform: none; }
:root[dir="rtl"] .hg-go[b-jmhxmrs4qf] { transform: scaleX(-1); }

@media (max-width: 1080px) {
    .hg-grid[b-jmhxmrs4qf] { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .hg-grid[b-jmhxmrs4qf] { grid-template-columns: 1fr; }
    .hangar .hg-build[b-jmhxmrs4qf] { margin-inline-start: 0; width: 100%; }
    .hg-filters[b-jmhxmrs4qf] { width: 100%; justify-content: space-between; }
    .hg-filter[b-jmhxmrs4qf] { padding-inline: 0.7rem; }
    .hg-class-head[b-jmhxmrs4qf] { flex-wrap: wrap; }
    .hg-pager[b-jmhxmrs4qf] { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    .hg-card[b-jmhxmrs4qf], .hg-art img[b-jmhxmrs4qf], .hg-track[b-jmhxmrs4qf] { transition: none; }
}
/* /Components/Pages/HangarModel.razor.rz.scp.css */
.hm[b-80zgnioumw] {
    --max: 1240px;
    overflow-x: clip;
    padding-bottom: 5rem;
}

.hm-missing[b-80zgnioumw] {
    padding: 8rem 1rem;
    text-align: center;
}

/* ---------- hero ---------- */
.hm-hero[b-80zgnioumw] {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    width: min(var(--max), 100%);
    margin: 0 auto;
    padding: 5.5rem clamp(1rem, 4vw, 3rem) 3rem;
}

/* Il colore della classe sale da dietro il ritratto e sfuma nella pagina. */
.hm-hero[b-80zgnioumw]::before {
    content: "";
    position: absolute;
    inset: 0 -30vw;
    z-index: -1;
    background:
        radial-gradient(ellipse 45% 60% at 28% 45%, rgba(var(--tinta), 0.22), transparent 70%),
        radial-gradient(ellipse 35% 40% at 80% 20%, color-mix(in srgb, var(--casa) 18%, transparent), transparent 70%);
}

.hm-back[b-80zgnioumw] {
    position: absolute;
    top: 4.2rem;
    inset-inline-start: clamp(1rem, 4vw, 3rem);
    color: var(--muted);
    text-decoration: none;
    font: 600 0.85rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hm-back:hover[b-80zgnioumw] { color: var(--accent); }
:root[dir="rtl"] .hm-back span[b-80zgnioumw] { display: inline-block; transform: scaleX(-1); }

.hm-portrait[b-80zgnioumw] {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    padding: 1.5rem;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 24px 24px,
        radial-gradient(circle at 50% 60%, rgba(var(--tinta), 0.18), rgba(8, 10, 16, 0.9) 70%);
    border: 1px solid rgba(var(--tinta), 0.28);
    border-radius: 4px;
    overflow: hidden;
}

.hm-portrait img[b-80zgnioumw],
.hm-portrait[b-80zgnioumw]  .silhouette {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.hm-portrait[b-80zgnioumw]  .silhouette {
    animation: fluttua-b-80zgnioumw 7s ease-in-out infinite;
}

@keyframes fluttua-b-80zgnioumw {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Gli angoli da mirino: è un ritratto inquadrato, non un'immagine appoggiata. */
.corner[b-80zgnioumw] {
    position: absolute;
    z-index: 2;
    width: 26px;
    height: 26px;
    border: 2px solid rgb(var(--tinta));
}

.corner.tl[b-80zgnioumw] { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.corner.tr[b-80zgnioumw] { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.corner.bl[b-80zgnioumw] { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.corner.br[b-80zgnioumw] { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.hm-placeholder[b-80zgnioumw] {
    position: absolute;
    z-index: 2;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.8rem;
    background: rgba(8, 10, 16, 0.8);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

.hm-watermark[b-80zgnioumw] {
    position: absolute;
    inset-inline-end: -0.5rem;
    bottom: -2.5rem;
    font: 700 16rem/1 'Rajdhani', sans-serif;
    color: rgba(var(--tinta), 0.08);
    pointer-events: none;
}

.hm-chips[b-80zgnioumw] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chip-class[b-80zgnioumw],
.chip-house[b-80zgnioumw] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font: 700 0.8rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.chip-class[b-80zgnioumw] {
    background: rgba(var(--tinta), 0.15);
    border: 1px solid rgba(var(--tinta), 0.55);
    color: rgb(var(--tinta));
}

.chip-house[b-80zgnioumw] {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d6deea;
}

.chip-house i[b-80zgnioumw] {
    width: 9px;
    height: 9px;
    background: var(--casa);
    box-shadow: 0 0 8px var(--casa);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.hm-name[b-80zgnioumw] {
    margin: 0;
    /* ⚠ Niente a capo dentro la parola: «CATTEDRAL / E» si leggeva come due nomi. Il corpo scala
       con lo schermo e i nomi più lunghi (GlassCannon, Saldatrice) stanno in una riga. */
    font: 700 clamp(2.4rem, 5.4vw, 5.6rem)/0.92 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: #f4f7fc;
    text-shadow: 0 0 40px rgba(var(--tinta), 0.35);
}

.hm-pilot[b-80zgnioumw] {
    margin: 1rem 0 0.4rem;
    color: #c4cfe0;
}

.hm-desc[b-80zgnioumw] {
    max-width: 36rem;
    margin: 0 0 1.6rem;
    color: var(--muted);
    line-height: 1.7;
}

.hm-tiles[b-80zgnioumw] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 0 0 1.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.hm-tiles > div[b-80zgnioumw] {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    background: #0d1118;
}

.hm-tiles dt[b-80zgnioumw] {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.hm-tiles dd[b-80zgnioumw] {
    margin: 0;
    font: 700 1.9rem/1 'Rajdhani', 'Inter', sans-serif;
    color: #f4f7fc;
}

.hm-tiles dd.small[b-80zgnioumw] { font-size: 1.35rem; padding-top: 0.3rem; }

.hm-cta[b-80zgnioumw] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* ---------- il confronto ---------- */
.hm-vs[b-80zgnioumw] {
    width: min(var(--max), 100%);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
    scroll-margin-top: 5rem;
}

.vs-pick[b-80zgnioumw] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 1rem;
    padding: 1rem 1.2rem;
    background: rgba(20, 26, 37, 0.8);
    border: 1px solid rgba(255, 92, 160, 0.25);
    border-radius: 14px;
}

.vs-pick label[b-80zgnioumw] {
    color: rgb(255, 92, 160);
    font: 700 0.85rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.vs-pick[b-80zgnioumw]  .tendina { min-width: 15rem; }

.vs-quick[b-80zgnioumw] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.vs-chip[b-80zgnioumw] {
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #c4cfe0;
    font: 600 0.8rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vs-chip:hover:not(:disabled)[b-80zgnioumw] { background: rgba(255, 92, 160, 0.1); border-color: rgba(255, 92, 160, 0.5); }
.vs-chip.on[b-80zgnioumw], .vs-chip.on:hover:not(:disabled)[b-80zgnioumw] { background: rgba(255, 92, 160, 0.18); border-color: rgb(255, 92, 160); color: #fff; }

.vs-duel[b-80zgnioumw] {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(90deg, rgba(var(--tinta), 0.16), rgba(13, 17, 24, 0.9) 45%, rgba(13, 17, 24, 0.9) 55%, rgba(255, 92, 160, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.vs-side[b-80zgnioumw] { display: flex; flex-direction: column; }
.vs-side.mine[b-80zgnioumw] { text-align: end; }
.vs-side.rival[b-80zgnioumw] { flex-direction: row; align-items: center; gap: 0.8rem; }
.vs-side.rival > span:last-child[b-80zgnioumw] { display: flex; flex-direction: column; }

.vs-name[b-80zgnioumw] {
    font: 700 clamp(1.3rem, 3vw, 2rem)/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
}

.vs-side.mine .vs-name[b-80zgnioumw] { color: rgb(var(--tinta)); }
.vs-side.rival .vs-name[b-80zgnioumw] { color: rgb(255, 92, 160); }
.vs-sub[b-80zgnioumw] { color: var(--muted); font-size: 0.82rem; }
.vs-open[b-80zgnioumw] { color: rgb(255, 92, 160); font-size: 0.8rem; margin-top: 0.2rem; }

.vs-art[b-80zgnioumw] {
    display: grid;
    place-items: center;
    width: 52px;
    height: 68px;
    flex-shrink: 0;
}

.vs-art img[b-80zgnioumw], .vs-art[b-80zgnioumw]  .silhouette { width: 100%; height: 100%; object-fit: contain; }

.vs-badge[b-80zgnioumw] {
    display: grid;
    place-items: center;
    width: 54px;
    height: 60px;
    background: #0b0e14;
    border: 2px solid rgba(255, 255, 255, 0.25);
    font: 700 1.2rem/1 'Rajdhani', sans-serif;
    letter-spacing: 0.08em;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.vs-close[b-80zgnioumw] {
    position: absolute;
    top: 0.4rem;
    inset-inline-end: 0.5rem;
    padding: 0.1rem 0.5rem;
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 1.3rem;
}

.vs-close:hover:not(:disabled)[b-80zgnioumw] { background: none; border: 0; color: #fff; }

.vs-note[b-80zgnioumw] {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.hm-tiles dd[b-80zgnioumw]  .vs-val,
.hm-tiles dd .vs-val[b-80zgnioumw] {
    display: block;
    margin-top: 0.25rem;
    color: rgb(255, 92, 160);
    font-size: 0.95rem;
}

.bar-value.rival[b-80zgnioumw] { color: rgb(255, 92, 160); font-size: 1rem; }

.bar-track.rival[b-80zgnioumw] {
    height: 6px;
    margin-top: 4px;
}

.bar-fill.rival[b-80zgnioumw] {
    background: linear-gradient(90deg, rgba(255, 92, 160, 0.4), rgb(255, 92, 160));
    box-shadow: 0 0 10px rgba(255, 92, 160, 0.35);
}

@media (max-width: 640px) {
    .vs-duel[b-80zgnioumw] { grid-template-columns: 1fr; text-align: center; }
    .vs-side.mine[b-80zgnioumw] { text-align: center; }
    .vs-side.rival[b-80zgnioumw] { justify-content: center; }
    .vs-badge[b-80zgnioumw] { margin: 0 auto; }
}

/* ---------- sezioni ---------- */
.hm-section[b-80zgnioumw] {
    width: min(var(--max), 100%);
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem) 0;
}

.hm-head[b-80zgnioumw] {
    max-width: 44rem;
    margin-bottom: 2rem;
}

.hm-head h2[b-80zgnioumw] {
    margin: 0 0 0.8rem;
    font: 700 clamp(1.8rem, 4vw, 2.8rem)/1.05 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
}

.hm-analysis[b-80zgnioumw] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

.hm-card[b-80zgnioumw] {
    padding: 1.5rem;
    background: linear-gradient(160deg, rgba(27, 35, 49, 0.85), rgba(13, 17, 24, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
}

/* ---------- barre ---------- */
.hm-bars[b-80zgnioumw] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bar-top[b-80zgnioumw] {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.bar-label[b-80zgnioumw] {
    flex: 1;
    font: 600 0.85rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c4cfe0;
}

.bar-value[b-80zgnioumw] {
    font: 700 1.15rem/1 'Rajdhani', 'Inter', sans-serif;
    color: #f4f7fc;
}

.bar-rank[b-80zgnioumw] {
    min-width: 3.2rem;
    text-align: end;
    color: var(--muted);
    font-size: 0.75rem;
}

.bar-rank.first[b-80zgnioumw] { color: rgb(var(--tinta)); font-weight: 600; }

.bar-track[b-80zgnioumw] {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

.bar-fill[b-80zgnioumw] {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(var(--tinta), 0.45), rgb(var(--tinta)));
    box-shadow: 0 0 12px rgba(var(--tinta), 0.4);
    animation: cresci-b-80zgnioumw 1s cubic-bezier(.2, .8, .2, 1) both;
    transform-origin: left;
}

:root[dir="rtl"] .bar-fill[b-80zgnioumw] { transform-origin: right; }

@keyframes cresci-b-80zgnioumw {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* La tacca bianca è la media della classe: si vede subito se il mecha sta sopra o sotto. */
.bar-avg[b-80zgnioumw] {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 16px;
    margin-inline-start: -1px;
    background: #fff;
    border-radius: 1px;
    opacity: 0.8;
}

.hm-note[b-80zgnioumw] {
    margin: 1.2rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

/* ---------- componenti ---------- */
.hm-parts[b-80zgnioumw] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.part[b-80zgnioumw] {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.3rem;
    background: rgba(20, 26, 37, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 2px solid rgba(var(--tinta), 0.6);
    border-radius: 6px 6px 14px 14px;
}

.part header[b-80zgnioumw] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.part-slot[b-80zgnioumw] {
    color: rgb(var(--tinta));
    font: 700 0.8rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.part-cost[b-80zgnioumw] {
    color: var(--muted);
    font-size: 0.8rem;
}

.part h3[b-80zgnioumw] {
    margin: 0;
    font: 700 1.2rem/1.15 'Rajdhani', 'Inter', sans-serif;
}

.part-nums[b-80zgnioumw] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.part-nums div[b-80zgnioumw] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.part-nums div.wide[b-80zgnioumw] { grid-column: 1 / -1; }

.part-nums span[b-80zgnioumw] {
    color: var(--muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.part-nums strong[b-80zgnioumw] {
    font: 700 1.05rem/1.1 'Rajdhani', 'Inter', sans-serif;
    color: #eef3fb;
}

.part-def[b-80zgnioumw] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.def[b-80zgnioumw] {
    display: grid;
    grid-template-columns: 7.5rem 1fr 1.6rem;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
}

.def-name[b-80zgnioumw] { color: var(--muted); }

.def-track[b-80zgnioumw] {
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.def-track span[b-80zgnioumw] {
    display: block;
    height: 100%;
    background: var(--casa);
    border-radius: 3px;
}

.def-val[b-80zgnioumw] {
    text-align: end;
    color: #d6deea;
    font-weight: 600;
}

.part-mounts[b-80zgnioumw] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
}

.part-mounts li[b-80zgnioumw] {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.7rem;
    border-inline-start: 2px solid rgba(var(--tinta), 0.5);
    background: rgba(255, 255, 255, 0.02);
}

.part-mounts span[b-80zgnioumw] { color: var(--muted); font-size: 0.8rem; }

.part-ov[b-80zgnioumw] {
    margin: auto 0 0;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--muted);
    font-size: 0.82rem;
}

.part-ov span[b-80zgnioumw] {
    display: block;
    color: var(--accent);
    font-weight: 600;
}

/* ---------- compagni di classe ---------- */
.hm-mates[b-80zgnioumw] {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.8rem;
}

.mate[b-80zgnioumw] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem;
    color: inherit;
    text-decoration: none;
    background: rgba(20, 26, 37, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 2px solid var(--casa);
    border-radius: 12px;
    transition: transform 0.25s, border-color 0.25s;
}

.mate:hover[b-80zgnioumw] { transform: translateY(-4px); border-color: rgba(var(--tinta), 0.5); }
.mate.current[b-80zgnioumw] { border-color: rgb(var(--tinta)); box-shadow: 0 0 0 1px rgb(var(--tinta)) inset; }

.mate-art[b-80zgnioumw] {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    background: radial-gradient(circle at 50% 60%, rgba(var(--tinta), 0.12), transparent 70%);
}

.mate-art img[b-80zgnioumw],
.mate-art[b-80zgnioumw]  .silhouette { width: 100%; height: 100%; object-fit: contain; }

.mate-name[b-80zgnioumw] {
    font: 700 0.9rem/1.1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
}

/* ---------- formati ---------- */
@media (max-width: 1080px) {
    .hm-parts[b-80zgnioumw] { grid-template-columns: repeat(2, 1fr); }
    .hm-mates[b-80zgnioumw] { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .hm-hero[b-80zgnioumw] { grid-template-columns: 1fr; padding-top: 6rem; }
    .hm-portrait[b-80zgnioumw] { max-width: 420px; width: 100%; margin: 0 auto; }
    .hm-analysis[b-80zgnioumw] { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .hm-parts[b-80zgnioumw] { grid-template-columns: 1fr; }
    .hm-tiles[b-80zgnioumw] { grid-template-columns: repeat(2, 1fr); }
    .hm-mates[b-80zgnioumw] { grid-template-columns: repeat(2, 1fr); }
    .def[b-80zgnioumw] { grid-template-columns: 6rem 1fr 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hm-portrait[b-80zgnioumw]  .silhouette, .bar-fill[b-80zgnioumw] { animation: none; }
    .mate[b-80zgnioumw] { transition: none; }
}

/* ---------- un mecha salvato dall'officina ---------- */
.chip-mine[b-80zgnioumw] {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border: 1px dashed #5eead4;
    border-radius: 999px;
    color: #5eead4;
    font: 700 0.8rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.hm-owner[b-80zgnioumw] {
    margin: -0.4rem 0 0.6rem;
    color: #5eead4;
    font-size: 0.9rem;
}

.hm-delete[b-80zgnioumw] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.hm-delete button[b-80zgnioumw] {
    padding: 0.35rem 0.8rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    cursor: pointer;
}

.hm-delete button:hover:not(:disabled)[b-80zgnioumw] { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.hm-delete button.danger[b-80zgnioumw] { border-color: rgba(255, 107, 107, 0.6); color: #ff8a8a; }
.hm-delete button.danger:hover:not(:disabled)[b-80zgnioumw] { background: rgba(255, 107, 107, 0.12); color: #ffb3b3; }

.hm.mine .hm-portrait[b-80zgnioumw] { border-style: dashed; }
/* /Components/Pages/Home.razor.rz.scp.css */
.home[b-t9by1kp7pi] {
    --home-max: 1200px;
    overflow-x: clip;
}

/* ---------- sezioni ---------- */
/* Ogni sezione va da bordo a bordo e centra il contenuto col padding: lo sfondo copre tutto lo
   schermo, il testo resta largo al massimo --home-max. */
.section[b-t9by1kp7pi] {
    --gutter: max(clamp(1rem, 5vw, 3rem), calc((100% - var(--home-max)) / 2));
    position: relative;
    width: 100%;
    padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(1rem, 3vw, 2rem);
    scroll-margin-top: 3rem;
}

.start[b-t9by1kp7pi] {
    background: linear-gradient(to bottom, transparent, rgba(77, 142, 247, 0.05));
}

/* ---------- i quattro pilastri ---------- */
/* 4, 2 o 1 colonna: mai tre più un orfano. */
.pillars[b-t9by1kp7pi] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pillar[b-t9by1kp7pi] {
    position: relative;
    padding: 1.7rem 1.5rem 1.6rem;
    background: linear-gradient(160deg, rgba(27, 35, 49, 0.9), rgba(16, 21, 31, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Lo spigolo acceso: un angolo tagliato che si illumina al passaggio. */
.pillar[b-t9by1kp7pi]::after {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(225deg, rgba(255, 209, 102, 0.35), transparent 60%);
    opacity: 0.4;
    transition: opacity 0.3s;
}

.pillar:hover[b-t9by1kp7pi] {
    transform: translateY(-4px);
    border-color: rgba(255, 209, 102, 0.35);
}

.pillar:hover[b-t9by1kp7pi]::after { opacity: 1; }

.pillar-icon[b-t9by1kp7pi] {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 1.2rem;
    position: relative;
    /* Il bordo: con clip-path un border vero resta solo sui lati dritti, quindi la sagoma esterna è
       il bordo e quella interna (::before) il fondo. */
    background: rgba(255, 209, 102, 0.55);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.pillar-icon[b-t9by1kp7pi]::before {
    content: "";
    position: absolute;
    inset: 1.5px;
    background: linear-gradient(180deg, rgba(255, 209, 102, 0.16), rgba(255, 209, 102, 0.04)), #0c0f16;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.pillar-icon svg[b-t9by1kp7pi] { position: relative; }

.pillar-icon svg[b-t9by1kp7pi],
.start-icon svg[b-t9by1kp7pi] {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.4;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.pillar h3[b-t9by1kp7pi] {
    margin: 0 0 0.5rem;
    font: 700 1.25rem/1.15 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pillar p[b-t9by1kp7pi] {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.65;
}

/* ---------- la scala delle classi ---------- */
.ladder[b-t9by1kp7pi] {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: 0.6rem;
    margin-top: clamp(3rem, 6vw, 4.5rem);
}

/* Ogni gradino è più alto del precedente: la scala si legge prima ancora dei numeri. */
.rung[b-t9by1kp7pi] {
    --h: 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: var(--h);
    padding: 0.75rem 0.9rem;
    border-radius: 10px 10px 4px 4px;
    background: linear-gradient(to top, rgba(var(--c), 0.08), rgba(var(--c), 0.28));
    border: 1px solid rgba(var(--c), 0.45);
    box-shadow: 0 0 24px rgba(var(--c), 0.12) inset;
}

.rung-c[b-t9by1kp7pi] { --c: 146, 161, 184; --h: 5rem; }
.rung-b[b-t9by1kp7pi] { --c: 89, 192, 138;  --h: 6.5rem; }
.rung-a[b-t9by1kp7pi] { --c: 77, 142, 247;  --h: 8rem; }
.rung-s[b-t9by1kp7pi] { --c: 192, 122, 232; --h: 9.5rem; }
.rung-z[b-t9by1kp7pi] { --c: 255, 209, 102; --h: 11rem; }

.rung-letter[b-t9by1kp7pi] {
    font: 700 clamp(1.8rem, 4vw, 2.6rem)/1 'Rajdhani', 'Inter', sans-serif;
    color: rgb(var(--c));
    text-shadow: 0 0 18px rgba(var(--c), 0.6);
}

.rung-credits[b-t9by1kp7pi] {
    font: 600 0.82rem/1.2 'Rajdhani', 'Inter', sans-serif;
    letter-spacing: 0.04em;
    color: #d6deea;
}

.ladder-note[b-t9by1kp7pi] {
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* ---------- numeri ---------- */
.stats[b-t9by1kp7pi] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: clamp(3rem, 6vw, 4.5rem) 0 0;
    border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.stat[b-t9by1kp7pi] {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.3rem;
    padding: 1.6rem 1rem;
    text-align: center;
}

.stat + .stat[b-t9by1kp7pi] { border-inline-start: 1px solid rgba(255, 255, 255, 0.08); }

.stat dd[b-t9by1kp7pi] {
    margin: 0;
    font: 700 clamp(2.2rem, 5vw, 3.2rem)/1 'Rajdhani', 'Inter', sans-serif;
    background: linear-gradient(180deg, #fff, #9fb0c9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat dt[b-t9by1kp7pi] {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* ---------- inizia ---------- */
.start-grid[b-t9by1kp7pi] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.start-card[b-t9by1kp7pi] {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.6rem 1.5rem;
    color: inherit;
    text-decoration: none;
    background: rgba(20, 26, 37, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.start-card[b-t9by1kp7pi]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255, 209, 102, 0.16), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s;
}

.start-card:hover[b-t9by1kp7pi],
.start-card:focus-visible[b-t9by1kp7pi] {
    transform: translateY(-4px);
    border-color: rgba(255, 209, 102, 0.5);
    outline: none;
}

.start-card:hover[b-t9by1kp7pi]::before,
.start-card:focus-visible[b-t9by1kp7pi]::before { opacity: 1; }

.start-icon[b-t9by1kp7pi] { margin-bottom: 0.5rem; }

.start-icon svg[b-t9by1kp7pi] {
    width: 34px;
    height: 34px;
}

.start-card h3[b-t9by1kp7pi] {
    margin: 0;
    font: 700 1.3rem/1.1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.start-card p[b-t9by1kp7pi] {
    flex: 1;
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.start-go[b-t9by1kp7pi] {
    margin-top: 0.8rem;
    color: var(--accent);
    font: 600 0.85rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.start-arrow[b-t9by1kp7pi] {
    display: inline-block;
    transition: transform 0.25s;
}

.start-card:hover .start-arrow[b-t9by1kp7pi] { transform: translateX(5px); }
:root[dir="rtl"] .start-arrow[b-t9by1kp7pi] { transform: scaleX(-1); }
:root[dir="rtl"] .start-card:hover .start-arrow[b-t9by1kp7pi] { transform: scaleX(-1) translateX(5px); }

@media (max-width: 1080px) {
    .pillars[b-t9by1kp7pi], .start-grid[b-t9by1kp7pi] { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .pillars[b-t9by1kp7pi], .start-grid[b-t9by1kp7pi] { grid-template-columns: 1fr; }
}

/* ---------- telefono ---------- */
@media (max-width: 720px) {
    .ladder[b-t9by1kp7pi] { gap: 0.35rem; }
    .rung[b-t9by1kp7pi] { padding: 0.55rem 0.4rem; text-align: center; }
    .rung-c[b-t9by1kp7pi] { --h: 4rem; } .rung-b[b-t9by1kp7pi] { --h: 5rem; } .rung-a[b-t9by1kp7pi] { --h: 6rem; } .rung-s[b-t9by1kp7pi] { --h: 7rem; } .rung-z[b-t9by1kp7pi] { --h: 8rem; }
    .rung-credits[b-t9by1kp7pi] { font-size: 0.72rem; letter-spacing: 0.02em; }

    .stats[b-t9by1kp7pi] { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3)[b-t9by1kp7pi] { border-inline-start: 0; }
    .stat:nth-child(n + 3)[b-t9by1kp7pi] { border-top: 1px solid rgba(255, 255, 255, 0.08); }
}

@media (prefers-reduced-motion: reduce) {
    .pillar[b-t9by1kp7pi], .start-card[b-t9by1kp7pi], .start-arrow[b-t9by1kp7pi] { transition: none; }
}
/* /Components/Pages/Officina.razor.rz.scp.css */
.officina[b-e0yr7e3pv9] {
    --mio: 94, 234, 212;
    overflow-x: clip;
    padding-bottom: 5rem;
}

/* ---------- testata: il nome si scrive in grande, come il titolo di una scheda ---------- */
.of-hero[b-e0yr7e3pv9] {
    position: relative;
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 6rem clamp(1rem, 4vw, 3rem) 2rem;
}

.of-hero[b-e0yr7e3pv9]::before {
    content: "";
    position: absolute;
    inset: 0 -30vw;
    z-index: -1;
    background:
        radial-gradient(ellipse 45% 70% at 18% 30%, rgba(var(--tinta), 0.2), transparent 70%),
        radial-gradient(ellipse 30% 50% at 85% 10%, rgba(var(--mio), 0.1), transparent 70%);
    transition: background 0.6s;
}

.of-back[b-e0yr7e3pv9] {
    display: inline-flex;
    gap: 0.4rem;
    margin-bottom: 1.4rem;
    color: var(--muted);
    text-decoration: none;
    font: 600 0.85rem/1 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.of-back:hover[b-e0yr7e3pv9] { color: var(--accent); }
:root[dir="rtl"] .of-back span[b-e0yr7e3pv9] { transform: scaleX(-1); }

.of-name input[b-e0yr7e3pv9] {
    width: 100%;
    padding: 0.1rem 0 0.4rem;
    background: none;
    border: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: #f4f7fc;
    font: 700 clamp(2.4rem, 7vw, 5rem)/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    transition: border-color 0.25s;
}

.of-name input[b-e0yr7e3pv9]::placeholder { color: rgba(255, 255, 255, 0.18); }
.of-name input:focus[b-e0yr7e3pv9] { outline: none; border-bottom-color: rgb(var(--tinta)); box-shadow: none; }

.visually-hidden[b-e0yr7e3pv9] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.of-meta[b-e0yr7e3pv9] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.4rem;
    margin-top: 1.4rem;
}

.of-field[b-e0yr7e3pv9] {
    display: grid;
    gap: 0.35rem;
    min-width: min(260px, 100%);
}

.of-field span[b-e0yr7e3pv9] {
    color: var(--muted);
    font: 600 0.72rem/1 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.of-field input[b-e0yr7e3pv9] {
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text);
}

.of-reset[b-e0yr7e3pv9] {
    padding: 0.6rem 1rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
}

.of-reset:hover:not(:disabled)[b-e0yr7e3pv9] { color: #ff8a8a; border-color: rgba(255, 107, 107, 0.5); background: rgba(255, 107, 107, 0.06); }

/* ---------- impaginato: il banco a sinistra, il riepilogo che segue a destra ---------- */
.of-layout[b-e0yr7e3pv9] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.6rem;
    align-items: start;
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.of-bench[b-e0yr7e3pv9] { display: grid; gap: 1.2rem; min-width: 0; }

/* ---------- i sei slot ---------- */
.of-slots[b-e0yr7e3pv9] {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.6rem;
}

.of-slot[b-e0yr7e3pv9] {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    padding: 0.9rem 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.of-slot:hover:not(:disabled)[b-e0yr7e3pv9] { transform: translateY(-2px); background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); }

.of-slot.on[b-e0yr7e3pv9],
.of-slot.on:hover:not(:disabled)[b-e0yr7e3pv9] {
    background: linear-gradient(180deg, rgba(var(--tinta), 0.18), rgba(var(--tinta), 0.04));
    border-color: rgb(var(--tinta));
    box-shadow: 0 14px 30px -18px rgba(var(--tinta), 0.9);
}

.of-slot-icon[b-e0yr7e3pv9] {
    display: grid;
    place-items: center;
    width: 44px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    color: var(--muted);
    transition: background 0.2s, color 0.2s;
}

.of-slot.full .of-slot-icon[b-e0yr7e3pv9] { background: rgba(var(--tinta), 0.2); color: rgb(var(--tinta)); }
.of-slot.on .of-slot-icon[b-e0yr7e3pv9] { background: rgb(var(--tinta)); color: #0b0e14; }

.of-slot-icon svg[b-e0yr7e3pv9] { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }

.of-slot-text[b-e0yr7e3pv9] { display: grid; gap: 0.2rem; min-width: 0; width: 100%; }

.of-slot-name[b-e0yr7e3pv9] {
    font: 700 0.85rem/1 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.of-slot-piece[b-e0yr7e3pv9] {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.72rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.of-slot.empty .of-slot-piece[b-e0yr7e3pv9] { font-style: italic; opacity: 0.7; }

.of-slot-check[b-e0yr7e3pv9] {
    position: absolute;
    top: 0.45rem;
    inset-inline-end: 0.55rem;
    color: rgb(var(--tinta));
    font-size: 0.8rem;
}

/* ---------- la scelta del pezzo ---------- */
.of-picker[b-e0yr7e3pv9],
.of-detail[b-e0yr7e3pv9],
.of-card[b-e0yr7e3pv9] {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(13, 17, 24, 0.92) 60%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.of-picker[b-e0yr7e3pv9] { padding: 1.2rem; }

.of-picker-head[b-e0yr7e3pv9] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.of-picker-head h2[b-e0yr7e3pv9] {
    margin: 0;
    font: 700 1.4rem/1 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.of-chips[b-e0yr7e3pv9] { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.of-chip[b-e0yr7e3pv9] {
    min-width: 2.3rem;
    padding: 0.4rem 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: var(--muted);
    font: 700 0.85rem/1 'Rajdhani', sans-serif;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.of-chip[style][b-e0yr7e3pv9] { color: rgb(var(--c)); }
.of-chip:hover:not(:disabled)[b-e0yr7e3pv9] { background: rgba(255, 255, 255, 0.08); }
.of-chip.on[b-e0yr7e3pv9], .of-chip.on:hover:not(:disabled)[b-e0yr7e3pv9] { background: rgba(255, 209, 102, 0.16); border-color: var(--accent); color: var(--accent); }
.of-chip.on[style][b-e0yr7e3pv9], .of-chip.on[style]:hover:not(:disabled)[b-e0yr7e3pv9] { background: rgba(var(--c), 0.2); border-color: rgb(var(--c)); color: rgb(var(--c)); }

.of-options[b-e0yr7e3pv9] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.6rem;
    max-height: 460px;
    overflow-y: auto;
    padding: 2px;
    scrollbar-width: thin;
}

.of-option[b-e0yr7e3pv9] {
    position: relative;
    display: grid;
    align-content: start;
    gap: 0.35rem;
    padding: 0.8rem 0.85rem 0.75rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-inline-start: 3px solid rgba(var(--c), 0.7);
    border-radius: 10px;
    color: var(--text);
    text-align: start;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.of-option:hover:not(:disabled)[b-e0yr7e3pv9] { background: rgba(var(--c), 0.08); border-color: rgba(var(--c), 0.5); transform: translateY(-1px); }

.of-option.on[b-e0yr7e3pv9],
.of-option.on:hover:not(:disabled)[b-e0yr7e3pv9] {
    background: rgba(var(--c), 0.16);
    border-color: rgb(var(--c));
    box-shadow: 0 0 0 1px rgb(var(--c)), 0 12px 26px -16px rgba(var(--c), 0.9);
}

.of-option-top[b-e0yr7e3pv9] { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }

.of-option-class[b-e0yr7e3pv9] {
    display: grid;
    place-items: center;
    width: 22px;
    height: 24px;
    background: rgba(var(--c), 0.18);
    color: rgb(var(--c));
    font: 700 0.8rem/1 'Rajdhani', sans-serif;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.of-option-cost[b-e0yr7e3pv9] { color: var(--accent); font: 700 0.8rem/1 'Rajdhani', sans-serif; letter-spacing: 0.04em; }

.of-option-name[b-e0yr7e3pv9] {
    font: 700 1.02rem/1.1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.of-option-from[b-e0yr7e3pv9] { color: var(--muted); font-size: 0.72rem; }

.of-option-nums[b-e0yr7e3pv9] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.7rem;
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.72rem;
}

.of-option-nums b[b-e0yr7e3pv9] { color: var(--text); font: 700 0.9rem/1 'Rajdhani', sans-serif; }

/* ---------- il pezzo montato ---------- */
.of-detail[b-e0yr7e3pv9] { padding: 1.3rem 1.4rem; }

.of-detail-empty[b-e0yr7e3pv9] { margin: 0; color: var(--muted); text-align: center; padding: 1.5rem 0; }

.of-detail-head[b-e0yr7e3pv9] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.of-detail-slot[b-e0yr7e3pv9] {
    color: rgb(var(--tinta));
    font: 600 0.75rem/1 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.of-detail-head h3[b-e0yr7e3pv9] {
    margin: 0.3rem 0 0;
    font: 700 1.7rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
}

.of-remove[b-e0yr7e3pv9] {
    padding: 0.4rem 0.8rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

.of-remove:hover:not(:disabled)[b-e0yr7e3pv9] { color: #ff8a8a; border-color: rgba(255, 107, 107, 0.5); background: rgba(255, 107, 107, 0.06); }

.of-detail-desc[b-e0yr7e3pv9] { margin: 0 0 1rem; color: #b6c3d7; line-height: 1.6; font-size: 0.92rem; }

.of-detail-grid[b-e0yr7e3pv9] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.of-detail-grid > div[b-e0yr7e3pv9] {
    display: grid;
    gap: 0.25rem;
    padding: 0.6rem 0.7rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.of-detail-grid > div.wide[b-e0yr7e3pv9] { grid-column: span 2; }

.of-detail-grid span[b-e0yr7e3pv9] {
    color: var(--muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.of-detail-grid strong[b-e0yr7e3pv9] { font: 700 1.1rem/1.1 'Rajdhani', 'Inter', sans-serif; }

.of-defs[b-e0yr7e3pv9] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.4rem; margin-bottom: 1rem; }

.of-def[b-e0yr7e3pv9] { display: grid; grid-template-columns: 7rem 1fr 1.6rem; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--muted); }
.of-def b[b-e0yr7e3pv9] { color: var(--text); text-align: end; font-family: 'Rajdhani', sans-serif; }
.of-def-track[b-e0yr7e3pv9] { height: 6px; background: rgba(255, 255, 255, 0.06); border-radius: 999px; overflow: hidden; }
.of-def-track span[b-e0yr7e3pv9] { display: block; height: 100%; background: rgb(var(--tinta)); border-radius: inherit; transition: width 0.4s; }

.of-mounts[b-e0yr7e3pv9] { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.of-mounts li[b-e0yr7e3pv9] { display: grid; gap: 0.15rem; padding: 0.6rem 0.75rem; border-inline-start: 2px solid rgb(var(--tinta)); background: rgba(255, 255, 255, 0.025); font-size: 0.85rem; }
.of-mounts span[b-e0yr7e3pv9] { color: var(--muted); }

.of-ov[b-e0yr7e3pv9] { margin: 0; padding: 0.7rem 0.9rem; border-radius: 8px; background: rgba(255, 209, 102, 0.06); color: #d6deea; font-size: 0.86rem; }
.of-ov span[b-e0yr7e3pv9] { margin-inline-end: 0.4rem; color: var(--accent); font-weight: 700; }

/* ---------- il riepilogo ---------- */
.of-summary[b-e0yr7e3pv9] {
    position: sticky;
    top: 4.5rem;
    display: grid;
    gap: 0.8rem;
}

.of-card[b-e0yr7e3pv9] { padding: 1rem 1.1rem; }

.of-id[b-e0yr7e3pv9] { display: flex; align-items: center; gap: 1rem; }

.of-portrait[b-e0yr7e3pv9] {
    position: relative;
    flex-shrink: 0;
    width: 92px;
    height: 116px;
    display: grid;
    place-items: center;
}

.of-portrait[b-e0yr7e3pv9]  .silhouette { width: 100%; height: 100%; }

.of-class-letter[b-e0yr7e3pv9] {
    position: absolute;
    inset-inline-end: -6px;
    bottom: -4px;
    color: rgb(var(--tinta));
    font: 700 2.6rem/1 'Rajdhani', sans-serif;
    text-shadow: 0 0 20px rgba(var(--tinta), 0.7);
}

.of-id-text[b-e0yr7e3pv9] { display: grid; gap: 0.3rem; min-width: 0; }

.of-id-kicker[b-e0yr7e3pv9] {
    color: rgb(var(--tinta));
    font: 600 0.72rem/1 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.of-id-name[b-e0yr7e3pv9] {
    overflow-wrap: break-word;
    hyphens: auto;
    font: 700 1.35rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
}

.of-id-count[b-e0yr7e3pv9] { color: var(--muted); font-size: 0.78rem; }

.of-credits[b-e0yr7e3pv9] { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.of-credits span[b-e0yr7e3pv9] { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.of-credits strong[b-e0yr7e3pv9] { color: var(--accent); font: 700 1.5rem/1 'Rajdhani', sans-serif; }

.of-band[b-e0yr7e3pv9] { height: 8px; margin-top: 0.8rem; background: rgba(255, 255, 255, 0.06); border-radius: 999px; overflow: hidden; }
.of-band span[b-e0yr7e3pv9] { display: block; height: 100%; background: linear-gradient(90deg, rgba(var(--tinta), 0.5), rgb(var(--tinta))); border-radius: inherit; transition: width 0.5s cubic-bezier(.2, .8, .2, 1); }
.of-band-note[b-e0yr7e3pv9] { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.78rem; }

.of-tiles[b-e0yr7e3pv9] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0;
}

.of-tiles > div[b-e0yr7e3pv9] { padding: 0.5rem 0.2rem; text-align: center; background: rgba(255, 255, 255, 0.03); border-radius: 8px; }
.of-tiles dt[b-e0yr7e3pv9] { color: var(--muted); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.1em; }
.of-tiles dd[b-e0yr7e3pv9] { margin: 0.25rem 0 0; font: 700 1.35rem/1 'Rajdhani', sans-serif; }

.of-radar[b-e0yr7e3pv9]  figure { margin: 0; }

.of-issues[b-e0yr7e3pv9] { margin: 0; padding-inline-start: 2rem; border-color: rgba(255, 107, 107, 0.35); color: #ffb3b3; font-size: 0.85rem; }

.of-save[b-e0yr7e3pv9] { display: grid; gap: 0.6rem; }
.of-save .btn[b-e0yr7e3pv9] { width: 100%; }
.of-hint[b-e0yr7e3pv9] { margin: 0; color: var(--muted); font-size: 0.82rem; text-align: center; }
.of-error[b-e0yr7e3pv9] { margin: 0; color: #ff8a8a; font-size: 0.85rem; }

.officina .btn:disabled[b-e0yr7e3pv9] { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- la barra fissa su telefono ---------- */
.of-dock[b-e0yr7e3pv9] { display: none; }

@media (max-width: 1080px) {
    .of-layout[b-e0yr7e3pv9] { grid-template-columns: 1fr; }
    .of-summary[b-e0yr7e3pv9] { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .of-slots[b-e0yr7e3pv9] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .of-dock[b-e0yr7e3pv9] {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        gap: 0.9rem;
        padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
        background: rgba(11, 14, 20, 0.92);
        backdrop-filter: blur(14px);
        border-top: 1px solid rgba(var(--tinta), 0.4);
    }

    .of-dock-class[b-e0yr7e3pv9] { color: rgb(var(--tinta)); font: 700 2rem/1 'Rajdhani', sans-serif; }
    .of-dock-text[b-e0yr7e3pv9] { display: grid; flex: 1; min-width: 0; }
    .of-dock-text strong[b-e0yr7e3pv9] { color: var(--accent); font: 700 1.1rem/1 'Rajdhani', sans-serif; }
    .of-dock-text small[b-e0yr7e3pv9] { color: var(--muted); font-size: 0.72rem; }
    .officina .of-dock .btn[b-e0yr7e3pv9] { padding: 0.75rem 1.1rem; }
    .officina[b-e0yr7e3pv9] { padding-bottom: 7rem; }
}

@media (max-width: 560px) {
    .of-slots[b-e0yr7e3pv9] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .of-slot[b-e0yr7e3pv9] { grid-template-columns: auto 1fr; justify-items: start; text-align: start; padding: 0.6rem; }
    .of-slot-icon[b-e0yr7e3pv9] { width: 34px; height: 38px; }
    .of-options[b-e0yr7e3pv9] { grid-template-columns: 1fr; max-height: 380px; }
    .of-defs[b-e0yr7e3pv9] { grid-template-columns: 1fr; }
    .of-detail-grid > div.wide[b-e0yr7e3pv9] { grid-column: auto; }
    .of-meta > *[b-e0yr7e3pv9] { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .of-slot[b-e0yr7e3pv9], .of-option[b-e0yr7e3pv9], .of-band span[b-e0yr7e3pv9], .of-def-track span[b-e0yr7e3pv9] { transition: none; }
}
/* /Components/Pages/Rules.razor.rz.scp.css */
/* Il Regolamento con la grafica del resto dell'app: testata delle pagine del mondo (lore.css),
   indice laterale che segue la lettura, sezioni numerate, riquadri d'avviso, tabelle leggibili.
   ⚠ Rules.razor è generata da tools/regolamento_pagina.py; questo file no, e lo script non lo tocca.
   Le regole sotto ::deep servono ai componenti figli (RegolaViva) e al markup che arriva dai JSON. */

.r-facts[b-pfvk6aqxre] {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
    margin: 2.2rem 0 0;
}

.r-facts div[b-pfvk6aqxre] { display: flex; flex-direction: column-reverse; }

.r-facts dd[b-pfvk6aqxre] {
    margin: 0;
    font: 700 clamp(1.6rem, 3.5vw, 2.4rem)/1 'Rajdhani', sans-serif;
    color: var(--accent);
}

.r-facts dt[b-pfvk6aqxre] {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.r-layout[b-pfvk6aqxre] {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: 2.5rem var(--gutter) 0;
}

/* ---------- indice ---------- */
.r-toc[b-pfvk6aqxre] {
    position: sticky;
    top: 5rem;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding-inline-end: 0.5rem;
    scrollbar-width: thin;
}

.r-toc-title[b-pfvk6aqxre] {
    margin: 0 0 0.6rem;
    color: var(--accent);
    font: 700 0.8rem/1 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.r-toc a[b-pfvk6aqxre] {
    display: flex;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    color: var(--muted);
    text-decoration: none;
    font: 600 0.92rem/1.2 'Rajdhani', 'Inter', sans-serif;
    border-inline-start: 2px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.r-toc a span[b-pfvk6aqxre] { color: rgba(255, 209, 102, 0.5); min-width: 1.4rem; }
.r-toc a:hover[b-pfvk6aqxre] { color: #eef3fb; background: rgba(255, 255, 255, 0.03); }

.r-toc a.active[b-pfvk6aqxre] {
    color: #fff;
    border-inline-start-color: var(--accent);
    background: linear-gradient(90deg, rgba(255, 209, 102, 0.12), transparent);
}

.r-toc a.active span[b-pfvk6aqxre] { color: var(--accent); }
.r-toc a.appendix[b-pfvk6aqxre] { margin-top: 0.6rem; font-style: italic; }

/* ---------- sezioni ---------- */
.r-body[b-pfvk6aqxre] {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    max-width: 52rem;
    min-width: 0;
}

.r-section[b-pfvk6aqxre] {
    padding: clamp(1.3rem, 3vw, 2rem);
    background: linear-gradient(160deg, rgba(27, 35, 49, 0.75), rgba(13, 17, 24, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    scroll-margin-top: 5rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.r-appendix[b-pfvk6aqxre] {
    background: rgba(13, 17, 24, 0.6);
    border-style: dashed;
}

.r-head[b-pfvk6aqxre] {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.r-icon[b-pfvk6aqxre] {
    display: grid;
    place-items: center;
    width: 48px;
    height: 54px;
    flex-shrink: 0;
    background: rgba(255, 209, 102, 0.08);
    border: 1px solid rgba(255, 209, 102, 0.25);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.r-icon[b-pfvk6aqxre]  svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.4;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.r-num[b-pfvk6aqxre] {
    font: 700 1.1rem/1 'Rajdhani', sans-serif;
    color: rgba(255, 209, 102, 0.6);
}

.r-head h2[b-pfvk6aqxre] {
    margin: 0;
    font: 700 clamp(1.5rem, 3vw, 2.1rem)/1.05 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.r-content[b-pfvk6aqxre]  p,
.r-content p[b-pfvk6aqxre] {
    margin: 0 0 0.9rem;
    color: #c4cfe0;
    line-height: 1.75;
}

.r-content[b-pfvk6aqxre]  strong { color: #f4f7fc; }
.r-content[b-pfvk6aqxre]  em { color: #d6deea; }

.r-content[b-pfvk6aqxre]  code {
    padding: 0.05rem 0.35rem;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    color: var(--accent);
    font-size: 0.88em;
}

.r-h3[b-pfvk6aqxre], .r-h4[b-pfvk6aqxre], .r-h5[b-pfvk6aqxre] {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
}

.r-h3[b-pfvk6aqxre] {
    margin: 1.8rem 0 0.7rem;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    color: #f4f7fc;
}

.r-h3[b-pfvk6aqxre]::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 11px;
    margin-inline-end: 0.55rem;
    background: var(--accent);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.r-h4[b-pfvk6aqxre] { margin: 1.4rem 0 0.6rem; font-size: 1.05rem; letter-spacing: 0.08em; color: var(--accent); }
.r-h5[b-pfvk6aqxre] { margin: 1.2rem 0 0.5rem; font-size: 0.92rem; letter-spacing: 0.12em; color: #9fb0c9; }
.r-h3.warn[b-pfvk6aqxre], .r-h4.warn[b-pfvk6aqxre], .r-h5.warn[b-pfvk6aqxre] { color: #ffb066; }

.r-list[b-pfvk6aqxre] {
    margin: 0 0 1rem;
    padding-inline-start: 1.3rem;
    color: #c4cfe0;
    line-height: 1.7;
}

.r-list li[b-pfvk6aqxre] { margin-bottom: 0.35rem; }
.r-list li[b-pfvk6aqxre]::marker { color: var(--accent); }

/* ---------- avvisi ---------- */
.r-callout[b-pfvk6aqxre] {
    display: flex;
    gap: 0.8rem;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border-inline-start: 3px solid;
}

.r-callout.warn[b-pfvk6aqxre] { background: rgba(255, 159, 67, 0.08); border-color: #ff9f43; }
.r-callout.ok[b-pfvk6aqxre] { background: rgba(var(--ok-rgb), 0.08); border-color: var(--ok); }

.r-callout-icon[b-pfvk6aqxre] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font: 700 0.8rem/1 'Inter', sans-serif;
    color: #0b0e14;
}

.r-callout.warn .r-callout-icon[b-pfvk6aqxre] { background: #ff9f43; }
.r-callout.ok .r-callout-icon[b-pfvk6aqxre] { background: var(--ok); }
.r-callout p[b-pfvk6aqxre] { margin: 0 !important; }

/* ---------- tabelle ---------- */
.r-content[b-pfvk6aqxre]  .r-table-wrap,
.r-content .r-table-wrap[b-pfvk6aqxre] {
    margin: 0 0 1.2rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.r-content[b-pfvk6aqxre]  .r-table,
.r-content .r-table[b-pfvk6aqxre] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.r-content[b-pfvk6aqxre]  .r-table th,
.r-content .r-table th[b-pfvk6aqxre] {
    padding: 0.65rem 0.8rem;
    background: rgba(255, 209, 102, 0.08);
    color: var(--accent);
    font: 700 0.78rem/1.2 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: start;
    white-space: nowrap;
}

.r-content[b-pfvk6aqxre]  .r-table td,
.r-content .r-table td[b-pfvk6aqxre] {
    padding: 0.6rem 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #c4cfe0;
    vertical-align: top;
    line-height: 1.55;
}

.r-content[b-pfvk6aqxre]  .r-table tbody tr:hover td,
.r-content .r-table tbody tr:hover td[b-pfvk6aqxre] { background: rgba(255, 255, 255, 0.025); }

.r-content[b-pfvk6aqxre]  .r-table td:first-child,
.r-content .r-table td:first-child[b-pfvk6aqxre] { color: #f4f7fc; font-weight: 600; }

.r-content[b-pfvk6aqxre]  .r-class { font: 700 1.1rem/1 'Rajdhani', sans-serif; color: var(--accent) !important; }

.r-content[b-pfvk6aqxre]  caption {
    caption-side: bottom;
    padding: 0.6rem 0.8rem;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: start;
}

.r-content[b-pfvk6aqxre]  .r-live {
    position: relative;
    margin: 0 0 1.2rem;
}

.r-content[b-pfvk6aqxre]  .r-live-tag {
    margin: 0 0 0.4rem !important;
    color: #5eead4 !important;
    font: 600 0.72rem/1 'Rajdhani', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.r-content[b-pfvk6aqxre]  .r-live .r-table-wrap { border-color: rgba(94, 234, 212, 0.3); }
.r-content[b-pfvk6aqxre]  .r-live .r-table th { background: rgba(94, 234, 212, 0.08); color: #5eead4; }

/* ---------- formati ---------- */
@media (max-width: 980px) {
    /* minmax(0, …): con «1fr» la colonna cresce fino alla riga più lunga (una tabella, un nome di
       file) e il testo esce dallo schermo del telefono. */
    .r-layout[b-pfvk6aqxre] { grid-template-columns: minmax(0, 1fr); }

    /* Su schermi stretti l'indice diventa una striscia orizzontale che resta in alto. */
    .r-toc[b-pfvk6aqxre] {
        top: 3.4rem;
        z-index: 5;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        margin: 0 calc(var(--gutter) * -1);
        padding: 0.5rem var(--gutter);
        background: rgba(11, 14, 20, 0.92);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .r-toc-title[b-pfvk6aqxre] { display: none; }

    .r-toc a[b-pfvk6aqxre] {
        flex-shrink: 0;
        border-inline-start: 0;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
    }

    .r-toc a.active[b-pfvk6aqxre] { border-bottom-color: var(--accent); background: none; }
    .r-toc a.appendix[b-pfvk6aqxre] { margin-top: 0; }
}

@media (max-width: 560px) {
    .r-section[b-pfvk6aqxre] { padding: 1.1rem 0.9rem; border-radius: 14px; }
    .r-head[b-pfvk6aqxre] { gap: 0.6rem; }
    .r-icon[b-pfvk6aqxre] { width: 40px; height: 45px; }
}
/* /Components/Shared/HexGrid.razor.rz.scp.css */
/* La cornice della mappa: lo schermo tattico di un hangar, griglia di fondo e angoli di mira come
   il ritratto dei mecha. La compatta (miniature delle schede) è solo la griglia, senza cornice. */
.hex-grid-wrapper[b-rd6a6plzvg] {
    position: relative;
    overflow: auto;
    max-width: 100%;
    padding: 1.2rem;
    background:
        radial-gradient(ellipse 70% 60% at 50% 35%, rgba(77, 142, 247, 0.12), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 22px 22px,
        #0a0d13;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6);
    scrollbar-width: thin;
}

.hex-grid-wrapper.compact[b-rd6a6plzvg] {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    overflow: hidden;
}

.hg-corner[b-rd6a6plzvg] {
    position: absolute;
    z-index: 1;
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 209, 102, 0.55);
    pointer-events: none;
}

.hg-corner.tl[b-rd6a6plzvg] { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.hg-corner.tr[b-rd6a6plzvg] { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.hg-corner.bl[b-rd6a6plzvg] { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.hg-corner.br[b-rd6a6plzvg] { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.hex-grid[b-rd6a6plzvg] {
    display: block;
    margin: 0 auto;
    user-select: none;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
}

.compact .hex-grid[b-rd6a6plzvg] { width: 100%; height: 100%; filter: none; }

/* La faccia ha la sfumatura (attributo fill, dal componente); qui solo il filo: scuro fuori, una
   linea di luce appena dentro che stacca le caselle senza disegnare una rete. */
.hex .hex-top[b-rd6a6plzvg] {
    stroke: rgba(5, 8, 12, 0.85);
    stroke-width: 1;
    transition: filter 0.12s ease-out;
}

.hex .hex-side[b-rd6a6plzvg] {
    stroke: rgba(5, 8, 12, 0.9);
    stroke-width: 1;
}

/* Le pareti delle alture: più scure della faccia, con la stessa tinta. */
.hex.h1 .hex-side[b-rd6a6plzvg] { fill: #1d3a40; }
.hex.h2 .hex-side[b-rd6a6plzvg] { fill: #5a3f20; }
.hex.h3 .hex-side[b-rd6a6plzvg] { fill: #644726; }
.hex.h4 .hex-side[b-rd6a6plzvg] { fill: #6e4f2b; }
.hex.h5 .hex-side[b-rd6a6plzvg] { fill: #785730; }

/* La seconda altura si vede da lontano: un riflesso caldo, come metallo al sole. */
.hex.h2 .hex-top[b-rd6a6plzvg] { filter: drop-shadow(0 0 3px rgba(255, 190, 90, 0.35)); }

.hex.disabled .hex-top[b-rd6a6plzvg] {
    stroke: rgba(255, 159, 67, 0.22);
    stroke-dasharray: 3 3;
}

.hex.clickable[b-rd6a6plzvg] {
    cursor: pointer;
}

.hex.clickable:hover .hex-top[b-rd6a6plzvg] {
    filter: brightness(1.4) drop-shadow(0 0 6px rgba(255, 209, 102, 0.5));
}

/* ⚠ **Il cono di tiro**, e sta PRIMA di `highlighted` e `selected` di proposito: quando una
   casella è insieme nel cono e bersaglio inquadrato vince la seconda, che è l'informazione più
   specifica. La cascata qui è la priorità di lettura, non l'ordine in cui è stato scritto. */
.hex.in-mira .hex-top[b-rd6a6plzvg] {
    stroke: #39ff9a;
    stroke-width: 2;
    filter: brightness(1.08);
}

.hex.highlighted .hex-top[b-rd6a6plzvg] {
    stroke: #ffd166;
    stroke-width: 2.5;
    filter: brightness(1.25);
}

.hex.selected .hex-top[b-rd6a6plzvg] {
    stroke: #ffffff;
    stroke-width: 3;
}

/* La casella occupata si stacca dal terreno: senza, il mecha sembra appoggiato sul nulla. */
.hex.occupied .hex-top[b-rd6a6plzvg] {
    filter: brightness(1.12);
}

/* Le etichette di testo sono emesse dal componente SvgText e non ricevono l'attributo
   di isolamento CSS: le loro regole stanno in wwwroot/app.css. */

.hex-unit[b-rd6a6plzvg] {
    stroke: #0b0e14;
    stroke-width: 2;
    pointer-events: none;
}

.hex.owner-0 .hex-unit[b-rd6a6plzvg] { fill: #4d8ef7; }
.hex.owner-1 .hex-unit[b-rd6a6plzvg] { fill: var(--danger); }

/* Chi ha già agito si spegne: a colpo d'occhio si vede chi resta da muovere. */
.hex.spent .hex-unit[b-rd6a6plzvg] {
    opacity: 0.55;
}

.hex.out-of-action .hex-unit[b-rd6a6plzvg] {
    fill: #3d4353;
    opacity: 0.75;
}

/* ---------- anello di struttura ----------
   Un cerchio disegnato solo per la frazione di HP che resta: guardare il campo deve bastare
   a sapere chi sta perdendo, senza cercare il mecha in tabella. */

.hex-health-track[b-rd6a6plzvg],
.hex-health[b-rd6a6plzvg] {
    fill: none;
    pointer-events: none;
}

.hex-health-track[b-rd6a6plzvg] {
    stroke: #0b0e14;
    stroke-width: 3.5;
    opacity: 0.85;
}

.hex-health[b-rd6a6plzvg] {
    stroke-width: 3.5;
    stroke-linecap: round;
    transition: stroke-dasharray 0.35s ease-out, stroke 0.35s ease-out;
}

.hex-health.healthy[b-rd6a6plzvg] { stroke: var(--ok); }
.hex-health.hurt[b-rd6a6plzvg] { stroke: #ffd166; }
.hex-health.critical[b-rd6a6plzvg] { stroke: var(--danger); }

/* Il mecha fuori combattimento porta una croce: «spento» da solo si confonde con «già mosso». */
.hex-wreck[b-rd6a6plzvg] {
    stroke: var(--danger);
    stroke-width: 2.5;
    stroke-linecap: round;
    opacity: 0.9;
    pointer-events: none;
}

/* Chi sta agendo pulsa, così non lo si perde di vista fra sei mecha. */
.hex.active-unit .hex-unit[b-rd6a6plzvg] {
    stroke: #ffd166;
    stroke-width: 3;
}

.hex.active-unit .hex-top[b-rd6a6plzvg] {
    stroke: #ffd166;
    stroke-width: 2.5;
    animation: hex-pulse-b-rd6a6plzvg 1.8s ease-in-out infinite;
}

/* Il bersaglio inquadrato: un mirino, non un colore in più da imparare. */
.hex.targeted .hex-top[b-rd6a6plzvg] {
    stroke: var(--danger);
    stroke-width: 3;
}

.hex.targeted .hex-unit[b-rd6a6plzvg] {
    stroke: var(--danger);
    stroke-width: 3;
}

@keyframes hex-pulse-b-rd6a6plzvg {
    0%, 100% { stroke-opacity: 1; }
    50% { stroke-opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .hex.active-unit .hex-top[b-rd6a6plzvg] { animation: none; }
    .hex-health[b-rd6a6plzvg] { transition: none; }
}

/* Indicatore di orientamento: da dove il mecha guarda dipende l'arco degli attacchi,
   quindi va letto senza sforzo. */
.hex-facing[b-rd6a6plzvg] {
    stroke: #ffd166;
    stroke-width: 3.5;
    stroke-linecap: round;
    pointer-events: none;
}

.hex.out-of-action .hex-facing[b-rd6a6plzvg] {
    stroke: #4a5164;
}

/* L'abilità del pilota dichiarata: un alone viola attorno al mecha, finché dura l'attivazione. */
.hex-skill[b-rd6a6plzvg] {
    fill: none;
    stroke: #c07ae8;
    stroke-width: 2.5;
    stroke-dasharray: 4 3;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(192, 122, 232, 0.9));
    animation: hex-spin-b-rd6a6plzvg 6s linear infinite;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes hex-spin-b-rd6a6plzvg { to { transform: rotate(360deg); } }

/* Il gettone di un power-up scoperto sulla mappa. */
.hex-pu-ring[b-rd6a6plzvg] {
    fill: rgba(10, 13, 19, 0.82);
    stroke: #ffd166;
    stroke-width: 1.6;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.75));
    animation: hex-pu-b-rd6a6plzvg 2.4s ease-in-out infinite;
}

@keyframes hex-pu-b-rd6a6plzvg {
    0%, 100% { stroke-opacity: 1; }
    50% { stroke-opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
    .hex-skill[b-rd6a6plzvg], .hex-pu-ring[b-rd6a6plzvg] { animation: none; }
}

/* ---------- la tessera concentrica ----------
   Ogni casella è un pezzo posato in un alloggiamento: la fuga scura attorno, le due pareti
   (sinistra in ombra, destra alla luce), il bordo fisso e la piastra centrale, che è quella che
   si ribalta sul power-up. La piastra è uguale ovunque: coperta e vuota non si distinguono. */

.hex-socket[b-rd6a6plzvg] {
    fill: #05070b;
    stroke: rgba(255, 255, 255, 0.035);
    stroke-width: 0.6;
}

.hex.disabled .hex-socket[b-rd6a6plzvg] { fill: #07090d; }

.hex-side-l[b-rd6a6plzvg] { fill: rgba(0, 0, 0, 0.32); pointer-events: none; }
.hex-side-r[b-rd6a6plzvg] { fill: rgba(255, 255, 255, 0.05); pointer-events: none; }

.hex-plate[b-rd6a6plzvg] {
    stroke: rgba(4, 6, 10, 0.7);
    stroke-width: 1.4;
    pointer-events: none;
    transition: filter 0.12s ease-out;
}

/* Il labbro della piastra: un filo di luce appena dentro la fuga, come uno smusso. */
.hex-plate-lip[b-rd6a6plzvg] {
    fill: none;
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 0.8;
    pointer-events: none;
}

.hex.clickable:hover .hex-plate[b-rd6a6plzvg],
.hex.highlighted .hex-plate[b-rd6a6plzvg] { filter: brightness(1.3); }

.hex.in-mira .hex-plate[b-rd6a6plzvg] { filter: brightness(1.12) saturate(1.2); }

/* La prospettiva vera: le file lontane rimpiccioliscono. La compressione isometrica dà già il
   piano inclinato; questa rotazione leggera aggiunge la profondità che le mancava. I clic seguono
   la trasformazione, quindi nulla cambia per chi gioca. */
.hex-grid-wrapper:not(.compact) .hex-grid[b-rd6a6plzvg] {
    transform: perspective(1900px) rotateX(15deg);
    transform-origin: 50% 80%;
}
/* /Components/Shared/Tendina.razor.rz.scp.css */
.tendina[b-huudhsrw4v] {
    --t-accent: 255, 209, 102;
    position: relative;
    min-width: 0;
}

/* ---------- il pulsante: vetro scuro, angolo tagliato come i bottoni dell'app ---------- */
.t-toggle[b-huudhsrw4v] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 2.6rem;
    padding: 0.55rem 0.85rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text);
    font: 500 0.95rem/1.2 'Inter', sans-serif;
    text-align: start;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.t-toggle:hover:not(:disabled)[b-huudhsrw4v] {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    border-color: rgba(var(--t-accent), 0.45);
}

.t-toggle:focus-visible[b-huudhsrw4v],
.open .t-toggle[b-huudhsrw4v] {
    outline: none;
    border-color: rgb(var(--t-accent));
    box-shadow: 0 0 0 3px rgba(var(--t-accent), 0.15), 0 10px 30px -18px rgba(var(--t-accent), 0.8);
}

.t-toggle:disabled[b-huudhsrw4v] { opacity: 0.45; cursor: not-allowed; }

.t-text[b-huudhsrw4v] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.t-placeholder[b-huudhsrw4v] { color: var(--muted); }

.t-chevron[b-huudhsrw4v] {
    flex-shrink: 0;
    width: 12px;
    height: 8px;
    fill: none;
    stroke: rgb(var(--t-accent));
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s cubic-bezier(.2, .8, .2, 1);
}

.open .t-chevron[b-huudhsrw4v] { transform: rotate(180deg); }

/* Il pallino della voce: un piccolo esagono, come le lettere di classe. */
.t-dot[b-huudhsrw4v] {
    flex-shrink: 0;
    width: 10px;
    height: 11px;
    background: rgb(var(--c));
    box-shadow: 0 0 8px rgba(var(--c), 0.8);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ---------- il pannello ---------- */
.t-veil[b-huudhsrw4v] { position: fixed; inset: 0; z-index: 60; }

.t-panel[b-huudhsrw4v] {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline: 0;
    z-index: 61;
    min-width: max(100%, 220px);
    overflow: hidden;
    background: rgba(14, 18, 27, 0.98);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(var(--t-accent), 0.35);
    border-radius: 12px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
    animation: t-in-b-huudhsrw4v 0.18s cubic-bezier(.2, .8, .2, 1);
    transform-origin: top center;
}

/* Il filo luminoso in cima al pannello: lo stesso accento del pulsante aperto. */
.t-panel[b-huudhsrw4v]::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgb(var(--t-accent)), transparent);
}

@keyframes t-in-b-huudhsrw4v {
    from { opacity: 0; transform: translateY(-6px) scaleY(0.96); }
    to { opacity: 1; transform: none; }
}

.t-search[b-huudhsrw4v] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.t-search svg[b-huudhsrw4v] { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }

.t-search input[b-huudhsrw4v] {
    flex: 1;
    min-width: 0;
    padding: 0.2rem 0;
    background: none;
    border: 0;
    color: var(--text);
    font-size: 0.92rem;
}

.t-search input:focus[b-huudhsrw4v] { outline: none; box-shadow: none; }

.t-list[b-huudhsrw4v] {
    max-height: 320px;
    margin: 0;
    padding: 0.35rem;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
}

.t-group[b-huudhsrw4v] {
    padding: 0.7rem 0.6rem 0.3rem;
    color: rgb(var(--t-accent));
    font: 700 0.7rem/1 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.t-group:first-child[b-huudhsrw4v] { padding-top: 0.35rem; }

.t-option[b-huudhsrw4v] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    color: #d6deea;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.t-option.active[b-huudhsrw4v] { background: rgba(var(--t-accent), 0.1); color: #fff; }

.t-option.active[b-huudhsrw4v]::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 22%;
    bottom: 22%;
    width: 2px;
    border-radius: 2px;
    background: rgb(var(--t-accent));
}

.t-option.selected[b-huudhsrw4v] { color: rgb(var(--t-accent)); font-weight: 600; }
.t-option.off[b-huudhsrw4v] { opacity: 0.4; cursor: not-allowed; }

.t-note[b-huudhsrw4v] { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }

.t-check[b-huudhsrw4v] {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: rgb(var(--t-accent));
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.t-empty[b-huudhsrw4v] { padding: 1rem; color: var(--muted); text-align: center; font-size: 0.88rem; }

/* La variante del confronto, nel magenta del rivale. */
.tendina.rivale[b-huudhsrw4v] { --t-accent: 255, 92, 160; }

@media (prefers-reduced-motion: reduce) {
    .t-panel[b-huudhsrw4v] { animation: none; }
    .t-chevron[b-huudhsrw4v] { transition: none; }
}
