/* =============================================================
   Quiz 15: BRIDGE WATCH REACTION TIME — Styles
   The darkest, most atmospheric quiz in the portfolio.
   Night-watch dashboard with CRT instrument readouts.
   ============================================================= */

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

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

:root {
    --bg-deep:        #0a1628;
    --bg-panel:       #0e1e38;
    --bezel-stroke:   #1a2d4a;
    --bezel-highlight: #243d5c;
    --green-dim:      #1a4d1a;
    --green-glow:     #22aa22;
    --alarm-red:      #ff2020;
    --alarm-glow:     rgba(255, 32, 32, 0.4);
    --feedback-green: #22c55e;
    --feedback-amber: #FF9800;
    --feedback-red:   #ef4444;
    --navy:           #1e3a5f;
    --orange:         #FF9800;
    --text-primary:   rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.5);
    --star-color:     rgba(255, 255, 255, 0.3);
}

html, body {
    height: 100%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

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

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

/* --- SCREENS --- */
.screen { display: none; animation: fadeIn 0.3s ease; }
.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,107,53,0.4); }
    50% { box-shadow: 0 0 30px rgba(255,107,53,0.6), 0 0 60px rgba(255,107,53,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: 10px;
    animation: fadeSlideUp 0.5s ease both;
}

.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2rem 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: fadeSlideUp 0.5s ease 0.1s both;
}

.hero-section h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 0.6rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-section h2 {
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
}

/* ===== NIGHT WATCH DASHBOARD PREVIEW ===== */

.dashboard-preview {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 280px;
    margin: 0 auto 1rem;
    background: var(--bg-deep);
    border-radius: 16px;
    border: 1px solid var(--bezel-stroke);
    overflow: hidden;
}

/* Stars */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--star-color);
    border-radius: 50%;
}

.star-1 { top: 12%; left: 15%; animation: twinkle 3s ease-in-out infinite; }
.star-2 { top: 8%; left: 55%; animation: twinkle 4s ease-in-out 1s infinite; }
.star-3 { top: 18%; left: 82%; animation: twinkle 5s ease-in-out 2s infinite; }
.star-4 { top: 5%; left: 35%; animation: twinkle 3.5s ease-in-out 0.5s infinite; width: 1px; height: 1px; }
.star-5 { top: 22%; left: 68%; animation: twinkle 4.5s ease-in-out 1.5s infinite; width: 1px; height: 1px; }

@keyframes twinkle {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.6; }
}

/* Horizon line */
.horizon-line {
    position: absolute;
    top: 28%;
    left: 0;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Instrument readouts */
.readout {
    position: absolute;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--green-dim);
    text-shadow: 0 0 6px var(--green-glow);
    letter-spacing: 1px;
}

.readout-sog { top: 40%; left: 12%; }
.readout-cog { top: 40%; right: 12%; }
.readout-dpt { bottom: 22%; left: 12%; }
.readout-bar { bottom: 22%; right: 12%; }

.readout-label {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.2);
    text-shadow: none;
    display: block;
    margin-bottom: 2px;
}

/* Central alarm bezel (preview) */
.alarm-bezel-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--bezel-stroke);
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.5), 0 0 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,22,40,0.8);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.alarm-bezel-preview .bezel-text {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--green-dim);
    text-shadow: 0 0 6px var(--green-glow);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.alarm-bezel-preview.alarm-flash {
    border-color: var(--alarm-red);
    box-shadow: 0 0 30px var(--alarm-glow), inset 0 0 20px rgba(255,32,32,0.1);
    background: rgba(255,32,32,0.08);
}

.alarm-bezel-preview.alarm-flash .bezel-text {
    color: #fff;
    text-shadow: 0 0 10px var(--alarm-red);
}

/* Mini gauge (preview) */
.mini-gauge {
    position: absolute;
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 25px;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border: 2px solid var(--bezel-stroke);
    border-bottom: none;
    position: absolute;
    overflow: visible;
}

.mini-gauge-needle {
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 2px;
    height: 20px;
    background: var(--green-dim);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-45deg);
    transition: transform 0.15s ease-out, background 0.15s;
    box-shadow: 0 0 4px rgba(34,170,34,0.3);
}

.mini-gauge-needle.alarm-state {
    transform: translateX(-50%) rotate(45deg);
    background: var(--alarm-red);
    box-shadow: 0 0 4px rgba(255,32,32,0.3);
}

/* CRT scanline overlay */
.scanlines::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    border-radius: 16px;
}

