/* ==========================================================================
   ZOE GOTUSSO - CYBER MERCH AR STYLES (ROOT)
   ========================================================================== */

:root {
    --color-bg-dark: #08040d;
    --color-bg-panel: rgba(18, 10, 28, 0.65);
    --color-crimson: #8A1538;
    --color-crimson-hover: #a11c45;
    --color-crimson-light: #fef1f3;
    --color-neon-cyan: #00f5ff;
    --color-neon-pink: #ff007f;
    --color-neon-gold: #ffd700;
    --color-neon-green: #39ff14;
    --color-text-main: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-border: rgba(138, 21, 56, 0.25);
    --color-border-cyan: rgba(0, 245, 255, 0.3);

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-neon: 0 0 15px rgba(138, 21, 56, 0.4);
    --shadow-cyan: 0 0 15px rgba(0, 245, 255, 0.4);
    --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* Ambient glow backdrops */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

.glow-primary {
    background: radial-gradient(circle, var(--color-crimson) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.glow-secondary {
    background: radial-gradient(circle, var(--color-neon-cyan) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
}

/* ==========================================================================
   LAYOUT STRUCTURE (SIDEBAR + SMARTPHONE)
   ========================================================================== */

.game-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1100px;
    align-items: center;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .game-container {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 30px;
    }

    .game-sidebar {
        display: none !important;
        /* Hide sidebar on mobile */
    }
}

/* --- LEFT SIDEBAR PANEL --- */
.game-sidebar {
    background: var(--color-bg-panel);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 30px;
    padding: 30px 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 780px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.brand-badge {
    background: linear-gradient(135deg, var(--color-crimson) 0%, #b32d56 100%);
    color: white;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    padding: 6px 14px;
    border-radius: 14px;
    letter-spacing: 1px;
    box-shadow: var(--shadow-neon);
}

.sidebar-brand h2 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #ffd7df 100%);
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 0.8rem;
    color: var(--color-neon-cyan);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.sidebar-intro {
    font-size: 0.85rem;
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* SIMULATED CARD PORTADAS */
.cards-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cards-section h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--color-text-main);
    text-transform: uppercase;
}

.cards-instruction {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-bottom: 8px;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.scan-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.scan-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--color-neon-cyan);
    box-shadow: var(--shadow-cyan);
}

.scan-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.08), transparent);
    transform: skewX(-20deg);
    transition: 0.75s;
    opacity: 0;
}

.scan-card:hover::after {
    left: 120%;
    opacity: 1;
}

.card-art {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.art-ganas {
    background: linear-gradient(135deg, var(--color-crimson) 0%, #20050d 100%);
    border: 1.5px solid var(--color-crimson);
}

.art-maria {
    background: linear-gradient(135deg, #1c3b57 0%, #06101c 100%);
    border: 1.5px solid #1c3b57;
}

.art-monoambiente {
    background: linear-gradient(135deg, #d97706 0%, #451a03 100%);
    border: 1.5px solid #d97706;
}

.card-art::before {
    content: '💿';
    font-size: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease;
}

.art-maria::before {
    content: '🌸';
}

.art-monoambiente::before {
    content: '🏢';
}

.scan-card:hover .card-art::before {
    transform: scale(1.1) rotate(15deg);
}

.card-laser-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--color-neon-cyan);
    box-shadow: 0 0 8px var(--color-neon-cyan);
    top: 0;
    left: 0;
    opacity: 0;
    animation: scanLaserMotion 2s infinite linear;
}

.scan-card:hover .card-laser-line {
    opacity: 1;
}

@keyframes scanLaserMotion {
    0% {
        top: 0%;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0%;
    }
}

.card-label {
    position: absolute;
    bottom: 8px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.75);
    padding: 2px 8px;
    border-radius: 6px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-btn-simulate {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.scan-card:hover .card-btn-simulate {
    color: var(--color-neon-cyan);
}

/* SYSTEM CONTROL FOOTER */
.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.synth-music-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(138, 21, 56, 0.15);
    border-radius: 18px;
    padding: 12px 14px;
}

.music-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.synth-play-btn {
    background: var(--color-crimson);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(138, 21, 56, 0.4);
}

.synth-play-btn:hover {
    transform: scale(1.08);
    background: var(--color-crimson-hover);
    box-shadow: 0 4px 16px rgba(138, 21, 56, 0.6);
}

.music-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

#synth-song-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.synth-progress-track {
    background: rgba(255, 255, 255, 0.1);
    height: 3px;
    border-radius: 1.5px;
    width: 100%;
    overflow: hidden;
}

.synth-progress-fill {
    background: var(--color-neon-cyan);
    height: 100%;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 6px var(--color-neon-cyan);
}

.reset-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 12px;
    color: #e5e7eb;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #fff;
    color: #fff;
}

.reset-icon {
    transition: transform 0.5s ease;
}

