/* ═══════════════════════════════════════════════════════════
   THE GAME — Recruitment Tool
   Design System: Emerald Signal + Plus Jakarta Sans
   ═══════════════════════════════════════════════════════════ */

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

:root {
    --bg-deep: #06080f;
    --bg-surface: #0d1117;
    --bg-card: rgba(255, 255, 255, 0.06);
    --bg-card-hover: rgba(255, 255, 255, 0.10);
    --border-subtle: rgba(255, 255, 255, 0.18);
    --text-primary: #ffffff;
    --text-secondary: #c8cdd3;
    --text-dim: #8b929a;
    --accent-primary: #38bdf8;
    --accent-green: #34d399;
    --accent-violet: #a78bfa;
    --accent-amber: #fbbf24;
    --accent-rose: #fb7185;
    --glow-primary: 0 0 40px rgba(56, 189, 248, 0.12);
    --glow-green: 0 0 30px rgba(52, 211, 153, 0.15);
    --glow-violet: 0 0 30px rgba(167, 139, 250, 0.15);
    --font-display: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-mono: 'Space Mono', monospace;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.bg-grid {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none; z-index: 0;
}

/* ─── SCREENS ─── */
.screen {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: flex-start; justify-content: center;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 3rem 0;
}
.screen.active {
    opacity: 1;
    pointer-events: auto;
}
#screen-hook {
    align-items: center;
    padding: 0;
}
.screen-content {
    position: relative; z-index: 2;
    max-width: 640px; width: 100%;
    padding: 2rem;
}

/* ─── HOOK SCREEN ─── */
.hook-content { text-align: center; }
.hook-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.15);
    padding: 0.4rem 1rem; border-radius: 100px;
    margin-bottom: 2rem;
}
.tag-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-primary);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

.hook-headline {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800; letter-spacing: -0.03em;
    line-height: 1.1; margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #c8cdd3 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hook-sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem; font-weight: 400;
}
.btn-play {
    display: inline-flex; align-items: center; gap: 0.75rem;
    background: var(--accent-primary);
    color: var(--bg-deep); font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
    padding: 1rem 2.5rem; border-radius: 100px;
    border: none; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: var(--glow-primary);
}
.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.25);
}
.btn-play:active { transform: translateY(0); }
.btn-arrow { font-size: 1.3rem; transition: transform 0.2s; }
.btn-play:hover .btn-arrow { transform: translateX(4px); }
.hook-fine {
    margin-top: 1rem; font-size: 0.8rem;
    color: var(--text-dim);
}

/* ─── ARLO CHAT ─── */
.arlo-chat {
    display: flex; gap: 1rem; align-items: flex-start;
    margin-bottom: 2rem;
}
.arlo-avatar {
    width: 44px; height: 44px; min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-violet));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem; color: #fff;
}
.arlo-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 0 16px 16px 16px;
    padding: 1.25rem 1.5rem;
    font-size: 1rem; line-height: 1.6;
    color: var(--text-secondary);
    min-height: 60px;
}
.arlo-bubble .arlo-name {
    color: var(--accent-primary);
    font-weight: 700; font-size: 0.85rem;
    display: block; margin-bottom: 0.5rem;
}

/* ─── PROFILE OPTIONS ─── */
.option-label {
    font-size: 1.1rem; font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.option-btn {
    display: block; width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.95rem; font-weight: 500;
    cursor: pointer; text-align: left;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}
.option-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateX(4px);
}

/* ─── XP BAR ─── */
.xp-bar {
    position: fixed; top: 1.25rem; right: 1.5rem;
    z-index: 100;
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(6, 8, 15, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    padding: 0.5rem 1rem;
}
.xp-label {
    font-family: var(--font-mono);
    font-size: 0.7rem; font-weight: 700;
    color: var(--accent-amber);
    letter-spacing: 0.05em;
}
.xp-count {
    font-family: var(--font-mono);
    font-size: 0.9rem; font-weight: 700;
    color: var(--text-primary);
    min-width: 30px; text-align: right;
}
.xp-pop {
    animation: xpPop 0.4s ease;
}
@keyframes xpPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); color: var(--accent-amber); }
    100% { transform: scale(1); }
}

