/* ==========================================================================
   PALETA COMPLEMENTAR (ver base.css)
   --brass não existe em base.css; definimos aqui o latão velho do moodboard
   com fallbacks embutidos nos usos (var(--brass, var(--highlight))).
   ========================================================================== */
:root {
    --brass: #8c6f3f;                                  /* latão velho (moodboard) */
    --brass-bright: #d9b75b;                           /* gás/vela — destaque */
    --brass-glow: rgba(217, 183, 91, 0.45);            /* halo suave do selecionado */
    --clue-panel-bg: #12100e;                          /* fundo "papel velho" */
    --clue-line: #3a322a;
}

/* ==========================================================================
   LOG DE PISTAS — gaveta lateral (slide da esquerda) + overlay escuro
   z-index 1500/1501: acima do HUD (1000), abaixo do diálogo (2000).
   ========================================================================== */

/* Overlay escuro que escurece a cena e captura cliques fora do painel. */
.clue-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.clue-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* A gaveta em si: começa fora da tela (translateX) e desliza ao abrir. */
.clue-log {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 360px;
    max-width: 85vw;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #171310 0%, var(--clue-panel-bg) 100%);
    border-right: 1px solid var(--brass);
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.55);
    z-index: 1501;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.clue-log.open {
    transform: translateX(0);
}

.clue-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.1rem 1rem;
    /* Compensa a barra superior fixa do HUD. */
    padding-top: 4.25rem;
    border-bottom: 1px solid var(--clue-line);
    background: rgba(0, 0, 0, 0.35);
}

.clue-log-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    min-width: 0;
}

.clue-log-title {
    font-family: 'Cormorant Garamond', 'Crimson Pro', serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--parchment);
    white-space: nowrap;
}

.clue-log-counter {
    font-family: 'Crimson Pro', serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--brass-bright);
    border: 1px solid var(--brass);
    border-radius: 2px;
    padding: 0.05rem 0.4rem;
}

.clue-log-close {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    line-height: 1;
    font-size: 1.4rem;
    color: var(--parchment);
    background: transparent;
    border: 1px solid var(--clue-line);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clue-log-close:hover {
    color: var(--ink);
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Lista rolável. */
.clue-log-list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0.75rem 3rem;
    overflow-y: auto;
    flex: 1 1 auto;
    scrollbar-width: thin;
    scrollbar-color: var(--brass) transparent;
}

.clue-log-list::-webkit-scrollbar {
    width: 6px;
}

.clue-log-list::-webkit-scrollbar-thumb {
    background: var(--brass);
    border-radius: 3px;
}

.clue-log-empty {
    color: var(--muted);
    font-style: italic;
    padding: 1rem 0.5rem;
}

/* Cada pista: número + corpo. */
.clue-item {
    display: flex;
    gap: 0.6rem;
    padding: 0.7rem 0.65rem;
    margin-bottom: 0.5rem;
    border-left: 2px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    animation: clueFadeIn 0.3s ease-out;
}

@keyframes clueFadeIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.clue-item-number {
    font-family: 'Crimson Pro', serif;
    font-size: 0.85rem;
    color: var(--brass);
    min-width: 1.2rem;
    text-align: right;
    flex: 0 0 auto;
}

.clue-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.clue-item-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--parchment);
    word-break: break-word;
}

.clue-item-text {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--paper-worn, #c9b8a8);
    word-break: break-word;
}

/* Pista descoberta: filete dourado de latão. */
.clue-item--found {
    border-left-color: var(--brass-bright);
    background: rgba(217, 183, 91, 0.06);
}

/* Pista ainda oculta: "5. ??????? (oculto)" — wireframe. */
.clue-item--hidden {
    border-left: 2px dashed var(--clue-line);
    opacity: 0.65;
}

.clue-item-hidden-text {
    color: var(--muted);
    letter-spacing: 0.18em;
    font-weight: 400;
}

.clue-item-tag {
    font-family: 'Crimson Pro', serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fog-pale, var(--muted));
}

/* Trava o scroll da página enquanto o painel está aberto. */
body.clue-log-open {
    overflow: hidden;
}

/* ==========================================================================
   BOTÕES DO HUD — estados ativo/hover e pulso de pista nova
   ========================================================================== */
.hud-button:hover {
    border-color: var(--brass-bright);
    background-color: var(--brass);
    color: var(--ink);
}

