﻿
:root {
    --om-teal: #009677;
    --om-green: #50B848;
    --om-lime: #8DC63F;
    --om-red: #D1133E;
    --om-dark: #1A1A2E;
    --om-navy: #16213E;
    --om-teal-dark: #007A60;
    --om-teal-light: #00B88C;
    --om-gold: #FFD700;
    --om-orange: #FF8C00;
    --green-bg: linear-gradient(165deg, #00805F 0%, #009677 30%, #2E9D4F 70%, #5DAE3B 100%);
    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --border-light: #E4E8EE;
    --text-dark: #1A1A2E;
    --text-secondary: #555E6C;
    --text-muted: #8E95A2;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background: #1A6B4A;
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ============ AMBIENT SPARKLE LAYER ============ */
.sparkle-layer {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

    .sparkle-layer.on {
        opacity: 1;
    }

.sparkle {
    position: absolute;
    color: #FFF;
    text-shadow: 0 0 10px rgba(255,215,0,0.8), 0 0 4px rgba(255,255,255,0.9);
    pointer-events: none;
    will-change: transform, opacity;
    font-weight: 900;
    line-height: 1;
}

    .sparkle.drift {
        animation: driftUp 14s linear infinite, twinkle 3s ease-in-out infinite;
    }

    .sparkle.static {
        animation: twinkleStatic 2.4s ease-in-out infinite;
    }

    .sparkle.gold {
        color: #FFD700;
        text-shadow: 0 0 12px rgba(255,215,0,0.95);
    }

    .sparkle.white {
        color: #FFFFFF;
        text-shadow: 0 0 10px rgba(255,255,255,0.8);
    }

    .sparkle.lime {
        color: #D4FB7A;
        text-shadow: 0 0 10px rgba(141,198,63,0.9);
    }

/* Click/burst sparkles (absolute, one-shot; animated via WAAPI) */
.burst {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    font-size: 18px;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255,215,0,0.95);
    font-weight: 900;
}

.app-container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
}

/* ============ SCREENS ============ */
.screen {
    display: none;
    min-height: 100vh;
    padding: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

    .screen.active {
        display: flex;
        flex-direction: column;
    }

    .screen.visible {
        opacity: 1;
        transform: translateY(0);
    }

.screen-content {
    flex: 1;
    padding: 20px 18px 100px;
}

/* Green background screens */
.green-screen {
    background: var(--green-bg);
}

    .green-screen .screen-content {
        color: white;
    }

/* ============ GREEN HEADER BAR ============ */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--om-teal-dark) 0%, var(--om-teal) 100%);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-logo {
    height: 26px;
    filter: brightness(0) invert(1);
}

.header-title {
    font-size: 12px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.header-xp {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    animation: xpBadgePulse 2.2s ease-in-out infinite;
}

    .header-xp span:first-child {
        display: inline-block;
        animation: wiggle 2.5s ease-in-out infinite;
        transform-origin: center;
    }

/* ============ NAV BAR ============ */
.nav-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    display: none;
    justify-content: space-around;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 100;
}

    .nav-bar.visible {
        display: flex;
    }

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 9px;
    font-weight: 600;
    padding: 4px 16px;
}

    .nav-item:hover, .nav-item.active {
        color: var(--om-teal);
    }

    .nav-item .nav-icon {
        font-size: 20px;
    }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

    .btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        transition: width 0.6s ease, height 0.6s ease, top 0.6s ease, left 0.6s ease;
    }

    .btn:active::after {
        width: 300px;
        height: 300px;
        top: calc(50% - 150px);
        left: calc(50% - 150px);
    }

.btn-dark {
    background: var(--om-dark);
    color: white;
    box-shadow: 0 4px 16px rgba(26,26,46,0.3);
}

    .btn-dark:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(26,26,46,0.4);
    }

.btn-green {
    background: linear-gradient(135deg, var(--om-teal), var(--om-green));
    color: white;
    box-shadow: 0 4px 16px rgba(0,150,119,0.3);
}

    .btn-green:hover {
        transform: translateY(-2px);
    }

.btn-white {
    background: white;
    color: var(--om-teal);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

    .btn-white:hover {
        transform: translateY(-2px);
    }

.btn-gold {
    background: linear-gradient(135deg, var(--om-gold), var(--om-orange));
    color: var(--om-dark);
    box-shadow: 0 4px 16px rgba(255,215,0,0.3);
    animation: glowGold 2.4s ease-in-out infinite;
}

    .btn-gold:hover {
        transform: translateY(-2px);
    }

    .btn-gold::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 40%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
        animation: shimmerSweep 2.8s ease-in-out infinite;
        pointer-events: none;
    }

.btn-dark::before, .btn-green::before, .btn-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: shimmerSweep 3.6s ease-in-out infinite;
    animation-delay: 1s;
    pointer-events: none;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}

/* ============ CARDS (white on green) ============ */
.wcard {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
}

/* ============ FORM ELEMENTS ============ */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

    .form-input:focus {
        border-color: var(--om-teal);
        box-shadow: 0 0 0 4px rgba(0,150,119,0.1);
    }

    .form-input::placeholder {
        color: var(--text-muted);
    }

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0,150,119,0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(0,150,119,0.4);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatY {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-4px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(4px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.2) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

@keyframes driftUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    10%, 85% {
        opacity: 1;
    }

    100% {
        transform: translateY(-110vh);
        opacity: 0;
    }
}