.reset-btn:hover .reset-icon {
    transform: rotate(-180deg);
}

/* ==========================================================================
   SMARTPHONE HARDWARE FRAMEWORK
   ========================================================================== */

.smartphone-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.phone-shell {
    background: #150f1f;
    width: 360px;
    height: 760px;
    border-radius: 46px;
    padding: 12px;
    position: relative;
    box-shadow:
        0 30px 60px -15 rgba(0, 0, 0, 0.8),
        0 0 0 4px #261f33,
        0 0 0 10px #3d334d,
        inset 0 4px 6px rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    user-select: none;
    overflow: hidden;
    border: 1.5px solid rgba(138, 21, 56, 0.2);
}

/* Smartphone Notch / Dynamic Island */
.phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 105px;
    height: 24px;
    background: #000;
    border-radius: 12px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.notch-lens {
    width: 8px;
    height: 8px;
    background: #111130;
    border-radius: 50%;
    box-shadow: inset 0 0 2px #fff;
}

.notch-mic {
    width: 40px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 1.5px;
}

/* Status Bar */
.phone-status-bar {
    height: 30px;
    padding: 0 24px 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-main);
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 999;
    position: relative;
}

.status-widgets {
    display: flex;
    gap: 6px;
}

.status-w-icon {
    width: 13px;
    height: 13px;
}

/* Active Screen viewport */
.phone-viewport {
    flex-grow: 1;
    background: #0c0714;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.game-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    animation: viewportTransition 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    background-color: #8A1538;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1.2px, transparent 1.2px);
    background-size: 12px 12px;
}

.game-screen.active {
    display: flex;
}

/* Onboarding States */
.phone-shell.onboarding-active .phone-nav-bar {
    display: none !important;
}

.phone-shell.onboarding-active .phone-home-line {
    display: none !important;
}

/* Welcome Screen */
#scr-welcome {
    background-color: #05020a;
    background-image: none;
    /* remove grid background for welcome screen */
    display: none;
    flex-direction: column;
    height: 100%;
}

#scr-welcome.active {
    display: flex;
}

.welcome-header {
    display: flex;
    justify-content: center;
    padding: 50px 20px 0 20px;
}

.welcome-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: white;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.welcome-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.welcome-orb {
    width: 225px;
    height: 225px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    animation: orbBreathe 4s infinite alternate ease-in-out;
}

.welcome-orb::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 21, 56, 0.95) 0%, rgba(255, 0, 127, 0.4) 50%, transparent 75%);
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
}

.orb-fragmented-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    animation: orbRotate 35s linear infinite;
    filter: drop-shadow(0 0 12px rgba(138, 21, 56, 0.9)) drop-shadow(0 0 4px rgba(255, 0, 127, 0.7));
}

.shard {
    transform-origin: 50px 50px;
    transition: transform 0.5s ease;
    opacity: 0.95;
}

.welcome-orb-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.orb-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 2.5px;
    color: #ff3366;
    text-shadow: 0 0 8px rgba(255, 51, 102, 0.4);
}

.orb-desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #f3f4f6;
    letter-spacing: 0.3px;
}

.welcome-footer {
    padding: 0 24px 44px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.onboarding-btn {
    background: linear-gradient(135deg, #1b6ca8 0%, #2273ac 100%);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 24px;
    padding: 14px 0;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 16px rgba(27, 108, 168, 0.4);
    text-transform: uppercase;
}

.onboarding-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 108, 168, 0.6);
}

.onboarding-btn:active {
    transform: translateY(0);
}

.login-link {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
    text-transform: uppercase;
}

.login-link:hover {
    color: white;
}

/* How It Works Screen */
#scr-how-it-works {
    background-color: #7c0b29;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 2.5px, transparent 2.5px);
    background-size: 18px 18px;
    display: none;
    flex-direction: column;
    height: 100%;
}

#scr-how-it-works.active {
    display: flex;
}

.how-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 20px 20px 20px;
}

.how-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    color: white;
    letter-spacing: 0.5px;
}

.skip-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    text-transform: uppercase;
}

.skip-btn:hover {
    color: white;
    text-decoration: underline;
}

.how-cards-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
    justify-content: center;
}

.how-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.how-card:hover {
    transform: translateY(-2px);
}

.how-card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #8A1538;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(138, 21, 56, 0.08);
    flex-shrink: 0;
}

.how-card-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    line-height: 1.45;
    color: #1f1b24;
}

.how-card-text p {
    margin: 0;
}

.how-card-text strong {
    font-weight: 700;
    color: #000000;
}

