/* =============================================
   home.css - Homepage-Specific Styles
   Loaded only on the homepage via home.html.
   Global tokens, typography, navbar base, footer,
   and reduced-motion are in style.css.
   ============================================= */

/* ========================================
   1. LAYOUT OVERRIDES
   ======================================== */
main.container {
    max-width: 100%;
    padding: 0;
}

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

/* ========================================
   2. NAVBAR - Homepage overrides
   Dark: transparent, absolute (floats over hero)
   Light: frosted-glass, fixed
   ======================================== */
.navbar {
    background: transparent !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: none;
}

[data-theme="light"] .navbar {
    position: fixed;
}

/* ========================================
   3. SECTION SEPARATOR LINES
   ======================================== */
.section-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--night-border-light), transparent);
}

/* ========================================
   4. FOCUS-VISIBLE STYLES - Accessibility
   ======================================== */
.btn-park:focus-visible,
.answer-btn:focus-visible,
.leaderboard-tab:focus-visible,
.price-btn:focus-visible,
.ticket-footer-action:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
}

.answer-btn:focus-visible {
    border-color: var(--teal);
    box-shadow: 0 0 25px rgba(45, 212, 191, 0.15);
    transform: translateX(4px);
}

.answer-btn:focus-visible::before {
    opacity: 1;
}

.answer-btn:focus-visible .letter {
    background: var(--teal);
    color: var(--night-sky);
    border-color: var(--teal);
}

.btn-park-primary:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px rgba(245, 158, 11, 0.5), 0 0 80px rgba(245, 158, 11, 0.15);
}

.btn-park-outline:focus-visible {
    border-color: var(--teal);
    color: var(--teal);
    background: rgba(45, 212, 191, 0.08);
    box-shadow: 0 0 30px rgba(45, 212, 191, 0.15);
}

.ticket-footer-action:focus-visible {
    color: var(--amber-light);
}

.leaderboard-tab:focus-visible {
    background: rgba(255,255,255,0.3);
}

.price-btn-default:focus-visible {
    background: var(--amber);
    color: var(--night-sky);
    border-color: var(--amber);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.price-btn-featured:focus-visible {
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

/* -- Light mode focus overrides -- */
[data-theme="light"] .answer-btn:focus-visible {
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.12);
}

[data-theme="light"] .answer-btn:focus-visible .letter {
    color: #ffffff;
}

[data-theme="light"] .btn-park-primary:focus-visible {
    box-shadow: 0 8px 35px rgba(217, 119, 6, 0.4), 0 0 80px rgba(217, 119, 6, 0.1);
}

[data-theme="light"] .btn-park-outline:focus-visible {
    background: rgba(13, 148, 136, 0.08);
    box-shadow: 0 0 30px rgba(13, 148, 136, 0.15);
}

[data-theme="light"] .price-btn-default:focus-visible {
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3);
}

[data-theme="light"] .price-btn-featured:focus-visible {
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.4);
}