@keyframes twinkleStatic {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.6) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.1) rotate(180deg);
    }
}

@keyframes shimmerSweep {
    0% {
        transform: translateX(-120%) skewX(-20deg);
    }

    100% {
        transform: translateX(220%) skewX(-20deg);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0);
    }

    20% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(6deg);
    }

    60% {
        transform: rotate(-4deg);
    }

    80% {
        transform: rotate(3deg);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.08);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.06);
    }

    70% {
        transform: scale(1);
    }
}

@keyframes glowGold {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(255,215,0,0.35), 0 0 0 0 rgba(255,215,0,0.35);
    }

    50% {
        box-shadow: 0 6px 28px rgba(255,215,0,0.65), 0 0 0 8px rgba(255,215,0,0);
    }
}

@keyframes glowTeal {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0,150,119,0.5), 0 0 10px rgba(0,150,119,0.3);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0,150,119,0), 0 0 22px rgba(0,150,119,0.6);
    }
}

@keyframes rotateSlow {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes popBurst {
    0% {
        transform: scale(0) rotate(0);
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    100% {
        transform: scale(2.2) rotate(200deg);
        opacity: 0;
    }
}

@keyframes xpBadgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255,215,0,0.5);
        background: rgba(255,255,255,0.2);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(255,215,0,0);
        background: rgba(255,215,0,0.3);
    }
}

@keyframes bobFloat {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-6px) rotate(2deg);
    }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 2px 3px 6px rgba(0,0,0,0.2), 0 0 18px rgba(255,215,0,0.25);
    }

    50% {
        text-shadow: 2px 3px 6px rgba(0,0,0,0.2), 0 0 34px rgba(255,215,0,0.75);
    }
}

.anim-delay-1 {
    animation-delay: 0.1s;
}

.anim-delay-2 {
    animation-delay: 0.2s;
}

.anim-delay-3 {
    animation-delay: 0.3s;
}

.anim-delay-4 {
    animation-delay: 0.4s;
}

.anim-delay-5 {
    animation-delay: 0.5s;
}

/* ============ SPLASH SCREEN ============ */
#splash {
    background: linear-gradient(165deg, var(--om-teal) 0%, #00A87A 30%, var(--om-green) 60%, var(--om-lime) 100%);
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.splash-top-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 0;
    position: relative;
    width: 100%;
}

.splash-om-logo {
    position: absolute;
    top: 18px;
    left: 18px;
    height: 30px;
    filter: brightness(0) invert(1);
    z-index: 5;
}

.splash-cityscape {
    width: 100%;
    height: 130px;
    position: relative;
    z-index: 2;
}

.splash-title-block {
    position: relative;
    z-index: 3;
    margin-bottom: 16px;
}

.splash-title-mzansi {
    font-size: 20px;
    font-weight: 800;
    color: white;
    letter-spacing: 6px;
    text-transform: uppercase;
    animation: fadeInUp 0.6s ease both;
}

.splash-title-levelup {
    font-size: 50px;
    font-weight: 900;
    color: #FFD700;
    line-height: 1;
    text-shadow: 2px 3px 6px rgba(0,0,0,0.2);
    font-style: italic;
    animation: fadeInUp 0.6s ease both, titleGlow 2.8s ease-in-out 0.9s infinite;
    animation-delay: 0.15s, 0.9s;
    position: relative;
    display: inline-block;
}

    .splash-title-levelup::before,
    .splash-title-levelup::after {
        content: '\2728';
        position: absolute;
        font-size: 26px;
        animation: twinkleStatic 1.8s ease-in-out infinite;
        text-shadow: 0 0 12px rgba(255,215,0,0.9);
    }

    .splash-title-levelup::before {
        top: -6px;
        left: -22px;
        animation-delay: 0.2s;
    }

    .splash-title-levelup::after {
        top: 4px;
        right: -24px;
        animation-delay: 0.9s;
    }

.splash-title-challenge {
    font-size: 22px;
    font-weight: 800;
    color: white;
    letter-spacing: 8px;
    text-transform: uppercase;
    animation: fadeInUp 0.6s ease both;
    animation-delay: 0.25s;
}

.splash-bottom-card {
    background: white;
    border-radius: 28px 28px 0 0;
    padding: 28px 24px 36px;
    width: 100%;
    position: relative;
    z-index: 4;
    animation: fadeInUp 0.6s ease both;
    animation-delay: 0.4s;
}

    .splash-bottom-card h2 {
        font-size: 21px;
        font-weight: 800;
        color: var(--text-dark);
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .splash-bottom-card .splash-desc {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.5;
        margin-bottom: 14px;
    }

.splash-prize-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #F0FFF0, #E8F8E8);
    border: 1px solid rgba(0,150,119,0.15);
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
}

    .splash-prize-bar .prize-trophy {
        font-size: 28px;
        flex-shrink: 0;
        animation: bobFloat 2.8s ease-in-out infinite;
        filter: drop-shadow(0 0 8px rgba(255,215,0,0.5));
    }

    .splash-prize-bar .prize-text {
        font-size: 13px;
        color: var(--text-dark);
        line-height: 1.4;
    }

        .splash-prize-bar .prize-text strong {
            color: var(--om-teal-dark);
            font-weight: 800;
        }