.how-footer {
    padding: 20px 20px 44px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.onboarding-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.onboarding-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.onboarding-dots .dot.active {
    background: white;
    width: 14px;
    border-radius: 3px;
}

@keyframes orbBreathe {
    0% {
        transform: scale(0.98);
        box-shadow: 0 0 35px rgba(138, 21, 56, 0.65), inset 0 0 15px rgba(255, 0, 127, 0.2);
    }

    100% {
        transform: scale(1.02);
        box-shadow: 0 0 55px rgba(138, 21, 56, 0.85), inset 0 0 25px rgba(255, 0, 127, 0.4);
    }
}

@keyframes orbRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes viewportTransition {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(6px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.screen-scroll-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 20px 90px 20px;
    /* Padding bottom to prevent navigation overlay cutoff */
}

.screen-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Typography elements */
.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: #fff;
    margin-top: 15px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin-bottom: 16px;
}

/* ==========================================================================
   TAB 1: MISSIONS SCREEN
   ========================================================================== */

.player-profile-header {
    background: linear-gradient(135deg, rgba(138, 21, 56, 0.25) 0%, rgba(18, 10, 28, 0.6) 100%);
    border-bottom: 1.5px solid var(--color-border);
    padding: 44px 20px 14px 20px;
    /* Space top to prevent notch overlay */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-rank {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--color-crimson) 0%, var(--color-neon-pink) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.15rem;
    box-shadow: var(--shadow-neon);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.player-titles h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

#rank-badge {
    font-size: 0.68rem;
    color: var(--color-neon-cyan);
    font-weight: 600;
}

.player-stats {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.stats-label {
    font-size: 0.58rem;
    color: var(--color-text-muted);
    font-weight: bold;
    letter-spacing: 0.5px;
}

.stats-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--color-neon-gold);
    line-height: 1.1;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.3));
}

.xp-container {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-bottom: 1px solid var(--color-border);
}

.xp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.xp-bar-bg {
    background: rgba(255, 255, 255, 0.06);
    height: 6px;
    border-radius: 3px;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.xp-bar-fill {
    background: linear-gradient(90deg, var(--color-crimson) 0%, var(--color-neon-pink) 100%);
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px var(--color-neon-pink);
}

/* Mission cards in list */
.missions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mission-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mission-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(138, 21, 56, 0.3);
}

.mission-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    background: rgba(138, 21, 56, 0.15);
    border: 1px solid rgba(138, 21, 56, 0.25);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mission-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.mission-details h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.mission-details p {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mission-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.mission-reward {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--color-neon-gold);
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.15);
    padding: 1px 6px;
    border-radius: 4px;
}

.mission-type-badge {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--color-neon-cyan);
    background: rgba(0, 245, 255, 0.08);
    border: 1px solid rgba(0, 245, 255, 0.15);
    padding: 1px 6px;
    border-radius: 4px;
}

.mission-type-badge.multiple-choice {
    color: var(--color-neon-pink);
    background: rgba(255, 0, 127, 0.08);
    border: 1px solid rgba(255, 0, 127, 0.15);
}

.mission-status {
    font-size: 0.62rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mission-status.pending {
    color: var(--color-neon-cyan);
}

.mission-status.completed {
    color: var(--color-neon-green);
}

.mission-item.completed {
    border-color: rgba(57, 255, 20, 0.15);
    background: rgba(57, 255, 20, 0.02);
}

.mission-item.completed .mission-icon {
    background: rgba(57, 255, 20, 0.08);
    border-color: rgba(57, 255, 20, 0.2);
}

.btn-goto-scan {
    background: var(--color-crimson);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-goto-scan:hover {
    background: var(--color-crimson-hover);
    transform: translateY(-1px);
}

.mission-item.completed .btn-goto-scan {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
}

.quick-tips-box {
    margin-top: 24px;
    background: rgba(138, 21, 56, 0.06);
    border: 1px dashed var(--color-border);
    border-radius: 20px;
    padding: 16px;
}

.quick-tips-box h5 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: #fff;
    margin-bottom: 6px;
}

.quick-tips-box p {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   TAB 2: AR CAMERA & GAMEPLAY INTERACTION
   ========================================================================== */

.ar-camera-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    flex-grow: 1;
    overflow: hidden;
}

#webcam-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    /* Displayed only when webcam is active */
}

#camera-fallback-canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: #08040d;
}

/* Scan line & grid overlay */
.scanner-overlay-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.laser-scanner-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-neon-cyan);
    box-shadow: 0 0 10px var(--color-neon-cyan), 0 0 20px var(--color-neon-cyan);
    left: 0;
    top: 0;
    animation: scannerLineMotion 3.5s infinite ease-in-out;
}

.laser-vertical-line {
    position: absolute;
    width: 1.5px;
    height: 100%;
    background: rgba(0, 245, 255, 0.08);
    left: 50%;
    top: 0;
}

@keyframes scannerLineMotion {
    0% {
        top: 40px;
    }

    50% {
        top: calc(100% - 40px);
    }

    100% {
        top: 40px;
    }
}

.laser-corners {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 245, 255, 0.4);
    pointer-events: none;
}

.laser-corners.tl {
    top: 50px;
    left: 30px;
    border-right: none;
    border-bottom: none;
}

