/* =================================================================
   Bayou Battle — страница настройки оверлея для стримера
   ================================================================= */

.arena-page {
    padding-top: 30px;
    padding-bottom: 60px;
}

/* Выбор игры */
.ar-games {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.ar-game {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: var(--text-main);
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    cursor: pointer;
    transition:
        border-color var(--transition),
        background var(--transition);
}

.ar-game:hover {
    border-color: var(--border-gold);
}

.ar-game.is-active {
    background: linear-gradient(90deg, rgba(204, 36, 29, 0.14), rgba(204, 36, 29, 0.02)), var(--bg-card);
    border-color: var(--text-red);
    box-shadow: inset 3px 0 0 var(--text-red);
}

.ar-game__icon {
    flex: none;
    font-size: 30px;
    line-height: 1;
}

.ar-game__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ar-game__name {
    color: var(--text-gold);
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ar-game__text {
    color: #cfc6b8;
    font-size: 13px;
    line-height: 1.45;
}

.ar-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 20px;
    margin-bottom: 20px;
}

.ar-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ar-setup {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ar-setup .block-title {
    margin-bottom: 2px;
}

.ar-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ar-mono {
    font-family: var(--font-mono);
    font-size: 12px;
}

.field__hint.is-error {
    color: var(--text-red);
}

.ar-ok {
    color: #5fbf7f;
}

.ar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Превью: оверлей поверх «стрима» */
.ar-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(80, 100, 82, 0.35), transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(120, 60, 30, 0.25), transparent 60%), #060707;
    border: 1px solid var(--border-main);
}

.ar-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ar-note {
    margin-top: 12px;
    line-height: 1.5;
}

.ar-steps,
.ar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #cfc6b8;
    font-size: 14px;
    line-height: 1.55;
    list-style: none;
}

.ar-steps {
    counter-reset: ar-step;
}

.ar-steps li,
.ar-list li {
    position: relative;
    padding-left: 30px;
}

.ar-steps li::before {
    position: absolute;
    top: 1px;
    left: 0;
    width: 20px;
    height: 20px;
    color: var(--text-gold);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 1px solid var(--border-gold);
    content: counter(ar-step);
    counter-increment: ar-step;
}

.ar-list li::before {
    position: absolute;
    top: 8px;
    left: 6px;
    width: 6px;
    height: 6px;
    background: var(--text-red);
    content: "";
}

.ar-cmd {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-main);
}

.ar-cmd:first-of-type {
    padding-top: 0;
}

.ar-cmd__codes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.ar-cmd__codes code {
    padding: 2px 8px;
    color: var(--text-gold);
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--bg-input);
    border: 1px solid var(--border-main);
}

.ar-cmd__text {
    color: #cfc6b8;
    font-size: 13px;
    line-height: 1.45;
}

/* Ссылка на рандомайзер */
.ar-promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
}

.ar-promo__icon {
    font-size: 32px;
    line-height: 1;
}

.ar-promo__body {
    flex: 1;
    min-width: 220px;
}

.ar-promo__title {
    margin-bottom: 4px;
    color: var(--text-gold);
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ar-promo__text {
    color: #cfc6b8;
    font-size: 14px;
}

@media (max-width: 960px) {
    .ar-games,
    .ar-grid,
    .ar-grid--3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .ar-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .ar-actions .btn {
        flex: 1 1 100%;
    }
}