/* ========================================
   5. HERO SECTION - Nighttime Park Atmosphere (Dark default)
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
    background: linear-gradient(
        175deg,
        #0b0e1a 0%,
        #111535 30%,
        #161936 50%,
        #1a1040 70%,
        #141838 100%
    );
}

/* Ambient park glow spots */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 30%, rgba(45, 212, 191, 0.10) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 90%, rgba(249, 112, 102, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(56, 189, 248, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

/* -- Light mode hero -- */
[data-theme="light"] .hero-section {
    background: linear-gradient(
        175deg,
        #dbeafe 0%,
        #eff6ff 30%,
        #f0f9ff 50%,
        #fef3c7 80%,
        #f8fafc 100%
    );
}

[data-theme="light"] .hero-section::before {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(217, 119, 6, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 30%, rgba(13, 148, 136, 0.07) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 90%, rgba(220, 38, 38, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(14, 165, 233, 0.04) 0%, transparent 40%);
}

/* ========================================
   6. HERO STARS / SPARKLES
   ======================================== */
.hero-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) { top: 8%; left: 12%; animation-delay: 0s; animation-duration: 2.5s; }
.star:nth-child(2) { top: 5%; left: 55%; animation-delay: 1s; animation-duration: 4s; }
.star:nth-child(3) { top: 20%; left: 75%; animation-delay: 1.5s; width: 2px; height: 2px; }
.star:nth-child(4) { top: 3%; left: 42%; animation-delay: 1.2s; animation-duration: 3.5s; }
.star:nth-child(5) { top: 12%; left: 82%; animation-delay: 1.8s; width: 2px; height: 2px; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

/* -- Light mode stars: amber/teal sparkles -- */
[data-theme="light"] .star {
    width: 4px;
    height: 4px;
    background: rgba(217, 119, 6, 0.7);
}

[data-theme="light"] .star:nth-child(1) { width: 5px; height: 5px; background: rgba(217, 119, 6, 0.7); }
[data-theme="light"] .star:nth-child(2) { background: rgba(13, 148, 136, 0.7); }
[data-theme="light"] .star:nth-child(3) { width: 4px; height: 4px; background: rgba(14, 165, 233, 0.7); }
[data-theme="light"] .star:nth-child(4) { width: 5px; height: 5px; background: rgba(220, 38, 38, 0.6); }
[data-theme="light"] .star:nth-child(5) { width: 4px; height: 4px; background: rgba(217, 119, 6, 0.6); }

/* ========================================
   7. HERO SKYLINE SILHOUETTE
   ======================================== */
.hero-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 2;
    pointer-events: none;
}

/* SVG fill classes for theme-dependent skyline colors */
.skyline-fill { fill: var(--night-deep); }
.skyline-fill-fg { fill: var(--night-deep); }
.skyline-stroke { stroke: var(--night-border); }

[data-theme="light"] .skyline-fill { fill: #e2e8f0; }
[data-theme="light"] .skyline-fill-fg { fill: #e8ecf1; }
[data-theme="light"] .skyline-stroke { stroke: #cbd5e1; }

/* ========================================
   8. HERO CONTENT
   ======================================== */
.hero-content {
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(249, 112, 102, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--amber-light);
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    animation: fadeInUp 0.8s var(--ease-out-quart) both;
}

/* -- Light mode hero badge -- */
[data-theme="light"] .hero-badge {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(220, 38, 38, 0.06) 100%);
    border: 1px solid rgba(217, 119, 6, 0.35);
    color: #b45309;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s var(--ease-out-quart) 0.1s both;
}

/* Gradient clip on brand-name */
.hero-title .brand-name {
    display: block;
    background: linear-gradient(
        135deg,
        var(--amber-light) 0%,
        var(--amber) 25%,
        var(--coral) 60%,
        var(--teal) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-title .tagline {
    display: block;
    font-size: clamp(1.1rem, 2.5vw, 1.75rem);
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.75rem;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s var(--ease-out-quart) 0.2s both;
}

[data-theme="light"] .hero-subtitle {
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.8s var(--ease-out-quart) 0.3s both;
}

/* ========================================
   9. BUTTONS
   ======================================== */
.btn-park {
    padding: 0.9rem 2.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-park-primary {
    background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
    color: #1a0a00;
    border: none;
    box-shadow: 0 4px 25px rgba(245, 158, 11, 0.35), 0 0 60px rgba(245, 158, 11, 0.1);
}

.btn-park-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px rgba(245, 158, 11, 0.5), 0 0 80px rgba(245, 158, 11, 0.15);
    color: #1a0a00;
}

.btn-park-primary:active {
    transform: translateY(-1px) scale(0.99);
}

/* -- Light mode primary button -- */
[data-theme="light"] .btn-park-primary {
    color: #ffffff;
    box-shadow: 0 4px 25px rgba(217, 119, 6, 0.3), 0 0 60px rgba(217, 119, 6, 0.08);
}

[data-theme="light"] .btn-park-primary:hover {
    box-shadow: 0 8px 35px rgba(217, 119, 6, 0.4), 0 0 80px rgba(217, 119, 6, 0.1);
    color: #ffffff;
}

.btn-park-outline {
    background: rgba(255,255,255,0.05);
    color: var(--text-bright);
    border: 2px solid var(--night-border-light);
    backdrop-filter: blur(10px);
}

.btn-park-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: rgba(45, 212, 191, 0.08);
    box-shadow: 0 0 30px rgba(45, 212, 191, 0.15);
}

/* -- Light mode outline button -- */
[data-theme="light"] .btn-park-outline {
    background: rgba(255,255,255,0.7);
    border: 2px solid var(--border);
}

[data-theme="light"] .btn-park-outline:hover {
    background: rgba(13, 148, 136, 0.06);
    box-shadow: 0 0 30px rgba(13, 148, 136, 0.12);
}

/* ========================================
   10. SCROLL INDICATOR
   ======================================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.8s var(--ease-out-quart) 1s both;
}

.scroll-indicator-text {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-faint);
    font-weight: 600;
}

.scroll-indicator-arrow {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-faint);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-indicator-arrow::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--amber);
    border-radius: 2px;
    margin-top: 6px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* ========================================
   11. ZIPPY MASCOT
   ======================================== */
.zippy-hero-area {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.8s var(--ease-out-quart) 0.4s both;
}

/* Glow ring behind Zippy */
.zippy-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(251, 191, 36, 0.15) 0%,
        rgba(249, 115, 22, 0.08) 40%,
        transparent 70%
    );
    animation: glowPulse 4s ease-in-out infinite;
}

[data-theme="light"] .zippy-glow {
    background: radial-gradient(circle,
        rgba(245, 158, 11, 0.12) 0%,
        rgba(234, 88, 12, 0.06) 40%,
        transparent 70%
    );
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Orbit ring */
.zippy-orbit {
    position: absolute;
    width: 340px;
    height: 340px;
    border: 1px dashed rgba(251, 191, 36, 0.15);
    border-radius: 50%;
}

[data-theme="light"] .zippy-orbit {
    border-color: rgba(217, 119, 6, 0.2);
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--amber-light);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--amber-glow);
}

.orbit-dot:nth-child(1) { top: 0; left: 50%; transform: translate(-50%, -50%); }
.orbit-dot:nth-child(2) { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.orbit-dot:nth-child(3) { top: 50%; right: 0; transform: translate(50%, -50%); }

.zippy-character {
    position: relative;
    animation: zippyFloat 4s ease-in-out infinite;
}

@keyframes zippyFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    25% { transform: translateY(-12px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
    75% { transform: translateY(-8px) rotate(1deg); }
}

.zippy-bolt-svg {
    width: 180px;
    height: 240px;
    filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.5)) drop-shadow(0 0 50px rgba(251, 191, 36, 0.2));
}

[data-theme="light"] .zippy-bolt-svg {
    filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.4)) drop-shadow(0 0 50px rgba(245, 158, 11, 0.15));
}