.splash-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.splash-how-link {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: center;
    padding: 6px;
    transition: var(--transition);
}

    .splash-how-link:hover {
        color: var(--om-teal);
    }

/* ============ WELCOME ============ */
.welcome-hero {
    text-align: center;
    padding-top: 16px;
    margin-bottom: 20px;
}

    .welcome-hero h1 {
        font-size: 23px;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .welcome-hero p {
        color: var(--text-secondary);
        font-size: 14px;
        line-height: 1.5;
    }

.mission-box {
    background: linear-gradient(135deg, #E8F8F3, #EAF6E6);
    border: 1px solid rgba(0,150,119,0.15);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 20px;
}

    .mission-box h3 {
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--om-teal);
        margin-bottom: 8px;
        font-weight: 700;
    }

    .mission-box p {
        color: var(--text-secondary);
        font-size: 13px;
        line-height: 1.6;
    }

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    opacity: 0;
    animation: slideInRight 0.5s ease both;
}

.step-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--om-teal), var(--om-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: white;
}

.step-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

    .step-text strong {
        color: var(--text-dark);
    }

.welcome-note {
    text-align: center;
    padding: 12px;
    background: #FFF8E1;
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #8B6914;
    margin-bottom: 16px;
}

/* ============ REWARDS EXPLAINER ============ */
.xp-explainer-hero {
    text-align: center;
    padding: 20px 0;
}

.xp-big {
    font-size: 50px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--om-gold), var(--om-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.xp-explainer-hero h2 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 10px;
}

.xp-explainer-hero p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.xp-value-card {
    background: linear-gradient(135deg, #FFF8E1, #FFF3C4);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    margin: 14px 0;
}

.xp-equation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
}

    .xp-equation .equals {
        color: var(--om-gold);
    }

.partners-section {
    margin: 16px 0;
}

    .partners-section h3 {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--text-muted);
        text-align: center;
        margin-bottom: 12px;
        font-weight: 700;
    }

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.partner-logo {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* ============ AUTH ============ */
.auth-screen {
    padding-top: 24px;
}

.personal-welcome-screen {
    background: linear-gradient(160deg, var(--om-teal-dark) 0%, var(--om-teal) 55%, var(--om-green) 100%);
    color: #fff;
    text-align: center;
    padding: 32px 24px;
}

.personal-welcome-screen.active {
    align-items: center;
    justify-content: center;
}

.personal-welcome-content {
    width: 100%;
    max-width: 360px;
}

.personal-welcome-icon {
    font-size: 52px;
    margin-bottom: 12px;
    animation: bounceIn 0.7s ease both;
}

.personal-welcome-screen h1 {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
}

.personal-welcome-screen p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    line-height: 1.5;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

    .auth-header h1 {
        font-size: 24px;
        font-weight: 800;
        margin-bottom: 4px;
    }

    .auth-header p {
        color: var(--text-secondary);
        font-size: 14px;
    }

.auth-form {
    margin-bottom: 18px;
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

    .auth-switch a {
        color: var(--om-teal);
        text-decoration: none;
        font-weight: 700;
        cursor: pointer;
    }

/* ============ DASHBOARD ============ */
#dashboard {
    background: var(--green-bg);
}

    #dashboard .screen-content {
        color: white;
    }

.journey-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px 14px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
}

    .journey-card h3 {
        font-size: 15px;
        font-weight: 700;
        text-align: center;
        margin-bottom: 18px;
        color: var(--text-dark);
    }

.journey-nodes {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 0 4px;
}

.journey-line {
    position: absolute;
    top: 20px;
    left: 28px;
    right: 28px;
    height: 2px;
    background: var(--border-light);
    z-index: 0;
}

.journey-line-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--om-teal), var(--om-green));
    border-radius: 2px;
    transition: width 1s ease;
}

.journey-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 64px;
}

.journey-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    border: 2px solid var(--border-light);
    background: white;
    transition: all 0.5s ease;
    color: var(--text-muted);
}

.journey-node.completed .journey-icon {
    background: linear-gradient(135deg, var(--om-teal), var(--om-green));
    border-color: var(--om-green);
    color: white;
}

.journey-node.current .journey-icon {
    border-color: var(--om-teal);
    color: var(--om-teal);
    box-shadow: 0 0 0 3px rgba(0,150,119,0.12);
    animation: glowTeal 1.8s ease-in-out infinite, floatY 2.4s ease-in-out infinite;
}

.journey-node.completed .journey-icon {
    animation: heartbeat 2.4s ease-in-out infinite;
}

.journey-node.locked .journey-icon {
    background: #F5F7FA;
    color: var(--text-muted);
}