.hud-button:focus-visible {
    outline: 2px solid var(--brass-bright);
    outline-offset: 2px;
}

.hud-button.active,
.hud-button[aria-expanded="true"] {
    background-color: var(--brass);
    border-color: var(--brass-bright);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--brass-bright);
}

/* Pulso quando uma pista nova é adicionada. */
.hud-button.clue-flash {
    animation: clueFlash 1.6s ease-out;
}

@keyframes clueFlash {
    0%   { box-shadow: 0 0 0 0 var(--brass-glow); border-color: var(--brass-bright); }
    35%  { box-shadow: 0 0 0 6px var(--brass-glow); border-color: var(--brass-bright); }
    100% { box-shadow: 0 0 0 0 rgba(217, 183, 91, 0); border-color: var(--accent); }
}

/* ==========================================================================
   SLOTS DE INVENTÁRIO — preenchido, vazio e selecionado (borda dourada)
   ========================================================================== */
.inventory-slot {
    position: relative;
    cursor: default;
}

.inventory-slot.filled {
    cursor: pointer;
    border-color: var(--brass);
    background-color: rgba(217, 183, 91, 0.05);
}

.inventory-slot.filled:hover {
    border-color: var(--brass-bright);
    background-color: rgba(217, 183, 91, 0.12);
    transform: translateY(-2px);
}

/* Estado SELECIONADO: borda dourada em latão + halo da vela. */
.inventory-slot.selected {
    border-color: var(--brass-bright);
    background-color: rgba(217, 183, 91, 0.18);
    box-shadow: 0 0 0 2px var(--brass), 0 0 12px var(--brass-glow);
    transform: translateY(-2px);
}

.inventory-slot.selected::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 1px solid var(--brass-bright);
    border-radius: 4px;
    opacity: 0.7;
    animation: slotPulse 1.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes slotPulse {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 0.85; }
}

.inventory-slot.empty {
    border-style: dashed;
    border-color: var(--clue-line);
    color: var(--muted);
}

.slot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--brass-bright);
}

.slot-icon-img,
.slot-icon svg {
    width: 70%;
    height: 70%;
    object-fit: contain;
    pointer-events: none;
}

.slot-icon--text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    text-transform: uppercase;
}

/* Badge de quantidade no canto do slot. */
.slot-qty {
    position: absolute;
    right: -4px;
    bottom: -4px;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Crimson Pro', serif;
    font-size: 0.7rem;
    color: var(--ink);
    background-color: var(--brass-bright);
    border: 1px solid var(--ink);
    border-radius: 2px;
}

/* ==========================================================================
   ACESSIBILIDADE: respeita quem prefere menos movimento
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .clue-log,
    .clue-overlay,
    .inventory-slot {
        transition: none;
    }

    .clue-item,
    .hud-button.clue-flash,
    .inventory-slot.selected::after {
        animation: none;
    }
}

/* ==========================================================================
   RESPONSIVO — painel quase full-width no mobile
   ========================================================================== */
@media (max-width: 600px) {
    .clue-log {
        width: 88vw;
        max-width: none;
    }

    .clue-log-header {
        padding-top: 3.75rem;
    }

    .clue-log-title {
        font-size: 1rem;
    }
}

/* Dialogue Overlay Styles */
.dialogue-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dialogue-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* Conflito de cascade com base.css: a utilitária `.visible { display: block
   !important }` venceria o `display: flex` do overlay (important > normal) e
   jogaria a caixa de diálogo para o canto superior esquerdo, sem centralizar.
   id+classe com !important (1,1,0) vence a utilitária (0,1,0). */
#dialogue-overlay.visible,
.dialogue-overlay.visible {
    display: flex !important;
}

.dialogue-box {
    /* A caixa de diálogo é uma FOLHA DE PERGAMINHO: fundo de papel envelhecido
       (assets/ui/dialogue-bg.webp) com a cor sólida como fallback. Como o fundo
       é CLARO, o texto é ESCURO (--ink) e o acento é o vermelho de selo. */
    background-color: var(--parchment);
    background-image: url('../assets/ui/dialogue-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--ink);
    padding: 2rem;
    border-radius: 8px;
    max-width: 90%;
    width: 450px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent);
    /* NUNCA pode passar da tela: em monitores baixos (ou com muitas falas +
       escolhas) a caixa crescia para fora do viewport e os botões de escolha
       ficavam INALCANÇÁVEIS. Achado em teste com Chrome headless. */
    max-height: 86vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    position: relative;
    animation: dialogueFadeIn 0.3s ease-out;
}

