/* Quiz 2: Phone Anchor Alarm — Spot the Risks */
/* Theme: 3AM anchorage — phone on cockpit cushion, dark water, swinging anchor */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --navy: #1e3a5f; --orange: #FF9800; --text: #ffffff; }

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(160deg, #040a14 0%, #0a1628 40%, #071220 100%);
    color: #fff;
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

.container { max-width: 460px; margin: 0 auto; padding: 1.5rem 1.2rem; }

/* Screens */
.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== LANDING ===== */
.hero-box {
    text-align: center;
    padding: 1.5rem 1.2rem 1.2rem;
    margin-bottom: 1.2rem;
}

.landing-badge {
    font-size: .6rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: #FF9800; margin-bottom: .8rem;
    opacity: 0; animation: fadeSlideUp .5s ease .1s forwards;
}

/* Anchor scene — night anchorage */
.anchor-scene {
    position: relative;
    width: 100%;
    height: 240px;
    margin-bottom: 1rem;
    overflow: hidden;
    opacity: 0; animation: fadeSlideUp .7s ease .2s forwards;
}

/* Stars */
.anchor-scene::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,.6), transparent),
        radial-gradient(1px 1px at 45% 8%, rgba(255,255,255,.4), transparent),
        radial-gradient(1.5px 1.5px at 72% 15%, rgba(255,255,255,.5), transparent),
        radial-gradient(1px 1px at 88% 25%, rgba(255,255,255,.3), transparent),
        radial-gradient(1px 1px at 30% 5%, rgba(255,255,255,.4), transparent),
        radial-gradient(1.5px 1.5px at 60% 28%, rgba(255,255,255,.35), transparent),
        radial-gradient(1px 1px at 8% 35%, rgba(255,255,255,.3), transparent),
        radial-gradient(1px 1px at 95% 10%, rgba(255,255,255,.45), transparent);
    animation: starTwinkle 4s ease-in-out infinite alternate;
    z-index: 0;
}
@keyframes starTwinkle {
    0% { opacity: .6; }
    100% { opacity: 1; }
}

.anchor-rope {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.15), rgba(255,255,255,0.04));
    transform-origin: top center;
    animation: ropeSwing 4s ease-in-out infinite;
    z-index: 1;
}

.anchor-swing {
    position: absolute;
    top: 80px;
    left: 50%;
    font-size: 7rem;
    line-height: 1;
    transform-origin: 50% -60px;
    animation: anchorSwing 4s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(255,152,0,0.3));
    color: #FF9800;
    z-index: 1;
}

@keyframes anchorSwing {
    0%, 100% { transform: translateX(-50%) rotate(-18deg); }
    50% { transform: translateX(-50%) rotate(18deg); }
}
@keyframes ropeSwing {
    0%, 100% { transform: rotate(-18deg); }
    50% { transform: rotate(18deg); }
}

.water-line {
    position: absolute;
    bottom: 28px;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(77,200,255,0.08) 20%, rgba(77,200,255,0.15) 50%, rgba(77,200,255,0.08) 80%, transparent 100%);
    z-index: 2;
}

.water-shimmer {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 28px;
    background: linear-gradient(to bottom, rgba(10,30,60,0.0), rgba(4,10,20,0.8));
    overflow: hidden;
    z-index: 2;
}
.water-shimmer::before, .water-shimmer::after {
    content: '';
    position: absolute;
    width: 200%; height: 100%; left: -50%;
    background: repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(77,200,255,0.04) 42px, transparent 44px);
    animation: waterDrift 6s linear infinite;
}
.water-shimmer::after { animation: waterDrift 8s linear infinite reverse; opacity: 0.6; }
@keyframes waterDrift { from { transform: translateX(0); } to { transform: translateX(44px); } }

/* Depth readout in the water */
.depth-readout {
    position: absolute;
    bottom: 6px; right: 12px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: .55rem; font-weight: 600;
    color: rgba(77,200,255,.35);
    letter-spacing: .5px;
    z-index: 3;
}

.hero-box h1 {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 0.6rem;
    text-shadow: 0 0 40px rgba(255,152,0,.15), 0 2px 4px rgba(0,0,0,.4);
    opacity: 0; animation: fadeSlideUp .7s ease .35s forwards;
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255,255,255,.45);
    opacity: 0; animation: fadeSlideUp .6s ease .5s forwards;
}