.journey-label {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

.journey-node.completed .journey-label {
    color: var(--om-teal);
}

.journey-node.current .journey-label {
    color: var(--om-teal);
    font-weight: 800;
}

.journey-subtext {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 14px;
    line-height: 1.4;
}

/* Quest Grid on green background */
.quests-section {
    margin-bottom: 18px;
}

    .quests-section h2 {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 12px;
        color: white;
    }

.quest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quest-card {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

    .quest-card:not(.locked)::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 40%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        animation: shimmerSweep 4s ease-in-out infinite;
        pointer-events: none;
    }

    .quest-card:hover:not(.locked) {
        background: rgba(255,255,255,0.25);
        transform: translateY(-3px) scale(1.02);
        box-shadow: var(--shadow);
    }

    .quest-card:not(.locked):not(.completed) .quest-play-btn {
        animation: heartbeat 1.8s ease-in-out infinite;
    }

    .quest-card.locked {
        opacity: 0.45;
        cursor: not-allowed;
        pointer-events: none;
    }

    .quest-card.completed {
        border-color: rgba(255,255,255,0.4);
        background: rgba(255,255,255,0.2);
    }

.quest-card-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 2px;
}

.quest-card h3 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}

.quest-card-meta {
    font-size: 10px;
    opacity: 0.8;
    line-height: 1.4;
    margin-bottom: 10px;
}

    .quest-card-meta strong {
        opacity: 1;
        font-weight: 700;
    }

.quest-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--om-teal-dark), var(--om-teal));
    border: none;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.quest-card.locked .quest-play-btn {
    background: rgba(255,255,255,0.15);
    box-shadow: none;
}

/* Your Rewards panel (white card on green) */
.rewards-panel {
    background: white;
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
}

.rewards-panel-title {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
}

.rewards-panel-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rewards-trophy {
    font-size: 40px;
    flex-shrink: 0;
    animation: bobFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.4));
}

.rewards-cols {
    display: flex;
    flex: 1;
    gap: 16px;
}

.rewards-col h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.rewards-col .val {
    font-size: 16px;
    font-weight: 800;
    color: var(--om-teal);
}

.rewards-col .val-sub {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 1px;
}

/* Missed challenge */
.missed-card {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
}

    .missed-card h4 {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .missed-card p {
        font-size: 12px;
        color: var(--text-secondary);
        line-height: 1.4;
    }

/* ============ QUEST INTRO ============ */
.quest-intro-screen {
    text-align: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--green-bg);
    position: relative;
    overflow: hidden;
}

.quest-intro-icon {
    font-size: 56px;
    margin-bottom: 14px;
    animation: bounceIn 0.8s ease both, floatY 3s ease-in-out 0.8s infinite;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 0 16px rgba(255,255,255,0.3));
}

.quest-intro-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    z-index: 2;
    position: relative;
}

.quest-intro-screen h1 {
    font-size: 30px;
    font-weight: 900;
    color: white;
    margin-bottom: 14px;
    z-index: 2;
    position: relative;
}

.quest-intro-story {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto 28px;
    z-index: 2;
    position: relative;
}

/* ============ MAZE GAMEPLAY ============ */
#maze-gameplay {
    background: var(--green-bg);
}

.maze-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--om-teal-dark), var(--om-teal));
}

.maze-back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.maze-step-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
}

.maze-content {
    padding: 18px 18px 120px;
    color: white;
}

.maze-tip {
    margin-bottom: 14px;
}

    .maze-tip h3 {
        font-size: 19px;
        font-weight: 800;
        margin-bottom: 4px;
        color: white;
    }

    .maze-tip .maze-tip-sub {
        font-size: 13px;
        font-weight: 700;
        color: rgba(255,255,255,0.7);
        margin-bottom: 6px;
    }

    .maze-tip p {
        font-size: 13px;
        color: rgba(255,255,255,0.85);
        line-height: 1.5;
    }

.maze-question {
    margin-bottom: 12px;
}

    .maze-question h4 {
        font-size: 14px;
        font-weight: 700;
        color: white;
        line-height: 1.4;
    }

/* Maze Map Illustration with signposts */
.maze-map {
    position: relative;
    border-radius: var(--radius);
    margin-bottom: 18px;
    overflow: visible;
    min-height: 300px;
}

    .maze-map svg {
        width: 100%;
        height: auto;
        display: block;
    }

.map-signpost {
    position: absolute;
    background: white;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    max-width: 95px;
    text-align: center;
    line-height: 1.3;
}

    .map-signpost:hover {
        transform: scale(1.05);
        box-shadow: var(--shadow);
        border-color: var(--om-teal);
    }

    .map-signpost.correct-pick {
        background: var(--om-teal);
        color: white;
        border-color: var(--om-teal);
        transform: scale(1.12);
        animation: glowTeal 1.2s ease-in-out infinite;
    }

    .map-signpost.wrong-pick {
        background: var(--om-red);
        color: white;
        border-color: var(--om-red);
        animation: shake 0.5s ease;
    }

    .map-signpost.disabled {
        pointer-events: none;
        opacity: 0.5;
    }

/* "GREAT ANSWER" feedback */
.maze-feedback {
    background: linear-gradient(135deg, var(--om-teal-dark), var(--om-teal));
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    color: white;
    margin-top: 14px;
    animation: fadeInUp 0.4s ease both;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.maze-feedback-text h3 {
    font-size: 17px;
    font-weight: 800;
}

.maze-feedback-text p {
    font-size: 12px;
    opacity: 0.85;
}

.maze-next-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--om-teal);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    .maze-next-btn:hover {
        transform: scale(1.1);
    }