/* Zippy's face */
.zippy-face {
    position: absolute;
    top: 68px;
    left: 50%;
    transform: translateX(-55%);
    width: 90px;
}

.zippy-eyes {
    display: flex;
    justify-content: center;
    gap: 22px;
}

.zippy-eye {
    width: 22px;
    height: 28px;
    background: var(--night-sky);
    border-radius: 50%;
    position: relative;
    animation: zippyBlink 5s ease-in-out infinite;
}

[data-theme="light"] .zippy-eye {
    background: #f8fafc;
}

@keyframes zippyBlink {
    0%, 42%, 48%, 100% { transform: scaleY(1); }
    45% { transform: scaleY(0.05); }
}

.zippy-eye::after {
    content: '';
    width: 9px;
    height: 9px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    right: 3px;
}

[data-theme="light"] .zippy-eye::after {
    background: #1e293b;
}

/* Cheek blush */
.zippy-cheeks {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 2px;
}

.zippy-cheek {
    width: 14px;
    height: 8px;
    background: rgba(249, 115, 22, 0.6);
    border-radius: 50%;
    filter: blur(2px);
}

[data-theme="light"] .zippy-cheek {
    background: rgba(234, 88, 12, 0.5);
}

.zippy-mouth {
    width: 28px;
    height: 18px;
    background: var(--night-sky);
    border-radius: 0 0 28px 28px;
    margin: 4px auto 0;
    position: relative;
}

[data-theme="light"] .zippy-mouth {
    background: #f8fafc;
}

/* Tongue */
.zippy-mouth::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 8px;
    background: #f87171;
    border-radius: 0 0 12px 12px;
}

/* Zippy's arms */
.zippy-arm {
    position: absolute;
    width: 40px;
    height: 50px;
}

.zippy-arm-left {
    left: -28px;
    top: 85px;
    transform: rotate(15deg);
    animation: armWaveLeft 10s ease-in-out infinite;
}

.zippy-arm-right {
    right: -28px;
    top: 75px;
    transform: rotate(-15deg) scaleX(-1);
    animation: armWaveRight 10s ease-in-out infinite;
}

