/* La battaglia come HUD (Components/Play/BattleBoard.razor). Globale perché tiene insieme più
   componenti — la griglia, le schede degli eventi, la scheda del mecha — e il CSS isolato non li
   attraversa. Regola d'oro: la PAGINA non scorre mai, scorrono solo i pannelli. */

.bt {
    --p0: 77, 142, 247;
    --p1: 242, 104, 95;
    --skill: 192, 122, 232;
    --en: 94, 234, 212;
    --hud-h: 64px;
    --tabs-h: 0px;
    position: relative;
    display: grid;
    grid-template-rows: var(--hud-h) minmax(0, 1fr) var(--tabs-h);
    height: calc(100dvh - var(--topbar-h, 57px));
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 50% at 50% 45%, rgba(77, 142, 247, 0.07), transparent 70%),
        #07090d;
    color: var(--text);
}

.bt .p0 { --pc: var(--p0); }
.bt .p1 { --pc: var(--p1); }

.bt small, .bt em { font-style: normal; }

/* ---------- la barra in alto ---------- */
.bt-hud {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.45rem 0.8rem;
    background: linear-gradient(180deg, rgba(16, 21, 31, 0.98), rgba(11, 14, 20, 0.92));
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.bt-plate {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(var(--pc), 0.25);
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(var(--pc), 0.14), rgba(var(--pc), 0.02));
    transition: box-shadow 0.3s, border-color 0.3s;
}