/* ============ QUEST 2: SHIELD MATCH (memory pair) ============ */
#match-gameplay {
    background: var(--green-bg);
}

.match-content {
    padding: 18px 18px 120px;
    color: white;
}

.match-header-info {
    text-align: center;
    margin-bottom: 14px;
}

    .match-header-info h3 {
        font-size: 18px;
        font-weight: 800;
        margin-bottom: 4px;
        color: white;
    }

    .match-header-info p {
        font-size: 13px;
        color: rgba(255,255,255,0.85);
        line-height: 1.4;
    }

.match-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 14px 0 18px;
}

.match-pip {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.4s ease;
}

    .match-pip.on {
        background: var(--om-lime);
        box-shadow: 0 0 12px rgba(141,198,63,0.8);
        transform: scale(1.3);
    }

.match-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}

.match-card {
    aspect-ratio: 3/4;
    perspective: 800px;
    cursor: pointer;
    position: relative;
}

.match-card-front span:not(.mc-emoji) {
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    padding: 0 2px;
}

.match-reveal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-reveal-item {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 12px 14px;
}

.match-reveal-pair {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 13px;
}

.match-reveal-emoji {
    font-size: 18px;
}

.match-reveal-arrow {
    opacity: 0.7;
    margin: 0 2px;
}

.match-reveal-item p {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
    margin: 0;
}

.vq-scenario {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.45;
    margin: 0 0 10px;
}

.vault-feedback {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    color: #FFE866;
    font-size: 13px;
    line-height: 1.4;
}

#risk-proof,
#risk-boosters,
#match-reveal {
    background: var(--green-bg);
}

.match-card-inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.match-card.flipped .match-card-inner,
.match-card.matched .match-card-inner {
    transform: rotateY(180deg);
}

.match-card-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-sm);
    padding: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.match-card-back {
    background: linear-gradient(135deg, var(--om-teal-dark), var(--om-teal));
    color: white;
    font-size: 28px;
    font-weight: 900;
    border: 2px solid rgba(255,255,255,0.25);
}

    .match-card-back::before {
        content: '?';
        animation: heartbeat 2s ease-in-out infinite;
    }

.match-card-front {
    background: white;
    color: var(--text-dark);
    transform: rotateY(180deg);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    flex-direction: column;
    gap: 4px;
    border: 2px solid rgba(255,255,255,0.4);
}

    .match-card-front .mc-emoji {
        font-size: 28px;
    }

.match-card.matched .match-card-front {
    background: linear-gradient(135deg, #E8FFEF, #C8F5D4);
    border-color: var(--om-lime);
    animation: heartbeat 1.2s ease-in-out;
}

.match-card.wrong .match-card-front {
    background: #FFE5E5;
    border-color: var(--om-red);
    animation: shake 0.5s ease;
}

.match-hint {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-top: 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    text-align: center;
    min-height: 40px;
    line-height: 1.4;
}

    .match-hint strong {
        color: #FFE866;
    }

/* ============ QUEST 3: VAULT ============ */
#vault-gameplay {
    background: var(--green-bg);
}

.vault-content {
    padding: 18px 18px 120px;
    color: white;
}

.vault-stage {
    position: relative;
    max-width: 320px;
    margin: 0 auto 18px;
    padding: 14px;
}

.vault-body {
    background: linear-gradient(145deg, #4A4A5A, #2A2A38);
    border-radius: 20px;
    padding: 20px 18px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.4), 0 8px 20px rgba(0,0,0,0.3);
    border: 3px solid #1A1A26;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .vault-body.open {
        transform: perspective(600px) rotateY(-70deg);
        transform-origin: left center;
    }