/* Feature pills */
.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 button */
.cta-button {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1rem;
    padding: 1.1rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a1628;
    background: linear-gradient(135deg, var(--orange) 0%, #ff8f5e 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255,107,53,0.35);
    -webkit-tap-highlight-color: transparent;
    animation: fadeSlideUp 0.5s ease 0.35s both, ctaGlow 3s ease-in-out 1.5s infinite;
    font-family: inherit;
}

.cta-button:hover {
    background: #ff8555;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255,107,53,0.45);
    animation: none;
}

.cta-button:active { transform: translateY(0); }

.sound-inline {
    cursor: pointer;
    vertical-align: middle;
}

.sound-inline input[type="checkbox"] {
    accent-color: var(--orange);
    vertical-align: middle;
    margin-left: 2px;
}

/* ===== BRIEFING SCREEN ===== */
.briefing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.briefing-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}
.briefing-instruction {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.briefing-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}
.legend-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.legend-dot {
    flex-shrink: 0;
}
.legend-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.legend-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}
.legend-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}
.briefing-practice {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
    font-style: italic;
}
.briefing-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 1rem 2rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0a1628;
    background: linear-gradient(135deg, #FF9800 0%, #ff8f5e 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(255,152,0,0.35);
}
.briefing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255,152,0,0.45);
}

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

.game-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--bg-deep);
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

/* Progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.06);
    z-index: 50;
    display: flex;
}

.progress-segment {
    flex: 1;
    height: 100%;
    border-right: 1px solid rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.progress-segment:last-child { border-right: none; }
.progress-segment.filled { background: var(--orange); }
.progress-segment.current { background: rgba(255,152,0,0.4); }

/* Timer progress bar */
.timer-bar-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: rgba(255,255,255,0.08);
    z-index: 10000;
}

.timer-bar-fill {
    height: 100%;
    width: 100%;
    background: #4ade80;
    transition: width 1s linear, background-color 0.5s ease;
    border-radius: 0 2px 2px 0;
}

.timer-bar-fill.timer-warning {
    background: #FF9800;
}

.timer-bar-fill.timer-danger {
    background: #ef4444;
    animation: timerBarPulse 1s ease-in-out infinite;
}

.timer-bar-fill.timer-critical {
    background: #ef4444;
    animation: timerBarPulse 0.5s ease-in-out infinite;
    height: 14px;
}

@keyframes timerBarPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Trial counter */
.trial-counter {
    position: fixed;
    top: 10px;
    right: 16px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    letter-spacing: 1px;
    z-index: 50;
    text-transform: uppercase;
}

/* Night-watch instrument panel */
.instrument-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Stars (game) */
.game-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--star-color);
    border-radius: 50%;
}

.game-star:nth-child(1) { top: 10%; left: 20%; animation: twinkle 3s ease-in-out infinite; }
.game-star:nth-child(2) { top: 6%; left: 50%; animation: twinkle 4s ease-in-out 1s infinite; }
.game-star:nth-child(3) { top: 15%; left: 78%; animation: twinkle 5s ease-in-out 2s infinite; }

/* Game horizon */
.game-horizon {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Game readouts */
.game-readout {
    position: absolute;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-dim);
    text-shadow: 0 0 6px var(--green-glow);
    letter-spacing: 1px;
    z-index: 5;
}

.game-readout-label {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.2);
    text-shadow: none;
    display: block;
    margin-bottom: 2px;
}

.game-readout-sog { top: 38%; left: 8%; }
.game-readout-cog { top: 38%; right: 8%; }
.game-readout-dpt { bottom: 18%; left: 8%; }
.game-readout-bar { bottom: 18%; right: 8%; }

/* Central alarm bezel (game) */
.alarm-bezel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--bezel-stroke);
    box-shadow: inset 0 -3px 6px rgba(0,0,0,0.5), 0 0 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10,22,40,0.6);
    z-index: 10;
    transition: border-color 0.1s, box-shadow 0.1s, background 0.1s;
}

.alarm-bezel.alarm-active {
    border-color: var(--alarm-red);
    border-width: 4px;
    box-shadow: 0 0 60px var(--alarm-glow), 0 0 120px rgba(255,32,32,0.25), 0 0 200px rgba(255,32,32,0.1), inset 0 0 40px rgba(255,32,32,0.15);
    background: radial-gradient(circle, rgba(255,32,32,0.15) 0%, rgba(255,32,32,0.05) 60%, transparent 100%);
    animation: alarmPulse 0.25s ease-out, alarmGlow 0.8s ease-in-out infinite alternate;
}

@keyframes alarmPulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    40% { transform: translate(-50%, -50%) scale(1.08); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes alarmGlow {
    0% { box-shadow: 0 0 60px var(--alarm-glow), 0 0 120px rgba(255,32,32,0.25), inset 0 0 40px rgba(255,32,32,0.15); }
    100% { box-shadow: 0 0 80px var(--alarm-glow), 0 0 160px rgba(255,32,32,0.35), inset 0 0 50px rgba(255,32,32,0.2); }
}

.bezel-status {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--green-dim);
    text-shadow: 0 0 8px var(--green-glow);
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.1s, text-shadow 0.1s, font-size 0.1s;
}