@keyframes dialogueFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialogue-speaker {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dialogue-speaker::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
}

.dialogue-text {
    font-family: 'Cormorant Garamond', 'Crimson Pro', serif;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    min-height: 2.4rem; /* Space for one line of text */
    position: relative;
    padding-right: 2rem; /* Space for advance indicator */
}

.dialogue-text.typing::after {
    content: '|';
    position: absolute;
    right: 0;
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    0%, 70% {
        opacity: 1;
    }
    71%, 100% {
        opacity: 0;
    }
}

.dialogue-advance {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2rem;
    height: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dialogue-advance:hover {
    opacity: 0.8;
}

.dialogue-advance span {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: all 0.2s ease;
}

.dialogue-advance:hover span {
    border-color: var(--candle);
    transform: rotate(45deg) translate(2px, -2px);
}

/* Responsive adjustments for dialogue */
@media (max-width: 600px) {
    .dialogue-box {
        width: 90%;
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .dialogue-text {
        font-size: 1.1rem;
    }
    
    .dialogue-speaker {
        font-size: 1rem;
    }
    
    .dialogue-advance {
        width: 1.8rem;
        height: 1.8rem;
        bottom: 1rem;
        right: 1rem;
    }
}

/* ==========================================================================
   CAMADA DE DECORAÇÃO DA CENA — enfeites aplicados com ações "use"
   (ex.: Selo de Sebo no cabideiro). Posicionada em % pelo sceneManager.js,
   abaixo dos hotspots para nunca bloquear cliques.
   ========================================================================== */
.decor-item {
    position: absolute;
    z-index: 0;                     /* atrás da camada de hotspots (z-index 1) */
    pointer-events: none;           /* decoração é só visual */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: decorFadeIn 0.45s ease-out;
}

.decor-item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(217, 183, 91, 0.45));
}

@keyframes decorFadeIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   PAINEL DO ARG IN-GAME — enigma textual (input + enviar)
   z-index 1800: acima do log de pistas (1500), abaixo do diálogo (2000).
   ========================================================================== */
.arg-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(5, 5, 8, 0.82);
    z-index: 1800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.arg-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.arg-panel {
    position: relative;
    width: min(460px, 90vw);
    padding: 2rem 1.75rem 1.6rem;
    background: linear-gradient(180deg, #151218 0%, #050508 100%);
    border: 1px solid var(--brass, #8c6f3f);
    border-radius: 6px;
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(217, 183, 91, 0.12);
    color: var(--parchment);
    animation: argFadeIn 0.3s ease-out;
}

@keyframes argFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.arg-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass-bright, #d9b75b);
    margin-bottom: 0.9rem;
}

.arg-prompt {
    font-family: 'Crimson Pro', serif;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--parchment);
    margin-bottom: 0.6rem;
}

.arg-hint {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--fog-pale, #6b7a8f);
    margin-bottom: 1.1rem;
}

.arg-input-row {
    display: flex;
    gap: 0.5rem;
}

