/* Traffic Decisions — Level 2 Night Encounter Quiz */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy: #1e3a5f;
    --navy-deep: #0a1628;
    --navy-mid: #122a4a;
    --orange: #FF9800;
    --orange-dark: #f08c00;
    --orange-glow: rgba(255, 152, 0, 0.15);
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(255, 255, 255, 0.06);
}

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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--navy-deep);
    color: var(--text-secondary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* ===== LANDING PAGE ===== */

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 152, 0, 0.4); }
    50% { box-shadow: 0 0 30px rgba(255, 152, 0, 0.6), 0 0 60px rgba(255, 152, 0, 0.2); }
}

.landing-badge {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--orange);
    margin-bottom: 6px;
    animation: fadeSlideUp 0.5s ease both;
}

.level-badge {
    display: block;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--navy-deep);
    background: var(--orange);
    padding: 3px 14px;
    border-radius: 12px;
    width: fit-content;
    margin: 0 auto 12px;
    animation: fadeSlideUp 0.5s ease 0.05s both;
}

/* ===== Helm Hero (landing animation) ===== */
.helm-hero {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04);
}

.helm-sky {
    position: relative;
    width: 100%;
    height: 140px;
    background: linear-gradient(180deg, #020408 0%, #050a14 40%, var(--navy-deep) 100%);
}

.horizon-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(60,80,120,0.15) 20%, rgba(60,80,120,0.25) 50%, rgba(60,80,120,0.15) 80%, transparent 100%);
}

.stars .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(200,210,230,0.4);
    border-radius: 50%;
    animation: starTwinkle 3s ease-in-out infinite;
}
.stars .star:nth-child(2n) { animation-delay: 1.2s; animation-duration: 4s; }
.stars .star:nth-child(3n) { animation-delay: 0.7s; animation-duration: 2.5s; }
.stars .star:nth-child(5n) { animation-delay: 2s; }
@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Nav light glows */
.nav-glow {
    display: block;
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}
.nav-glow.red {
    background: #ff0000;
    box-shadow: 0 0 6px 2px rgba(255,0,0,0.6), 0 0 14px rgba(255,0,0,0.3);
    animation: lightPulseRed 2.5s ease-in-out infinite;
}
.nav-glow.green {
    background: #00ff00;
    box-shadow: 0 0 6px 2px rgba(0,255,0,0.6), 0 0 14px rgba(0,255,0,0.3);
    animation: lightPulseGreen 2.8s ease-in-out infinite;
}
.nav-glow.white {
    background: #ffffee;
    box-shadow: 0 0 6px 2px rgba(255,255,238,0.6), 0 0 14px rgba(255,255,238,0.3);
    animation: lightPulseWhite 3s ease-in-out infinite;
}
.nav-glow.white.lg {
    width: 7px; height: 7px;
}
.nav-glow.yellow {
    background: #ffdd00;
    box-shadow: 0 0 6px 2px rgba(255,221,0,0.6), 0 0 14px rgba(255,221,0,0.3);
    animation: lightPulseYellow 2.2s ease-in-out infinite;
}

@keyframes lightPulseRed {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 4px 1px rgba(255,0,0,0.4); }
    50% { opacity: 1; box-shadow: 0 0 8px 3px rgba(255,0,0,0.7), 0 0 18px rgba(255,0,0,0.35); }
}
@keyframes lightPulseGreen {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 4px 1px rgba(0,255,0,0.4); }
    50% { opacity: 1; box-shadow: 0 0 8px 3px rgba(0,255,0,0.7), 0 0 18px rgba(0,255,0,0.35); }
}
@keyframes lightPulseWhite {
    0%, 100% { opacity: 0.5; box-shadow: 0 0 4px 1px rgba(255,255,238,0.3); }
    50% { opacity: 1; box-shadow: 0 0 8px 3px rgba(255,255,238,0.7), 0 0 18px rgba(255,255,238,0.35); }
}
@keyframes lightPulseYellow {
    0%, 100% { opacity: 0.55; box-shadow: 0 0 4px 1px rgba(255,221,0,0.4); }
    50% { opacity: 1; box-shadow: 0 0 8px 3px rgba(255,221,0,0.7), 0 0 18px rgba(255,221,0,0.35); }
}

/* Hero light positions */
.hero-light {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 2px;
}
.hero-light.hl-port {
    top: 55%;
    left: 12%;
    animation: heroDrift1 15s ease-in-out infinite;
}
.hero-light.hl-ahead {
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    animation: heroPulse 6s ease-in-out infinite;
}
.hero-light.hl-stbd {
    top: 48%;
    right: 15%;
    animation: heroDrift2 18s ease-in-out infinite;
}