.alarm-bezel.alarm-active .bezel-status {
    color: #fff;
    text-shadow: 0 0 16px var(--alarm-red), 0 0 30px rgba(255,32,32,0.5);
    font-size: 1.6rem;
    letter-spacing: 5px;
}

/* Gauge */
.gauge {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 40px;
    border-top-left-radius: 80px;
    border-top-right-radius: 80px;
    border: 2px solid var(--bezel-stroke);
    border-bottom: none;
    z-index: 5;
    overflow: visible;
}

.gauge-needle {
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 2px;
    height: 32px;
    background: var(--green-dim);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-45deg);
    transition: transform 0.1s ease-out, background 0.1s;
    box-shadow: 0 0 4px rgba(34,170,34,0.3);
}

.gauge-needle.alarm-state {
    transform: translateX(-50%) rotate(45deg);
    background: var(--alarm-red);
    box-shadow: 0 0 10px rgba(255,32,32,0.6);
    transition: transform 0.08s ease-out, background 0.08s;
}

/* RT feedback display */
.rt-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.rt-feedback.visible { opacity: 1; }

.rt-number {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1;
}

.rt-number.fast { color: var(--feedback-green); text-shadow: 0 0 20px rgba(34,197,94,0.4); }
.rt-number.normal { color: var(--feedback-amber); text-shadow: 0 0 20px rgba(255,152,0,0.4); }
.rt-number.lapse { color: var(--feedback-red); text-shadow: 0 0 20px rgba(239,68,68,0.4); }

.rt-unit {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.5);
    margin-left: 2px;
}

.rt-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: 1px;
}

.rt-label.fast { color: var(--feedback-green); }
.rt-label.normal { color: var(--feedback-amber); }
.rt-label.lapse { color: var(--feedback-red); }

/* Lapse context message */
.lapse-message {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    z-index: 20;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.lapse-message.visible { opacity: 1; }

/* Anticipation error message */
.anticipation-msg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 25;
    text-align: center;
    padding: 16px 24px;
    background: rgba(255,152,0,0.15);
    border: 1px solid rgba(255,152,0,0.3);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--feedback-amber);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    max-width: 85%;
}

.anticipation-msg.visible { opacity: 1; }

/* Screen shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.shake {
    animation: shake 0.15s ease-out;
}

/* Screen border flash */
.alarm-border {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 30;
    border: 3px solid transparent;
    transition: border-color 0.1s;
}

.alarm-border.flash {
    border-color: var(--alarm-red);
    animation: borderFlash 0.15s ease-out;
}

@keyframes borderFlash {
    0% { border-color: var(--alarm-red); }
    100% { border-color: transparent; }
}

/* Red vignette flash overlay */
.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 29;
    opacity: 0;
    transition: opacity 0.1s ease;
}

.vignette-overlay.active {
    opacity: 1;
    box-shadow: inset 0 0 120px 60px rgba(255, 32, 32, 0.25), inset 0 0 60px 30px rgba(255, 32, 32, 0.15);
    animation: vignetteFlash 0.6s ease-out forwards;
}

@keyframes vignetteFlash {
    0% { opacity: 1; box-shadow: inset 0 0 120px 60px rgba(255,32,32,0.3), inset 0 0 60px 30px rgba(255,32,32,0.2); }
    100% { opacity: 0; box-shadow: inset 0 0 120px 60px rgba(255,32,32,0), inset 0 0 60px 30px rgba(255,32,32,0); }
}

/* Streak display */
.streak-display {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--feedback-green);
    letter-spacing: 1px;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.streak-display.visible { opacity: 1; }
.streak-display.hot { color: var(--orange); animation: streakPulse 0.4s ease; }
.streak-display.fire { color: var(--alarm-red); animation: streakPulse 0.4s ease; }

@keyframes streakPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.2); }
}

/* ===== BLOCK BREAK SCREEN ===== */

.block-break {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10,22,40,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.block-break-content {
    text-align: center;
    max-width: 320px;
    padding: 2rem;
}

.block-break-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 1.5rem;
}

.block-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.9rem;
}

.block-stat-label {
    color: rgba(255,255,255,0.5);
}

.block-stat-value {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 600;
    color: var(--orange);
}

.block-ready-btn {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a1628;
    background: var(--orange);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.block-ready-btn:hover {
    background: #ff8555;
    transform: translateY(-2px);
}

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

.results-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 24px;
    padding-bottom: 40px;
}

/* Primary score display */
.score-display {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.score-display h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
}

.score-rt-value {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 4rem;
    font-weight: 600;
    color: var(--orange);
    line-height: 1;
}