.arg-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    color: var(--parchment);
    background-color: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--clue-line, #3a322a);
    border-radius: 3px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.arg-input:focus {
    border-color: var(--brass-bright, #d9b75b);
    box-shadow: 0 0 0 2px rgba(217, 183, 91, 0.25);
}

/* Teclado numérico do ARG (passo com mode:"numeric" — cofre do Caso 002). */
.arg-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.arg-keypad[hidden] {
    display: none;
}

.arg-key {
    padding: 0.6rem 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--parchment);
    background-color: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--clue-line, #3a322a);
    border-radius: 3px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.arg-key:hover,
.arg-key:focus-visible {
    border-color: var(--brass-bright, #d9b75b);
    background-color: rgba(217, 183, 91, 0.12);
    outline: none;
}

.arg-key--alt {
    color: #d97a7a;
}

.arg-key--ok {
    color: var(--ink);
    background-color: var(--brass, #8c6f3f);
    border-color: var(--brass-bright, #d9b75b);
}

.arg-key--ok:hover {
    background-color: var(--brass-bright, #d9b75b);
}

.arg-submit {
    flex: 0 0 auto;
    padding: 0.65rem 1.1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    background-color: var(--brass, #8c6f3f);
    border: 1px solid var(--brass-bright, #d9b75b);
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.arg-submit:hover,
.arg-submit:focus-visible {
    background-color: var(--brass-bright, #d9b75b);
    color: var(--ink);
    outline: none;
}

.arg-message {
    min-height: 1.3rem;
    margin-top: 0.9rem;
    font-family: 'Crimson Pro', serif;
    font-size: 0.92rem;
    font-style: italic;
}

.arg-message--ok {
    color: var(--brass-bright, #d9b75b);
}

.arg-message--error {
    color: #d97a7a;
}

.arg-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 1.9rem;
    height: 1.9rem;
    line-height: 1;
    font-size: 1.3rem;
    color: var(--parchment);
    background: transparent;
    border: 1px solid var(--clue-line, #3a322a);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.arg-close:hover {
    color: var(--ink);
    background-color: var(--brass-bright, #d9b75b);
    border-color: var(--brass-bright, #d9b75b);
}

@media (prefers-reduced-motion: reduce) {
    .arg-overlay,
    .arg-panel,
    .decor-item {
        transition: none;
        animation: none;
    }
}

/* ==========================================================================
   MENU ⚙ (configurações) — dropdown ancorado ao botão do HUD
   z-index 1900: acima do ARG (1800), abaixo do diálogo (2000).
   ========================================================================== */
.settings-menu {
    position: fixed;
    z-index: 1900;
    min-width: 190px;
    padding: 0.4rem;
    background: linear-gradient(180deg, #171310 0%, #0d0b09 100%);
    border: 1px solid var(--brass);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(217, 183, 91, 0.1);
    animation: settingsDropIn 0.16s ease-out;
}

@keyframes settingsDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.settings-menu-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brass-bright);
    padding: 0.35rem 0.55rem 0.5rem;
    border-bottom: 1px solid var(--clue-line);
    margin-bottom: 0.35rem;
}

.settings-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.6rem;
    font-family: 'Crimson Pro', serif;
    font-size: 0.95rem;
    color: var(--parchment);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.settings-item:hover,
.settings-item:focus-visible {
    background-color: rgba(217, 183, 91, 0.12);
    border-color: var(--brass);
    color: var(--brass-bright);
    outline: none;
}

.settings-item--danger:hover,
.settings-item--danger:focus-visible {
    background-color: rgba(196, 30, 58, 0.22);
    border-color: var(--accent);
    color: #f0b9c2;
}

/* ==========================================================================
   CONFIRMAÇÃO DE RESET — diálogo modal
   ========================================================================== */
.reset-confirm {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(5, 5, 8, 0.82);
    z-index: 1950;
    animation: argFadeIn 0.2s ease-out;
}

.reset-confirm-box {
    width: min(400px, 88vw);
    padding: 1.6rem 1.5rem 1.3rem;
    background: linear-gradient(180deg, #151218 0%, #050508 100%);
    border: 1px solid var(--brass);
    border-radius: 6px;
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.7);
}

.reset-confirm-text {
    font-family: 'Crimson Pro', serif;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--parchment);
    margin-bottom: 1.2rem;
}

.reset-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.reset-confirm-actions .settings-item {
    width: auto;
    min-width: 6rem;
    text-align: center;
    border-color: var(--clue-line);
}

/* ==========================================================================
   TOASTS — feedback efêmero no canto inferior direito
   ========================================================================== */
.hud-toasts {
    position: fixed;
    right: 1rem;
    bottom: 5rem;               /* acima da barra de inventário */
    z-index: 1960;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    pointer-events: none;
}

.hud-toast {
    max-width: 320px;
    padding: 0.55rem 0.85rem;
    font-family: 'Crimson Pro', serif;
    font-size: 0.92rem;
    color: var(--parchment);
    background: rgba(13, 11, 9, 0.94);
    border: 1px solid var(--brass);
    border-left-width: 3px;
    border-radius: 3px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    animation: toastIn 0.25s ease-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hud-toast--ok    { border-left-color: var(--brass-bright); }
.hud-toast--error { border-left-color: var(--accent); }

.hud-toast--out {
    opacity: 0;
    transform: translateX(12px);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .settings-menu,
    .reset-confirm,
    .hud-toast {
        animation: none;
        transition: none;
    }
}
