.battle {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.battle.active {
    display: flex;
}

.battle__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.battle__content {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90dvh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: battleSlideIn 0.3s var(--ease-out);
}

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

.battle__card {
    border: 1px solid var(--border-active);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.battle__card.victory {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(91, 143, 185, 0.1);
}

.battle__card-image {
    aspect-ratio: 4/3;
    background: var(--surface-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.battle__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.battle__card-initial {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-muted);
}

.battle__card-body {
    padding: 1.25rem 1.5rem;
}

.battle__thinker {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.battle__question {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Options */
.battle__options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.battle__option {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: left;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--ease);
}

.battle__option:hover {
    border-color: var(--border-active);
    background: var(--surface-raised);
}

.battle__option:active {
    transform: scale(0.98);
}

.battle__option.correct {
    border-color: var(--success);
    background: rgba(74, 222, 128, 0.08);
    color: var(--success);
}

.battle__option.wrong {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.08);
    color: var(--error);
}

.battle__option.shake {
    animation: optionShake 0.4s var(--ease);
}

@keyframes optionShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.battle__option--deed {
    text-align: center;
    font-weight: 600;
    border-color: var(--accent);
    color: var(--accent);
}

.battle__option--deed:hover {
    background: rgba(91, 143, 185, 0.1);
}

/* Plato response */
.battle__plato {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-warm);
    text-align: center;
    padding: 0.75rem;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s var(--ease);
}

.battle__plato.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Close button */
.battle__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    border-radius: 50%;
    background: var(--surface-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    z-index: 10;
    transition: all 0.2s var(--ease);
}

.battle__close:hover {
    color: var(--text);
    border-color: var(--border-active);
}
