/* Night Watch - Navigation Lights Arcade Quiz */

* { 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;600;700;800&display=swap');

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #050508;
    color: #999;
    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; } }

/* Logo */
.logo { text-align: center; margin-bottom: 1.5rem; }
.logo img { max-width: 320px; width: 100%; height: auto; filter: brightness(0.8); }

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

#landing.active {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

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

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

.landing-badge {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #00cc66;
    margin-bottom: 10px;
    animation: fadeSlideUp 0.5s ease both;
}

/* Radar Hero (decorative) */
.radar-hero {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: radial-gradient(circle, #0a1a0a 0%, #040c04 100%);
    border: 2px solid rgba(0, 255, 0, 0.15);
    overflow: hidden;
}

.radar-hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 0, 0.06);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.radar-hero-ring.r1 { width: 75%; height: 75%; }
.radar-hero-ring.r2 { width: 50%; height: 50%; }
.radar-hero-ring.r3 { width: 25%; height: 25%; }

.radar-hero-sweep {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(0,255,0,0.1) 15deg, rgba(0,255,0,0.02) 45deg, transparent 60deg, transparent 360deg);
    animation: sweep 4s linear infinite;
}
@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.radar-hero-center {
    position: absolute; top: 50%; left: 50%;
    width: 8px; height: 8px; margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: rgba(0,255,0,0.5);
    box-shadow: 0 0 8px rgba(0,255,0,0.3);
}

.hero-vessel { position: absolute; }
.hero-vessel.hv1 { top: 22%; left: 68%; animation: heroDrift1 10s ease-in-out infinite; }
.hero-vessel.hv2 { top: 62%; left: 22%; animation: heroDrift2 12s ease-in-out infinite; }
.hero-vessel.hv3 { top: 38%; left: 78%; animation: heroDrift3 9s ease-in-out infinite; }

.hvl {
    display: block; position: absolute;
    width: 5px; height: 5px; border-radius: 50%;
}
.hvl.white { background: #ffffee; box-shadow: 0 0 6px rgba(255,255,238,0.8); }
.hvl.red { background: #ff0000; box-shadow: 0 0 6px rgba(255,0,0,0.8); }
.hvl.green { background: #00ff00; box-shadow: 0 0 6px rgba(0,255,0,0.8); }
.hvl.lg { width: 8px; height: 8px; }

@keyframes heroDrift1 {
    0%, 100% { transform: translate(0, 0); opacity: 0.7; }
    50% { transform: translate(-15px, 10px); opacity: 1; }
}
@keyframes heroDrift2 {
    0%, 100% { transform: translate(0, 0); opacity: 0.6; }
    50% { transform: translate(12px, -8px); opacity: 1; }
}
@keyframes heroDrift3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(-10px, 15px); opacity: 0.9; }
}

/* ===== Animated Nav Lights Preview ===== */
.nav-lights-preview {
    margin: 0 auto 2rem;
    max-width: 480px;
}

.night-sea {
    position: relative;
    width: 100%;
    height: 120px;
    background: linear-gradient(180deg, #020408 0%, #050a14 45%, #0a1628 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04);
}

.horizon-line {
    position: absolute;
    top: 55%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(60,80,120,0.15) 20%, rgba(60,80,120,0.2) 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-vessel {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Power vessel -- port/stbd/masthead */
.nav-light-vessel.nv1 {
    top: 48%;
    left: 8%;
    animation: vesselDriftRight 22s linear infinite;
}

/* Anchored vessel -- single white */
.nav-light-vessel.nv2 {
    top: 52%;
    right: 12%;
    animation: vesselBob 6s ease-in-out infinite;
}

/* Fishing vessel -- red over white */
.nav-light-vessel.nv3 {
    top: 44%;
    left: 38%;
    animation: vesselDriftLeft 28s linear infinite;
}

/* Sailing vessel -- port/stbd only */
.nav-light-vessel.nv4 {
    top: 50%;
    right: 25%;
    animation: vesselApproach 18s ease-in-out infinite;
}

/* Towing vessel -- two yellow sternlights */
.nav-light-vessel.nv5 {
    top: 56%;
    left: 58%;
    animation: vesselDriftRight 30s linear infinite;
    animation-delay: -8s;
}

/* NUC -- two red vertical */
.nav-light-vessel.nv6 {
    top: 46%;
    left: 22%;
    animation: vesselBob 8s ease-in-out infinite;
    animation-delay: -3s;
}

.nav-dot {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    position: relative;
}

.nav-dot.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-dot.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-dot.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-dot.white.anchor-light {
    animation: lightPulseAnchor 4s ease-in-out infinite;
}

.nav-dot.white.masthead {
    width: 4px;
    height: 4px;
}

.nav-dot.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;
}

.nav-dot.lg {
    width: 7px;
    height: 7px;
}

@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 lightPulseAnchor {
    0%, 100% { opacity: 0.4; box-shadow: 0 0 4px 1px rgba(255,255,238,0.2); }
    50% { opacity: 1; box-shadow: 0 0 10px 4px rgba(255,255,238,0.7), 0 0 22px rgba(255,255,238,0.4); }
}
@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); }
}

