/* Survival shares the landing page's violet and mint palette. */
* { box-sizing: border-box; }
body {
    margin: 0;
    color: #f4f3ff;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    background: radial-gradient(ellipse at 15% 10%, #302455 0, transparent 55%), #171c32;
    line-height: 1.5;
}
header { background: #1e233bcc; border-bottom: 1px solid #ffffff12; box-shadow: none; gap: 20px; flex-wrap: wrap; }
header .logo span { color: #ab97ff !important; }
.rank-bar-container { background: #1e233b99; border-bottom: 1px solid #ffffff12; }
.rank-info { gap: 12px; flex-wrap: wrap; color: #c5c4db; }
.rank-info > span:first-child { color: #ab97ff !important; }
.progress-bg { height: 8px; background: #ffffff12; border: 0; }
.progress-fill { background: linear-gradient(90deg, #8868ff, #30d1b5); }
.store-bar { justify-content: center; background: transparent; border-color: #ffffff12; }
.powerup { font: inherit; font-size: .9rem; background: #252b46; border-color: #ffffff15; border-radius: 14px; white-space: nowrap; }
.powerup:hover { background: #343056; }
.powerup .badge { background: #7658ec; }
.q-card { max-width: 820px; padding: 38px; background: #232940; border: 1px solid #ffffff16; border-top: 3px solid #8868ff; border-radius: 26px; box-shadow: 0 28px 80px #080c2040; }
.q-subject { font-size: .77rem; letter-spacing: .04em; gap: 18px; flex-wrap: wrap; }
.q-text { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 650; line-height: 1.5; }
.opt-btn { font: inherit; color: #f4f3ff; background: #2c334f; border: 1px solid #ffffff18; border-radius: 14px; min-height: 64px; }
.opt-btn:hover { background: #3a325f; border-color: #a48cff; box-shadow: 0 10px 24px #10142640; }
.text-answer-form { display: grid; gap: 12px; }
.text-answer-form label { color: #c4c5d7; font-weight: 600; }
.answer-input { width: 100%; min-height: 56px; padding: 14px 18px; color: #fff; background: #191f36; border: 1px solid #62617f; border-radius: 12px; font: inherit; }
.text-answer-form .opt-btn { text-align: center; background: #7658ec; font-weight: 700; }
:focus-visible { outline: 3px solid #b9a7ff; outline-offset: 3px; }
.toast { max-width: min(520px, calc(100vw - 32px)); font-size: 1rem; box-shadow: 0 12px 30px #0003; }
.toast.success { background: #087c69; }
.toast.error { background: #ad3555; }
.survival-auth, .survival-over { padding: 24px; }
.auth-card, .over-card { background: #232940; border: 1px solid #ffffff20; border-top: 3px solid #8868ff; border-radius: 26px; box-shadow: 0 28px 80px #080c2040; }
.auth-card h2, .over-card h1 { color: #b4a0ff; }
.auth-input { background: #191f36; border: 1px solid #62617f; }
.auth-btn, .over-card .btn { background: #7658ec; border-radius: 12px; }
.auth-btn:hover, .over-card .btn:hover { background: #8669f5; transform: translateY(-2px); }
@media (max-width: 600px) {
    header, .rank-bar-container { padding: 18px; }
    .hud { gap: 12px; }
    .store-bar { justify-content: flex-start; padding: 14px 18px; }
    .q-card { padding: 24px; }
    .game-area { padding: 18px; }
    .auth-card, .over-card { padding: 26px; }
    .over-card h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
    .shake { animation: none; }
}