@keyframes armWaveLeft {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(25deg); }
}

@keyframes armWaveRight {
    0%, 100% { transform: rotate(-15deg) scaleX(-1); }
    50% { transform: rotate(-30deg) scaleX(-1); }
}

/* Sparks - hidden */
.zippy-sparks {
    position: absolute;
    width: 240px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    display: none;
}

/* Mini bolts - hidden */
.zippy-mini-bolts {
    display: none;
}

/* Speech bubble - STATIC */
.zippy-speech {
    position: absolute;
    top: -15px;
    right: -70px;
    background: var(--night-surface);
    border: 1px solid var(--night-border-light);
    border-radius: 16px;
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--amber-light);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.zippy-speech::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: var(--night-surface);
    border-right: 1px solid var(--night-border-light);
    border-bottom: 1px solid var(--night-border-light);
    transform: rotate(45deg);
}

/* -- Light mode speech bubble -- */
[data-theme="light"] .zippy-speech {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--amber);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .zippy-speech::before {
    background: #ffffff;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.zippy-name {
    text-align: center;
    margin-top: 0.75rem;
}

.zippy-name .zippy-name-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--amber-light);
    text-shadow: 0 0 30px var(--amber-glow);
    margin: 0;
    letter-spacing: 3px;
}

[data-theme="light"] .zippy-name .zippy-name-text {
    color: var(--amber);
}

.zippy-name p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
    font-weight: 500;
}

/* ========================================
   12. ROLLER COASTER TRACK DIVIDER
   ======================================== */
.track-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
    background: var(--night-deep);
    margin-top: -1px;
}

.track-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.coaster-car {
    position: absolute;
    animation: rideTrack 8s ease-in-out infinite;
}

@keyframes rideTrack {
    0% { left: -5%; top: 60%; }
    25% { left: 25%; top: 20%; }
    50% { left: 50%; top: 55%; }
    75% { left: 75%; top: 15%; }
    100% { left: 105%; top: 50%; }
}

/* ========================================
   13. STATS SECTION
   ======================================== */
.stats-section {
    padding: var(--section-pad) 0;
    background: var(--night-deep);
    position: relative;
}

/* Dark mode: radial glow at top */
.stats-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Light mode: gradient line at top instead of glow */
[data-theme="light"] .stats-section::before {
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    transform: none;
    background: linear-gradient(90deg, transparent, var(--amber), var(--teal), transparent);
}

.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--night-card);
    border: 1px solid var(--night-border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .stat-card {
    background: var(--card-bg);
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amber), var(--coral));
}

.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    display: block;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--amber-light);
    line-height: 1.1;
}

[data-theme="light"] .stat-number {
    color: var(--amber);
}

.stat-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* ========================================
   14. HOW IT WORKS SECTION
   ======================================== */
.how-section {
    padding: var(--section-pad) 0;
    background: var(--night-sky);
    position: relative;
}

/* Dark mode: radial glow at top */
.how-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 250px;
    background: radial-gradient(ellipse, rgba(45, 212, 191, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Light mode: remove the glow */
[data-theme="light"] .how-section::before {
    display: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-bright);
}

.section-header h2 .accent-amber {
    color: var(--amber);
}

.section-header h2 .accent-teal {
    color: var(--teal);
}

.section-header h2 .accent-coral {
    color: var(--coral);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

/* Connecting line behind steps */
.how-steps::before {
    content: '';
    position: absolute;
    top: 55px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--amber), var(--teal), var(--coral));
    opacity: 0.3;
    z-index: 0;
}

[data-theme="light"] .how-steps::before {
    opacity: 0.25;
}

.how-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--amber), var(--teal));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.step-1 .step-number { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.step-2 .step-number { background: rgba(45, 212, 191, 0.15); color: var(--teal); }
.step-3 .step-number { background: rgba(249, 112, 102, 0.15); color: var(--coral); }

[data-theme="light"] .step-1 .step-number { background: rgba(217, 119, 6, 0.1); }
[data-theme="light"] .step-2 .step-number { background: rgba(13, 148, 136, 0.1); }
[data-theme="light"] .step-3 .step-number { background: rgba(220, 38, 38, 0.1); }

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.how-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-bright);
}

.how-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .how-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .how-steps::before {
        display: none;
    }
}

/* ========================================
   15. QUESTION SECTION - Ticket Stub Design
   ======================================== */
