/* Регистрация по шагам: /welcome */
.ob-card { max-width: 640px; }
.ob-embed { max-width: 640px; margin-top: 14px; }

.ob-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.ob-step-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    font-size: 12px;
    opacity: 0.55;
}

a.ob-step-link { opacity: 0.8; }
a.ob-step-link:hover { opacity: 1; }

.ob-step.is-current .ob-step-link,
.ob-step.is-done .ob-step-link { opacity: 1; }

.ob-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.18));
    border-radius: var(--radius, 4px);
    font-weight: 600;
    font-size: 14px;
}

.ob-step.is-done .ob-step-num { background: rgba(74, 222, 128, 0.16); border-color: #93c5fd; color: #93c5fd; }
.ob-step.is-current .ob-step-num { background: var(--accent, #4d84ff); border-color: var(--accent, #4d84ff); color: #fff; }
.ob-step-name { text-align: center; line-height: 1.2; }

.ob-title { margin: 0 0 6px; font-size: 20px; }
.ob-intro, .ob-hint { margin: 0 0 14px; font-size: 14px; opacity: 0.8; }
.ob-hint { font-size: 13px; }
.ob-say-title { margin-bottom: 6px; font-weight: 600; opacity: 1; }
.ob-say { margin: 0 0 14px; padding-left: 22px; font-size: 14px; }
.ob-ok { margin: 8px 0; color: #93c5fd; font-weight: 600; }

.ob-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }

.ob-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.ob-actions form { margin: 0; }
.ob-next, .ob-btn { width: auto; padding-left: 22px; padding-right: 22px; text-align: center; text-decoration: none; }

/* видео */
.ob-stage { position: relative; background: #000; border-radius: var(--radius, 4px); overflow: hidden; aspect-ratio: 4 / 3; }
.ob-video { display: block; width: 100%; max-height: 420px; background: #000; border-radius: var(--radius, 4px); object-fit: cover; }
.ob-stage .ob-video { height: 100%; max-height: none; border-radius: 0; transform: scaleX(-1); }
.ob-stage .ob-video.is-playback { transform: none; }
.ob-video-review { margin: 8px 0; }
.ob-rec-badge { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: var(--radius, 4px); background: rgba(0, 0, 0, 0.6); color: #f87171; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.ob-progress { height: 4px; margin: 8px 0 0; background: rgba(255, 255, 255, 0.12); border-radius: var(--radius, 4px); overflow: hidden; }
.ob-progress span { display: block; height: 100%; width: 0; background: #f87171; transition: width 0.15s linear; }
.ob-recorder { margin-bottom: 4px; }
.ob-recorder .ob-hint { margin-top: 10px; }

/* игра */
.ob-game-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ob-game {
    padding: 12px 10px;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.18));
    border-radius: var(--radius, 4px);
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.ob-game:hover { border-color: var(--accent, #4d84ff); }
.ob-game.is-selected { background: var(--accent, #4d84ff); border-color: var(--accent, #4d84ff); color: #fff; }
.ob-oauth { display: flex; justify-content: center; text-decoration: none; }

/* проверка */
.ob-review { margin: 0 0 14px; display: grid; gap: 8px; }
.ob-review > div { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1)); font-size: 14px; }
.ob-review dt { min-width: 150px; opacity: 0.65; }
.ob-review dd { margin: 0; }
.ob-review a { margin-left: 8px; font-size: 12px; }

@media (max-width: 560px) {
    .ob-grid { grid-template-columns: 1fr; }
    .ob-step-name { font-size: 10px; }
    .ob-review dt { min-width: 100%; }
}
