/* ── Reset & base ─────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --blue:  #00aaff;
    --blue2: #005599;
    --dark: #0d0d0d;
}
body {
    font-family: 'Oswald', sans-serif;
    background: var(--dark);
    color: #fff;
    min-height: 100vh;
    padding: 10px 14px 24px;
    font-size: 17px;
}

/* ── Header ───────────────────────────────────────────────── */
.sto-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #222;
}
.sto-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    color: #fff;
    flex-shrink: 0;
}
.sto-participants {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-width: 0;
}
.sto-participants::-webkit-scrollbar { display: none; }
.sto-participants img {
    width: 53px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #333;
    flex-shrink: 0;
}
.sto-participants img.p-eliminated {
    border-color: #880000;
    filter: grayscale(80%) brightness(0.45);
    opacity: 0.5;
}
.sto-participants img.p-nominated {
    border-color: #fff;
}
.sto-nav {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.sto-nav-btn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.15s, box-shadow 0.15s;
}
.sto-nav-menu {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #111;
    box-shadow: 0 0 12px rgba(255,180,0,0.4);
}
.sto-nav-menu:hover { transform: scale(1.05); box-shadow: 0 0 22px rgba(255,180,0,0.7); }

.sto-header-tts {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 8px;
}
.sto-tts {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}
.sto-tts-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
    flex-shrink: 0;
}
.sto-tts-btn:hover { transform: scale(1.12); }
.tts-play  { background: #22c55e; color: #fff; }
.tts-pause { background: #f59e0b; color: #fff; }
.tts-stop  { background: #ef4444; color: #fff; }
.tts-speed { background: #444; color: #fff; font-weight: bold; font-size: 15px; }
.sto-tts-speed {
    min-width: 28px;
    text-align: center;
    font-size: 0.85rem;
    color: #aaa;
    flex-shrink: 0;
}

/* ── Main layout ──────────────────────────────────────────── */
.sto-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
}
.sto-main-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}
@media (max-width: 900px) {
    .sto-main-columns { grid-template-columns: 1fr; }
}

/* ── Grid panel ───────────────────────────────────────────── */
.sto-grid-wrap {
    background: rgba(0,0,0,0.4);
    border: 2px solid #2a2a2a;
    border-radius: 10px;
    padding: 14px;
    position: relative;
    min-height: 0;
    overflow: hidden;
}
.sto-grid-area {
    position: relative;
}
.sto-grid-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.sto-grid-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: 0.1em;
    text-align: left;
    margin: 0;
    flex: 1;
}

/* 6 columns × 4 rows = 24 boxes (same layout as Problems) */
.sto-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 0;
}

.sto-box {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 2px solid var(--blue2);
    border-radius: 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    color: #888;
    cursor: default;
    position: relative;
    transition: all 0.2s;
    user-select: none;
}
.sto-box:not(.used):hover {
    border-color: var(--blue2);
    color: #888;
    transform: none;
    box-shadow: none;
}
.sto-box.selected {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 22px rgba(255,255,255,0.55);
    animation: stoBoxPulse 1s ease-in-out infinite;
}
@keyframes stoBoxPulse { 50% { transform: scale(1.05); } }

.sto-box.used {
    background: rgba(0,85,153,0.45);
    color: #fff;
    border-color: var(--blue2);
    opacity: 0.65;
    cursor: pointer;
}
.sto-box.used:hover {
    opacity: 0.85;
    border-color: var(--blue);
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 0 14px rgba(0,170,255,0.35);
}

