:root {
    --bg-base: #0b0e14;
    --bg-surface: rgba(22, 27, 34, 0.7);
    --neon-blue: #00e5ff;
    --neon-blue-dark: #0070f3;
    --neon-green: #00ff66;
    --neon-purple: #7928ca;
    --neon-red: #ff0055;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --font-display: 'Orbitron', sans-serif;
    --font-retro: 'Press Start 2P', cursive;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    background-color: #050505;
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.mobile-wrapper {
    position: relative;
    width: 100%;
    max-width: 414px;
    height: 100vh;
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 112, 243, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(121, 40, 202, 0.1) 0%, transparent 40%);
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.1);
}

@media (min-width: 450px) {
    .mobile-wrapper {
        height: 850px;
        max-height: 95vh;
        border-radius: 30px;
        border: 8px solid #111;
        box-shadow: 0 0 30px rgba(0, 229, 255, 0.15), 0 0 0 2px #333;
    }
    .mobile-wrapper::-webkit-scrollbar {
        width: 6px;
    }
    .mobile-wrapper::-webkit-scrollbar-thumb {
        background: var(--neon-blue);
        border-radius: 6px;
    }
}

/* Master Overlay */
#master-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#master-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.locked-scroll {
    overflow: hidden !important;
    height: 100vh;
}

/* Hero Video Backing */
#heroVideo {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: all 1s ease;
}

.video-blur {
    opacity: 0.3;
    filter: blur(5px);
}

.hidden-until-play {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
    z-index: 2;
    position: relative;
}

.show-content {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.hidden {
    display: none !important;
}

.progress-bar-container {
    width: 60%;
    height: 10px;
    background: #333;
    border-radius: 5px;
    margin: 20px 0;
    border: 1px solid var(--neon-blue);
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    transition: width 0.2s ease;
}

.glow-btn {
    font-family: var(--font-retro);
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,229,255,0.5);
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.glow-btn:hover {
    background: var(--neon-blue);
    color: #000;
}

.enter-btn {
    font-size: 1.5rem;
    padding: 20px 40px;
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0,255,102,0.5);
    animation: pulseGlowGreen 2s infinite;
}

.enter-btn:hover {
    background: var(--neon-green);
    color: #000;
}

@keyframes pulseGlowGreen {
    0% { box-shadow: 0 0 10px rgba(0,255,102,0.5); }
    50% { box-shadow: 0 0 25px rgba(0,255,102,0.8); }
    100% { box-shadow: 0 0 10px rgba(0,255,102,0.5); }
}

.neon-pulse {
    animation: neonPulse 1.5s infinite alternate;
}

@keyframes neonPulse {
    from { opacity: 0.7; text-shadow: 0 0 5px var(--neon-blue); }
    to { opacity: 1; text-shadow: 0 0 20px var(--neon-blue); }
}

.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.15));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
}

.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255,255,255,0.05);
}

h1, h2, h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    margin-top: 0;
}

.retro-title {
    font-family: var(--font-retro);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(121, 40, 202, 0.3);
}

.neon-text {
    color: var(--neon-blue);
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue-dark);
}

main {
    padding: 0 1rem 3rem 1rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

section {
    margin-bottom: 3rem;
}

/* Scroll Warning */
.scroll-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neon-blue);
    color: var(--text-main);
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.scroll-warning.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}
.bounce {
    display: inline-block;
    animation: bounce 2s infinite;
    color: var(--neon-blue);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem 2rem 1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    z-index: 10;
}

.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    background: #000;
    border: 2px solid #333;
    border-radius: 20px;
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(11,14,20,0.2), rgba(11,14,20,0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    font-family: var(--font-retro);
    font-size: 0.8rem;
    background: var(--neon-blue-dark);
    color: #fff;
    border: 2px solid var(--neon-blue);
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 15px var(--neon-blue);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px var(--neon-blue); }
    50% { box-shadow: 0 0 25px var(--neon-blue), 0 0 10px #fff; }
    100% { box-shadow: 0 0 10px var(--neon-blue); }
}