.vault-dials {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.vault-dial {
    flex: 1;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #6A6A7A, #2A2A38);
    border: 3px solid #8A8A9A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 26px;
    font-weight: 900;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    transform: rotate(-30deg);
}

    .vault-dial::after {
        content: '';
        position: absolute;
        top: 6%;
        left: 50%;
        width: 3px;
        height: 18%;
        background: rgba(255,255,255,0.3);
        transform: translateX(-50%);
        border-radius: 2px;
    }

    .vault-dial.unlocked {
        background: radial-gradient(circle at 30% 30%, #FFE866, var(--om-gold));
        border-color: #FFF3B8;
        color: var(--om-dark);
        transform: rotate(720deg);
        box-shadow: inset 0 2px 6px rgba(255,255,255,0.3), 0 0 18px rgba(255,215,0,0.7);
        animation: glowGold 1.8s ease-in-out infinite;
    }

        .vault-dial.unlocked::after {
            background: var(--om-dark);
        }

.vault-handle {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #AAAAB8, #5A5A6A);
    border: 4px solid #3A3A48;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.4), 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 1s ease;
}

    .vault-handle::before,
    .vault-handle::after {
        content: '';
        position: absolute;
        width: 8px;
        height: 52px;
        background: #3A3A48;
        border-radius: 4px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .vault-handle::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }

.vault-body.open .vault-handle {
    transform: rotate(180deg);
}

.vault-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    margin-top: 10px;
    text-transform: uppercase;
}

.vault-question {
    background: white;
    color: var(--text-dark);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

    .vault-question h4 {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .vault-question .vq-sub {
        font-size: 12px;
        color: var(--text-secondary);
        margin-bottom: 12px;
        line-height: 1.4;
    }

.vault-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vault-choice {
    padding: 12px 14px;
    background: #F5F7FA;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .vault-choice::before {
        content: '\25CF';
        color: var(--text-muted);
        font-size: 10px;
        transition: color 0.3s ease;
    }

    .vault-choice:hover {
        border-color: var(--om-teal);
        background: #E8F8F3;
        transform: translateX(4px);
    }

    .vault-choice.correct {
        border-color: var(--om-green);
        background: #E8FFEF;
        color: var(--om-teal-dark);
    }

        .vault-choice.correct::before {
            content: '\2713';
            color: var(--om-green);
            font-size: 14px;
        }

    .vault-choice.wrong {
        border-color: var(--om-red);
        background: #FFE5E5;
        animation: shake 0.5s ease;
    }

    .vault-choice.disabled {
        pointer-events: none;
        opacity: 0.5;
    }

.vault-vault-opened {
    text-align: center;
    color: white;
    padding: 20px 16px;
    animation: bounceIn 0.7s ease both;
}

    .vault-vault-opened h3 {
        font-size: 22px;
        font-weight: 900;
        margin-bottom: 6px;
        color: var(--om-gold);
        text-shadow: 0 0 16px rgba(255,215,0,0.6);
    }

    .vault-vault-opened p {
        font-size: 13px;
        color: rgba(255,255,255,0.9);
        margin-bottom: 14px;
    }

/* ============ QUEST 4: TIMELINE ============ */
#timeline-gameplay {
    background: var(--green-bg);
}

.timeline-content {
    padding: 18px 18px 120px;
    color: white;
}

.timeline-header-info {
    text-align: center;
    margin-bottom: 14px;
}

    .timeline-header-info h3 {
        font-size: 18px;
        font-weight: 800;
        margin-bottom: 4px;
        color: white;
    }

    .timeline-header-info p {
        font-size: 13px;
        color: rgba(255,255,255,0.85);
        line-height: 1.4;
    }

.goal-pool {
    background: rgba(255,255,255,0.12);
    border: 1px dashed rgba(255,255,255,0.3);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 16px;
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.goal-pool-empty {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-style: italic;
}

.goal-chip {
    background: white;
    color: var(--text-dark);
    border-radius: 24px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: bounceIn 0.5s ease both;
    border: 2px solid transparent;
}

    .goal-chip .gc-emoji {
        font-size: 18px;
    }

    .goal-chip:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow: var(--shadow);
    }

    .goal-chip.selected {
        border-color: var(--om-gold);
        background: #FFF8E1;
        animation: heartbeat 0.8s ease-in-out infinite;
        box-shadow: 0 0 16px rgba(255,215,0,0.6);
    }

.timeline-track {
    position: relative;
    padding: 30px 0 10px;
    margin-bottom: 16px;
}

.timeline-line {
    position: absolute;
    top: 46px;
    left: 8%;
    right: 8%;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.25), rgba(255,255,255,0.45), rgba(255,255,255,0.25));
    border-radius: 2px;
    z-index: 0;
}