.score-rt-unit {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.4);
    margin-left: 4px;
}

.score-title-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
    margin-top: 0.5rem;
}

.score-message {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin-top: 1rem;
}

.score-distance {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.5rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.stat-card-value {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--orange);
}

.stat-card-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* RT scatter plot */
.chart-container {
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px 16px 16px;
}

.chart-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
    text-align: center;
}

.chart-canvas {
    width: 100%;
    height: 180px;
    display: block;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chart-legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.chart-legend-dot.fast { background: var(--feedback-green); }
.chart-legend-dot.normal { background: var(--feedback-amber); }
.chart-legend-dot.lapse { background: var(--feedback-red); }

/* Block comparison bars */
.block-comparison {
    margin-bottom: 1.5rem;
}

.block-comparison-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
    text-align: center;
}

.block-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.block-bar-label {
    width: 55px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-align: right;
    flex-shrink: 0;
}

.block-bar-track {
    flex: 1;
    height: 28px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.block-bar-fill {
    height: 100%;
    background: rgba(255,152,0,0.3);
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    padding-left: 8px;
}

.block-bar-value {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--orange);
    white-space: nowrap;
}

.block-trend-msg {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 8px;
    font-style: italic;
}

/* Explanation */
.explanation {
    background: rgba(255,255,255,0.04);
    border-left: 4px solid var(--orange);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.explanation h3 {
    color: var(--orange);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.explanation p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Email gate */
.report-gate {
    text-align: center;
    margin-bottom: 0.8rem;
    padding: 1.5rem;
    background: rgba(255,107,53,0.12);
    border: 2px solid rgba(255,107,53,0.5);
    border-radius: 16px;
}

.report-gate h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.report-gate > p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 1rem;
}

#email-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-width: 320px;
    margin: 0 auto;
}

#email-form input[type="email"],
.second-chance input[type="email"],
#email-form-2 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-form input[type="email"]::placeholder,
.second-chance input[type="email"]::placeholder,
#email-form-2 input[type="email"]::placeholder {
    color: rgba(255,255,255,0.4);
}

#email-form input[type="email"]:focus,
.second-chance input[type="email"]:focus,
#email-form-2 input[type="email"]:focus {
    outline: none;
    border-color: var(--orange);
}

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

.subscribe-button:hover:not(:disabled) { background: #ff8555; }
.subscribe-button:disabled { opacity: 0.6; cursor: default; }

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

.skip-link {
    display: block;
    text-align: center;
    margin: 0.5rem auto 1.5rem;
    padding: 8px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

.skip-link:hover { color: rgba(255,255,255,0.7); }

/* Social sharing */
.social-sharing {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-sharing h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.share-btn {
    padding: 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.share-btn.native { background: #FF9800; color: #0a1628; }
.share-btn.facebook { background: #1877f2; color: #fff; }
.share-btn.linkedin { background: #0a66c2; color: #fff; }
.share-btn.copy { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.2); }

/* Second chance signup */
.second-chance {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.second-chance > p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.second-chance form,
#email-form-2 {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-width: 320px;
    margin: 0 auto;
}

/* Play again */
.play-again-btn {
    display: block;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--orange);
    background: transparent;
    border: 2px solid rgba(255,107,53,0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}

.play-again-btn:hover {
    border-color: var(--orange);
    background: rgba(255,107,53,0.08);
}

/* Particle burst */
.particle {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    animation: particleBurst 0.6s ease-out forwards;
}

.particle.gold { background: #ffd700; }
.particle.orange { background: var(--orange); }
.particle.green { background: var(--feedback-green); }

@keyframes particleBurst {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* GDPR */
.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); }

/* Orange highlight */
.orange { color: var(--orange); }

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .alarm-bezel {
        width: 60vw;
        max-width: 200px;
        height: 60vw;
        max-height: 200px;
    }

    .rt-number {
        font-size: 2.5rem;
    }

    .score-rt-value {
        font-size: 3.2rem;
    }
}

@media (max-width: 480px) {
    .container { padding: 1.2rem 1rem; }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section h2 { font-size: 0.95rem; }
    .cta-button, .subscribe-button, .share-btn { min-height: 48px; }

    .alarm-bezel {
        width: 55vw;
        height: 55vw;
    }

    .rt-number { font-size: 2.2rem; }

    .game-readout { font-size: 0.65rem; }

    .gauge { width: 60px; height: 30px; }
    .gauge-needle { height: 24px; }

    .score-rt-value { font-size: 2.8rem; }

    .dashboard-preview { height: 220px; }
    .alarm-bezel-preview { width: 80px; height: 80px; }
}

@media (max-width: 380px) {
    .hero-section h1 { font-size: 1.6rem; }
    .stat-card-value { font-size: 1.2rem; }
}