@keyframes vesselDriftRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(60px); }
}
@keyframes vesselDriftLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50px); }
}
@keyframes vesselBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@keyframes vesselApproach {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.25); opacity: 1; }
}

/* Stagger light pulse animations per vessel */
.nav-light-vessel.nv1 .nav-dot { animation-delay: 0s; }
.nav-light-vessel.nv2 .nav-dot { animation-delay: 0.8s; }
.nav-light-vessel.nv3 .nav-dot:first-child { animation-delay: 0.3s; }
.nav-light-vessel.nv3 .nav-dot:last-child { animation-delay: 1.5s; }
.nav-light-vessel.nv4 .nav-dot { animation-delay: 0.6s; }
.nav-light-vessel.nv5 .nav-dot { animation-delay: 1.1s; }
.nav-light-vessel.nv6 .nav-dot:first-child { animation-delay: 0s; }
.nav-light-vessel.nv6 .nav-dot:last-child { animation-delay: 0.4s; }

#landing 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(0,204,102,0.15), 0 2px 4px rgba(0,0,0,0.3);
    animation: fadeSlideUp 0.5s ease 0.1s both;
}
#landing h2 {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 400;
    color: #00cc66;
    margin-bottom: 1.5rem;
}

.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(0,255,100,0.7);
    border: 1px solid rgba(0,255,100,0.2);
    border-radius: 20px;
    background: rgba(0,255,100,0.05);
}

.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: #050508;
    background: linear-gradient(135deg, #00cc66 0%, #00e070 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,204,102,0.3);
    animation: fadeSlideUp 0.5s ease 0.35s both, ctaGlow 3s ease-in-out 1.5s infinite;
}
.cta-button:hover {
    background: #00e070;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,204,102,0.4);
}
.cta-button:active { transform: translateY(0); }

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

#game { background: #050508; min-height: 100vh; }

.game-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(0,10,0,0.9);
    border-bottom: 1px solid rgba(0,255,0,0.1);
}
.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(0,255,0,0.35);
}
.hud-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #00ff88;
}
.hud-center { flex: 1; text-align: center; }
.hud-status {
    font-size: 0.85rem;
    color: rgba(0,255,0,0.45);
    transition: color 0.3s;
}

/* Radar */
.radar {
    position: relative;
    width: 90vw;
    max-width: 500px;
    aspect-ratio: 1;
    margin: 16px auto;
    border-radius: 50%;
    background: radial-gradient(circle, #0a1a0a 0%, #040c04 100%);
    border: 2px solid rgba(0,255,0,0.15);
    overflow: hidden;
}

.radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0,255,0,0.06);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.radar-ring.r1 { width: 75%; height: 75%; }
.radar-ring.r2 { width: 50%; height: 50%; }
.radar-ring.r3 { width: 25%; height: 25%; }

.radar-sweep {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(0,255,0,0.06) 12deg, rgba(0,255,0,0.01) 35deg, transparent 50deg, transparent 360deg);
    animation: sweep 4s linear infinite;
    pointer-events: none;
}

.radar-center {
    position: absolute; top: 50%; left: 50%;
    width: 14px; height: 14px; margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: rgba(0,255,0,0.35);
    box-shadow: 0 0 12px rgba(0,255,0,0.25);
    pointer-events: none;
    z-index: 5;
}

.compass {
    position: absolute;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(0,255,0,0.25);
    pointer-events: none;
    z-index: 5;
}
.compass.n { top: 5%; left: 50%; transform: translateX(-50%); }
.compass.s { bottom: 5%; left: 50%; transform: translateX(-50%); }
.compass.e { right: 6%; top: 50%; transform: translateY(-50%); }
.compass.w { left: 6%; top: 50%; transform: translateY(-50%); }

