/* =============================================================
   Quiz 18: THE ALARM FILTER (Go/No-Go) -- Styles
   Dark cockpit instrument panel. Minimalist signal detection.
   ============================================================= */

@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 {
    --navy: #1e3a5f;
    --orange: #FF9800;
    --bg: #0a1628;
    --correct: #22c55e;
    --incorrect: #ef4444;
    --warning: #FF9800;
    --text: #e2e8f0;
    --muted: rgba(255,255,255,0.4);
    --indicator-size: 280px;
}

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

.container {
    max-width: 600px;
    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,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: 10px;
    animation: fadeSlideUp 0.5s ease both;
}

.landing-doi {
    display: block;
    text-align: center;
    font-size: 0.65rem;
    margin-bottom: 16px;
    animation: fadeSlideUp 0.5s ease 0.1s both;
}

.landing-doi a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
}

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

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

.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 0 60px rgba(255,255,255,0.06), 0 2px 4px rgba(0,0,0,0.3);
}

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

/* Hero alarm indicator animation */
.hero-indicator-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    margin-bottom: 1rem;
}

.hero-alarm-indicator {
    width: 120px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    color: #fff;
}

.hero-alarm-indicator svg {
    width: 50px;
    height: 50px;
}

.hero-convergence-text {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 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: 1.5rem 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,152,0,0.35);
    -webkit-tap-highlight-color: transparent;
    animation: fadeSlideUp 0.5s ease 0.6s 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,152,0,0.45);
    animation: none;
}

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

.sound-inline {
    display: block;
    text-align: center;
    margin-top: 8px;
    cursor: pointer;
}

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

/* ===== 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-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 / PRACTICE SCREEN ===== */
.game-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 8px;
    padding-bottom: 0;
    position: relative;
}

/* Status bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.status-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.3);
}

.block-info {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
}

.trial-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
}

.practice-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--orange);
    background: rgba(255,152,0,0.1);
    border: 1px solid rgba(255,152,0,0.3);
    border-radius: 4px;
    padding: 2px 8px;
}

/* Progress bar */
.progress-container {
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--orange);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Instrument panel */
.instrument-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-height: 400px;
}

.block-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
    max-width: 400px;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Alarm indicator -- the central element */
.alarm-indicator-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--indicator-size);
    height: 180px;
    margin-bottom: 24px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.alarm-indicator {
    width: var(--indicator-size);
    height: 180px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.08s ease, box-shadow 0.08s ease, border-color 0.08s ease;
    color: #fff;
    position: relative;
}

.alarm-indicator.active {
    border-color: transparent;
}

.alarm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.alarm-icon svg {
    width: 60px;
    height: 60px;
}

/* Instruction area */
.instruction-area {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.instruction-tap {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.instruction-ignore {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255,255,255,0.3);
}

/* Feedback overlay */
.feedback-overlay {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    min-height: 28px;
    margin-bottom: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.feedback-overlay.feedback-hit { color: var(--correct); }
.feedback-overlay.feedback-miss { color: var(--incorrect); }
.feedback-overlay.feedback-false { color: var(--warning); }
.feedback-overlay.feedback-correct { color: rgba(255,255,255,0.5); }

/* HUD stats */
.hud-stats {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 8px;
}

.hud-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hud-stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.3);
}

.hud-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

/* HUD footer with recording indicator */
.hud-footer {
    position: fixed;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.hud-recording {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.recording-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    animation: recordingPulse 1.5s ease-in-out infinite;
}

@keyframes recordingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

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

/* ===== TRANSITION SCREEN ===== */
.transition-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.transition-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
    max-width: 400px;
    line-height: 1.4;
}

.transition-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
    max-width: 400px;
    font-style: italic;
}

.transition-countdown {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 800;
    color: var(--orange);
    animation: countPulse 1s ease-in-out infinite;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

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

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

.score-number {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
    margin-bottom: 4px;
}

.score-number.score-green { color: var(--correct); }
.score-number.score-orange { color: var(--orange); }
.score-number.score-red { color: var(--incorrect); }

.score-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
}