.sto-box.has-assign::after {
    content: '👤';
    position: absolute;
    top: 2px;
    right: 3px;
    font-size: 9px;
    background: #0f0;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Roll button */
.sto-roll-btn {
    width: auto;
    flex-shrink: 0;
    padding: 8px 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, var(--blue2), #003366);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(0,170,255,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}
.sto-roll-btn:hover:not(:disabled):not([disabled]):not(.sto-roll-btn--exhausted) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 28px rgba(0,170,255,0.65);
}
.sto-roll-btn:disabled,
.sto-roll-btn[disabled],
.sto-roll-btn.sto-roll-btn--exhausted {
    opacity: 0.4 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transform: none !important;
    box-shadow: none !important;
    background: #444 !important;
    color: #aaa !important;
}
.sto-roll-msg {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 170, 255, 0.12);
    border: 1px solid rgba(0, 170, 255, 0.35);
    color: #b8ecff;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ── Result panel ─────────────────────────────────────────── */
.sto-result-wrap {
    background: rgba(0,0,0,0.5);
    border: 2px solid var(--blue);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 0 28px rgba(0,170,255,0.12);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s, transform 0.35s;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}
.sto-result-wrap.visible { opacity: 1; transform: translateY(0); }
.sto-result-wrap.pop-in  { animation: stoPopIn 0.4s ease; }
@keyframes stoPopIn {
    0%   { opacity: 0; transform: scale(0.93) translateY(12px); }
    70%  { transform: scale(1.02) translateY(-3px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.sto-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
}
.sto-result-head h3 {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding-right: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    color: #fff;
    letter-spacing: 0.04em;
    -webkit-font-smoothing: antialiased;
}
.sto-result-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 2px solid #666;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.sto-result-close:hover {
    background: #2a2a2a;
    border-color: var(--blue);
    transform: scale(1.06);
}
.sto-result-close[hidden] {
    display: none !important;
}

.sto-result-body {
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.sto-result-body--chosen .sto-result-text-wrap {
    flex: 0 1 auto;
    height: auto;
    max-height: 100%;
}
.sto-result-text-wrap {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    scrollbar-gutter: stable;
}
.sto-result-text-wrap::-webkit-scrollbar { width: 8px; }
.sto-result-text-wrap::-webkit-scrollbar-thumb {
    background: var(--blue2);
    border-radius: 4px;
}

/* Photos overlay on grid (up to 4 participants) */
.sto-photos-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    padding: 38px 6px 8px;
    background: rgba(8, 10, 14, 0.92);
    border: 2px solid var(--blue);
    border-radius: 10px;
    box-shadow: 0 0 28px rgba(0, 170, 255, 0.35);
    box-sizing: border-box;
}
.sto-photos-overlay[hidden] {
    display: none !important;
}
.sto-photos-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 2px solid #666;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.sto-photos-close:hover {
    background: #2a2a2a;
    border-color: var(--blue);
    transform: scale(1.06);
}
.sto-photos-inner {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
}
.sto-photos-inner .sto-photo-card {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 0 2px;
}
.sto-photos-inner .sto-photo-card img {
    display: block;
    width: calc(100% - 4px);
    max-width: calc(100% - 4px);
    height: auto;
    max-height: min(320px, calc(100% - 1.75rem));
    margin: 0 auto;
    object-fit: contain;
    object-position: center center;
    border-radius: 6px;
    border: 2px solid var(--blue);
    box-shadow: 0 0 18px rgba(0, 170, 255, 0.45);
}
.sto-photos-inner .sto-photo-name {
    flex-shrink: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    letter-spacing: 0.06em;
    color: var(--blue);
    text-align: center;
    width: 100%;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sto-result-text-wrap .sto-result-simple,
.sto-result-simple,
.sto-result-main,
.sto-result-outcome {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 3.6vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #ccc;
    line-height: 1.35;
    margin-top: 4px;
}
.sto-result-simple {
    margin-top: 4px;
    white-space: pre-line;
}
.sto-result-simple:has(.mod-no-p) {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    min-height: 0;
}
.sto-result-main-plain {
    margin: 0;
}
.sto-ab-prompt {
    margin-top: 1.1em;
    padding-top: 0.85em;
    border-top: 1px solid #3a3a3a;
}
.sto-ab-prompt p {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.85rem, 3.2vw, 2.2rem);
    line-height: 1.4;
    letter-spacing: 0.04em;
}
.sto-ab-should,
.sto-ab-or {
    color: #fff;
    font-weight: 600;
}
.sto-ab-should {
    margin-bottom: 0.55em !important;
}
.sto-ab-or {
    margin: 0.65em 0 !important;
}
.sto-ab-opt--a {
    color: var(--blue);
    text-shadow: 0 0 12px rgba(0, 170, 255, 0.35);
}
.sto-ab-opt--b {
    color: #ff8c00;
    text-shadow: 0 0 12px rgba(255, 140, 0, 0.35);
}
.sto-ab-label {
    font-weight: 700;
    margin-right: 0.15em;
}
.sto-result-main { margin-bottom: 0; }
.sto-result-chosen {
    margin: 0.85em 0 0;
    padding: 0.65em 0 0;
    border-top: 1px solid #3a3a3a;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.45rem, 2.6vw, 1.85rem);
    line-height: 1.4;
    letter-spacing: 0.04em;
    white-space: pre-line;
}
.sto-result-chosen[hidden] { display: none !important; }
.sto-result-chosen--a { color: var(--blue); }
.sto-result-chosen--b { color: #ff8c00; }
.sto-chosen-label { font-weight: 700; margin-right: 0.15em; }
.sto-result-outcome {
    margin-top: 0;
    padding-top: 4px;
}
.sto-result-outcome[hidden] { display: none !important; }
.sto-result-continue {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 0 10px;
    margin: 0;
}
.sto-result-play-btn {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.45);
    transition: transform 0.15s;
}
.sto-result-play-btn:hover { transform: scale(1.08); }
.sto-result-play-btn--blink,
.sto-tts-play--blink {
    animation: stoPlayBlink 1.1s ease-in-out infinite;
}
@keyframes stoPlayBlink {
    0%, 100% {
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
        transform: scale(1);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 26px rgba(34, 197, 94, 1), 0 0 40px rgba(34, 197, 94, 0.55);
        transform: scale(1.1);
        opacity: 0.92;
    }
}

/* ── Context menu ─────────────────────────────────────────── */
.sto-ctx-menu {
    position: fixed;
    background: #1e1e1e;
    border: 2px solid var(--blue2);
    border-radius: 8px;
    padding: 4px 0;
    display: none;
    z-index: 3000;
    min-width: 170px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.sto-ctx-menu.active { display: block; }
.sto-ctx-menu div {
    padding: 14px 24px;
    cursor: pointer;
    font-size: 1.3rem;
    color: #ddd;
    transition: background 0.15s;
}
.sto-ctx-menu div:hover { background: var(--blue2); color: #fff; }

/* ── Assign overlay ───────────────────────────────────────── */
.sto-assign-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4000;
}
.sto-assign-overlay.active { display: flex; }
.sto-assign-panel {
    background: #1a1a1a;
    border: 3px solid var(--blue);
    border-radius: 14px;
    padding: 22px;
    max-width: 820px;
    width: 95%;
    box-shadow: 0 0 50px rgba(0,170,255,0.4);
}
.sto-assign-panel h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--blue);
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 8px;
}
.assign-counter {
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    transition: background 0.2s, color 0.2s;
    background: rgba(255,255,255,0.06);
    color: #aaa;
}
.assign-counter.ac-ok      { background: rgba(34,197,94,0.18);  color: #22c55e; }
.assign-counter.ac-over    { background: rgba(239,68,68,0.18);  color: #ef4444; }
.assign-counter.ac-under   { background: rgba(245,158,11,0.18); color: #f59e0b; }
.sto-assign-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.sto-assign-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: 9px;
    padding: 8px 6px;
    border: 2px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}
.sto-assign-item:hover { background: #2a2a2a; }
.sto-assign-item.selected { border-color: var(--blue); background: rgba(0,170,255,0.12); }
.sto-assign-item.elim { opacity: 0.35; cursor: default; filter: grayscale(80%); }
.sto-assign-item img {
    width: 100%;
    aspect-ratio: 80/110;
    object-fit: cover;
    border-radius: 7px;
    border: 2px solid #333;
}
.sto-assign-item.selected img { border-color: var(--blue); }
.sto-assign-item .assign-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-top: 5px;
    text-align: center;
}
.sto-assign-close {
    display: block;
    width: 100%;
    padding: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    background: #333;
    color: #aaa;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.sto-assign-close:hover { background: #444; color: #fff; }

/* ── Tooltip ──────────────────────────────────────────────── */
.sto-tooltip {
    position: fixed;
    background: rgba(0,0,0,0.88);
    border: 1px solid var(--blue2);
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #eee;
    pointer-events: none;
    z-index: 5000;
    display: none;
    max-width: 200px;
}

/* highlight during roulette */
.sto-box.highlight-roulette {
    border-color: #66ccff !important;
    background: rgba(0,150,255,0.22) !important;
    color: #cceeff !important;
    box-shadow: 0 0 24px rgba(0,150,255,0.85) !important;
}

/* -- No-participants prompt ----------------------------------- */
.mod-no-p {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex: 1;
    min-height: 0;
    padding: 12px 0;
    text-align: center;
}
.mod-no-p-label {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #888;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.mod-no-p-label strong {
    color: #fff;
    font-size: 2rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.1em;
}
.mod-no-p-btn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 5px;
    padding: 14px 52px;
    background: #000;
    color: #fff;
    border: 3px solid #00ff55;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    box-shadow: 0 0 12px rgba(0,255,85,0.7), 0 0 30px rgba(0,255,85,0.3);
    animation: mod-btn-glow 2s ease-in-out infinite alternate;
    transition: transform 0.15s;
}
@keyframes mod-btn-glow {
    from { box-shadow: 0 0 10px rgba(0,255,85,0.6), 0 0 25px rgba(0,255,85,0.25); }
    to   { box-shadow: 0 0 22px rgba(0,255,85,1),   0 0 55px rgba(0,255,85,0.5); }
}
.mod-no-p-btn:hover  { transform: scale(1.06); }
.mod-no-p-btn:active { transform: scale(0.97); }

/* ── Branch story (A/B) ─────────────────────────────────────── */
.sto-branch {
    flex-shrink: 0;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #2a2a2a;
}
.sto-preview-row,
.sto-choice-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 14px;
}
.sto-btn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    padding: 10px 22px;
    border-radius: 8px;
    border: 2px solid var(--blue);
    background: rgba(0, 85, 153, 0.35);
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.sto-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 16px rgba(0, 170, 255, 0.45);
    background: rgba(0, 120, 200, 0.5);
}
.sto-btn-preview { min-width: 140px; }
.sto-btn-preview--ab {
    min-width: 0;
    max-width: min(420px, 48%);
    flex: 1 1 200px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
    padding: 12px 14px;
}
.sto-btn-choice {
    min-width: 72px;
    font-size: 1.6rem;
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
}
.sto-btn-choice--a {
    border-color: var(--blue);
    background: rgba(0, 170, 255, 0.22);
    color: #fff;
}
.sto-btn-choice--a:hover {
    box-shadow: 0 0 18px rgba(0, 170, 255, 0.55);
    background: rgba(0, 170, 255, 0.42);
}
.sto-btn-choice--b {
    border-color: #ff8c00;
    background: rgba(255, 140, 0, 0.22);
    color: #fff;
}
.sto-btn-choice--b:hover {
    box-shadow: 0 0 18px rgba(255, 140, 0, 0.55);
    background: rgba(255, 140, 0, 0.42);
}
.sto-btn-choice:hover { box-shadow: 0 0 16px rgba(34, 197, 94, 0.45); }
.sto-btn-choice--a:hover,
.sto-btn-choice--b:hover {
    transform: scale(1.04);
}
.sto-btn-choice.is-chosen {
    background: rgba(34, 197, 94, 0.55);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
}
.sto-btn-choice--a.is-chosen {
    background: rgba(0, 170, 255, 0.55);
    box-shadow: 0 0 22px rgba(0, 170, 255, 0.65);
}
.sto-btn-choice--b.is-chosen {
    background: rgba(255, 140, 0, 0.55);
    box-shadow: 0 0 22px rgba(255, 140, 0, 0.65);
}
.sto-btn-choice:disabled {
    opacity: 0.85;
    cursor: default;
    transform: none;
}
.sto-question {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    color: #fff;
    text-align: center;
    margin: 0 0 12px;
    letter-spacing: 0.04em;
}
.sto-branch--yesno .sto-preview-row,
.sto-branch--ab .sto-preview-row,
.sto-preview-row[hidden] {
    display: none !important;
}
.sto-branch--yesno .sto-choice-row,
.sto-branch--ab .sto-choice-row {
    margin-top: 0;
    margin-bottom: 0;
}
.sto-branch--yesno .sto-question,
.sto-branch--ab .sto-question {
    display: none !important;
}
.sto-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.sto-preview-overlay[hidden] { display: none !important; }
.sto-preview-panel {
    max-width: 520px;
    width: 100%;
    padding: 1.4rem 1.5rem;
    border-radius: 12px;
    background: #1a1a1a;
    border: 2px solid var(--blue);
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.35);
}
.sto-preview-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--blue);
    margin: 0 0 12px;
}
.sto-preview-body {
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    line-height: 1.45;
    color: #ddd;
    margin: 0 0 16px;
}
.sto-preview-close {
    display: block;
    width: 100%;
    padding: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 8px;
    background: #333;
    color: #fff;
    cursor: pointer;
}
.sto-preview-close:hover { background: #444; }