@keyframes heroDrift1 {
    0%, 100% { transform: translate(0, 0); opacity: 0.7; }
    50% { transform: translate(8px, -3px); opacity: 1; }
}
@keyframes heroDrift2 {
    0%, 100% { transform: translate(0, 0); opacity: 0.6; }
    50% { transform: translate(-6px, 2px); opacity: 1; }
}
@keyframes heroPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}

/* Cockpit elements */
.helm-cockpit {
    position: relative;
    height: 50px;
    background: linear-gradient(180deg, var(--navy-deep) 0%, #060d18 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.cockpit-compass {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,100,0,0.15);
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.compass-card {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255,100,0,0.5);
    font-variant-numeric: tabular-nums;
}

.cockpit-wheel {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.06);
    position: relative;
}
.cockpit-wheel::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.cockpit-mfd-glow {
    width: 50px;
    height: 30px;
    border-radius: 4px;
    background: rgba(0,80,160,0.08);
    border: 1px solid rgba(0,80,160,0.1);
    box-shadow: 0 0 12px rgba(0,80,160,0.05);
}

/* Landing text */
#landing-page h1 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 60px rgba(255,152,0,0.15), 0 2px 4px rgba(0,0,0,0.3);
    animation: fadeSlideUp 0.5s ease 0.1s both;
}
#landing-page h2 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--orange);
    margin-bottom: 1.5rem;
    animation: fadeSlideUp 0.5s ease 0.15s both;
}

.intro-brief {
    text-align: center;
    font-size: 1.05rem;
    color: #aaa;
    max-width: 420px;
    margin: 0 auto 1.5rem;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.badge {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,152,0,0.7);
    border: 1px solid rgba(255,152,0,0.2);
    border-radius: 20px;
    background: rgba(255,152,0,0.05);
}
.badge-level {
    color: var(--navy-deep);
    background: var(--orange);
    border-color: var(--orange);
    font-weight: 800;
}

.landing-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    animation: fadeSlideUp 0.5s ease 0.5s both;
}
.feature-pill {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}
.feature-pill-dot {
    color: rgba(255,255,255,0.25);
    font-size: 0.7rem;
}
.cta-icon {
    font-size: 0.8rem;
    margin-right: 0.2rem;
    vertical-align: middle;
}

.cta-button {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy-deep);
    background: linear-gradient(135deg, var(--orange) 0%, #ffb740 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255,152,0,0.3);
    animation: fadeSlideUp 0.5s ease 0.35s both, ctaGlow 3s ease-in-out 1.5s infinite;
}
.cta-button:hover {
    background: #ffb740;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,152,0,0.4);
}
.cta-button:active { transform: translateY(0); }

/* ===== GAME SCREEN ===== */

#game {
    background: var(--navy-deep);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(0,0,0,0.6);
    border-bottom: 1px solid rgba(255,152,0,0.1);
    flex-shrink: 0;
}
.hud-left, .hud-right { text-align: center; min-width: 60px; }
.hud-label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,152,0,0.35);
}
.hud-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--orange);
}
.hud-center { flex: 1; text-align: center; }
.hud-status {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    transition: color 0.3s;
}

/* Helm Scene — first-person night view */
.helm-scene {
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.scene-sky {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, #020408 0%, #040810 30%, #081420 60%, var(--navy-deep) 100%);
    overflow: hidden;
}

.scene-lights {
    position: absolute;
    inset: 0;
}

/* Individual scene light elements */
.scene-light {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: opacity 0.5s ease;
}

.scene-cockpit {
    position: relative;
    height: 45px;
    background: linear-gradient(180deg, var(--navy-deep) 0%, #060d18 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    border-top: 1px solid rgba(255,255,255,0.03);
}

/* Sea surface hint */
.scene-sky::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, transparent 0%, rgba(10,22,40,0.3) 100%);
    pointer-events: none;
}

/* Gentle swell lines */
.scene-sky::before {
    content: '';
    position: absolute;
    bottom: 15%;
    left: -10%;
    right: -10%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(60,80,120,0.08) 30%, rgba(60,80,120,0.12) 50%, rgba(60,80,120,0.08) 70%, transparent 100%);
    animation: swellDrift 8s ease-in-out infinite;
}
@keyframes swellDrift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

/* Intermittent green light — fishing vessel with possible gear */
@keyframes intermittentGreen {
    0%, 30% { opacity: 0; }
    35%, 55% { opacity: 0.8; }
    60%, 80% { opacity: 0; }
    85%, 100% { opacity: 0.6; }
}

/* Channel buoy flash */
@keyframes buoyFlash {
    0%, 40% { opacity: 0.15; }
    45%, 55% { opacity: 0.9; }
    60%, 100% { opacity: 0.15; }
}