.bt-plate.p1 { flex-direction: row-reverse; text-align: end; background: linear-gradient(270deg, rgba(var(--pc), 0.14), rgba(var(--pc), 0.02)); }
.bt-plate.active { border-color: rgb(var(--pc)); box-shadow: 0 0 0 1px rgba(var(--pc), 0.4), 0 0 24px -4px rgba(var(--pc), 0.7); }
.bt-plate.winner { border-color: #ffd166; box-shadow: 0 0 24px -4px rgba(255, 209, 102, 0.8); }

.bt-plate-id { display: grid; min-width: 0; }
.bt-plate-name { overflow: hidden; color: rgb(var(--pc)); font: 700 1.05rem/1.1 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; text-overflow: ellipsis; }
.bt-plate-kind { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; }

.bt-pips { display: flex; gap: 4px; }

.bt-pip {
    position: relative;
    width: 18px;
    height: 22px;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    cursor: pointer;
}

.bt-pip span { position: absolute; inset-inline: 0; bottom: 0; background: rgb(var(--pc)); }
.bt-pip.hurt span { background: #ffd166; }
.bt-pip.critical span { background: var(--danger); }
.bt-pip.down { background: rgba(255, 255, 255, 0.04); }
.bt-pip.down::after { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; color: #6b7487; font-size: 0.7rem; }
.bt-pip.acting { outline: 2px solid #ffd166; outline-offset: -2px; }
.bt-pip:hover:not(:disabled) { background: rgba(255, 255, 255, 0.18); border: 0; }

.bt-plate-score { display: grid; margin-inline-start: auto; text-align: end; }
.bt-plate.p1 .bt-plate-score { margin-inline-start: 0; margin-inline-end: auto; text-align: start; }
.bt-plate-score small { color: var(--muted); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; }
.bt-plate-score strong { font: 700 1.2rem/1 'Rajdhani', sans-serif; }

.bt-round { display: grid; place-items: center; min-width: 170px; padding: 0 0.6rem; text-align: center; }
.bt-round-num { display: flex; align-items: baseline; gap: 0.35rem; }
.bt-round-num small { color: var(--muted); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.18em; }
.bt-round-num b { color: #ffd166; font: 700 1.7rem/1 'Rajdhani', sans-serif; }
.bt-round-num em { color: var(--muted); font: 600 0.95rem/1 'Rajdhani', sans-serif; }
.bt-phase { max-width: 260px; overflow: hidden; color: #d6deea; font-size: 0.78rem; white-space: nowrap; text-overflow: ellipsis; }

.bt-hud-actions { display: flex; align-items: center; gap: 0.4rem; }

.bt-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
}

.bt-icon:hover:not(:disabled) { color: #ffd166; border-color: rgba(255, 209, 102, 0.6); background: rgba(255, 209, 102, 0.08); }

.bt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: var(--text);
    font: 700 0.8rem/1 'Rajdhani', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.bt-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.bt-btn.primary, .bt-btn.primary:hover:not(:disabled) { background: linear-gradient(135deg, #ffd166, #ff9f43); border-color: transparent; color: #1b1405; box-shadow: 0 6px 18px -6px rgba(255, 159, 67, 0.8); }
.bt-btn.primary:hover:not(:disabled) { background: linear-gradient(135deg, #ffe09a, #ffb066); }
.bt-btn.ghost { background: transparent; }
.bt-btn.danger, .bt-btn.danger:hover:not(:disabled) { border-color: rgba(255, 107, 107, 0.7); color: #ff8a8a; background: rgba(255, 107, 107, 0.1); }
.bt-btn.small { padding: 0.4rem 0.7rem; font-size: 0.72rem; }
.bt-btn.skill, .bt-btn.skill:hover:not(:disabled) { background: rgba(var(--skill), 0.18); border-color: rgb(var(--skill)); color: #e7c8f7; }
.bt-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.bt-rules {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0.8rem;
    z-index: 20;
    width: min(420px, calc(100vw - 2rem));
    padding: 1rem 1.1rem;
    background: rgba(14, 18, 27, 0.98);
    border: 1px solid rgba(255, 209, 102, 0.35);
    border-radius: 12px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
    font-size: 0.85rem;
    line-height: 1.55;
}

.bt-rules strong { color: #ffd166; font-family: 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.1em; }
.bt-rules p { margin: 0.4rem 0 0.7rem; color: #c4cfe0; }
.bt-legend { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; color: #c4cfe0; }
.bt-legend i { display: inline-block; width: 14px; height: 14px; margin-inline-end: 0.5rem; vertical-align: -2px; border-radius: 3px; }
.bt-legend .lg-move { border: 2px solid #ffd166; }
.bt-legend .lg-cone { border: 2px solid #39ff9a; }
.bt-legend .lg-pu { border: 2px solid #ffd166; border-radius: 50%; box-shadow: 0 0 6px #ffd166; }
.bt-legend .lg-skill { border: 2px dashed rgb(var(--skill)); border-radius: 50%; }

/* ---------- il corpo: tre colonne ---------- */
.bt-body {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr) 330px;
    min-height: 0;
}

.bt-left, .bt-right {
    min-height: 0;
    overflow-y: auto;
    padding: 0.7rem;
    background: rgba(11, 14, 20, 0.7);
    scrollbar-width: thin;
}

.bt-left { border-inline-end: 1px solid rgba(255, 255, 255, 0.06); }
.bt-right { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0.7rem; overflow: hidden; border-inline-start: 1px solid rgba(255, 255, 255, 0.06); }

.bt-empty { display: grid; place-items: center; gap: 0.6rem; height: 100%; color: var(--muted); text-align: center; font-size: 0.9rem; }
.bt-empty-hex { color: rgba(255, 209, 102, 0.35); font-size: 3rem; animation: bt-breathe 2.4s ease-in-out infinite; }

@keyframes bt-breathe { 50% { opacity: 0.4; } }

/* ---------- comandi ---------- */
.bt-tabs-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-bottom: 0.6rem; padding: 3px; background: rgba(255, 255, 255, 0.04); border-radius: 9px; }
.bt-tabs-mini button { padding: 0.4rem; background: none; border: 0; border-radius: 7px; color: var(--muted); font: 700 0.75rem/1 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer; }
.bt-tabs-mini button.on, .bt-tabs-mini button.on:hover:not(:disabled) { background: rgba(255, 209, 102, 0.14); color: #ffd166; }
.bt-tabs-mini button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); border: 0; }

.bt-cmd { display: grid; gap: 0.7rem; }

.bt-unit-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.8rem;
    background: linear-gradient(135deg, rgba(var(--pc), 0.2), rgba(var(--pc), 0.03) 70%);
    border: 1px solid rgba(var(--pc), 0.35);
    border-radius: 12px;
}

.bt-unit-head h3 { margin: 0.15rem 0; font: 700 1.35rem/1 'Rajdhani', sans-serif; text-transform: uppercase; }
.bt-kicker { color: rgb(var(--pc, 255, 209, 102)); font: 700 0.62rem/1 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.2em; }
.bt-kicker.red { color: #ff8a8a; }
.bt-pilot { color: var(--muted); font-size: 0.76rem; }
.bt-class { color: rgb(var(--pc)); font: 700 2.4rem/1 'Rajdhani', sans-serif; text-shadow: 0 0 18px rgba(var(--pc), 0.6); }

.bt-gauges { display: grid; gap: 0.45rem; }
.bt-gauge { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 0.5rem; font-size: 0.75rem; }
.bt-gauge .lbl { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.62rem; }
.bt-gauge b { font: 700 0.95rem/1 'Rajdhani', sans-serif; }
.bt-gauge b em { color: var(--muted); font-weight: 600; font-size: 0.75rem; }

.bt-bar { position: relative; display: block; height: 7px; overflow: visible; background: rgba(255, 255, 255, 0.07); border-radius: 999px; }
.bt-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width 0.5s cubic-bezier(.2, .8, .2, 1); }
.bt-bar > span.hurt { background: #ffd166; }
.bt-bar > span.critical { background: var(--danger); }
.bt-bar.energy > span { background: linear-gradient(90deg, rgba(var(--en), 0.6), rgb(var(--en))); }
.bt-bar .upkeep { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #ff8a8a; box-shadow: 0 0 4px #ff8a8a; }

.bt-steps { display: flex; gap: 3px; }
.bt-steps i { flex: 1; height: 7px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); }
.bt-steps i.on { background: #ffd166; box-shadow: 0 0 6px rgba(255, 209, 102, 0.6); }

.bt-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }

.bt-mode button {
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #d6deea;
    font: 700 0.9rem/1 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
}

.bt-mode button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.bt-mode button.on, .bt-mode button.on:hover:not(:disabled) { background: rgba(255, 209, 102, 0.15); border-color: #ffd166; color: #ffd166; box-shadow: 0 0 18px -6px rgba(255, 209, 102, 0.8); }
.bt-mode button:disabled { opacity: 0.35; cursor: not-allowed; }

.bt-sec { display: grid; gap: 0.45rem; padding: 0.7rem; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px; }
.bt-sec-title { color: var(--muted); font: 700 0.68rem/1.2 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.14em; }
.bt-hint { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.bt-warn { margin: 0; padding: 0.5rem 0.6rem; border-radius: 8px; background: rgba(var(--danger-rgb), 0.1); color: #ffb3b3; font-size: 0.8rem; }
.bt-muted { margin: 0; color: var(--muted); font-size: 0.82rem; }
.bt-row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }

.bt-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.bt-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #d6deea;
    font: 600 0.76rem/1 'Inter', sans-serif;
    cursor: pointer;
}

.bt-chip small { opacity: 0.75; }
.bt-chip:hover:not(:disabled) { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); }
.bt-chip.on, .bt-chip.on:hover:not(:disabled) { background: rgba(255, 209, 102, 0.15); border-color: #ffd166; color: #ffd166; }
.bt-chip.energy.on, .bt-chip.energy.on:hover:not(:disabled) { background: rgba(var(--en), 0.14); border-color: rgb(var(--en)); color: rgb(var(--en)); }
.bt-chip.pu { border-color: rgba(255, 209, 102, 0.5); color: #ffd166; }
.bt-chip:disabled { opacity: 0.35; cursor: not-allowed; }

.bt-badge { display: inline-flex; align-items: center; padding: 0.15rem 0.45rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; color: var(--muted); font: 700 0.62rem/1.2 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.12em; }
.bt-badge.skill { border-color: rgb(var(--skill)); color: rgb(var(--skill)); box-shadow: 0 0 8px rgba(var(--skill), 0.5); }
.bt-badge.pu { border-color: rgba(255, 209, 102, 0.6); color: #ffd166; padding: 0.1rem 0.35rem; }
.bt-badge.ok { border-color: var(--ok); color: var(--ok); }

/* La bussola delle facciate: sei pulsanti attorno a un esagono, con il costo per girarsi. */
.bt-compass { position: relative; width: 150px; height: 150px; margin: 0.2rem auto; }

.bt-compass-core {
    position: absolute;
    inset: 42px;
    display: grid;
    place-items: center;
    background: rgba(255, 209, 102, 0.08);
    border: 1px solid rgba(255, 209, 102, 0.3);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    color: #ffd166;
    font: 700 0.62rem/1.1 'Rajdhani', sans-serif;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bt-dir {
    --a: 0deg;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #d6deea;
    font: 700 0.85rem/1 'Rajdhani', sans-serif;
    transform: rotate(var(--a)) translate(56px) rotate(calc(-1 * var(--a)));
    cursor: pointer;
}

.bt-dir.d0 { --a: 0deg; }
.bt-dir.d1 { --a: -60deg; }
.bt-dir.d2 { --a: -120deg; }
.bt-dir.d3 { --a: 180deg; }
.bt-dir.d4 { --a: 120deg; }
.bt-dir.d5 { --a: 60deg; }
.bt-dir.now { background: #ffd166; border-color: #ffd166; color: #1b1405; box-shadow: 0 0 12px rgba(255, 209, 102, 0.8); opacity: 1; }
.bt-dir:hover:not(:disabled) { background: rgba(255, 209, 102, 0.18); border-color: #ffd166; }
.bt-dir:disabled:not(.now) { opacity: 0.3; cursor: not-allowed; }

/* L'abilità del pilota: viola, e accesa quando è dichiarata. */
.bt-skill { display: grid; gap: 0.5rem; padding: 0.7rem; border: 1px solid rgba(var(--skill), 0.35); border-radius: 10px; background: linear-gradient(135deg, rgba(var(--skill), 0.12), transparent 70%); }
.bt-skill.on { border-color: rgb(var(--skill)); box-shadow: 0 0 22px -6px rgba(var(--skill), 0.9); }
.bt-skill-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; color: #e7c8f7; font: 700 0.95rem/1.1 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; }
.bt-skill .skill-card, .bt-skill > :last-child { font-size: 0.8rem; }

/* Il bersaglio e la mira. */
.bt-target { display: grid; gap: 0.55rem; padding: 0.7rem; border: 1px solid rgba(var(--danger-rgb), 0.4); border-radius: 12px; background: linear-gradient(160deg, rgba(var(--danger-rgb), 0.1), transparent 60%); }
.bt-target-head { display: flex; align-items: center; gap: 0.5rem; }
.bt-target-head strong { flex: 1; font: 700 1.15rem/1 'Rajdhani', sans-serif; text-transform: uppercase; }
.bt-x { width: 26px; height: 26px; padding: 0; background: none; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 50%; color: var(--muted); cursor: pointer; }

.bt-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.3rem; }
.bt-facts span { display: grid; gap: 0.15rem; padding: 0.4rem 0.3rem; text-align: center; background: rgba(255, 255, 255, 0.04); border-radius: 7px; }
.bt-facts small { color: var(--muted); font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.08em; }
.bt-facts b { font: 700 0.95rem/1 'Rajdhani', sans-serif; }

.bt-slots { display: grid; gap: 0.25rem; }

.bt-slot {
    display: grid;
    grid-template-columns: 82px 1fr 46px 34px 44px;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    color: #d6deea;
    font-size: 0.76rem;
    text-align: start;
    cursor: pointer;
}

.bt-slot:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); }
.bt-slot.on, .bt-slot.on:hover:not(:disabled) { background: rgba(var(--danger-rgb), 0.14); border-color: var(--danger); box-shadow: 0 0 14px -6px rgba(var(--danger-rgb), 0.9); }
.bt-slot.gone { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.bt-slot-name { font: 700 0.8rem/1 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.04em; }
.bt-slot-hp { color: var(--muted); text-align: end; }
.bt-slot-hb { color: #8fb4ff; text-align: end; }
.bt-slot-p { font: 700 0.95rem/1 'Rajdhani', sans-serif; text-align: end; }

.good { color: var(--ok) !important; }
.mid { color: #ffd166 !important; }
.bad { color: var(--danger) !important; }

.bt-weapons { display: grid; gap: 0.25rem; }
.bt-weapon { display: grid; grid-template-columns: 1fr auto; gap: 0 0.5rem; padding: 0.4rem 0.55rem; border-inline-start: 3px solid var(--ok); background: rgba(255, 255, 255, 0.03); border-radius: 6px; font-size: 0.8rem; }
.bt-weapon.no { border-inline-start-color: var(--danger); opacity: 0.6; }
.bt-weapon b { font: 700 1rem/1 'Rajdhani', sans-serif; color: #ffd166; }
.bt-weapon small { grid-column: 1 / -1; color: var(--muted); font-size: 0.7rem; }

.bt-fire {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, var(--danger), #c73b3b);
    border: 0;
    border-radius: 10px;
    color: #fff;
    font: 700 0.95rem/1 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    box-shadow: 0 10px 26px -10px rgba(var(--danger-rgb), 0.9);
    cursor: pointer;
}

.bt-fire b { font-size: 1.3rem; }
.bt-fire:hover:not(:disabled) { background: linear-gradient(135deg, #ff7f76, #d94a4a); border: 0; }
.bt-fire:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* ---------- centro: la mappa e i suoi strati ---------- */
.bt-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.bt-map { position: absolute; inset: 0; display: grid; place-items: center; padding: 0.8rem; }
/* La mappa riempie lo spazio che c'è: l'SVG scala sul suo viewBox («meet»), quindi una mappa
   piccola diventa grande e una grande sta intera, senza barre di scorrimento. */
.bt-map .hex-grid-wrapper { width: 100%; height: 100%; overflow: hidden; }
.bt-map .hex-grid { width: 100%; height: 100%; }

/* Il riflettore: l'ultimo tiro in grande, in alto a sinistra sopra la mappa. */
.bt-spot {
    position: absolute;
    top: 0.8rem;
    inset-inline-start: 0.8rem;
    z-index: 6;
    display: grid;
    gap: 0.4rem;
    width: min(380px, calc(100% - 1.6rem));
    padding: 0.6rem;
    background: rgba(10, 13, 19, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    animation: bt-in 0.35s cubic-bezier(.2, .8, .2, 1);
}

.bt-spot-close { position: absolute; top: 0.3rem; inset-inline-end: 0.4rem; z-index: 1; width: 22px; height: 22px; padding: 0; background: none; border: 0; color: var(--muted); font-size: 1rem; cursor: pointer; }
.bt-spot-close:hover:not(:disabled) { color: #fff; background: none; border: 0; }

@keyframes bt-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }

/* L'azione da confermare, in basso al centro. */
.bt-pending {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    z-index: 7;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: min(760px, calc(100% - 2rem));
    padding: 0.7rem 0.8rem;
    background: rgba(16, 21, 31, 0.96);
    border: 1px solid rgba(255, 209, 102, 0.55);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 30px -10px rgba(255, 209, 102, 0.6);
    transform: translateX(-50%);
    animation: bt-up 0.3s cubic-bezier(.2, .8, .2, 1);
}

@keyframes bt-up { from { opacity: 0; transform: translate(-50%, 10px); } }

.bt-pending-text { display: grid; flex: 1; min-width: 0; gap: 0.15rem; }
.bt-pending-text strong { color: #ffd166; font: 700 1rem/1.15 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.05em; }
.bt-pending-text span { color: #b6c3d7; font-size: 0.78rem; line-height: 1.4; }

.bt-chance { display: grid; place-items: center; min-width: 64px; padding: 0.3rem 0.5rem; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.bt-chance b { font: 700 1.5rem/1 'Rajdhani', sans-serif; }
.bt-chance small { color: var(--muted); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.1em; }

.bt-toast {
    position: absolute;
    left: 50%;
    top: 0.8rem;
    z-index: 8;
    max-width: min(560px, calc(100% - 2rem));
    padding: 0.6rem 1rem;
    background: rgba(60, 18, 18, 0.95);
    border: 1px solid rgba(var(--danger-rgb), 0.7);
    border-radius: 10px;
    color: #ffd0d0;
    font-size: 0.85rem;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bt-in 0.3s ease;
}

/* Le decisioni che fermano il gioco: finestra al centro, sopra la mappa velata. */
.bt-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 9;
    display: grid;
    gap: 0.7rem;
    width: min(520px, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    overflow-y: auto;
    padding: 1.2rem 1.3rem;
    background: rgba(14, 18, 27, 0.97);
    border: 1px solid rgba(255, 209, 102, 0.5);
    border-radius: 16px;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.45), 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -50%);
    animation: bt-pop 0.3s cubic-bezier(.2, .8, .2, 1);
}

@keyframes bt-pop { from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); } }

.bt-modal.danger { border-color: rgba(var(--danger-rgb), 0.7); }
.bt-modal h3 { margin: 0; font: 700 1.35rem/1.1 'Rajdhani', sans-serif; text-transform: uppercase; }
.bt-modal p { margin: 0; color: #c4cfe0; font-size: 0.88rem; line-height: 1.5; }
.bt-modal-kicker { color: #ffd166; font: 700 0.7rem/1 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.2em; }
.bt-modal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; }

.bt-dodge { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 0.4rem; }
.bt-dodge > div { display: grid; gap: 0.2rem; padding: 0.55rem; text-align: center; background: rgba(255, 255, 255, 0.04); border-radius: 9px; }
.bt-dodge small { color: var(--muted); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; }
.bt-dodge b { font: 700 1.4rem/1 'Rajdhani', sans-serif; }
.bt-dodge b.red { color: #ff5c5c; }

.bt-modal.verdict { justify-items: center; text-align: center; border-color: #ffd166; }
.bt-modal.verdict.on-points, .bt-modal.verdict.mutual { border-color: #8fb4ff; }
.bt-verdict-crown { color: #ffd166; font-size: 3rem; line-height: 1; text-shadow: 0 0 24px rgba(255, 209, 102, 0.8); }
.bt-modal.verdict .bt-dodge { width: 100%; }

/* ---------- destra: in campo e cronaca ---------- */
.bt-roster { display: grid; gap: 0.3rem; max-height: 42vh; overflow-y: auto; scrollbar-width: thin; }

.bt-unit {
    display: grid;
    gap: 0.3rem;
    padding: 0.5rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-inline-start: 3px solid rgb(var(--pc));
    border-radius: 9px;
    color: var(--text);
    text-align: start;
    cursor: pointer;
}

.bt-unit:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); border-inline-start-color: rgb(var(--pc)); }
.bt-unit.picked { background: rgba(var(--pc), 0.1); border-color: rgba(var(--pc), 0.5); }
.bt-unit.acting { box-shadow: 0 0 0 1px #ffd166, 0 0 16px -6px rgba(255, 209, 102, 0.8); }
.bt-unit.spent { opacity: 0.7; }
.bt-unit.down { opacity: 0.45; filter: grayscale(0.8); }
.bt-unit-top { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
.bt-unit-name { flex: 1; overflow: hidden; font: 700 0.9rem/1.1 'Rajdhani', sans-serif; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.bt-unit-state { color: var(--muted); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; }
.bt-unit-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; color: #c4cfe0; font-size: 0.72rem; }
.bt-unit-meta em { color: var(--muted); }
.bt-unit-meta .en { color: rgb(var(--en)); }
.bt-dmg { padding: 0.05rem 0.3rem; border-radius: 4px; font-size: 0.6rem; font-weight: 700; }
.bt-dmg.hurt { background: rgba(255, 209, 102, 0.15); color: #ffd166; }
.bt-dmg.gone { background: rgba(var(--danger-rgb), 0.18); color: #ff8a8a; text-decoration: line-through; }

.bt-log { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.bt-log-head { display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; margin-bottom: 0.4rem; }
.bt-log-head h3 { margin: 0; font: 700 0.95rem/1 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.12em; }
.bt-filters { display: flex; gap: 2px; padding: 2px; background: rgba(255, 255, 255, 0.04); border-radius: 7px; }
.bt-filters button { padding: 0.25rem 0.5rem; background: none; border: 0; border-radius: 5px; color: var(--muted); font-size: 0.68rem; cursor: pointer; }
.bt-filters button.on, .bt-filters button.on:hover:not(:disabled) { background: rgba(255, 209, 102, 0.14); color: #ffd166; }
.bt-filters button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); border: 0; }
.bt-log-list { display: grid; align-content: start; gap: 0.3rem; min-height: 0; overflow-y: auto; padding-inline-end: 0.2rem; scrollbar-width: thin; }
.bt-log-round { position: sticky; top: 0; z-index: 1; padding: 0.25rem 0.4rem; background: rgba(11, 14, 20, 0.95); color: #ffd166; font: 700 0.66rem/1 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.2em; }

/* ---------- la scheda di un evento (EventoCard) ---------- */
.ev {
    --ec: 146, 161, 184;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-inline-start: 3px solid rgb(var(--ec));
    border-radius: 8px;
    font-size: 0.74rem;
}

.ev-tiro { --ec: 255, 209, 102; }
.ev-tiro.is-ok { --ec: 89, 192, 138; }
.ev-tiro.is-no, .ev-mancato { --ec: 120, 130, 150; }
.ev-schivata { --ec: 143, 180, 255; }
.ev-danno { --ec: 255, 92, 92; }
.ev-distrutto { --ec: 242, 104, 95; background: rgba(var(--danger-rgb), 0.08); }
.ev-abilita { --ec: 192, 122, 232; background: rgba(192, 122, 232, 0.07); }
.ev-energia { --ec: 94, 234, 212; }
.ev-powerup { --ec: 255, 209, 102; background: rgba(255, 209, 102, 0.06); }

.ev-icon { display: grid; place-items: center; width: 26px; height: 28px; background: rgba(var(--ec), 0.16); color: rgb(var(--ec)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); font-size: 0.8rem; }
.ev-main { display: grid; gap: 0.25rem; min-width: 0; }
.ev-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; font-weight: 600; }
.ev-who { color: #fff; }
.ev-arrow { color: var(--muted); }
.ev-target { color: #fff; font-weight: 700; }
.ev-slot { padding: 0.05rem 0.35rem; border-radius: 4px; background: rgba(var(--ec), 0.15); color: rgb(var(--ec)); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; }
.ev-text { color: #c4cfe0; font-weight: 400; line-height: 1.4; }
.ev-line { color: var(--muted); font-size: 0.7rem; line-height: 1.4; }

.ev-dice { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }

/* Il d20: un esagono col numero, dorato col 20, rosso con l'1. */
.die {
    display: grid;
    place-items: center;
    width: 30px;
    height: 33px;
    background: linear-gradient(160deg, #f4f7fc, #b6c3d7);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    color: #0b0e14;
    font: 800 0.95rem/1 'Rajdhani', sans-serif;
}

.die.crit { background: linear-gradient(160deg, #ffe09a, #ff9f43); box-shadow: 0 0 10px #ffd166; }
.die.fumble { background: linear-gradient(160deg, #ffb3b3, var(--danger)); }
.ev-mod { color: #8fb4ff; font: 700 0.9rem/1 'Rajdhani', sans-serif; }
.ev-eq { color: var(--muted); }
.ev-total { color: #fff; font: 800 1.05rem/1 'Rajdhani', sans-serif; }
.ev-vs { color: var(--muted); font-size: 0.7rem; }
.ev-tag { padding: 0.15rem 0.45rem; border-radius: 4px; font: 800 0.66rem/1.2 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.12em; }
.ev-tag.ok { background: rgba(var(--ok-rgb), 0.2); color: #6fe3a5; }
.ev-tag.no { background: rgba(255, 255, 255, 0.08); color: #aab4c6; }
.ev-tag.ko { background: rgba(var(--danger-rgb), 0.25); color: #ff8a8a; }
.ev-tag.skill { background: rgba(192, 122, 232, 0.22); color: #e7c8f7; }

.ev-damage { display: flex; align-items: center; gap: 0.45rem; }
.ev-dmg { color: #ff5c5c; font: 800 1.15rem/1 'Rajdhani', sans-serif; text-shadow: 0 0 10px rgba(255, 92, 92, 0.5); }
.ev-hp { flex: 1; height: 6px; overflow: hidden; background: rgba(255, 255, 255, 0.07); border-radius: 999px; }
.ev-hp span { display: block; height: 100%; background: linear-gradient(90deg, var(--danger), #ffd166); }
.ev-hp-num { color: var(--muted); font-size: 0.7rem; }

/* La versione da riflettore: più grande e animata. */
.ev.big { padding: 0.6rem 0.7rem; font-size: 0.85rem; }
.ev.big .ev-icon { width: 32px; height: 35px; font-size: 1rem; }
.ev.big .die { width: 40px; height: 44px; font-size: 1.25rem; animation: bt-roll 0.6s cubic-bezier(.2, .8, .2, 1); }
.ev.big .ev-total { font-size: 1.35rem; }
.ev.big .ev-dmg { font-size: 1.6rem; }
.ev.big .ev-tag { font-size: 0.78rem; }
.ev.big .ev-line { font-size: 0.74rem; }

@keyframes bt-roll {
    0% { transform: rotate(-200deg) scale(0.4); opacity: 0; }
    70% { transform: rotate(15deg) scale(1.1); opacity: 1; }
    100% { transform: none; }
}

/* ---------- schede su telefono ---------- */
.bt-tabs { display: none; }

@media (max-width: 1280px) {
    .bt-body { grid-template-columns: 300px minmax(0, 1fr) 290px; }
    .bt-plate-score small { display: none; }
}

@media (max-width: 980px) {
    .bt { --hud-h: auto; --tabs-h: 52px; grid-template-rows: auto minmax(0, 1fr) var(--tabs-h); }
    .bt-hud { grid-template-columns: 1fr 1fr; }
    .bt-round { grid-column: 1 / -1; grid-row: 1; flex-direction: row; display: flex; justify-content: space-between; min-width: 0; }
    .bt-hud-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .bt-body { grid-template-columns: minmax(0, 1fr); }
    .bt-left, .bt-right, .bt-stage { grid-column: 1; grid-row: 1; }
    .bt[data-tab="map"] .bt-left, .bt[data-tab="map"] .bt-right,
    .bt[data-tab="cmd"] .bt-stage, .bt[data-tab="cmd"] .bt-right,
    .bt[data-tab="log"] .bt-stage, .bt[data-tab="log"] .bt-left { display: none; }
    /* Le finestre che fermano il gioco si vedono da qualunque scheda: stanno nella mappa, che resta in pagina. */
    .bt[data-tab="cmd"] .bt-stage:has(.bt-modal), .bt[data-tab="log"] .bt-stage:has(.bt-modal) { display: block; }
    .bt-roster { max-height: none; }
    .bt-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(11, 14, 20, 0.97); }
    .bt-tabs button { background: none; border: 0; color: var(--muted); font: 700 0.8rem/1 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer; }
    .bt-tabs button.on, .bt-tabs button.on:hover:not(:disabled) { color: #ffd166; box-shadow: inset 0 2px 0 #ffd166; background: none; }
    .bt-pending { flex-wrap: wrap; }
}

@media (max-width: 560px) {
    .bt-plate { padding: 0.3rem 0.5rem; gap: 0.4rem; }
    .bt-plate-kind { display: none; }
    .bt-slot { grid-template-columns: 70px 1fr 40px 40px; }
    .bt-slot-hb { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bt-spot, .bt-pending, .bt-modal, .bt-toast, .ev.big .die, .bt-empty-hex { animation: none; }
}

/* Nel pannello di battaglia il nome dell'abilità sta già nella testata viola: nella scheda sotto
   restano le condizioni, gli effetti e la prosa. (Solo la prima scheda: la seconda è la risonanza.) */
.bt-skill > .skill-card:first-of-type .skill-head strong { display: none; }
.bt-skill .skill-card { margin: 0; padding: 0; background: none; border: 0; font-size: 0.8rem; }
.bt-skill .skill-effects { margin: 0.3rem 0; padding-inline-start: 1.1rem; }
.bt-skill .skill-flavour { margin: 0; color: var(--muted); font-size: 0.74rem; font-style: italic; }

/* Il riflettore non deve coprire la partita: niente frase lunga (sta nella cronaca e nel tooltip),
   e se la catena è lunga scorre dentro il suo riquadro. */
.bt-spot { max-height: 48%; overflow-y: auto; width: min(340px, calc(100% - 1.6rem)); }
.bt-spot .ev.big .ev-line { display: none; }
.bt-spot .ev.big { padding: 0.5rem 0.6rem; }

/* ---------- l'anteprima del colpo: in alto a destra, passando sopra un nemico ---------- */
.bt-preview {
    position: absolute;
    top: 0.8rem;
    inset-inline-end: 0.8rem;
    z-index: 6;
    display: grid;
    gap: 0.5rem;
    width: min(330px, calc(100% - 1.6rem));
    padding: 0.7rem 0.8rem;
    background: linear-gradient(160deg, rgba(20, 26, 38, 0.94), rgba(10, 13, 19, 0.94));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--danger-rgb), 0.35);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    pointer-events: none;
    animation: bt-in 0.2s cubic-bezier(.2, .8, .2, 1);
}
.bt-preview-head { display: grid; gap: 0.05rem; }
.bt-preview-kicker { color: var(--danger); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.bt-preview-head strong { font: 700 1.15rem/1.1 'Rajdhani', sans-serif; color: #fff; }
.bt-preview-head small { color: var(--muted); font-size: 0.72rem; }
.bt-preview-weapons { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.bt-preview-weapon { padding: 0.15rem 0.5rem; border-radius: 999px; background: rgba(255, 209, 102, 0.1); border: 1px solid rgba(255, 209, 102, 0.25); color: var(--accent); font-size: 0.7rem; }
.bt-preview-weapon small { color: var(--muted); }
.bt-preview-rows { display: grid; gap: 0.25rem; }
.bt-preview-row {
    display: grid;
    grid-template-columns: 5.2rem 1fr 2.6rem 2.4rem 5.6rem;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.4rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.74rem;
}
.bt-preview-row.aimed { outline: 1px solid rgba(255, 209, 102, 0.55); }
.bt-preview-row.gone { opacity: 0.35; }
.bt-preview-row.kill { background: linear-gradient(90deg, rgba(var(--danger-rgb), 0.22), rgba(var(--danger-rgb), 0.04)); }
.bt-preview-slot { color: #dfe7f3; font-weight: 600; }
.bt-preview-hp { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bt-preview-hp span { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #8be0b0); }
.bt-preview-p { font: 700 0.95rem/1 'Rajdhani', sans-serif; text-align: end; }
.bt-preview-dmg { font: 700 0.95rem/1 'Rajdhani', sans-serif; color: var(--danger); text-align: end; }
.bt-preview-tag { color: var(--muted); font-size: 0.66rem; text-align: end; white-space: nowrap; }
.bt-preview-row.kill .bt-preview-tag { color: #fff; font-weight: 800; letter-spacing: 0.12em; text-shadow: 0 0 10px rgba(var(--danger-rgb), 0.9); }
.bt-preview-foot { margin: 0; color: var(--muted); font-size: 0.62rem; line-height: 1.35; }
@media (hover: none) { .bt-preview { display: none; } }

.bt-verdict-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }

/* ---------- la moviola: la partita rivista, a schermo intero sopra l'HUD ---------- */
.mv {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(255, 209, 102, 0.08), transparent 60%),
        linear-gradient(180deg, #0b0f17, #070a10);
    color: #e8eef8;
    outline: none;
    animation: bt-in 0.3s cubic-bezier(.2, .8, .2, 1);
}
.mv-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 13, 19, 0.85);
}
.mv-title { display: grid; gap: 0.05rem; }
.mv-kicker { color: var(--danger); font: 700 0.66rem/1 'Rajdhani', sans-serif; letter-spacing: 0.24em; text-transform: uppercase; animation: mv-rec 1.6s ease-in-out infinite; }
@keyframes mv-rec { 50% { opacity: 0.45; } }
.mv-title strong { font: 700 1.3rem/1.1 'Rajdhani', sans-serif; text-transform: uppercase; }
.mv-title small { color: var(--muted); font-size: 0.72rem; }
.mv-score { display: flex; gap: 0.5rem; margin-inline-start: auto; }
.mv-plate {
    display: grid;
    min-width: 130px;
    padding: 0.35rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--pc), 0.45);
    background: linear-gradient(90deg, rgba(var(--pc), 0.16), rgba(var(--pc), 0.03));
}
.mv-plate.p0 { --pc: 77, 142, 247; }
.mv-plate.p1 { --pc: 242, 104, 95; text-align: end; }
.mv-plate span { color: rgb(var(--pc)); font: 700 0.72rem/1 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; }
.mv-plate b { font: 700 1.15rem/1.1 'Rajdhani', sans-serif; }

.mv-body { display: grid; grid-template-columns: 1fr minmax(260px, 340px); min-height: 0; }
.mv-stage { position: relative; min-height: 0; padding: 0.8rem; }
.mv-map { width: 100%; height: 100%; }
.mv-map .hex-grid-wrapper { width: 100%; height: 100%; overflow: hidden; }
.mv-map .hex-grid { width: 100%; height: 100%; }
.mv-end {
    position: absolute;
    left: 50%;
    top: 1.2rem;
    transform: translateX(-50%);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 209, 102, 0.14);
    border: 1px solid #ffd166;
    color: #ffd166;
    font: 700 1rem/1 'Rajdhani', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 0 30px -6px rgba(255, 209, 102, 0.7);
}
.mv-events {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 0;
    overflow-y: auto;
    padding: 0.8rem;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 13, 19, 0.6);
    scrollbar-width: thin;
}
.mv-events-head { color: var(--muted); font: 700 0.66rem/1 'Rajdhani', sans-serif; letter-spacing: 0.18em; text-transform: uppercase; }
.mv-none { margin: 0; color: var(--muted); font-size: 0.8rem; }

.mv-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1rem 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 13, 19, 0.92);
}
.mv-controls, .mv-speed { display: flex; gap: 0.3rem; }
.mv-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #dfe7f3;
    font-size: 0.85rem;
    cursor: pointer;
}
.mv-btn:hover { border-color: rgba(255, 209, 102, 0.5); color: #fff; }
.mv-btn.play { min-width: 46px; background: linear-gradient(180deg, #ffd166, #f4b63f); color: #1a1405; border-color: transparent; font-weight: 800; }
.mv-btn.play.on { box-shadow: 0 0 18px -4px rgba(255, 209, 102, 0.9); }
.mv-btn.wide { font: 700 0.72rem/1 'Rajdhani', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.mv-track { position: relative; height: 36px; display: grid; align-items: center; }
.mv-ticks { position: absolute; inset: 50% 9px auto; height: 6px; transform: translateY(-50%); border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.mv-fill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: linear-gradient(90deg, rgba(255, 209, 102, 0.3), #ffd166); }
.mv-tick { position: absolute; top: -6px; width: 2px; height: 18px; border-radius: 1px; transform: translateX(-1px); z-index: 1; }
.mv-tick.shot { background: rgba(255, 209, 102, 0.75); height: 12px; top: -3px; }
.mv-tick.ko { background: var(--danger); box-shadow: 0 0 8px rgba(var(--danger-rgb), 0.9); }
.mv-track input[type=range] { position: relative; z-index: 2; width: 100%; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.mv-track input[type=range]::-webkit-slider-runnable-track { height: 6px; background: transparent; }
.mv-track input[type=range]::-moz-range-track { height: 6px; background: transparent; }
.mv-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: #fff; border: 3px solid #ffd166; box-shadow: 0 0 12px rgba(255, 209, 102, 0.8); }
.mv-track input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #ffd166; }
.mv-speed button { min-width: 38px; height: 30px; padding: 0 0.4rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); background: none; color: var(--muted); font: 700 0.8rem/1 'Rajdhani', sans-serif; cursor: pointer; }
.mv-speed button.on { color: #1a1405; background: #ffd166; border-color: #ffd166; }

@media (max-width: 860px) {
    .mv-body { grid-template-columns: 1fr; grid-template-rows: 1fr minmax(120px, 34%); }
    .mv-events { border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
    .mv-bar { grid-template-columns: 1fr auto; }
    .mv-track { grid-column: 1 / -1; grid-row: 1; }
    .mv-score { display: none; }
    .mv-btn.wide { display: none; }
}

/* ---------- la guida dell'addestramento: in basso a sinistra, sopra la mappa ---------- */
.tut {
    position: absolute;
    inset-inline-start: 0.8rem;
    bottom: 5.4rem;
    z-index: 8;
    display: grid;
    gap: 0.5rem;
    width: min(360px, calc(100% - 1.6rem));
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 209, 102, 0.6);
    background: linear-gradient(160deg, rgba(40, 32, 12, 0.96), rgba(12, 14, 20, 0.96));
    box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.1), 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px -12px rgba(255, 209, 102, 0.6);
    animation: bt-in 0.35s cubic-bezier(.2, .8, .2, 1);
}
.tut-head { display: flex; justify-content: space-between; align-items: center; }
.tut-kicker { color: #ffd166; font: 700 0.66rem/1 'Rajdhani', sans-serif; letter-spacing: 0.2em; text-transform: uppercase; }
.tut-x { width: 22px; height: 22px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; }
.tut strong { font: 700 1.25rem/1.1 'Rajdhani', sans-serif; text-transform: uppercase; color: #fff; }
.tut p { margin: 0; color: #d6deea; font-size: 0.86rem; line-height: 1.5; }
.tut p b { color: #ffd166; }
.tut-tip { padding: 0.4rem 0.6rem; border-radius: 8px; background: rgba(77, 142, 247, 0.15); color: #cfe0ff !important; }
.tut-dots { display: flex; gap: 0.25rem; }
.tut-dots span { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.tut-dots span.done { background: rgba(255, 209, 102, 0.55); }
.tut-dots span.now { background: #ffd166; box-shadow: 0 0 8px rgba(255, 209, 102, 0.9); }
.tut-foot { display: flex; justify-content: flex-end; }
.tut-foot a { text-decoration: none; }
.tut-wait { color: #ffd166; font: 700 0.72rem/1 'Rajdhani', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; animation: mv-rec 1.6s ease-in-out infinite; }
@media (max-width: 860px) { .tut { bottom: auto; top: 0.6rem; } }

/* ---------- la stanza online sopra la mappa: timer, spettatori, chat ---------- */
.cs {
    position: absolute;
    inset-inline-start: 0.8rem;
    bottom: 0.8rem;
    z-index: 7;
    display: grid;
    width: min(320px, calc(100% - 1.6rem));
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 13, 19, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}
.bt:has(.bt-pending) .cs { bottom: 5.4rem; }
.cs-tab { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.5rem 0.7rem; border: 0; background: rgba(255, 255, 255, 0.03); color: #dfe7f3; font: 700 0.78rem/1 'Rajdhani', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.cs-code { color: #ffd166; }
.cs-timer { padding: 0.15rem 0.45rem; border-radius: 6px; background: rgba(255, 255, 255, 0.06); font-variant-numeric: tabular-nums; }
.cs-timer.mine { background: rgba(77, 142, 247, 0.25); color: #cfe0ff; }
.cs-timer.urgent { background: rgba(var(--danger-rgb), 0.3); color: #fff; animation: mv-rec 0.8s ease-in-out infinite; }
.cs-eye { color: var(--muted); }
.cs-badge { min-width: 18px; padding: 0.1rem 0.35rem; border-radius: 999px; background: var(--danger); color: #fff; text-align: center; }
.cs-chev { margin-inline-start: auto; color: var(--muted); }
.cs-list { display: flex; flex-direction: column; gap: 0.25rem; max-height: 160px; overflow-y: auto; padding: 0.5rem 0.7rem; scrollbar-width: thin; }
.cs-empty { margin: 0; color: var(--muted); font-size: 0.75rem; }
.cs-msg { display: flex; gap: 0.4rem; font-size: 0.8rem; line-height: 1.35; }
.cs-msg b { flex: none; font-weight: 700; }
.cs-msg.p0 b { color: #8fb4ff; }
.cs-msg.p1 b { color: #ff9a9a; }
.cs-msg.px b { color: var(--muted); }
.cs-msg span { color: #dfe7f3; word-break: break-word; }
.cs-quick { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0 0.7rem 0.5rem; }
.cs-quick button { padding: 0.25rem 0.5rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: #dfe7f3; font-size: 0.72rem; cursor: pointer; }
.cs-quick button:hover { border-color: rgba(255, 209, 102, 0.5); }
.cs-form { display: flex; gap: 0.3rem; padding: 0 0.7rem 0.6rem; }
.cs-form input { flex: 1; min-width: 0; padding: 0.4rem 0.6rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 0.8rem; }
.cs-form button { width: 34px; border-radius: 8px; border: 0; background: #ffd166; color: #1b1405; cursor: pointer; }
.cs-form button:disabled { opacity: 0.4; }
.cs-warn { margin: 0; padding: 0 0.7rem 0.6rem; color: #ff9a9a; font-size: 0.72rem; }
@media (max-width: 860px) { .cs { width: min(280px, calc(100% - 1.6rem)); } .cs-list { max-height: 100px; } }

/* ---------- la scheda del mecha in battaglia ---------- */
.sm { --pc: 77, 142, 247; display: grid; gap: 0.7rem; }
.sm.p1 { --pc: 242, 104, 95; }
.sm-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.6rem 0.7rem; border-radius: 12px; background: linear-gradient(90deg, rgba(var(--pc), 0.2), rgba(var(--pc), 0.03)); border: 1px solid rgba(var(--pc), 0.45); }
.sm-id { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.sm-id strong { display: block; font: 700 1.15rem/1.1 Rajdhani, sans-serif; text-transform: uppercase; }
.sm-id small { color: var(--muted); font-size: 0.72rem; }
.sm-class { display: grid; place-items: center; flex: none; width: 34px; height: 38px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); color: #0b0e14; font: 700 1rem/1 Rajdhani, sans-serif; background: #9fb0c8; }
.sm-class.c-C { background: #8fd18b; } .sm-class.c-B { background: #6fb8ff; } .sm-class.c-A { background: #b48cff; } .sm-class.c-S { background: #ffb347; } .sm-class.c-Z { background: #ff6b6b; }
.sm-out { color: #ff9a9a; font: 700 0.72rem/1 Rajdhani, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.sm-body-row { display: grid; grid-template-columns: 112px 1fr; gap: 0.6rem; align-items: start; }
.sm-figure { width: 100%; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.sm-part rect, .sm-part path, .sm-part circle { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; transition: fill 0.4s; }
.sm-part.good > * { fill: rgba(var(--ok-rgb), 0.55); }
.sm-part.mid > * { fill: rgba(255, 209, 102, 0.6); }
.sm-part.bad > * { fill: rgba(var(--danger-rgb), 0.65); animation: sm-pulse 1.4s ease-in-out infinite; }
.sm-part.dead > * { fill: rgba(30, 34, 44, 0.9); stroke: rgba(var(--danger-rgb), 0.6); stroke-dasharray: 4 3; }
.sm-part .sm-reactor { fill: rgba(var(--pc), 0.8) !important; filter: drop-shadow(0 0 6px rgba(var(--pc), 0.9)); }
.sm-part.dead .sm-reactor { fill: #222 !important; filter: none; }
.sm-part .sm-visor { fill: rgba(255, 255, 255, 0.85) !important; stroke: none; }
@keyframes sm-pulse { 50% { opacity: 0.6; } }
.sm-hp { fill: #fff; font: 700 15px/1 Rajdhani, sans-serif; text-anchor: middle; paint-order: stroke; stroke: rgba(0, 0, 0, 0.75); stroke-width: 3px; }
.sm-parts { display: grid; gap: 0.3rem; }
.sm-row { display: grid; gap: 0.2rem; padding: 0.35rem 0.5rem; border-radius: 9px; background: rgba(255, 255, 255, 0.03); border-left: 3px solid var(--ok); }
.sm-row.mid { border-left-color: #ffd166; } .sm-row.bad { border-left-color: var(--danger); } .sm-row.dead { border-left-color: #444; opacity: 0.55; }
.sm-row.off { box-shadow: inset 0 0 0 1px rgba(146, 161, 184, 0.35); }
.sm-row-top { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; }
.sm-row-top b { flex: 1; font-weight: 700; }
.sm-hb { color: var(--muted); font-size: 0.7rem; }
.sm-hpn { font: 700 0.95rem/1 Rajdhani, sans-serif; }
.sm-hpn small { color: var(--muted); font-weight: 400; }
.sm-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.sm-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #8be0b0); transition: width 0.4s; }
.sm-row.mid .sm-bar span { background: #ffd166; } .sm-row.bad .sm-bar span { background: var(--danger); }
.sm-armor { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.sm-dt { padding: 0.05rem 0.3rem; border-radius: 5px; font-size: 0.66rem; background: rgba(255, 255, 255, 0.05); color: #c4cfe0; }
.sm-dt.t-Physical { color: #d6deea; } .sm-dt.t-Chemical { color: #9be37a; } .sm-dt.t-Electromagnetic { color: #7fc8ff; } .sm-dt.t-Laser { color: #ff8fb0; }
.sm-tag { padding: 0.05rem 0.35rem; border-radius: 5px; background: rgba(146, 161, 184, 0.2); font-size: 0.64rem; }
.sm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
.sm-stats > div { display: grid; gap: 0.15rem; padding: 0.45rem 0.5rem; border-radius: 9px; background: rgba(255, 255, 255, 0.04); }
.sm-stats small { color: var(--muted); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; }
.sm-stats b { font: 700 1.25rem/1 Rajdhani, sans-serif; }
.sm-stats em { color: var(--muted); font-style: normal; font-size: 0.8em; }
.sm-arcs { display: flex; gap: 0.35rem; font: 700 0.85rem/1 Rajdhani, sans-serif; }
.sm-arcs i { font-style: normal; }
.sm-energy { grid-column: 1 / -1; }
.sm-ebar { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.sm-ebar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #3ff2ff, #6fa4ff); box-shadow: 0 0 8px rgba(63, 242, 255, 0.5); }
.sm-ebar i { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--danger); }
.sm-sub { color: var(--muted); font-size: 0.66rem; font-style: normal; }
.sm-h { margin: 0.2rem 0 0; color: var(--muted); font: 700 0.66rem/1 Rajdhani, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; }
.sm-weapons { display: grid; gap: 0.35rem; }
.sm-weapon { display: grid; gap: 0.25rem; padding: 0.5rem 0.6rem; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.sm-weapon-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.4rem; font-size: 0.82rem; }
.sm-dmg { color: #ffd166; font: 700 1.2rem/1 Rajdhani, sans-serif; }
.sm-range { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; }
.sm-range i { height: 5px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); }
.sm-range i.on { background: #ffd166; box-shadow: 0 0 6px rgba(255, 209, 102, 0.6); }
.sm-weapon.t-Chemical .sm-range i.on { background: #9be37a; } .sm-weapon.t-Electromagnetic .sm-range i.on { background: #7fc8ff; } .sm-weapon.t-Laser .sm-range i.on { background: #ff8fb0; }
.sm-weapon-meta { color: var(--muted); font-size: 0.68rem; }
.sm-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.sm-chip { padding: 0.25rem 0.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.7rem; }
.sm-chip.on { border-color: #ffd166; color: #ffd166; }
.sm-chip.warn { border-color: rgba(var(--danger-rgb), 0.4); color: #ffb3ad; }
.sm-none { margin: 0; color: var(--muted); font-size: 0.8rem; }

/* La scheda: l'abilità del pilota e gli overload spiegati. */
.sm-h .sm-ready { margin-left: 0.4rem; padding: 0.05rem 0.4rem; border-radius: 6px; font-size: 0.65rem; letter-spacing: 0.08em; background: rgba(255, 255, 255, 0.07); color: #9fb0c8; }
.sm-h .sm-ready.on { background: rgba(var(--ok-rgb), 0.18); color: var(--ok); }
.sm-skill .skill-card { margin: 0 0 0.5rem; padding: 0.6rem 0.7rem; border-radius: 10px; border: 1px solid rgba(255, 209, 102, 0.25); background: linear-gradient(135deg, rgba(255, 209, 102, 0.08), rgba(13, 17, 24, 0.6)); }
.sm-skill .skill-head { display: grid; gap: 0.15rem; }
.sm-skill .skill-head strong { color: #ffd166; font: 700 0.95rem/1.1 Rajdhani, sans-serif; }
.sm-skill .skill-terms { color: #8b98ab; font-size: 0.72rem; }
.sm-skill .skill-effects { margin: 0.35rem 0 0; padding-left: 1rem; color: #dfe6f0; font-size: 0.78rem; line-height: 1.45; }
.sm-skill .skill-flavour { margin: 0.35rem 0 0; color: #8b98ab; font-size: 0.72rem; font-style: italic; }
.sm-ovl { display: grid; gap: 0.3rem; }
.sm-ovl-row { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem; align-items: start; padding: 0.4rem 0.55rem; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.03); }
.sm-ovl-row.on { border-color: rgba(255, 179, 71, 0.6); background: rgba(255, 179, 71, 0.1); }
.sm-ovl-row.short .sm-ovl-cost { color: #ff9a9a; }
.sm-ovl-cost { color: #ffb347; font: 700 0.85rem/1.3 Rajdhani, sans-serif; white-space: nowrap; }
.sm-ovl-txt { display: grid; gap: 0.1rem; }
.sm-ovl-txt b { font-size: 0.78rem; }
.sm-ovl-txt small { color: #b9c4d4; font-size: 0.72rem; line-height: 1.4; }
.sm-note { margin: 0.35rem 0 0; color: #6f7c90; font-size: 0.68rem; line-height: 1.4; }

/* Squadra e cambi: le aree di cambio sulla mappa e la panchina. */
.hex.cambio polygon:first-of-type, .hex.cambio .hex-top { stroke-dasharray: 5 3; }
.hex.cambio.c0 { --cambio: 79, 163, 255; }
.hex.cambio.c1 { --cambio: 255, 107, 107; }
.hex.cambio .hex-top { fill: rgba(var(--cambio), 0.22); stroke: rgb(var(--cambio)); stroke-width: 2; }
.bt-unit.bench { opacity: 0.75; border-style: dashed; }
.bt-swap .bt-chip small { margin-left: 0.3rem; color: #9fb0c8; }
.tut.tut-inline { position: relative; inset: auto; bottom: auto; width: auto; max-width: 720px; margin: 0 0 1rem; }
.hex.cambio.c2 { --cambio: 255, 209, 102; }

/* La battaglia da tastiera: il riquadro delle scorciatoie (tasto ?) e il fuoco visibile. */
.bt:focus { outline: none; }
.bt-keys { position: absolute; z-index: 40; top: 4.5rem; right: 1rem; display: grid; gap: 0.5rem; width: min(320px, calc(100% - 2rem)); padding: 0.9rem 1rem; border-radius: 12px; border: 1px solid rgba(255, 209, 102, 0.4); background: rgba(10, 13, 19, 0.96); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
.bt-keys dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.8rem; margin: 0; font-size: 0.82rem; }
.bt-keys dt { font: 700 0.78rem/1.6 Rajdhani, sans-serif; color: #0d1118; background: #ffd166; border-radius: 5px; padding: 0 0.45rem; text-align: center; }
.bt-keys dd { margin: 0; color: #c4cfe0; }
:focus-visible { outline: 2px solid #ffd166; outline-offset: 2px; }

/* La mappa col dito: il pizzico e il trascinamento li gestisce tocco.js, non il browser. */
.bt-map { touch-action: none; overflow: hidden; }
.bt-map > * { transition: transform 0.05s linear; will-change: transform; }
.bt-map.zoomata { cursor: grab; }

/* La moviola commentata: i momenti chiave (lista, segni sulla linea del tempo, didascalia sulla
   mappa) e la clip da condividere. */
.mv-moments { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.6rem; }
.mv-moment { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.5rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: #c4cfe0; cursor: pointer; }
.mv-moment small { font: 600 0.68rem Rajdhani, sans-serif; color: #9fb0c8; }
.mv-moment.on { border-color: #ffd166; background: rgba(255, 209, 102, 0.14); }
.mv-moment.m-Testa, .mv-moment.m-Fuori { border-color: rgba(var(--danger-rgb), 0.45); }
.mv-tick.moment { top: -22px; width: auto; height: auto; transform: translateX(-50%); background: none; font-size: 0.8rem; line-height: 1; filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.9)); cursor: help; }
.mv-cliprange { position: absolute; top: -4px; height: 14px; border-radius: 4px; border: 1px solid rgba(63, 242, 255, 0.7); background: rgba(63, 242, 255, 0.12); pointer-events: none; }
.mv-caption { position: absolute; left: 50%; bottom: 1rem; z-index: 3; transform: translateX(-50%); display: grid; justify-items: center; gap: 0.3rem; width: min(560px, calc(100% - 2rem)); pointer-events: none; animation: mv-cap 0.35s ease-out; }
.mv-caption p { margin: 0; padding: 0.5rem 0.9rem; border-radius: 10px; border-inline-start: 3px solid #ffd166; background: rgba(10, 13, 19, 0.9); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5); font: 600 0.95rem/1.3 Rajdhani, sans-serif; letter-spacing: 0.02em; color: #e8eef7; }
.mv-caption p.m-Testa, .mv-caption p.m-Fuori { border-color: var(--danger); }
.mv-caption p.m-Core { border-color: #ff9f43; }
.mv-caption p.m-Overload { border-color: #c07ae8; }
.mv-caption p span { margin-inline-end: 0.3rem; }
@keyframes mv-cap { from { opacity: 0; transform: translate(-50%, 8px); } }
.mv-clip { display: inline-flex; align-items: center; gap: 0.3rem; font: 600 0.75rem Rajdhani, sans-serif; color: #9fb0c8; }
.mv-clip .mv-btn[disabled] { opacity: 0.4; cursor: default; }
@media (max-width: 760px) { .mv-clip > span { display: none; } }