/* ─── MISSION CARDS ─── */
.mission-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.mission-header {
    font-family: var(--font-mono);
    font-size: 0.7rem; font-weight: 400;
    color: var(--accent-primary);
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    display: flex; flex-direction: column; gap: 0.25rem;
}
.mission-header span { display: block; }
.mission-title {
    font-size: 1.3rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.mission-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}
.mission-xp-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 100px;
    padding: 0.3rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.72rem; font-weight: 700;
    color: var(--accent-amber);
}

/* ─── CARRIER SELECTION ─── */
.carrier-grid {
    display: grid; gap: 0.75rem;
    margin: 1.5rem 0;
}
.carrier-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}
.carrier-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}
.carrier-card.selected {
    border-color: var(--accent-green);
    background: rgba(52, 211, 153, 0.08);
}
.carrier-name {
    font-weight: 700; font-size: 1rem;
    margin-bottom: 0.25rem;
}
.carrier-detail {
    font-size: 0.8rem; color: var(--text-dim);
}
.carrier-check {
    float: right; font-size: 1.2rem;
    color: var(--accent-green);
    display: none;
}
.carrier-card.selected .carrier-check { display: inline; }

/* ─── ARLO INLINE ─── */
.arlo-inline {
    display: flex; gap: 0.75rem; align-items: flex-start;
    margin: 1.5rem 0;
}
.arlo-inline .arlo-avatar { width: 36px; height: 36px; min-width: 36px; font-size: 0.9rem; border-radius: 10px; }
.arlo-inline-text {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 0 12px 12px 12px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem; line-height: 1.5;
    color: var(--text-secondary);
}

/* ─── EARNINGS TICKER ─── */
.earnings-ticker {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.15);
    border-radius: 12px;
}
.earnings-label {
    font-size: 0.75rem; font-family: var(--font-mono);
    color: var(--accent-green); letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}
.earnings-amount {
    font-size: 2rem; font-weight: 800;
    color: var(--accent-green);
    font-family: var(--font-mono);
}

/* ─── INCOME SELECTOR ─── */
.income-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.75rem; margin: 1.5rem 0;
}
@media (max-width: 480px) { .income-grid { grid-template-columns: 1fr; } }
.income-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer; text-align: center;
    transition: all 0.2s;
}
.income-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}
.income-card.selected {
    border-color: var(--accent-green);
    background: rgba(52, 211, 153, 0.08);
}
.income-amount {
    font-size: 1.1rem; font-weight: 700;
    margin-bottom: 0.25rem;
}
.income-level {
    font-size: 0.75rem; color: var(--text-dim);
    font-family: var(--font-mono);
}