.question-section {
    padding: var(--section-pad) 0;
    background: var(--night-deep);
    position: relative;
}

.ticket-card {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    position: relative;
}

/* Ticket stub left side */
.ticket-stub {
    width: 100px;
    background: linear-gradient(180deg, var(--amber) 0%, var(--coral) 100%);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.75rem;
    position: relative;
    flex-shrink: 0;
}

.ticket-stub::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 10%;
    bottom: 10%;
    width: 2px;
    background-image: repeating-linear-gradient(
        to bottom,
        var(--night-deep) 0px,
        var(--night-deep) 6px,
        transparent 6px,
        transparent 12px
    );
}

/* Semicircle notches */
.ticket-stub .notch-top,
.ticket-stub .notch-bottom {
    position: absolute;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--night-deep);
    border-radius: 50%;
}

.ticket-stub .notch-top { top: -10px; }
.ticket-stub .notch-bottom { bottom: -10px; }

.ticket-stub-text {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(0,0,0,0.75);
    white-space: nowrap;
}

/* -- Light mode ticket stub text -- */
[data-theme="light"] .ticket-stub-text {
    color: rgba(255,255,255,0.9);
}

.ticket-stub-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transform: rotate(-90deg);
}

/* Main ticket body */
.ticket-body {
    flex: 1;
    background: var(--night-card);
    border: 1px solid var(--night-border);
    border-left: none;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 2.5rem 3rem;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .ticket-body {
    background: var(--card-bg);
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
}

.ticket-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amber), var(--teal));
}

/* Subtle pattern on ticket */
.ticket-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.02) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

[data-theme="light"] .ticket-body::after {
    background-image: radial-gradient(circle at 2px 2px, rgba(0,0,0,0.02) 1px, transparent 0);
}

.ticket-content {
    position: relative;
    z-index: 1;
}

.question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.question-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid var(--teal-deep);
    color: var(--teal);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="light"] .question-category-tag {
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.3);
}

.question-difficulty {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--amber);
    font-weight: 600;
}

.question-text {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.4;
    color: var(--text-bright);
}

.answers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

/* Answer buttons - Dark default */
.answer-btn {
    background: var(--night-sky);
    border: 2px solid var(--night-border);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    text-align: left;
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    position: relative;
    overflow: hidden;
}

/* -- Light mode answer buttons -- */
[data-theme="light"] .answer-btn {
    background: #f8fafc;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.answer-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(45, 212, 191, 0.05));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

[data-theme="light"] .answer-btn::before {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.03), rgba(13, 148, 136, 0.03));
}

.answer-btn:hover {
    border-color: var(--teal);
    box-shadow: 0 0 25px rgba(45, 212, 191, 0.15);
    transform: translateX(4px);
}

[data-theme="light"] .answer-btn:hover {
    background: #f0fdfa;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.12);
}

.answer-btn:hover::before {
    opacity: 1;
}

.answer-btn:hover .letter {
    background: var(--teal);
    color: var(--night-sky);
    border-color: var(--teal);
}

[data-theme="light"] .answer-btn:hover .letter {
    color: #ffffff;
}

.answer-btn .letter {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: var(--night-card);
    border: 2px solid var(--night-border-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--teal);
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1;
}

[data-theme="light"] .answer-btn .letter {
    background: var(--card-bg-pure);
    border: 2px solid var(--border);
}

.answer-btn .answer-text {
    position: relative;
    z-index: 1;
}

.ticket-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--night-border);
}

[data-theme="light"] .ticket-footer {
    border-top-color: var(--border);
}

.ticket-footer-text {
    color: var(--text-faint);
    font-size: 0.8rem;
}

.ticket-footer-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--amber);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.ticket-footer-action:hover {
    color: var(--amber-light);
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .ticket-card {
        flex-direction: column;
    }
    .ticket-stub {
        width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: 1rem;
        flex-direction: row;
    }
    .ticket-stub::after {
        display: none;
    }
    .ticket-stub .notch-top,
    .ticket-stub .notch-bottom {
        display: none;
    }
    .ticket-stub-text {
        writing-mode: horizontal-tb;
        transform: none;
    }
    .ticket-body {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        border-left: 1px solid var(--night-border);
        border-top: none;
        padding: 2rem 1.5rem;
    }
    .answers-grid {
        grid-template-columns: 1fr;
    }
}