/* Scenario Panel */
.scenario-panel {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.scenario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.scenario-number {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--orange);
}

.scenario-timer {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    font-variant-numeric: tabular-nums;
}
.scenario-timer.urgent {
    color: #ff4444;
    animation: timerPulse 1s ease infinite;
}
@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.scenario-briefing {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.75);
    margin-bottom: 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border-left: 3px solid rgba(255,152,0,0.3);
    border-radius: 0 8px 8px 0;
}

.scenario-question {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

/* Answer options */
.scenario-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    line-height: 1.45;
    transition: all 0.15s;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}
.option-btn:active {
    background: rgba(255,152,0,0.12);
    border-color: rgba(255,152,0,0.3);
}
.option-btn.correct-flash {
    background: rgba(76,175,80,0.2);
    border-color: #4caf50;
    color: #4caf50;
}
.option-btn.wrong-flash {
    background: rgba(255,68,68,0.15);
    border-color: #ff4444;
    color: #ff4444;
}
.option-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Explanation overlay */
.explain-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(6,13,24,0.97);
    border-top: 2px solid rgba(255,152,0,0.2);
    z-index: 100;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.explain-content {
    padding: 20px 16px 28px;
    max-width: 600px;
    margin: 0 auto;
}

.explain-verdict {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 8px;
}
.explain-verdict.correct {
    color: #4caf50;
    background: rgba(76,175,80,0.1);
    border-left: 4px solid #4caf50;
}
.explain-verdict.wrong {
    color: #ff6b35;
    background: rgba(255,107,53,0.1);
    border-left: 4px solid #ff6b35;
}

.explain-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    margin-bottom: 16px;
}

.explain-next-btn {
    display: block;
    width: 100%;
    padding: 14px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-deep);
    background: var(--orange);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.explain-next-btn:hover {
    background: #ffb740;
    transform: translateY(-1px);
}

/* ===== RESULTS PAGE ===== */

#results h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #fff;
}