/* ─── SCHEDULE PREVIEW ─── */
.schedule-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}
.schedule-title {
    font-size: 0.75rem; font-family: var(--font-mono);
    color: var(--accent-primary); letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.schedule-row {
    display: flex; justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-day { font-weight: 600; min-width: 80px; }
.schedule-task { color: var(--text-secondary); flex: 1; text-align: left; padding-left: 1rem; }
.schedule-xp {
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--accent-amber); min-width: 50px; text-align: right;
}

/* ─── VEHICLE PULL ─── */
.vehicle-content { text-align: center; }
.vehicle-mystery {
    width: 140px; height: 140px;
    margin: 0 auto 2rem;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
    animation: vehiclePulse 1.5s ease-in-out infinite;
}
@keyframes vehiclePulse {
    0%,100% { border-color: var(--border-subtle); box-shadow: none; }
    50% { border-color: var(--accent-primary); box-shadow: var(--glow-primary); }
}
.vehicle-revealed {
    animation: vehicleReveal 0.6s ease forwards;
}
@keyframes vehicleReveal {
    0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(3deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}
.vehicle-name {
    font-size: 1.5rem; font-weight: 800;
    margin-bottom: 0.25rem;
}
.vehicle-class {
    font-size: 0.85rem; color: var(--text-dim);
    margin-bottom: 1rem;
}
.vehicle-brand {
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--accent-primary); letter-spacing: 0.08em;
}
.vehicle-stats {
    display: flex; justify-content: center; gap: 1.5rem;
    margin: 1.5rem 0;
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--text-dim);
}
.vehicle-rarity-bar {
    display: flex; align-items: center; gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
    font-family: var(--font-mono); font-size: 0.7rem;
}
.rarity-dot {
    width: 10px; height: 10px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
}
.rarity-dot.active { border: none; }
.rarity-common { background: #9ca3af; }
.rarity-rare { background: #3b82f6; }
.rarity-epic { background: #8b5cf6; }
.rarity-legendary { background: #f59e0b; }
.rarity-label { color: var(--text-dim); margin: 0 0.25rem; }
.vehicle-carryover {
    font-size: 0.85rem; color: var(--text-secondary);
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 12px;
}

/* ─── SCOREBOARD ─── */
.scoreboard-section {
    margin: 1.5rem 0;
}
.scoreboard-title {
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--accent-primary); letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.leaderboard-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.leaderboard-row.you {
    border-color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.08);
}
.lb-rank { font-weight: 700; min-width: 24px; color: var(--text-dim); }
.lb-name { flex: 1; }
.lb-vehicle { font-size: 1.2rem; }
.lb-xp {
    font-family: var(--font-mono); font-size: 0.8rem;
    color: var(--accent-amber);
}

.tier-preview {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem; margin: 1rem 0;
}
.tier-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
}
.tier-emoji { font-size: 1.5rem; margin-bottom: 0.25rem; }
.tier-name {
    font-size: 0.65rem; font-family: var(--font-mono);
    color: var(--text-dim); letter-spacing: 0.05em;
}

/* ─── MONEY SCREEN ─── */
.money-headline {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800; letter-spacing: -0.02em;
    margin-bottom: 2rem; text-align: center;
}
.money-grid {
    display: grid; gap: 1rem;
    margin-bottom: 2rem;
}
.money-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
}
.money-card.highlight {
    border-color: var(--accent-green);
    background: rgba(52, 211, 153, 0.06);
}
.money-tier {
    font-size: 0.72rem; font-family: var(--font-mono);
    color: var(--text-dim); letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.money-range {
    font-size: 1.8rem; font-weight: 800;
    margin-bottom: 0.25rem;
}
.money-detail {
    font-size: 0.8rem; color: var(--text-secondary);
}
.money-note {
    font-size: 0.75rem; color: var(--text-dim);
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ─── CTA SCREEN ─── */
.cta-content { text-align: center; }
.cta-headline {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 800; letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.cta-sub {
    font-size: 0.95rem; color: var(--text-secondary);
    margin-bottom: 2.5rem;
}
.cta-buttons {
    display: grid; gap: 0.75rem;
    max-width: 400px; margin: 0 auto;
}
.cta-btn-primary {
    display: block; width: 100%;
    background: var(--accent-green);
    color: var(--bg-deep);
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 700;
    padding: 1.1rem 2rem;
    border-radius: 100px; border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: var(--glow-green);
    text-decoration: none; text-align: center;
}
.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(52, 211, 153, 0.3);
}
.cta-btn-secondary {
    display: block; width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.95rem; font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none; text-align: center;
}
.cta-btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}
.cta-disclaimer {
    margin-top: 2rem;
    font-size: 0.7rem; color: var(--text-dim);
    line-height: 1.5;
}

/* ─── CONTINUE BUTTON (reusable) ─── */
.btn-continue {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--accent-primary);
    color: var(--bg-deep);
    font-family: var(--font-display);
    font-size: 0.95rem; font-weight: 600;
    padding: 0.8rem 1.75rem;
    border-radius: 100px; border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    margin-top: 1.5rem;
}
.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

/* ─── FADE IN UTILITY ─── */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.2s; opacity: 0; }
.delay-2 { animation-delay: 0.4s; opacity: 0; }
.delay-3 { animation-delay: 0.6s; opacity: 0; }
.delay-4 { animation-delay: 0.8s; opacity: 0; }

/* ─── MOBILE ─── */
@media (max-width: 640px) {
    .screen-content { padding: 1.25rem; }
    .arlo-bubble { padding: 1rem; font-size: 0.9rem; }
    .mission-card { padding: 1.25rem; }
    .vehicle-mystery { width: 120px; height: 120px; font-size: 3rem; }
    .tier-preview { grid-template-columns: repeat(2, 1fr); }
}