[data-theme="light"] .ticket-body {
    border-left: none;
}

@media (max-width: 768px) {
    [data-theme="light"] .ticket-body {
        border-left: 1px solid var(--border);
    }
}

/* ========================================
   16. PARKS SECTION
   ======================================== */
.parks-section {
    padding: var(--section-pad) 0;
    background: var(--night-sky);
    position: relative;
}

.parks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.park-card {
    background: var(--night-card);
    border: 1px solid var(--night-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
}

.park-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

[data-theme="light"] .park-card {
    background: var(--card-bg);
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .park-card:hover {
    box-shadow: var(--shadow-lg);
}

.park-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.park-card.disney::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.park-card.universal::before { background: linear-gradient(90deg, #10b981, #34d399); }
.park-card.sixflags::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.park-card.cedar::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.park-card.seaworld::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.park-card.more::before { background: linear-gradient(90deg, var(--amber), var(--teal)); }

.park-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

.park-icon.disney { background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05)); }
.park-icon.universal { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05)); }
.park-icon.sixflags { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.05)); }
.park-icon.cedar { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05)); }
.park-icon.seaworld { background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.05)); }
.park-icon.more { background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(45, 212, 191, 0.05)); }

[data-theme="light"] .park-icon.disney { background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.04)); }
[data-theme="light"] .park-icon.universal { background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04)); }
[data-theme="light"] .park-icon.sixflags { background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.04)); }
[data-theme="light"] .park-icon.cedar { background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04)); }
[data-theme="light"] .park-icon.seaworld { background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(6, 182, 212, 0.04)); }
[data-theme="light"] .park-icon.more { background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(13, 148, 136, 0.04)); }

.park-card h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: var(--text-bright);
}

.park-card .park-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.park-card .park-questions {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal);
    background: rgba(45, 212, 191, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
}

[data-theme="light"] .park-card .park-questions {
    background: rgba(13, 148, 136, 0.08);
}

@media (max-width: 992px) {
    .parks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .parks-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* ========================================
   17. LEADERBOARD SECTION
   ======================================== */
.leaderboard-section {
    padding: var(--section-pad) 0;
    background: var(--night-deep);
    position: relative;
    overflow: hidden;
}

/* Ambient glow */
.leaderboard-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

[data-theme="light"] .leaderboard-section::before {
    background: radial-gradient(circle, rgba(217, 119, 6, 0.04) 0%, transparent 60%);
}

.leaderboard-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.leaderboard-info h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-bright);
}

/* Dark mode: gradient text */
.leaderboard-info h2 .gradient-text {
    background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Light mode: solid color instead of gradient clip */
[data-theme="light"] .leaderboard-info h2 .gradient-text {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--amber);
    background-clip: unset;
    color: var(--amber);
}