.score-display {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.rank-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.score-number {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #fff;
}
.score-number span { font-size: 2.2rem; }
.score-of { font-size: 1.4rem; color: rgba(255,255,255,0.5); }

.score-breakdown {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.stat-correct { color: #4caf50; }
.stat-wrong { color: #ff6b35; }

.score-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}
.score-bar-fill {
    height: 100%;
    background: var(--orange);
    transition: width 0.6s ease;
    border-radius: 10px;
}

/* Score / rank colors */
.score-display.rank-1 .rank-title { color: #ff4444; }
.score-display.rank-1 .score-bar-fill { background: #ff4444; }
.score-display.rank-2 .rank-title { color: #ff6b35; }
.score-display.rank-2 .score-bar-fill { background: #ff6b35; }
.score-display.rank-3 .rank-title { color: #4caf50; }
.score-display.rank-3 .score-bar-fill { background: #4caf50; }
.score-display.rank-4 .rank-title { color: var(--orange); }
.score-display.rank-4 .score-bar-fill { background: var(--orange); }
.score-display.rank-5 .rank-title { color: #ffd700; }
.score-display.rank-5 .score-bar-fill { background: #ffd700; }

/* Email Gate */
.email-gate {
    background: rgba(255,152,0,0.1);
    border: 2px solid rgba(255,152,0,0.4);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 0.8rem;
}
.email-gate h3 { font-size: 1.2rem; margin-bottom: 0.3rem; color: #fff; }
.email-gate .gate-subtext { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.email-gate form {
    display: flex; flex-direction: column; gap: 0.7rem;
    max-width: 320px; margin: 0 auto;
}
.email-gate input[type="email"] {
    padding: 0.85rem; font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: inherit;
}
.email-gate input::placeholder { color: rgba(255,255,255,0.4); }

.reassurance-text { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin-top: 0.4rem; }
.reassurance-text a { color: rgba(255,255,255,0.5); }

.subscribe-button {
    padding: 0.9rem 1.5rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-deep);
    background: var(--orange);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.subscribe-button:hover { background: #ffb740; }

.form-message { margin-top: 0.6rem; font-size: 0.9rem; }
.form-message.success { color: #4caf50; }
.form-message.error { color: #ff4444; }

.skip-link { text-align: center; margin-bottom: 1.5rem; }
.skip-link a { color: rgba(255,255,255,0.4); text-decoration: underline; font-size: 0.85rem; }
.skip-link a:hover { color: rgba(255,255,255,0.6); }

/* Forum callout */
.forum-callout {
    background: rgba(255,152,0,0.06);
    border-left: 4px solid var(--orange);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.forum-callout h3 { color: var(--orange); font-size: 1.1rem; margin-bottom: 0.5rem; }
.forum-callout p { color: #ccc; font-size: 0.95rem; line-height: 1.6; }

/* COLREGs callout */
.colregs-callout {
    background: rgba(255,255,255,0.08);
    border-left: 4px solid var(--orange);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.colregs-callout p { margin-bottom: 0.5rem; color: #ccc; }
.colregs-callout p:last-child { margin-bottom: 0; }
.colregs-callout strong { color: var(--orange); }

.score-reveal { animation: fadeIn 0.4s ease-in; }

.score-message {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ccc;
}

/* Social sharing */
.social-sharing {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.social-sharing h3 { text-align: center; margin-bottom: 1.5rem; font-size: 1.2rem; color: #fff; }
.share-buttons { display: flex; flex-direction: column; gap: 0.8rem; }
.share-btn {
    padding: 1rem; font-family: inherit; font-size: 1rem; font-weight: 600;
    border: none; border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.share-btn.facebook { background: #1877f2; color: #fff; }
.share-btn.linkedin { background: #0a66c2; color: #fff; }
.share-btn.native { background: var(--orange); color: var(--navy-deep); }
.share-btn.copy { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.5); }

/* Explanation section */
.explanation {
    background: rgba(255,152,0,0.05);
    border-left: 4px solid var(--orange);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.explanation h2 { color: var(--orange); margin-bottom: 1rem; font-size: 1.8rem; }
.explanation p { margin-bottom: 1rem; font-size: 1.05rem; line-height: 1.7; color: #ccc; }
.explanation strong { color: #fff; }

.insight-link {
    display: inline-block; margin-top: 0.5rem;
    padding: 0.7rem 1.2rem;
    color: var(--orange); text-decoration: none;
    border: 2px solid var(--orange);
    border-radius: 25px; font-weight: 600; font-size: 0.9rem;
    transition: all 0.2s;
}
.insight-link:hover { background: var(--orange); color: var(--navy-deep); }

/* Second chance */
.second-chance {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}
.second-chance h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.3rem; }
.second-chance p { font-size: 0.95rem; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.second-chance form { display: flex; flex-direction: column; gap: 0.7rem; max-width: 320px; margin: 0 auto; }
.second-chance input[type="email"] {
    padding: 0.85rem; font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.2); border-radius: 10px;
    background: rgba(255,255,255,0.08); color: #fff; font-family: inherit;
}
.second-chance input::placeholder { color: rgba(255,255,255,0.4); }

.play-again { margin-top: 2rem; margin-bottom: 1rem; }

/* === GAMIFICATION === */
.streak { display:block; text-align:center; font-size:.85rem; font-weight:700; color:#4caf50; letter-spacing:1px; opacity:0; transition:all .3s ease; margin-bottom:4px; position:relative; z-index:10; }
.streak.visible { opacity:1; }
.streak.hot { color:var(--orange); animation:streakPulse .4s ease; }
@keyframes streakPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }
.reaction-time { text-align:center; font-size:.8rem; font-weight:600; letter-spacing:.5px; opacity:0; transition:opacity .3s; margin-bottom:4px; position:relative; z-index:10; }
.reaction-time.visible { opacity:1; }
.reaction-time.fast { color:#4caf50; }
.reaction-time.medium { color:var(--orange); }
.reaction-time.slow { color:#ff6b6b; }
.particle { position:fixed; width:6px; height:6px; border-radius:50%; pointer-events:none; z-index:9998; animation:particleBurst .6s ease-out forwards; }
@keyframes particleBurst { 0%{transform:translate(0,0) scale(1);opacity:1} 100%{transform:translate(var(--dx),var(--dy)) scale(0);opacity:0} }

.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: var(--orange);
    width: 16px; height: 16px; cursor: pointer;
}
.gdpr-consent a { color: rgba(255,255,255,0.5); text-decoration: underline; }
.gdpr-consent a:hover { color: var(--orange); }

/* Mobile */
@media (max-width: 768px) {
    #landing-page h1 { font-size: 2.2rem; }
    #landing-page h2 { font-size: 1rem; }
    .scene-sky { height: 160px; }
}
@media (max-width: 600px) {
    .container { max-width: 100%; padding: 1rem 0.75rem; }
    .cta-button, .subscribe-button, .share-btn { min-height: 48px; width: 100%; }
    .option-btn { font-size: 0.85rem; padding: 12px 14px; }
    .scenario-briefing { font-size: 0.88rem; padding: 10px 12px; }
    h1 { font-size: 1.5rem; }
    .badge { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
    .scene-sky { height: 140px; }
    .helm-sky { height: 110px; }
}
@media (max-width: 380px) {
    .scene-sky { height: 120px; }
}
@media (prefers-contrast: high) {
    .intro-brief, .explanation p, .scenario-briefing { color: #fff; }
}