.timeline-slots {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.timeline-slot {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.timeline-slot-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.timeline-slot.filled .timeline-slot-dot {
    background: var(--om-lime);
    border-color: white;
    box-shadow: 0 0 14px rgba(141,198,63,0.8);
}

.timeline-slot-label {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;
}

.timeline-slot-box {
    width: 100%;
    min-height: 60px;
    background: rgba(255,255,255,0.15);
    border: 2px dashed rgba(255,255,255,0.35);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

.timeline-slot.active .timeline-slot-box {
    border-color: var(--om-gold);
    background: rgba(255,215,0,0.2);
    animation: glowGold 1.2s ease-in-out infinite;
}

.timeline-slot.filled .timeline-slot-box {
    background: white;
    border: 2px solid var(--om-lime);
    border-style: solid;
    color: var(--text-dark);
}

.timeline-slot-box .slot-emoji {
    font-size: 22px;
    display: block;
    margin-bottom: 2px;
}

.timeline-slot.wrong .timeline-slot-box {
    border-color: var(--om-red);
    background: rgba(209,19,62,0.25);
    animation: shake 0.5s ease;
}

.timeline-hint {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    text-align: center;
    min-height: 40px;
    line-height: 1.4;
}

    .timeline-hint strong {
        color: #FFE866;
    }

/* ============ BOSS LEVEL ============ */
#boss-level {
    background: var(--green-bg);
}

.boss-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.boss-content {
    padding: 18px 18px 120px;
    color: white;
}

/* Choice cards for boss level */
.choice-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.choice-card {
    padding: 13px 14px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 10px;
}

    .choice-card:hover {
        border-color: rgba(255,255,255,0.5);
        background: rgba(255,255,255,0.2);
        transform: translateX(4px);
    }

    .choice-card .choice-indicator {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: 2px solid rgba(255,255,255,0.35);
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        transition: var(--transition);
    }

    .choice-card.correct {
        border-color: var(--om-lime);
        background: rgba(141,198,63,0.25);
    }

        .choice-card.correct .choice-indicator {
            background: var(--om-lime);
            border-color: var(--om-lime);
            color: white;
        }

    .choice-card.wrong {
        border-color: var(--om-red);
        background: rgba(209,19,62,0.2);
        animation: shake 0.5s ease;
    }

        .choice-card.wrong .choice-indicator {
            background: var(--om-red);
            border-color: var(--om-red);
            color: white;
        }

    .choice-card.disabled {
        pointer-events: none;
        opacity: 0.5;
    }

/* ============ MISSION COMPLETE ============ */
.complete-screen {
    text-align: center;
    justify-content: center;
    padding: 36px 24px;
    background: var(--green-bg);
}

.complete-icon {
    font-size: 64px;
    margin-bottom: 14px;
    animation: bounceIn 0.8s ease both, wiggle 1.6s ease-in-out 0.8s infinite;
    display: inline-block;
    filter: drop-shadow(0 0 16px rgba(255,215,0,0.5));
    position: relative;
}

    .complete-icon::before,
    .complete-icon::after {
        content: '\2728';
        position: absolute;
        font-size: 28px;
        animation: twinkleStatic 1.6s ease-in-out infinite;
        text-shadow: 0 0 12px rgba(255,215,0,0.9);
    }

    .complete-icon::before {
        top: -4px;
        left: -34px;
        animation-delay: 0.3s;
    }

    .complete-icon::after {
        top: 4px;
        right: -34px;
        animation-delay: 0.8s;
    }

.complete-screen h1 {
    font-size: 24px;
    font-weight: 900;
    color: white;
    margin-bottom: 4px;
}

.complete-screen .subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
}

.xp-earned-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin: 14px auto;
    max-width: 240px;
    animation: bounceIn 0.8s ease both;
    animation-delay: 0.5s;
    color: var(--text-dark);
}

    .xp-earned-card .xp-number {
        font-size: 38px;
        font-weight: 900;
        color: var(--om-teal);
    }

    .xp-earned-card .xp-label {
        font-size: 12px;
        color: var(--text-secondary);
    }

.mc-progress-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 20px 0 10px;
}

.mc-node {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    transition: all 0.5s ease;
}

    .mc-node.completed {
        background: white;
        border-color: white;
        color: var(--om-teal);
        animation: heartbeat 2s ease-in-out infinite;
    }

    .mc-node.current {
        animation: glowTeal 1.8s ease-in-out infinite;
    }

    .mc-node.current {
        border-color: white;
        color: white;
    }

    .mc-node.locked {
        opacity: 0.4;
    }

.mc-connector {
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

    .mc-connector.filled {
        background: white;
    }

/* ============ REWARDS UNLOCKED ============ */
#rewards-unlocked {
    background: var(--green-bg);
}

.rewards-unlocked-content {
    text-align: center;
    padding-top: 16px;
    color: white;
}

.big-checkmark {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 14px;
    box-shadow: var(--shadow);
    animation: heartbeat 2s ease-in-out infinite, glowGold 2.2s ease-in-out infinite;
    position: relative;
}

    .big-checkmark::before {
        content: '';
        position: absolute;
        inset: -10px;
        border: 2px dashed rgba(255,215,0,0.8);
        border-radius: 50%;
        animation: rotateSlow 10s linear infinite;
    }

.final-quest-card {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius);
    padding: 18px;
    margin: 16px 0;
    text-align: left;
}

    .final-quest-card h3 {
        font-size: 14px;
        font-weight: 700;
        color: white;
        margin-bottom: 6px;
    }

    .final-quest-card p {
        font-size: 13px;
        color: rgba(255,255,255,0.8);
        line-height: 1.5;
    }

.ru-xp-card {
    background: white;
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    color: var(--text-dark);
    text-align: center;
}

    .ru-xp-card h3 {
        font-size: 12px;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .ru-xp-card .xp-amount {
        font-size: 32px;
        font-weight: 900;
        color: var(--om-teal);
    }

    .ru-xp-card .xp-value {
        font-size: 12px;
        color: var(--text-secondary);
    }

.prize-card-green {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    margin-bottom: 14px;
}

    .prize-card-green .trophy {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .prize-card-green h4 {
        font-size: 13px;
        font-weight: 700;
        color: white;
        margin-bottom: 4px;
    }

    .prize-card-green p {
        font-size: 12px;
        color: rgba(255,255,255,0.8);
    }

/* ============ ADVISER ============ */
#adviser .screen-content {
    background: white;
    border-radius: var(--radius) var(--radius) 0 0;
    margin-top: -1px;
}

.adviser-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0;
}

.adviser-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #F5F7FA;
    border-radius: var(--radius-sm);
}

    .adviser-benefit .benefit-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--om-teal), var(--om-green));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex-shrink: 0;
    }

    .adviser-benefit p {
        font-size: 13px;
        color: var(--text-secondary);
    }