.laser-corners.tr {
    top: 50px;
    right: 30px;
    border-left: none;
    border-bottom: none;
}

.laser-corners.bl {
    bottom: 80px;
    left: 30px;
    border-right: none;
    border-top: none;
}

.laser-corners.br {
    bottom: 80px;
    right: 30px;
    border-left: none;
    border-top: none;
}

.camera-status-pill {
    position: absolute;
    top: 50px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 20;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-neon-pink);
    border-radius: 50%;
    animation: flashDot 1s infinite alternate;
}

@keyframes flashDot {
    from {
        opacity: 0.3;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 6px var(--color-neon-pink);
    }
}

.scan-prompt-indicator {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(138, 21, 56, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-neon-pink);
    color: #fff;
    padding: 6px 14px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    box-shadow: var(--shadow-neon);
    z-index: 20;
    white-space: nowrap;
    animation: indicatorPulse 2s infinite ease-in-out;
}

@keyframes indicatorPulse {
    0% {
        transform: translate(-50%, 0) scale(1);
        opacity: 0.95;
    }

    50% {
        transform: translate(-50%, -2px) scale(1.02);
        opacity: 1;
        box-shadow: 0 0 18px rgba(138, 21, 56, 0.6);
    }

    100% {
        transform: translate(-50%, 0) scale(1);
        opacity: 0.95;
    }
}

.exit-scanner-btn {
    position: absolute;
    top: 50px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 20;
}

.exit-scanner-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: scale(1.05);
}

/* AR FLOATING AVATAR OF ZOE */
.ar-entity-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 30;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ar-entity-container.active {
    transform: translate(-50%, -50%) scale(1.05);
    pointer-events: auto;
}

/* CSS-Drawn Zoe Avatar with Guitar */
.zoe-avatar-entity {
    width: 80px;
    height: 120px;
    position: relative;
    margin: 0 auto;
    animation: zoeFloating 3s infinite ease-in-out;
}