.score-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.score-title.score-green { color: var(--correct); }
.score-title.score-orange { color: var(--orange); }
.score-title.score-red { color: var(--incorrect); }

.score-description {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* d-prime chart */
.chart-section {
    margin-bottom: 1.5rem;
}

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

.chart-container {
    width: 100%;
    background: #0f1a2e;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 16px 12px 8px;
    overflow: hidden;
}

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

/* Degradation headline */
.degradation-headline {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
}

.degradation-headline.degrad-red { color: var(--incorrect); }
.degradation-headline.degrad-orange { color: var(--orange); }
.degradation-headline.degrad-green { color: var(--correct); }

/* Response bias section */
.bias-section {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
}

.bias-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-bottom: 16px;
}

.bias-scale-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bias-end-label {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
    min-width: 60px;
    line-height: 1.3;
}

.bias-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    position: relative;
}

.bias-centre-line {
    position: absolute;
    left: 50%;
    top: -4px;
    bottom: -4px;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

.bias-marker {
    position: absolute;
    top: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 700;
    color: #0a1628;
    font-family: 'JetBrains Mono', monospace;
}

.bias-interpretation {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
    line-height: 1.6;
    font-style: italic;
}

/* Stats table */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
}

.results-table th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.results-table td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.results-table .row-label {
    text-align: left;
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

.results-table tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}

/* Trial timeline */
.trial-timeline {
    margin-bottom: 1.5rem;
}

.timeline-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-bottom: 10px;
}

.timeline-strip {
    display: flex;
    gap: 2px;
    justify-content: center;
    flex-wrap: nowrap;
}

.timeline-cell {
    width: 8px;
    height: 20px;
    border-radius: 2px;
}

.timeline-cell.cell-hit { background: var(--correct); }
.timeline-cell.cell-miss { background: var(--incorrect); }
.timeline-cell.cell-false { background: var(--warning); }
.timeline-cell.cell-correct { background: rgba(255,255,255,0.1); }
.timeline-cell.cell-block-start { margin-left: 6px; }

/* Explanation section */
.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.2rem;
    font-weight: 700;
}

.explanation p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.explanation p:last-child { margin-bottom: 0; }

.methodology-text {
    font-size: 0.8rem !important;
    color: rgba(255,255,255,0.4) !important;
    font-style: italic;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.study-link {
    display: inline-block;
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

.study-link:hover { text-decoration: underline; }

/* Email gate */
.report-gate {
    text-align: center;
    margin-bottom: 0.8rem;
    padding: 1.5rem;
    background: rgba(255,152,0,0.1);
    border: 2px solid rgba(255,152,0,0.4);
    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;
}

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

#newsletter-form input[type="email"],
.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;
}

#newsletter-form input[type="email"]::placeholder,
.second-chance input[type="email"]::placeholder {
    color: rgba(255,255,255,0.4);
}

#newsletter-form input[type="email"]:focus,
.second-chance 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 */
.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 {
    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: 1rem auto 0;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--orange);
    background: transparent;
    border: 2px solid rgba(255,152,0,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,152,0,0.08);
}

/* Particle burst */
.particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    animation: particleBurst 0.7s 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 */
.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); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    :root {
        --indicator-size: calc(100vw - 80px);
    }

    .alarm-indicator-container {
        width: 100%;
        height: 160px;
    }

    .alarm-indicator {
        width: 100%;
        max-width: 320px;
        height: 160px;
    }

    .alarm-icon svg {
        width: 50px;
        height: 50px;
    }

    .timeline-strip {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .timeline-cell {
        width: 6px;
        height: 16px;
    }
}

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

    .alarm-indicator {
        height: 140px;
    }

    .bias-end-label {
        font-size: 0.5rem;
        min-width: 45px;
    }
}