.time-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.time-slot {
    padding: 12px;
    text-align: center;
    background: #F5F7FA;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

    .time-slot:hover {
        border-color: var(--om-teal);
    }

    .time-slot.selected {
        border-color: var(--om-teal);
        background: #E8F8F3;
        color: var(--om-teal);
    }

.divider {
    height: 1px;
    background: var(--border-light);
    margin: 16px 0;
}

/* ============ FINAL ============ */
#final {
    background: var(--green-bg);
}

.final-screen {
    text-align: center;
    padding-top: 16px;
    color: white;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0;
    text-align: left;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: white;
}

    .checklist-item .check {
        font-size: 16px;
    }

.voucher-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 14px 0;
}

.voucher-card {
    padding: 16px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: white;
}

    .voucher-card:hover {
        background: rgba(255,255,255,0.22);
        transform: translateY(-2px);
    }

    .voucher-card.selected {
        border-color: white;
        background: rgba(255,255,255,0.25);
    }

    .voucher-card .voucher-icon {
        font-size: 28px;
        margin-bottom: 4px;
    }

    .voucher-card .voucher-logo-wrap {
        height: 48px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .voucher-card .voucher-logo {
        max-height: 44px;
        max-width: 100%;
        object-fit: contain;
        border-radius: 6px;
        background: #fff;
        padding: 4px;
    }

    .voucher-card .voucher-name {
        font-size: 12px;
        font-weight: 700;
    }

    .voucher-card .voucher-value {
        font-size: 11px;
        opacity: 0.7;
    }

    .voucher-card .voucher-stock {
        font-size: 10px;
        margin-top: 4px;
        opacity: 0.65;
        font-weight: 600;
    }

/* ============ VOUCHER CODE SCREEN ============ */
.voucher-code-screen {
    text-align: center;
    padding-top: 24px;
}

.voucher-code-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 22px 18px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-width: 360px;
}

.voucher-code-partner {
    font-size: 16px;
    font-weight: 800;
    color: var(--om-teal);
    margin-bottom: 4px;
}

.voucher-code-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.voucher-code-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.voucher-code-text {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
    padding: 12px;
    background: #F5F7FA;
    border-radius: 10px;
}

.voucher-congrats {
    max-width: 360px;
    margin: 0 auto 20px;
    padding: 14px 16px;
    background: rgba(0, 150, 119, 0.08);
    border: 1px solid rgba(0, 150, 119, 0.18);
    border-radius: 12px;
    text-align: left;
}

.voucher-congrats p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

.form-input[readonly] {
    background: #F5F7FA;
    color: var(--text-secondary);
    cursor: default;
}

/* ============ PROFILE ============ */
#profile .screen-content,
#rewards-page .screen-content {
    background: white;
    border-radius: var(--radius) var(--radius) 0 0;
    margin-top: -1px;
}

.rp-claim-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px;
}

.rp-claim-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--om-teal);
    margin-bottom: 12px;
    text-align: center;
}

.rp-claim-empty p {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

.rp-claim-details {
    text-align: center;
}

.rp-claim-partner {
    font-size: 16px;
    font-weight: 800;
    color: var(--om-teal);
    margin-bottom: 2px;
}

.rp-claim-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.rp-claim-code-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.rp-claim-code {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
    padding: 12px;
    background: #F5F7FA;
    border-radius: 10px;
    color: var(--text);
}

.rp-claim-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--om-teal), var(--om-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 10px;
    color: white;
}

.profile-card {
    background: #F5F7FA;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
}

/* ============ FAQ ============ */
#faq .screen-content {
    background: white;
    border-radius: var(--radius) var(--radius) 0 0;
    margin-top: -1px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: #F5F7FA;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

    .faq-question:hover {
        background: #EEF1F5;
    }

.faq-arrow {
    transition: transform 0.3s ease;
    font-size: 11px;
    color: var(--text-muted);
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 14px 14px;
}

.faq-answer p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============ MISC ============ */
.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mt-16 {
    margin-top: 16px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: white;
    cursor: pointer;
    padding: 4px 0;
    background: none;
    border: none;
    font-family: inherit;
    font-weight: 600;
}

    .back-btn:hover {
        opacity: 0.8;
    }

.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--om-dark);
    color: white;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 200;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
}

    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

/* ============ DANGER BUTTON ============ */
.btn-danger {
    background: white;
    color: var(--om-red);
    border: 2px solid rgba(209,19,62,0.25);
    box-shadow: 0 2px 8px rgba(209,19,62,0.08);
}

    .btn-danger:hover {
        background: #FFF5F7;
        border-color: var(--om-red);
        transform: translateY(-2px);
    }

.btn-danger-solid {
    background: var(--om-red);
    color: white;
    box-shadow: 0 4px 16px rgba(209,19,62,0.3);
}

    .btn-danger-solid:hover {
        transform: translateY(-2px);
    }

/* ============ MODAL ============ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26,26,46,0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

    .modal-backdrop.show {
        display: flex;
        opacity: 1;
    }

.modal {
    background: white;
    border-radius: var(--radius);
    padding: 24px 20px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.show .modal {
    transform: scale(1);
}

.modal-icon {
    font-size: 40px;
    margin-bottom: 10px;
    animation: wiggle 1.2s ease-in-out infinite;
}

.modal h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.modal p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 18px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 481px) {
    .app-container {
        box-shadow: var(--shadow-lg);
    }
}