.leaderboard-info > p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.ranking-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.ranking-badge {
    background: var(--night-card);
    border: 1px solid var(--night-border);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

[data-theme="light"] .ranking-badge {
    background: var(--card-bg);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.ranking-badge-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ranking-badge h4 {
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-bright);
}

.ranking-badge p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* Leaderboard panel */
.leaderboard-panel {
    background: var(--night-card);
    border: 1px solid var(--night-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

[data-theme="light"] .leaderboard-panel {
    background: var(--card-bg);
    border-color: var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}

.leaderboard-panel-header {
    background: linear-gradient(135deg, var(--amber) 0%, var(--coral-deep) 100%);
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.leaderboard-panel-header h3 {
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.1rem;
}

.leaderboard-tabs {
    display: flex;
    gap: 0.4rem;
}

.leaderboard-tab {
    background: rgba(255,255,255,0.15);
    border: none;
    color: rgba(255,255,255,0.9);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.leaderboard-tab.active {
    background: white;
    color: var(--coral-deep);
}

.leaderboard-tab[aria-selected="true"] {
    background: white;
    color: var(--coral-deep);
}

.leaderboard-panel-body {
    padding: 0.5rem;
}

/* Leaderboard entries */
.lb-entry {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.lb-entry:hover {
    background: var(--night-surface);
}

[data-theme="light"] .lb-entry:hover {
    background: var(--section-alt);
}

/* Top 3 accent borders */
.lb-entry:nth-child(1) {
    border-left: 3px solid var(--amber);
    background: rgba(251, 191, 36, 0.04);
}
.lb-entry:nth-child(2) {
    border-left: 3px solid #94a3b8;
    background: rgba(148, 163, 184, 0.03);
}
.lb-entry:nth-child(3) {
    border-left: 3px solid #fb923c;
    background: rgba(251, 146, 60, 0.03);
}

[data-theme="light"] .lb-entry:nth-child(1) {
    background: rgba(245, 158, 11, 0.04);
}
[data-theme="light"] .lb-entry:nth-child(2) {
    background: rgba(148, 163, 184, 0.04);
}
[data-theme="light"] .lb-entry:nth-child(3) {
    background: rgba(251, 146, 60, 0.04);
}

.lb-position {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-right: 0.85rem;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.lb-position.gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #451a03;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.lb-position.silver {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    color: #334155;
}

.lb-position.bronze {
    background: linear-gradient(135deg, #fdba74 0%, #fb923c 100%);
    color: #7c2d12;
}

.lb-position.default {
    background: var(--night-surface);
    color: var(--text-muted);
}

[data-theme="light"] .lb-position.default {
    background: var(--section-alt);
}

.lb-player {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 0.85rem;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.lb-entry:nth-child(1) .lb-player { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #451a03; }
.lb-entry:nth-child(2) .lb-player { background: linear-gradient(135deg, var(--electric-blue), var(--teal)); color: white; }
.lb-entry:nth-child(3) .lb-player { background: linear-gradient(135deg, var(--coral), var(--coral-deep)); color: white; }
.lb-entry:nth-child(4) .lb-player { background: linear-gradient(135deg, #a78bfa, #7c3aed); color: white; }
.lb-entry:nth-child(5) .lb-player { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: white; }

.lb-details {
    flex: 1;
    min-width: 0;
}

.lb-name {
    font-weight: 700;
    color: var(--text-bright);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-stats-row {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lb-points {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--amber);
    flex-shrink: 0;
}

/* Leaderboard panel footer */
.leaderboard-panel-footer {
    text-align: center;
    padding: 1rem 1.75rem;
    border-top: 1px solid var(--night-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

[data-theme="light"] .leaderboard-panel-footer {
    border-top-color: var(--border);
}

.leaderboard-panel-footer span {
    font-size: 0.8rem;
    color: var(--text-faint);
    font-weight: 600;
    letter-spacing: 1px;
}

.leaderboard-panel-footer .trophy-group {
    display: flex;
    gap: 0.35rem;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .leaderboard-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ========================================
   18. PRICING SECTION
   ======================================== */
.pricing-section {
    padding: var(--section-pad) 0;
    background: var(--night-sky);
    position: relative;
}

/* Dark mode: radial glow at top */
.pricing-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 250px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="light"] .pricing-section::before {
    display: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.price-card {
    background: var(--night-card);
    border: 1px solid var(--night-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    position: relative;
    transition: all var(--transition-base);
}

[data-theme="light"] .price-card {
    background: var(--card-bg);
    border-color: var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
}

/* Ticket perforation line at top */
.price-card::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 1px;
    background-image: repeating-linear-gradient(
        90deg,
        var(--night-border-light) 0px,
        var(--night-border-light) 6px,
        transparent 6px,
        transparent 12px
    );
    opacity: 0.6;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

[data-theme="light"] .price-card:hover {
    box-shadow: var(--shadow-xl);
}

.price-card.featured {
    border-color: var(--amber);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15);
    transform: scale(1.03);
}

[data-theme="light"] .price-card.featured {
    border: 2px solid var(--amber);
    box-shadow: 0 10px 40px rgba(217, 119, 6, 0.15), var(--shadow-md);
}

.price-card.featured:hover {
    transform: scale(1.03) translateY(-8px);
}

/* Best value badge */
.price-card-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
    color: white;
    padding: 0.45rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.price-tier {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2.5px;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

[data-theme="light"] .price-tier {
    letter-spacing: 1px;
}

.price-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--text-bright);
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-bright);
    line-height: 1;
}

.price-card.featured .price-amount {
    color: var(--amber-light);
}

[data-theme="light"] .price-card.featured .price-amount {
    color: var(--amber);
}

.price-period {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.price-trial {
    display: inline-block;
    background: rgba(52, 211, 153, 0.1);
    color: var(--success);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.75rem;
}

[data-theme="light"] .price-trial {
    background: rgba(5, 150, 105, 0.08);
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0;
}

.price-features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--night-border);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

[data-theme="light"] .price-features li {
    border-bottom-color: var(--border);
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features li i {
    color: var(--success);
    font-size: 0.9rem;
}

.price-features li.disabled {
    opacity: 0.55;
}

.price-features li.disabled i {
    color: var(--text-faint);
}

.price-btn {
    width: 100%;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

[data-theme="light"] .price-btn {
    border-radius: 12px;
}

.price-btn-default {
    background: var(--night-surface);
    color: var(--amber);
    border: 2px solid rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .price-btn-default {
    background: var(--section-alt);
    border: 2px solid rgba(217, 119, 6, 0.25);
}

.price-btn-default:hover {
    background: var(--amber);
    color: var(--night-sky);
    border-color: var(--amber);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .price-btn-default:hover {
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3);
}

.price-btn-featured {
    background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
    color: white;
}

.price-btn-featured:hover {
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

[data-theme="light"] .price-btn-featured:hover {
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.4);
}

/* Pricing responsive */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin: 0 auto;
    }
    .price-card.featured {
        transform: none;
    }
    .price-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 576px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* Light mode pricing responsive override at 992px */
[data-theme="light"] .pricing-grid {
    /* Intentionally empty - uses same grid as dark at desktop */
}

@media (max-width: 992px) {
    [data-theme="light"] .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* ========================================
   19. CTA SECTION
   ======================================== */
.cta-section {
    padding: var(--section-pad) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(
        135deg,
        #1a0e05 0%,
        #2d1810 20%,
        #1a1040 50%,
        #141838 100%
    );
}

[data-theme="light"] .cta-section {
    background: linear-gradient(
        135deg,
        #fffbeb 0%,
        #fef3c7 20%,
        #fff7ed 50%,
        #f0f9ff 80%,
        #f8fafc 100%
    );
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

[data-theme="light"] .cta-section::before {
    background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, transparent 60%);
}

/* Top border glow */
.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber), var(--coral), var(--teal), transparent);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-zippy {
    margin-bottom: 2rem;
}

.cta-zippy svg {
    width: 80px;
    height: 100px;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.4));
}

[data-theme="light"] .cta-zippy svg {
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.3));
}

/* CTA bolt face - theme-dependent SVG fills */
.cta-face-eye { fill: #0b0e1a; }
.cta-face-pupil { fill: white; }
.cta-face-mouth { stroke: #0b0e1a; }

[data-theme="light"] .cta-face-eye { fill: #f8fafc; }
[data-theme="light"] .cta-face-pupil { fill: #1e293b; }
[data-theme="light"] .cta-face-mouth { stroke: #f8fafc; }

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-bright);
}

/* CTA heading italic accent for variety */
.cta-section h2 .cta-lead {
    font-style: italic;
    font-weight: 700;
    opacity: 0.9;
}

/* CTA heading: gradient clip KEPT on .gradient-text */
.cta-section h2 .gradient-text {
    background: linear-gradient(135deg, var(--amber-light) 0%, var(--amber) 30%, var(--coral) 70%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-park-primary {
    font-size: 1.05rem;
    padding: 1.1rem 3rem;
}

.cta-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--text-faint);
    font-size: 0.85rem;
}

.cta-guarantee i {
    color: var(--success);
}

/* -- Light mode CTA outline button override -- */
[data-theme="light"] .cta-section .btn-park-outline {
    background: rgba(255,255,255,0.7);
    border-color: var(--border);
}

/* ========================================
   20. RESPONSIVE - Shared breakpoints
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 6rem;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .zippy-hero-area {
        height: 380px;
    }

    .zippy-glow {
        width: 250px;
        height: 250px;
    }

    .zippy-orbit {
        width: 270px;
        height: 270px;
    }

    .zippy-bolt-svg {
        width: 140px;
        height: 190px;
    }

    .zippy-face {
        top: 55px;
    }

    .zippy-speech {
        right: -50px;
        top: -20px;
        font-size: 0.7rem;
    }

    .ranking-badges {
        grid-template-columns: 1fr;
    }

    .leaderboard-panel-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 1.5rem 1rem;
    }

    .ticket-body {
        padding: 1.5rem;
    }

    .lb-entry {
        padding: 0.75rem;
    }

    .lb-points {
        font-size: 1rem;
    }
}