.vessels-layer {
    position: absolute; inset: 0;
    z-index: 10;
}

/* Vessels */
.vessel {
    position: absolute;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.15s, box-shadow 0.15s;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}
.vessel:active { border-color: rgba(255,255,255,0.4); }
.vessel.selected {
    border-color: rgba(0,255,200,0.7);
    box-shadow: 0 0 16px rgba(0,255,200,0.25);
}
.vessel.urgent {
    animation: vesselPulse 0.6s ease infinite;
}
.vessel.correct-anim {
    animation: vesselCorrect 0.6s ease forwards;
}
.vessel.wrong-anim {
    animation: vesselWrong 0.5s ease forwards;
}
.vessel.missed-anim {
    animation: vesselMiss 0.8s ease forwards;
}

.vessel-light {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.vl-white { background: #ffffee; box-shadow: 0 0 8px 2px rgba(255,255,238,0.7); }
.vl-red { background: #ff0000; box-shadow: 0 0 8px 2px rgba(255,0,0,0.7); }
.vl-green { background: #00ff00; box-shadow: 0 0 8px 2px rgba(0,255,0,0.7); }
.vl-yellow { background: #ffdd00; box-shadow: 0 0 8px 2px rgba(255,221,0,0.7); }

@keyframes vesselPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255,80,80,0.2); }
    50% { box-shadow: 0 0 18px rgba(255,80,80,0.5); border-color: rgba(255,80,80,0.4); }
}
@keyframes vesselCorrect {
    0% { opacity: 1; transform: translate(-50%,-50%) scale(1); border-color: #4caf50; }
    100% { opacity: 0; transform: translate(-50%,-50%) scale(1.6); }
}
@keyframes vesselWrong {
    0% { border-color: #ff4444; background: rgba(255,0,0,0.2); }
    100% { border-color: transparent; background: transparent; opacity: 0.6; }
}
@keyframes vesselMiss {
    0% { opacity: 1; }
    30% { transform: translate(-50%,-50%) scale(1.4); background: rgba(255,0,0,0.3); border-color: #ff4444; }
    100% { opacity: 0; transform: translate(-50%,-50%) scale(0.3); }
}

/* Score Float */
.score-float {
    position: absolute;
    font-size: 0.95rem;
    font-weight: 700;
    pointer-events: none;
    z-index: 50;
    animation: floatUp 1s ease forwards;
}
.score-float.positive { color: #00ff88; }
.score-float.negative { color: #ff4444; }

@keyframes floatUp {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -35px); }
}

/* Classification Panel */
.classify-panel {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(5,5,12,0.96);
    border-top: 2px solid rgba(0,255,0,0.15);
    padding: 12px 12px 20px;
    z-index: 100;
    animation: slideUp 0.2s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.classify-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.classify-btn {
    padding: 14px 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ddd;
    background: rgba(0,255,0,0.06);
    border: 1px solid rgba(0,255,0,0.15);
    border-radius: 10px;
    cursor: pointer;
    min-height: 48px;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.classify-btn:active {
    background: rgba(0,255,0,0.15);
    border-color: rgba(0,255,0,0.4);
}
.classify-btn.correct-flash {
    background: rgba(76,175,80,0.25);
    border-color: #4caf50;
    color: #4caf50;
}
.classify-btn.wrong-flash {
    background: rgba(255,68,68,0.2);
    border-color: #ff4444;
    color: #ff4444;
}

/* Wave Banner */
.wave-banner {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.88);
    z-index: 200;
    animation: fadeIn 0.3s ease;
}
.wave-banner h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #00ff88;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 25px rgba(0,255,136,0.4);
}
.wave-banner p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.6);
}
.wave-banner .wave-stats {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.4);
}

/* Radar shake on miss */
.radar.shake { animation: radarShake 0.3s ease; }
@keyframes radarShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

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

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

.score-display {
    background: rgba(255,255,255,0.06);
    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-breakdown {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.stat-correct { color: #4caf50; }
.stat-wrong { color: #ff6b35; }
.stat-missed { color: #ff4444; }

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

/* Score / rank colors */
.score-display.rank-deckhand .rank-title { color: #ff4444; }
.score-display.rank-deckhand .score-bar-fill { background: #ff4444; }
.score-display.rank-helmsman .rank-title { color: #ff6b35; }
.score-display.rank-helmsman .score-bar-fill { background: #ff6b35; }
.score-display.rank-officer .rank-title { color: #4caf50; }
.score-display.rank-officer .score-bar-fill { background: #4caf50; }
.score-display.rank-master .rank-title { color: #ffd700; }
.score-display.rank-master .score-bar-fill { background: #ffd700; }

/* Email Gate */
.email-gate {
    background: rgba(0,204,102,0.1);
    border: 2px solid rgba(0,204,102,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 {
    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;
}
.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: #050508;
    background: #00cc66;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.subscribe-button:hover { background: #00e070; }

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

/* Voice Box */
.voice-box {
    display: flex; align-items: stretch; gap: 0;
    margin-bottom: 1.5rem; border-radius: 12px;
    overflow: hidden; border: 1px solid rgba(255,255,255,0.08);
}
.voice-side { flex: 1; padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.voice-side.bad { background: rgba(255,68,68,0.08); }
.voice-side.good { background: rgba(76,175,80,0.08); }
.voice-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.5; }
.voice-side.bad .voice-val { color: #ff6b6b; font-size: 1.3rem; font-weight: 700; }
.voice-side.good .voice-val { color: #81c784; font-size: 0.85rem; font-style: italic; line-height: 1.5; }
.voice-vs {
    display: flex; align-items: center; padding: 0 0.5rem;
    font-size: 0.7rem; font-weight: 700;
    color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.03);
}

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

.report-download {
    background: rgba(76,175,80,0.12);
    border: 2px solid rgba(76,175,80,0.4);
    border-radius: 16px; padding: 1.5rem;
    text-align: center; margin-bottom: 1.5rem;
}
.report-download .download-text { font-size: 1rem; font-weight: 600; margin-bottom: 0.8rem; color: rgba(255,255,255,0.9); }
.download-button {
    display: inline-block; padding: 0.9rem 1.8rem;
    font-size: 1.05rem; font-weight: 700;
    color: #050508; background: #00cc66;
    border: none; border-radius: 10px; text-decoration: none;
    transition: all 0.2s; box-shadow: 0 4px 16px rgba(0,204,102,0.3);
}
.download-button:hover { background: #00e070; transform: translateY(-2px); }
.report-download .download-subtext { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 0.6rem; }

.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;
}

.colregs-callout {
    background: rgba(255,255,255,0.08);
    border-left: 4px solid #00cc66;
    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: #00cc66; }

.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: #FF9800; color: #0a1628; }
.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 {
    background: rgba(0,204,102,0.05);
    border-left: 4px solid #00cc66;
    border-radius: 8px; padding: 2rem; margin-bottom: 2rem;
}
.explanation h2 { color: #00cc66; 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: #00cc66; text-decoration: none;
    border: 2px solid #00cc66;
    border-radius: 25px; font-weight: 600; font-size: 0.9rem;
    transition: all 0.2s;
}
.insight-link:hover { background: #00cc66; color: #fff; }

.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: 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 {
    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;
}
.second-chance input::placeholder { color: rgba(255,255,255,0.4); }

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

/* Mobile */
@media (max-width: 768px) {
    #landing h1 { font-size: 2.2rem; }
    #landing h2 { font-size: 1.1rem; }
    .logo img { max-width: 260px; }
}
@media (max-width: 480px) {
    .cta-button, .subscribe-button, .share-btn, .classify-btn { min-height: 48px; }
    .voice-box { flex-direction: column; }
    .voice-vs { justify-content: center; padding: 0.3rem; }
    .classify-grid { gap: 6px; }
    .classify-btn { padding: 12px 8px; font-size: 0.85rem; }
}

@media (prefers-contrast: high) {
    .intro-brief, .explanation p { color: #fff; }
}

@media (max-width: 600px) {
    .container { max-width: 100%; padding: 0.5rem; }
    .radar { width: 280px; height: 280px; }
    .classify-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .cta-button, .subscribe-button { width: 100%; min-height: 48px; }
    h1 { font-size: 1.5rem; }
    .badge { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
}
@media (max-width: 380px) {
    .radar { width: 240px; height: 240px; }
}

/* === 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:#ff4444; 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:8px; position:relative; z-index:10; }
.reaction-time.visible { opacity:1; }
.reaction-time.fast { color:#4caf50; }
.reaction-time.medium { color:#ff9800; }
.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: #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; }