.hero-footnote {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.25);
    margin-top: 1rem;
    opacity: 0; animation: fadeSlideUp .5s ease .85s forwards;
}

/* CTA */
.cta-button {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 1rem 2rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #060e1a;
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(255,152,0,0.35), 0 0 50px rgba(255,152,0,0.1);
    -webkit-tap-highlight-color: transparent;
    opacity: 0; animation: fadeSlideUp .6s ease .7s forwards, ctaGlow 3s ease-in-out 1.3s infinite;
}
.cta-button:hover { background: linear-gradient(135deg, #ff8555, #ffa070); transform: translateY(-2px); }
.cta-button:active { transform: scale(0.98); }
.cta-button:disabled { opacity: 0.4; cursor: not-allowed; }

@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ctaGlow {
    0%,100% { box-shadow: 0 4px 20px rgba(255,152,0,.35), 0 0 50px rgba(255,152,0,.1); }
    50% { box-shadow: 0 6px 28px rgba(255,152,0,.55), 0 0 70px rgba(255,152,0,.2); }
}

/* Hero pills */
.hero-pills {
    display: flex; justify-content: center; gap: .5rem;
    margin-top: .8rem;
    opacity: 0; animation: fadeSlideUp .5s ease .85s forwards;
}
.pill {
    font-size: .7rem; font-weight: 600;
    color: rgba(255,255,255,.35);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: .3rem .7rem;
    letter-spacing: .5px;
}

/* Voice box (hidden until post-March) */
.voice-box {
    background: rgba(255,152,0,0.06);
    border: 1px solid rgba(255,152,0,0.2);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.voice-box-label {
    font-size: .75rem; font-weight: 600;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: .5rem;
}
.voice-box-text {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: .95rem; font-weight: 600;
    color: #FF9800;
    line-height: 1.6;
    font-style: italic;
}

/* ===== GAME PAGE ===== */
#game-page { min-height: 100vh; display: none; flex-direction: column; }
#game-page.active { display: flex; }

.game-bar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: rgba(4,10,20,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
}

.game-counter {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    min-width: 44px;
}

.progress-track {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF9800, #FFB74D);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.game-score {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #FF9800;
    min-width: 32px;
    text-align: right;
}
.game-score.pop { animation: scorePop 0.3s ease; }
@keyframes scorePop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

.game-atmosphere {
    text-align: center;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.2);
    padding: 0.7rem 1rem 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Card stage */
.card-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.2rem 2rem;
    position: relative;
    min-height: 400px;
}

/* ===== GAME CARD ===== */
.game-card {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    position: relative;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

/* Phone frame hint — subtle top notch */
.game-card::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 4px;
    background: rgba(255,255,255,.06);
    border-radius: 2px;
}

/* Card entrance/exit */
.game-card.entering { animation: slideIn 0.35s ease forwards; }
.game-card.exiting { animation: slideOut 0.25s ease forwards; }
@keyframes slideIn { from { transform: translateX(80px) scale(0.95); opacity: 0; } to { transform: translateX(0) scale(1); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0) scale(1); opacity: 1; } to { transform: translateX(-80px) scale(0.95); opacity: 0; } }

.card-emoji {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}

.card-label {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.card-context {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-style: italic;
}

.card-prompt {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

/* Answer buttons */
.card-buttons { display: flex; gap: 0.8rem; }

.btn-risk, .btn-safe {
    flex: 1;
    padding: 1rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    min-height: 56px;
}

.btn-risk {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    color: #060e1a;
    box-shadow: 0 4px 16px rgba(255,152,0,.25);
}
.btn-risk:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,152,0,.35); }
.btn-risk:active { transform: scale(0.96); }

.btn-safe {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,.8);
    border: 1.5px solid rgba(255,255,255,0.12);
}
.btn-safe:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,.2); }
.btn-safe:active { transform: scale(0.96); }