@keyframes zoeFloating {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1.5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.zoe-hair {
    position: absolute;
    width: 54px;
    height: 52px;
    background: #3c2317;
    /* Brunette */
    border-radius: 20px 20px 10px 10px;
    top: 0;
    left: 13px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.zoe-hair::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 25px;
    background: #3c2317;
    border-radius: 15px 0 10px 0;
    top: 2px;
    left: -5px;
}

.zoe-face {
    position: absolute;
    width: 42px;
    height: 42px;
    background: #ffdbac;
    /* Skin tone */
    border-radius: 50%;
    top: 8px;
    left: 19px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #e0ac69;
}

.zoe-eyes {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    position: relative;
}

.zoe-eyes::before,
.zoe-eyes::after {
    content: '';
    width: 5px;
    height: 5px;
    background: #111;
    border-radius: 50%;
    display: block;
}

.zoe-blush {
    display: flex;
    justify-content: space-between;
    width: 28px;
    position: absolute;
    top: 22px;
}

.zoe-blush::before,
.zoe-blush::after {
    content: '';
    width: 6px;
    height: 4px;
    background: rgba(255, 0, 127, 0.45);
    border-radius: 50%;
}

.zoe-smile {
    width: 10px;
    height: 5px;
    border-bottom: 2px solid #a83232;
    border-radius: 0 0 5px 5px;
    margin-top: 4px;
}

.zoe-body {
    position: absolute;
    width: 36px;
    height: 45px;
    background: linear-gradient(to bottom, #ffd700 0%, #ff4b82 100%);
    border-radius: 12px 12px 6px 6px;
    top: 48px;
    left: 22px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.zoe-guitar {
    position: absolute;
    font-size: 2.2rem;
    left: 36px;
    top: 46px;
    transform: rotate(-15deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    animation: strummingGuitar 0.8s infinite alternate ease-in-out;
}

@keyframes strummingGuitar {
    from {
        transform: rotate(-15deg) scale(1);
    }

    to {
        transform: rotate(-22deg) scale(1.04);
    }
}

.zoe-shadow {
    width: 60px;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    margin-top: 4px;
    filter: blur(2px);
    animation: shadowScaling 3s infinite ease-in-out;
}

@keyframes shadowScaling {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(0.85);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* SPEECH DIALOG BUBBLE */
.zoe-speech-bubble {
    position: absolute;
    left: 50%;
    bottom: 280px;
    transform: translateX(-50%) scale(0);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 10px 14px;
    width: 220px;
    color: #11081a;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 35;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    text-align: center;
}

.zoe-speech-bubble.active {
    transform: translateX(-50%) scale(1);
}

.bubble-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.95);
}

/* QUIZ POPUP CARD */
.quiz-popup-card {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    background: rgba(18, 10, 28, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-top: 1.5px solid var(--color-neon-pink);
    border-radius: 24px;
    padding: 16px;
    z-index: 40;
    transform: translateY(150px);
    opacity: 0;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.quiz-popup-card.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.quiz-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.quiz-badge {
    font-size: 0.6rem;
    font-weight: bold;
    color: var(--color-neon-pink);
    background: rgba(255, 0, 127, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

#quiz-song-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    color: white;
}

.quiz-prompt {
    font-size: 0.8rem;
    color: #e5e7eb;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-opt-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    color: white;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-opt-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.quiz-opt-btn.correct {
    background: rgba(57, 255, 20, 0.12) !important;
    border-color: var(--color-neon-green) !important;
    color: var(--color-neon-green) !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.15);
}

.quiz-opt-btn.incorrect {
    background: rgba(138, 21, 56, 0.15) !important;
    border-color: var(--color-crimson) !important;
    color: var(--color-neon-pink) !important;
}

/* SHAKE ANIMATION FOR QUIZ ON FAILURE */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

/* AR TARGET 2: GOTUSSO COIN */
#ar-vinyl-container {
    top: 40%;
    transition: transform 0.4s ease;
}

.zoe-coin-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    position: relative;
    background: linear-gradient(135deg, #ffd700 0%, #cc9900 100%);
    border: 2px solid #fff;
    box-shadow: var(--shadow-gold), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: coinSpinning 4s infinite linear;
}

@keyframes coinSpinning {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.coin-shimmer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmerSwipe 2s infinite linear;
    pointer-events: none;
}

@keyframes shimmerSwipe {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.coin-rim {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.coin-center-tag {
    width: 32px;
    height: 32px;
    background: var(--color-crimson);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.vinyl-glow-indicator {
    color: var(--color-neon-gold);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
}

/* THROWING PROJECTILE: GUITAR PICK (PÚA HOLOGRÁFICA) */
.guitar-pick-projectile {
    position: absolute;
    width: 54px;
    height: 54px;
    z-index: 50;
    cursor: grab;
    touch-action: none;
    display: none;
    /* Only active during coin capture */
}

.guitar-pick-projectile:active {
    cursor: grabbing;
}

.pick-glow-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--color-neon-cyan);
    box-shadow: var(--shadow-cyan);
    animation: pulseRing 1.5s infinite ease-out;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.pick-shape-wrapper {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.4) 0%, rgba(255, 0, 127, 0.4) 100%);
    backdrop-filter: blur(4px);
    border: 1.5px solid var(--color-neon-cyan);
    clip-path: polygon(50% 0%, 100% 75%, 50% 100%, 0% 75%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.pick-letter {
    color: white;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1rem;
    margin-top: -4px;
    text-shadow: 0 0 6px var(--color-neon-cyan);
}

.launch-hint-banner {
    position: absolute;
    bottom: 120px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px;
    color: var(--color-neon-cyan);
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    z-index: 45;
    display: none;
}

/* ==========================================================================
   TAB 3: REWARDS WIREFRAME (OUTLINE CYBERPUNK)
   ========================================================================== */

.dex-header {
    background: linear-gradient(135deg, rgba(18, 10, 28, 0.6) 0%, rgba(8, 4, 13, 0.9) 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 44px 20px 14px 20px;
}

.dex-stats-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--color-border);
    border-radius: 20px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 12px;
}

.dex-stat-item {
    display: flex;
    flex-direction: column;
}

.dex-stat-lbl {
    font-size: 0.62rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.dex-stat-val {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.3rem;
}

.dex-stat-border {
    width: 1px;
    height: 35px;
    background: var(--color-border);
    margin: 0 16px;
}

.web-store-alert-banner {
    background: rgba(0, 245, 255, 0.04);
    border: 1px solid var(--color-border-cyan);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.alert-icon {
    font-size: 1.1rem;
}

.alert-body strong {
    font-size: 0.75rem;
    color: #fff;
}

.alert-body p {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    line-height: 1.35;
    margin-top: 2px;
}

/* Merch list in outline wireframe */
.reward-wireframe-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reward-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    transition: all 0.3s;
}

.reward-art-outline {
    width: 44px;
    height: 44px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    background: rgba(0, 0, 0, 0.2);
}

.reward-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.reward-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reward-meta h4 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.reward-badge-cost {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-neon-gold);
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.15);
    padding: 1px 6px;
    border-radius: 4px;
}

.reward-item-type {
    font-size: 0.68rem;
    color: var(--color-text-muted);
}

.reward-progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.reward-progress-track {
    background: rgba(255, 255, 255, 0.05);
    height: 4px;
    border-radius: 2px;
    flex-grow: 1;
    overflow: hidden;
}

.reward-progress-fill {
    height: 100%;
    background: var(--color-border);
    width: 0%;
    transition: width 0.5s ease-out;
}

.reward-progress-text {
    font-size: 0.6rem;
    color: var(--color-text-muted);
    font-weight: 600;
    min-width: 58px;
    text-align: right;
}

.reward-action-link {
    grid-column: 1 / span 2;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-align: center;
    text-decoration: none;
    transition: all 0.25s;
    pointer-events: none;
    /* Disabled until credits cost reached */
}

/* Custom visual unlocked states */
.reward-card.unlocked-web {
    background: rgba(138, 21, 56, 0.02);
    border: 1.5px solid rgba(0, 245, 255, 0.25);
    box-shadow: inset 0 0 10px rgba(0, 245, 255, 0.02);
}

.reward-card.unlocked-web .reward-art-outline {
    border-style: solid;
    border-color: var(--color-neon-cyan);
    box-shadow: var(--shadow-cyan);
    background: rgba(0, 245, 255, 0.05);
}

.reward-card.unlocked-web .reward-progress-fill {
    background: var(--color-neon-cyan);
    box-shadow: 0 0 6px var(--color-neon-cyan);
}

.reward-card.unlocked-web .reward-action-link {
    background: linear-gradient(135deg, var(--color-crimson) 0%, #b32d56 100%);
    border-color: var(--color-neon-pink);
    color: white;
    box-shadow: var(--shadow-neon);
}

.reward-card.unlocked-web .reward-action-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(138, 21, 56, 0.6);
}

/* ==========================================================================
   SMARTPHONE NAVIGATION TAB BAR
   ========================================================================== */

.phone-nav-bar {
    height: 60px;
    background: rgba(18, 10, 28, 0.85);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    position: relative;
    z-index: 100;
}

.phone-nav-item {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.25s;
}

.phone-nav-item span {
    font-size: 0.62rem;
    font-weight: 500;
}

.phone-nav-icon {
    width: 20px;
    height: 20px;
}

.phone-nav-item.active {
    color: var(--color-neon-pink);
}

.phone-nav-item.active .phone-nav-icon {
    filter: drop-shadow(0 0 4px var(--color-neon-pink));
}

.phone-nav-item.center-ar {
    position: relative;
    top: -12px;
}

.ar-nav-glow {
    background: linear-gradient(135deg, var(--color-crimson) 0%, var(--color-neon-pink) 100%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 18px rgba(255, 0, 127, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phone-nav-item.center-ar:hover .ar-nav-glow {
    transform: scale(1.08);
}

.phone-nav-icon.white {
    color: white;
}

.phone-home-line {
    height: 18px;
    background: rgba(18, 10, 28, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 6px;
    cursor: pointer;
    z-index: 100;
}

.phone-home-line::before {
    content: '';
    width: 110px;
    height: 5px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2.5px;
    transition: background-color 0.2s;
}

.phone-home-line:hover::before {
    background: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   UI OVERLAYS: CONFETTI CANVAS, TOAST, MODAL
   ========================================================================== */

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    display: none;
}

.toast-popup {
    position: absolute;
    bottom: 84px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 900;
    pointer-events: none;
    white-space: nowrap;
}

.toast-popup.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* Success Modal Overlay */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 4, 13, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: rgba(18, 10, 28, 0.95);
    border: 1.5px solid var(--color-border);
    border-top: 3px solid var(--color-neon-cyan);
    border-radius: 32px;
    padding: 30px 20px;
    width: 85%;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-trophy {
    font-size: 3.2rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
    display: block;
    margin-bottom: 12px;
    animation: trophyBounce 1.2s infinite alternate ease-in-out;
}

@keyframes trophyBounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-8px);
    }
}

.modal-card h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #fff 0%, var(--color-neon-cyan) 100%);
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.modal-card p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin-bottom: 20px;
}

.modal-card strong {
    color: white;
}

.modal-btn {
    background: linear-gradient(135deg, var(--color-crimson) 0%, #b32d56 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 12px 20px;
    width: 100%;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-neon);
}

.modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(138, 21, 56, 0.6);
}

/* Flash overlay on successful scan */
.camera-flash-overlay {
    pointer-events: none;
}

/* ==========================================================================
   NUEVOS WIREFRAMES Y CONTROLES DE LA APP
   ========================================================================== */

.btn-blue {
    background: #1b6ca8;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(27, 108, 168, 0.4);
    text-align: center;
    display: block;
    outline: none;
}

.btn-blue:hover {
    background: #2273ac;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(27, 108, 168, 0.6);
}

.btn-blue:active {
    transform: translateY(0);
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 44px 20px 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

.nav-header-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.back-arrow {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: transform 0.2s;
}

.back-arrow:hover {
    transform: scale(1.1);
}

/* --- REGISTRO DE PERFIL --- */
.register-form-container {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
    justify-content: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-input {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    width: 100%;
    outline: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.form-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: white;
    margin: 4px 0 10px 0;
    cursor: pointer;
}

.form-checkbox-row input {
    cursor: pointer;
}

.register-login-link {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
}

.register-login-link:hover {
    color: white;
    text-decoration: underline;
}

/* --- INICIO (HOME) --- */
.home-greeting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 44px 20px 14px 20px;
}

.home-greeting-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.home-settings-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
}

.points-card {
    background: #ffffff;
    color: #000000;
    border-radius: 24px;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.points-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.points-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8A1538;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.points-value {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 900;
    color: #000000;
    line-height: 1;
}

.points-grid-icon {
    display: grid;
    grid-template-columns: repeat(4, 5px);
    gap: 3px;
}

.points-grid-dot {
    width: 5px;
    height: 5px;
    background-color: #8A1538;
    border-radius: 50%;
}

.home-scan-btn-wrapper {
    margin-bottom: 24px;
}

.white-list-container-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 16px;
}

.white-list-header {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.white-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.white-list-item {
    background: #ffffff;
    color: #000000;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.white-list-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.white-list-title {
    font-weight: 700;
    font-size: 0.8rem;
    color: #000000;
}

.white-list-sub {
    font-size: 0.65rem;
    color: #666666;
}

.white-list-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    color: #8A1538;
}

/* --- DETECCIÓN DE CÓDIGO (AVATAR ZOE) --- */
.avatar-scanned-container {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
}

.avatar-photo-frame {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-photo {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    border: 3px solid white;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.avatar-dots-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    pointer-events: none;
    z-index: 1;
}

.avatar-dots-grid::before {
    content: '';
    grid-column: 1 / span 5;
    grid-row: 1 / span 5;
    background-image: radial-gradient(circle, #ffffff 3px, transparent 3px);
    background-size: 32px 32px;
}

.scanned-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.15rem;
    color: white;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.scanned-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.45;
    margin-bottom: 30px;
    max-width: 250px;
}

/* --- TRIVIA EN PANTALLA COMPLETA --- */
.quiz-full-container {
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.quiz-question-box {
    text-align: center;
    color: white;
}

.quiz-question-label {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.quiz-question-text {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 30px;
}

.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.quiz-option-item {
    background: #ffffff;
    color: #000000;
    border-radius: 20px;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: none;
    width: 100%;
    outline: none;
}

.quiz-option-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.quiz-option-item.selected {
    background: #111111;
    color: #ffffff;
}

/* --- RESULTADO / EXITO --- */
.success-full-container {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
}

.success-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.success-boxes-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-bottom: 40px;
}

.success-box {
    background: #ffffff;
    color: #000000;
    border-radius: 22px;
    padding: 16px 24px;
    font-weight: 800;
    font-size: 0.95rem;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-box.highlight {
    background: #ffffff;
    color: #8A1538;
    border: 2.5px solid #8A1538;
}

/* --- SUBTABS DE RECOMPENSAS --- */
.rewards-subtabs {
    display: flex;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.08);
}

.rewards-subtab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-transform: uppercase;
}

.rewards-subtab-btn.active {
    color: white;
    border-bottom: 3px solid white;
}

/* --- PERFIL / MIS PUNTOS --- */
.profile-scroll-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.profile-header-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar-large {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #1b6ca8;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    border: 3.5px solid white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.profile-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: white;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-email {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

.profile-achievements-title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-badge-item {
    background: #ffffff;
    color: #000000;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.profile-badge-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-badge-icon {
    font-size: 1.3rem;
}

.profile-badge-details {
    display: flex;
    flex-direction: column;
}

.profile-badge-name {
    font-weight: 700;
    font-size: 0.78rem;
}

.profile-badge-status {
    font-size: 0.62rem;
    font-weight: bold;
    text-transform: uppercase;
}

.profile-badge-item.unlocked .profile-badge-status {
    color: #2e7d32;
}

.profile-badge-item.locked {
    opacity: 0.5;
}

.profile-badge-item.locked .profile-badge-status {
    color: #666;
}

/* --- HISTORIAL DE ACTIVIDAD --- */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    background: #ffffff;
    color: #000000;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.history-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8A1538;
    flex-shrink: 0;
}

.history-details {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    gap: 2px;
}

.history-text {
    font-size: 0.78rem;
    font-weight: 700;
}

.history-date {
    font-size: 0.65rem;
    color: #666666;
}

.history-points {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.85rem;
}

.history-points.plus {
    color: #2e7d32;
}

.history-points.minus {
    color: #c62828;
}

/* ==========================================================================
   NUEVAS PANTALLAS WIREFRAME (COMPLEMENTARIAS)
   ========================================================================== */

/* --- NUEVA PISTA DESBLOQUEADA --- */
.nueva-pista-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
    gap: 24px;
    position: relative;
}

.nueva-pista-close {
    position: absolute;
    top: 44px;
    left: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: transform 0.2s;
}

.nueva-pista-close:hover {
    transform: scale(1.1);
}

.nueva-pista-icon-box {
    width: 140px;
    height: 140px;
    background: #ffffff;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nueva-pista-icon-box svg {
    width: 80px;
    height: 80px;
    color: #000;
}

.nueva-pista-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: white;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.nueva-pista-quote {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    line-height: 1.5;
    max-width: 240px;
    padding: 0 10px;
}

/* --- MI PERFIL ACTUALIZADO --- */
.profile-menu-header {
    display: flex;
    align-items: center;
    padding: 44px 20px 14px 20px;
}

.profile-menu-hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    margin-right: 12px;
}

.profile-menu-hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.profile-user-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.profile-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
}

.profile-user-info {
    display: flex;
    flex-direction: column;
}

.profile-user-name {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.35rem;
    color: white;
}

.profile-user-level {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.profile-puntos-card {
    background: white;
    border-radius: 20px;
    padding: 18px 24px;
    margin: 0 20px 16px 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.profile-puntos-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8A1538;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.profile-puntos-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #000;
    display: block;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 16px;
}

.profile-stat-box {
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.profile-stat-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: #8A1538;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.profile-stat-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: #000;
    display: block;
}

.profile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}

.profile-menu-item {
    background: white;
    border-radius: 20px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.profile-menu-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.profile-menu-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-menu-item-left svg {
    width: 20px;
    height: 20px;
    color: #8A1538;
    flex-shrink: 0;
}

.profile-menu-item-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
}

.profile-menu-item-arrow {
    color: #8A1538;
    font-size: 1rem;
    font-weight: 700;
}

/* --- HISTORIAL ACTUALIZADO --- */
.history-item-v2 {
    background: #ffffff;
    color: #000000;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.history-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background: transparent;
}

.history-icon-circle svg {
    width: 18px;
    height: 18px;
    color: #000;
}

.history-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.history-item-action {
    font-size: 0.82rem;
    font-weight: 700;
    color: #000;
}

.history-item-pts {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2e7d32;
}

.history-item-date {
    font-size: 0.65rem;
    color: #666;
}

.history-item-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: #000;
    white-space: nowrap;
    text-align: right;
}