.console-decorations {
    position: absolute;
    bottom: 10px;
    left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    opacity: 0.3;
    pointer-events: none;
}
.console-decorations span { font-size: 1.2rem; margin: 0 2px; }
.btn-triangle { color: var(--neon-green); }
.btn-circle { color: var(--neon-red); }
.btn-cross { color: var(--neon-blue); }
.btn-square { color: var(--neon-purple); }

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    font-family: var(--font-retro);
    font-size: 0.6rem;
    color: var(--neon-green);
    background: rgba(0, 255, 102, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--neon-green);
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.player-name {
    font-size: 3.5rem;
    margin: 0 0 1rem 0;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
    font-style: italic;
}

.info-card {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    font-size: 0.95rem;
}

.info-item .icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px var(--neon-blue));
}

.scroll-down-btn {
    position: absolute;
    bottom: 2rem;
    background: none;
    border: none;
    color: var(--neon-blue);
    font-size: 2rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    text-shadow: 0 0 10px var(--neon-blue);
    transition: opacity 0.5s ease;
}

.scroll-down-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Actions */
.actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.arcade-btn {
    background: rgba(22, 27, 34, 0.8);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.arcade-btn:active {
    transform: scale(0.98) translateY(2px);
    box-shadow: 0 2px 3px rgba(0,0,0,0.3);
}

.arcade-btn.primary {
    background: linear-gradient(135deg, var(--neon-blue-dark), #005bb5);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* Countdown */
.timer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-box span {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.time-box label {
    font-family: var(--font-retro);
    font-size: 0.5rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.xp-bar-container {
    padding: 15px;
}

.xp-bar {
    height: 10px;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.xp-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
    box-shadow: 0 0 10px var(--neon-green);
    transition: width 1s linear;
}

.xp-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
    font-family: var(--font-display);
}

/* Quiz */
.quiz-container {
    padding: 2rem;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
}

.hp-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hp-bar {
    width: 100px;
    height: 10px;
    background: #333;
    border: 1px solid #555;
}

.hp-fill {
    height: 100%;
    width: 100%;
    background: var(--neon-green);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.score {
    color: var(--neon-blue);
}

.quiz-step {
    display: none;
}
.quiz-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.quiz-step h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.option-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    padding: 12px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: rgba(255,255,255,0.1);
}

.option-btn.correct {
    background: rgba(0, 255, 102, 0.2);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.option-btn.wrong {
    background: rgba(255, 0, 85, 0.2);
    border-color: var(--neon-red);
    color: var(--neon-red);
}

.result {
    text-align: center;
}
.result h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Location */
.location-card {
    padding: 1.5rem;
}

.address-text {
    text-align: center;
    margin-bottom: 1.5rem;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.map-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.map-btn {
    flex: 1;
    display: block;
    text-align: center;
    padding: 12px 5px;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
}

.map-btn.gmaps { background: #4285F4; }
.map-btn.waze { background: #33ccff; color: #000; }

/* Elements Flutuantes */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 5; /* Fica atrás do conteúdo (main z-index: 10) e na frente do fundo */
    overflow: hidden;
}

.float-item {
    position: absolute;
    opacity: 0.8;
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.4));
    animation: floating ease-in-out infinite;
}

.item-1 {
    width: 120px;
    top: 15%;
    left: -20px;
    animation-duration: 8s;
    transform: rotate(15deg);
}

.item-2 {
    width: 140px;
    bottom: 25%;
    right: -30px;
    animation-duration: 12s;
    animation-delay: 2s;
    transform: rotate(-25deg);
}

.item-3 {
    width: 90px;
    top: 45%;
    right: 10%;
    animation-duration: 10s;
    animation-delay: 1s;
    filter: drop-shadow(0 0 15px rgba(0, 255, 102, 0.4));
}

@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