/* Feedback area */
.card-feedback { text-align: center; animation: feedbackIn 0.3s ease; }
@keyframes feedbackIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.feedback-result {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.7rem;
}
.feedback-result.correct { color: #4caf50; text-shadow: 0 0 8px rgba(76,175,80,.3); }
.feedback-result.incorrect { color: #ff4444; text-shadow: 0 0 8px rgba(255,68,68,.3); }

.feedback-explanation {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.feedback-advance {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.2);
    cursor: pointer;
}

/* Card result states */
.game-card.result-correct {
    border-color: rgba(76,175,80,.4);
    background: rgba(76,175,80,0.06);
    box-shadow: 0 0 30px rgba(76,175,80,0.1);
}
.game-card.result-wrong {
    border-color: rgba(255,68,68,.4);
    background: rgba(255,68,68,0.06);
    box-shadow: 0 0 30px rgba(255,68,68,0.1);
    animation: shakeWrong 0.4s ease;
}
@keyframes shakeWrong {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ===== RESULTS ===== */
.score-display {
    text-align: center;
    padding: 1.8rem 1rem;
    margin-bottom: 1.2rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 20px;
    animation: scoreReveal 0.5s ease;
}
@keyframes scoreReveal { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.score-number { font-size: 4rem; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.score-label { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.35); margin-top: 0.2rem; }
.score-message { font-size: 0.98rem; font-weight: 500; margin-top: 0.8rem; color: rgba(255,255,255,0.65); line-height: 1.5; }

.score-green .score-number { color: #4caf50; }
.score-orange .score-number { color: #FF9800; }
.score-red .score-number { color: #ff4444; }

.false-alarm-note { text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.35); margin-bottom: 1.2rem; }

/* Play again (top) */
.play-again-top { text-align: center; margin-bottom: 1.2rem; }
.play-again-top .cta-secondary {
    background: transparent;
    border: 1.5px solid rgba(255,152,0,0.4);
    color: #FF9800;
    font-size: 0.9rem;
    padding: 0.6rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s;
}
.play-again-top .cta-secondary:hover { background: rgba(255,152,0,0.1); border-color: #FF9800; }

/* Twist */
.twist {
    text-align: center;
    padding: 1.5rem 1.2rem;
    margin-bottom: 1.5rem;
    background: rgba(255,152,0,0.06);
    border: 1px solid rgba(255,152,0,0.15);
    border-radius: 16px;
}
.twist-headline { font-size: 1.1rem; font-weight: 800; color: #FF9800; margin-bottom: 0.5rem; line-height: 1.3; }
.twist-body { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* Email gate */
.email-gate {
    background: rgba(255,152,0,0.08);
    border: 1.5px solid rgba(255,152,0,0.35);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 0.8rem;
}
.email-gate h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.gate-sub { font-size: 0.85rem; color: rgba(255,255,255,0.45); margin-bottom: 1rem; }
.email-gate form { display: flex; flex-direction: column; gap: 0.6rem; max-width: 300px; margin: 0 auto; }
.email-gate input, .second-chance input {
    padding: 0.85rem;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.email-gate input::placeholder, .second-chance input::placeholder { color: rgba(255,255,255,0.3); }
.email-gate input:focus, .second-chance input:focus { outline: none; border-color: #FF9800; box-shadow: 0 0 12px rgba(255,152,0,.15); }
.email-gate .cta-button, .second-chance .cta-button { font-size: 1rem; padding: 0.85rem; opacity: 1; animation: none; }

.gdpr-consent {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 0.75rem; color: rgba(255,255,255,0.4);
    cursor: pointer; text-align: left; line-height: 1.4;
}
.gdpr-consent input[type="checkbox"] {
    margin-top: 2px; flex-shrink: 0; accent-color: #FF9800;
    width: 16px; height: 16px; cursor: pointer;
}
.gdpr-consent a { color: rgba(255,255,255,0.5); text-decoration: underline; }
.gdpr-consent a:hover { color: #FF9800; }

.small-print { font-size: 0.75rem; color: rgba(255,255,255,0.25); margin-top: 0.4rem; }
.small-print a { color: rgba(255,255,255,0.3); }
.form-msg { margin-top: 0.5rem; font-size: 0.85rem; }
.form-msg.ok { color: #4caf50; }
.form-msg.err { color: #ff4444; }

.skip-link { text-align: center; margin-bottom: 1.2rem; }
.skip-link a { color: rgba(255,255,255,0.35); text-decoration: underline; font-size: 0.8rem; }
.skip-link a:hover { color: rgba(255,255,255,0.5); }

/* Answer breakdown */
.answer-breakdown { margin-bottom: 1.5rem; }
.bd-item {
    padding: 0.8rem 1rem;
    margin-bottom: 0.4rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border-left: 4px solid;
}
.bd-item.bd-correct { border-left-color: #4caf50; }
.bd-item.bd-wrong { border-left-color: #ff4444; }
.bd-status {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.7rem; font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase; letter-spacing: 1px;
}
.bd-label { font-size: 0.92rem; font-weight: 600; margin: 0.15rem 0; }
.bd-explain { font-size: 0.82rem; color: rgba(255,255,255,0.4); line-height: 1.5; }

/* Social sharing */
.social-sharing { margin-bottom: 1.5rem; }
.social-sharing h3 { text-align: center; font-size: 1rem; margin-bottom: 0.8rem; }
.share-row { display: flex; gap: 0.5rem; }
.share-btn {
    flex: 1;
    padding: 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.share-btn.native { background: #FF9800; color: #060e1a; font-weight: 700; }
.share-btn.fb { background: #1877f2; color: #fff; }
.share-btn.li { background: #0077b5; color: #fff; }
.share-btn.cp { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.3); }

/* Explanation */
.explanation {
    background: rgba(255,255,255,0.04);
    border-left: 3px solid #FF9800;
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}
.explanation h3 { color: #FF9800; margin-bottom: 0.5rem; font-size: 1.1rem; }
.explanation p { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 0.6rem; }
.insight-link { color: #FF9800; font-weight: 600; font-size: 0.85rem; text-decoration: none; }
.insight-link:hover { text-decoration: underline; }

/* Cross-promo */
.quiz-card-link { text-decoration: none; display: block; margin-bottom: 10px; }
.quiz-card {
    display: flex; align-items: center; gap: 14px; padding: 16px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px; transition: background .2s, border-color .2s;
}
.quiz-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); }
.quiz-card-icon {
    width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.quiz-card-info { display: flex; flex-direction: column; gap: 3px; }
.quiz-card-info strong { font-size: .95rem; font-weight: 700; color: #fff; }
.quiz-card-info span { font-size: .82rem; color: #6b7d95; line-height: 1.4; }

/* Second chance */
.second-chance { text-align: center; margin-bottom: 2rem; padding: 1.2rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; }
.second-chance h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.second-chance form { display: flex; flex-direction: column; gap: 0.6rem; max-width: 300px; margin: 0 auto; }
.second-chance .cta-button { opacity: 1; animation: none; }

/* ===== GAMIFICATION ===== */

/* Streak counter */
.streak {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: #4caf50;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}
.streak.visible { opacity: 1; }
.streak.pulse { animation: streakPulse 0.4s ease; }
@keyframes streakPulse { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* Reaction time */
.reaction-time {
    text-align: center;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}
.reaction-time.visible { opacity: 1; }
.reaction-time.fast { color: #44ff88; }
.reaction-time.medium { color: #ffaa00; }
.reaction-time.slow { color: #ff6b6b; }

/* Particles */
.particle {
    position: fixed;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4caf50;
    pointer-events: none;
    z-index: 100;
    animation: particleBurst 0.6s ease-out forwards;
}
@keyframes particleBurst {
    0% { opacity: 1; transform: translate(0,0) scale(1); }
    100% { opacity: 0; transform: translate(calc(var(--dx) * 60px), calc(var(--dy) * 60px)) scale(0); }
}

/* Score title */
.score-title {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: .8rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: #FF9800;
    margin-bottom: 0.3rem;
    opacity: .8;
}
.score-green .score-title { color: #4caf50; }
.score-orange .score-title { color: #FF9800; }
.score-red .score-title { color: #ff4444; }

/* Score bar */
.score-bar {
    width: 80%; max-width: 240px;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem auto;
}
.score-bar-fill {
    height: 100%; width: 0%;
    border-radius: 10px;
    transition: width 0.8s ease;
}
.score-green .score-bar-fill { background: #4caf50; }
.score-orange .score-bar-fill { background: #FF9800; }
.score-red .score-bar-fill { background: #ff4444; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .cta-button, .btn-risk, .btn-safe { min-height: 48px; }
    .hero-box h1 { font-size: 2rem; }
    .anchor-scene { height: 200px; }
}
@media (max-width: 380px) {
    .hero-box h1 { font-size: 1.8rem; }
    .card-label { font-size: 1.15rem; }
    .btn-risk, .btn-safe { font-size: 1rem; padding: 0.85rem; }
    .score-title { font-size: .7rem; }
    .anchor-scene { height: 180px; }
}