/* --- CÓMO USAR LA APP (PASOS CONECTADOS) --- */
.como-usar-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: white;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 50px 30px 10px 30px;
}

.como-usar-steps {
    display: flex;
    flex-direction: column;
    padding: 20px 30px 30px 30px;
    flex-grow: 1;
    justify-content: center;
}

.como-usar-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    position: relative;
}

.como-usar-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 48px;
    width: 2px;
    height: calc(100% - 8px);
    background: rgba(255, 255, 255, 0.4);
}

.como-usar-step-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 1;
}

.como-usar-step-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.como-usar-step-text {
    padding-top: 10px;
    padding-bottom: 32px;
    flex-grow: 1;
}

.como-usar-step-text p {
    font-size: 0.9rem;
    color: white;
    line-height: 1.4;
    font-weight: 500;
}

/* --- BASES Y CONDICIONES --- */
.bases-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bases-header {
    display: flex;
    align-items: center;
    padding: 44px 0 0 0;
    margin-bottom: 20px;
}

.bases-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: white;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
    width: 100%;
    padding: 0 20px;
    margin-bottom: 24px;
}

.bases-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
    overflow-y: auto;
}

.bases-list::-webkit-scrollbar {
    display: none;
}

.bases-item {
    font-size: 0.82rem;
    color: white;
    line-height: 1.5;
    padding-left: 6px;
}

