/* Песочница тренера (Tasks/WBChess_TZ_sandbox.md): кнопка «Попробовать»
   и страница подтверждения выхода. Цвета — переменные лендинга (index.css,
   тёмная тема — theme.css); у страниц без index.css срабатывают запасные. */

.sandbox-start-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0 0;
}

.sandbox-start-form--center {
    align-items: center;
    text-align: center;
}

/* Кнопка в ряду чужих кнопок (for_coaches.php): форма не создаёт своего блока */
.sandbox-start-form--inline {
    display: contents;
}

.sandbox-start-form--inline button {
    font: inherit;
    cursor: pointer;
}

.sandbox-start-hint {
    margin: 0;
    font-size: 14px;
    color: var(--landing-text-muted, #6b7c93);
}

.sandbox-start-error {
    margin: 0;
    font-size: 14px;
    color: #c0392b;
}

.sandbox-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sandbox-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
}

.sandbox-btn--primary {
    background: var(--landing-accent, #667eea);
    color: #fff;
}

.sandbox-btn--primary:hover,
.sandbox-btn--primary:focus-visible {
    filter: brightness(0.92);
}

.sandbox-btn--secondary {
    background: transparent;
    color: var(--landing-text, #2c3e50);
    border-color: var(--landing-card-border, #e2e8f0);
}

.sandbox-btn--danger {
    background: #c0392b;
    color: #fff;
}

.sandbox-btn--danger:hover,
.sandbox-btn--danger:focus-visible {
    background: #a93226;
}

/* В hero главной: над карточками, отступ до них */
.sandbox-start-form--hero {
    margin: 20px 0 24px;
}

/* В «Продолжить»: одна строка — текст и кнопка, на узком экране переносится */
.sandbox-try-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 16px 0 0;
    padding: 12px 16px;
    background: var(--landing-accent-light, rgba(102, 126, 234, 0.08));
    border-radius: var(--landing-radius, 12px);
    box-sizing: border-box;
}

.sandbox-try-row .sandbox-try-text {
    flex: 1 1 240px;
}

.sandbox-try-row .sandbox-start-form {
    margin: 0;
}

/* Блок в «Сервисах» и в профиле */
.sandbox-try-card {
    margin: 24px 0 0;
    padding: 20px;
    background: var(--landing-card-bg, #fff);
    border: 1px solid var(--landing-card-border, #e2e8f0);
    border-radius: var(--landing-radius, 12px);
    box-sizing: border-box;
}

.sandbox-try-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: var(--landing-text, #2c3e50);
}

.sandbox-try-text {
    margin: 0;
    font-size: 15px;
    color: var(--landing-text-muted, #6b7c93);
}

/* Страница подтверждения выхода */
.sandbox-confirm {
    display: flex;
    justify-content: center;
    padding: 48px 16px;
}

.sandbox-confirm-card {
    width: 100%;
    max-width: 520px;
    padding: 28px;
    background: var(--landing-card-bg, #fff);
    border: 1px solid var(--landing-card-border, #e2e8f0);
    border-radius: var(--landing-radius, 12px);
    box-sizing: border-box;
}

.sandbox-confirm-title {
    margin: 0 0 12px;
    font-size: 22px;
    color: var(--landing-text, #2c3e50);
}

.sandbox-confirm-text {
    margin: 0 0 12px;
    color: var(--landing-text-muted, #6b7c93);
}

.sandbox-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .sandbox-confirm {
        padding: 24px 16px;
    }

    .sandbox-confirm-card {
        padding: 20px;
    }

    .sandbox-confirm-actions .sandbox-btn,
    .sandbox-start-form .sandbox-btn {
        width: 100%;
    }

    .sandbox-start-form {
        align-items: stretch;
    }
}