.bases-item strong {
    font-weight: 700;
}

.bases-btn-wrapper {
    padding: 16px 0;
    flex-shrink: 0;
}

/* --- RECOMPENSAS v2 --- */
.rewards-v2-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reward-v2-item {
    background: white;
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.reward-v2-item:hover {
    transform: translateY(-2px);
}

.reward-v2-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(138, 21, 56, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.reward-v2-name {
    flex-grow: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
}

.reward-v2-pts {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    color: #8A1538;
    white-space: nowrap;
}

.rewards-v2-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 0 20px;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* --- RESULTADO/FELICITACIONES ACTUALIZADO --- */
.success-check-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    background: transparent;
}

.success-check-icon svg {
    width: 56px;
    height: 56px;
    color: white;
}

.success-sumaste-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
    text-align: center;
}

.success-puntos-gained {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    color: white;
    text-align: center;
    display: block;
    margin-bottom: 20px;
}

.success-total-card {
    background: white;
    border-radius: 20px;
    padding: 16px 24px;
    width: 100%;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    margin-bottom: 32px;
}

.success-total-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.success-total-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: #000;
    display: block;
}

@media (max-width: 900px) {

    body {
        padding: 0;
    }

    .game-container {
        max-width: 100%;
        width: 100%;
        padding: 0;
        gap: 0;
    }

    .smartphone-container {
        width: 100%;
        height: 100vh;
    }

    .phone-shell {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .phone-notch,
    .phone-status-bar,
    .phone-home-line {
        display: none !important;
    }

    .phone-viewport {
        border-radius: 0;
        width: 100%;
        height: 100%;
    }
}