/* Goosebumps Horror Theme - Green, Black, Red */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    overflow: hidden;
    background: #0a0a0a;
    color: #00ff00;
}

/* Screen Management */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
}

/* Intro Screen */
#intro-screen {
    background: linear-gradient(to bottom, #000000 0%, #0d1f0d 50%, #000000 100%);
    flex-direction: column;
    position: relative;
}

.intro-matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 2s ease;
}

.intro-matrix-canvas.active {
    opacity: 0.1;
}

.intro-content {
    text-align: center;
    max-width: 800px;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #00ff00;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.spooky-title {
    font-size: 3.5rem;
    color: #ff0000;
    margin-bottom: 2rem;
    font-weight: bold;
    text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
    letter-spacing: 3px;
}

.premise-text {
    font-size: 1.3rem;
    color: #00ff00;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #00ff00;
}

.fade-in {
    animation: fadeIn 2s ease-in;
}

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

.button-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.game-button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    background: #000000;
    border: 3px solid #00ff00;
    border-radius: 5px;
    cursor: pointer;
    color: #00ff00;
    transition: all 0.3s ease;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.game-button:hover {
    background: #00ff00;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
}

/* Too Tired Screen */
#tired-screen {
    background: linear-gradient(to bottom, #000000 0%, #0d1f0d 100%);
}

.message-content {
    max-width: 600px;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #ff0000;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.4);
}

.message-content p {
    font-size: 1.4rem;
    color: #ff0000;
    line-height: 1.8;
    text-shadow: 0 0 10px #ff0000;
}

/* Fog Transition */
#fog-transition {
    background: linear-gradient(to bottom, #000000 0%, #1a1a1a 50%, #000000 100%);
}

.fog-animation {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(0, 255, 0, 0.1) 0%, transparent 70%),
        linear-gradient(to bottom, #000000 0%, #0d1f0d 50%, #000000 100%);
    animation: fogFlow 3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fog-text {
    font-size: 5rem;
    color: #00ff00;
    text-shadow: 0 0 30px #00ff00;
    animation: pulse 1.5s infinite;
    margin-bottom: 3rem;
    font-weight: bold;
    letter-spacing: 3px;
}

.fog-instructions {
    font-size: 1.4rem;
    color: #ff0000;
    text-shadow: 0 0 20px #ff0000;
    max-width: 700px;
    text-align: center;
    animation: fadeIn 2s ease;
    line-height: 1.6;
}

@keyframes fogFlow {
    0% { opacity: 0; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

/* Game Screen */
#game-screen {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(10, 10, 10, 0.9) 50%, rgba(0, 0, 0, 0.95) 100%),
        radial-gradient(ellipse at 20% 80%, rgba(100, 0, 0, 0.3), transparent 40%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 100, 0, 0.2), transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 0, 0.03) 2px, rgba(0, 255, 0, 0.03) 4px);
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

#game-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background:
        radial-gradient(circle at 10% 10%, rgba(0, 255, 0, 0.1), transparent 20%),
        radial-gradient(circle at 90% 15%, rgba(255, 0, 0, 0.08), transparent 25%),
        radial-gradient(circle at 50% 5%, rgba(0, 100, 0, 0.15), transparent 30%);
    pointer-events: none;
    z-index: 0;
    animation: eeriePulse 8s ease-in-out infinite;
}

#game-screen::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent),
        repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(0, 50, 0, 0.1) 100px, rgba(0, 50, 0, 0.1) 102px);
    pointer-events: none;
    z-index: 0;
}

@keyframes eeriePulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Progress Bar */
.progress-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.progress-bar {
    width: 200px;
    height: 15px;
    background: #000000;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #00ff00, #00cc00);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px #00ff00;
}

.progress-text {
    font-size: 1.2rem;
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
}

/* Floating Background Elements */
.floating-elements-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    opacity: 0.15;
    animation: floatDownSlow 25s linear infinite;
}

@keyframes floatDownSlow {
    0% {
        top: -10%;
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        top: 110%;
        opacity: 0;
    }
}

/* Text Elements */
.text-element {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
    font-weight: bold;
    white-space: nowrap;
}

.number-element {
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    color: #00ff00;
    text-shadow: 0 0 25px #00ff00;
    font-weight: bold;
}

/* Horror Escape Scene */
.horror-scene {
    position: relative;
    width: 100%;
    height: 60%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
}

/* Church (Left) - True Detective Style */
.church {
    width: 200px;
    height: 250px;
    background: linear-gradient(to bottom, #1a1a1a 0%, #0a0a0a 100%);
    border: 3px solid #00ff00;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
}

.church-tower {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 70px solid #1a1a1a;
    filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.3));
}

.secret-cross {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #ff0000;
    text-shadow: 0 0 20px #ff0000;
    z-index: 20;
}

.church-door {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 100px;
    background: #000000;
    border: 2px solid #00ff00;
    border-radius: 30px 30px 0 0;
}

/* Escape Path */
.escape-path {
    position: absolute;
    top: 65%;
    left: 20%;
    width: 60%;
    height: 4px;
    background: repeating-linear-gradient(
        to right,
        #00ff00 0px,
        #00ff00 20px,
        transparent 20px,
        transparent 40px
    );
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

/* Emily Character - Girl with Long Hair and Bangs */
.player {
    position: absolute;
    top: calc(65% - 50px);
    left: 20%;
    width: 50px;
    height: 90px;
    transition: left 0.8s ease;
    z-index: 10;
}

.emily-head {
    position: relative;
    width: 35px;
    height: 35px;
    margin: 0 auto;
}

.emily-face {
    width: 100%;
    height: 100%;
    background: #ffdbac;
    border-radius: 50%;
    position: relative;
    z-index: 3;
}

.emily-face::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 10px;
    width: 3px;
    height: 3px;
    background: #000000;
    border-radius: 50%;
    box-shadow: 12px 0 0 #000000;
}

.emily-face::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 13px;
    width: 8px;
    height: 2px;
    border-radius: 0 0 8px 8px;
    border: 1px solid #000000;
    border-top: none;
}

.emily-hair {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 50px;
    height: 65px;
    background: #1a0f0f;
    border-radius: 50% 50% 45% 45%;
    z-index: 1;
}

.emily-hair::before {
    content: '';
    position: absolute;
    top: 30px;
    left: -5px;
    width: 12px;
    height: 40px;
    background: #1a0f0f;
    border-radius: 50% 0 0 50%;
}

.emily-hair::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -5px;
    width: 12px;
    height: 40px;
    background: #1a0f0f;
    border-radius: 0 50% 50% 0;
}

.emily-bangs {
    position: absolute;
    top: 8px;
    left: 2px;
    width: 31px;
    height: 18px;
    background: #1a0f0f;
    border-radius: 0 0 40% 40%;
    z-index: 4;
}

.emily-bangs::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 10px;
    height: 15px;
    background: #1a0f0f;
    border-radius: 50%;
}

.emily-bangs::after {
    content: '';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 10px;
    height: 15px;
    background: #1a0f0f;
    border-radius: 50%;
}

.emily-body {
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, #6a4c93, #4a3870);
    border-radius: 20px 20px 25px 25px;
    margin-top: 8px;
    position: relative;
}

.emily-body::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 15px;
    height: 30px;
    background: #6a4c93;
    border-radius: 10px;
}

.emily-body::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    width: 15px;
    height: 30px;
    background: #6a4c93;
    border-radius: 10px;
}

.player.running {
    animation: run 0.5s ease;
}

@keyframes run {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg) translateY(-5px); }
    75% { transform: rotate(5deg) translateY(-5px); }
}

.player.caught {
    animation: caught 1s ease-in forwards;
}

@keyframes caught {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(0.8) rotate(180deg); }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

/* Tesla (Right) */
.car {
    width: 200px;
    height: 100px;
    position: relative;
    animation: carIdle 2s ease-in-out infinite;
}

.car-body {
    width: 100%;
    height: 55px;
    background: linear-gradient(to bottom, #ffffff, #e0e0e0);
    border-radius: 5px 35px 8px 8px;
    position: absolute;
    bottom: 0;
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

.car-body::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 25px;
    width: 28px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 3px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.car-body::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 25px;
    width: 28px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 3px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.car-windows {
    width: 130px;
    height: 35px;
    background: linear-gradient(to bottom, #87CEEB, #4682B4);
    position: absolute;
    top: 8px;
    left: 25px;
    border-radius: 5px 25px 0 0;
    border: 2px solid #00ff00;
    clip-path: polygon(0% 100%, 0% 20%, 15% 0%, 85% 0%, 100% 20%, 100% 100%);
}

.car-windows::before {
    content: 'T';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

@keyframes carIdle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Scary Wispy Ghosts */
.ghosts-container {
    position: absolute;
    left: 18%;
    top: 65%;
    transform: translateY(-50%);
    z-index: 5;
    transition: left 0.8s ease;
}

.ghost {
    position: absolute;
    width: 55px;
    height: 75px;
}

.ghost::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    width: 32px;
    height: 45px;
    background: radial-gradient(ellipse at 50% 30%, rgba(0, 255, 0, 0.9) 0%, rgba(0, 200, 0, 0.6) 40%, rgba(0, 100, 0, 0.2) 80%, transparent 100%);
    border-radius: 50% 50% 40% 40%;
    box-shadow:
        0 0 25px rgba(0, 255, 0, 0.8),
        inset 0 0 15px rgba(0, 0, 0, 0.3);
    filter: blur(1px);
}

.ghost::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 55px;
    height: 35px;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 255, 0, 0.7), transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(0, 255, 0, 0.7), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.5), transparent 65%),
        radial-gradient(circle at 30% 80%, rgba(0, 200, 0, 0.4), transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(0, 200, 0, 0.4), transparent 60%);
    filter: blur(2px);
}

.ghost-1 {
    top: -25px;
    left: 0;
    animation: ghostFloat1 3s ease-in-out infinite;
}

.ghost-2 {
    top: 5px;
    left: -20px;
    animation: ghostFloat2 3.5s ease-in-out infinite;
}

.ghost-2::before {
    background: radial-gradient(ellipse at 50% 30%, rgba(255, 0, 0, 0.8) 0%, rgba(200, 0, 0, 0.6) 40%, rgba(100, 50, 0, 0.3) 80%, transparent 100%);
    box-shadow:
        0 0 25px rgba(255, 0, 0, 0.8),
        inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.ghost-3 {
    top: -15px;
    left: -40px;
    animation: ghostFloat3 4s ease-in-out infinite;
    transform: scale(0.85);
}

.ghost-3::before {
    background: radial-gradient(ellipse at 50% 30%, rgba(0, 255, 0, 0.95) 0%, rgba(0, 150, 0, 0.7) 40%, rgba(0, 80, 0, 0.3) 80%, transparent 100%);
}

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

@keyframes ghostFloat2 {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    33% { transform: translateY(-15px) translateX(8px) rotate(8deg); }
    66% { transform: translateY(-8px) translateX(-5px) rotate(-5deg); }
}

@keyframes ghostFloat3 {
    0%, 100% { transform: scale(0.85) translateY(0) translateX(0); }
    40% { transform: scale(0.85) translateY(-18px) translateX(-10px) rotate(-8deg); }
    80% { transform: scale(0.85) translateY(-10px) translateX(8px) rotate(8deg); }
}

.ghosts-container.chasing .ghost {
    animation: ghostChase 2s ease-in forwards;
}

@keyframes ghostChase {
    from { transform: translateX(0) scale(1); }
    to { transform: translateX(300px) scale(1.4); }
}

/* Question Panel */
.question-panel {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    padding: 2rem 3rem;
    border-radius: 10px;
    border: 3px solid #00ff00;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.4);
    min-width: 500px;
    text-align: center;
}

.timer-container {
    position: absolute;
    top: -25px;
    right: 20px;
}

.timer {
    width: 60px;
    height: 60px;
    background: #ff0000;
    color: #000000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
    border: 3px solid #000000;
}

.timer.warning {
    animation: timerPulse 0.5s infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(255, 0, 0, 0.6); }
    50% { transform: scale(1.15); box-shadow: 0 0 40px rgba(255, 0, 0, 1); }
}

.question-text {
    font-size: 1.4rem;
    color: #00ff00;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-shadow: 0 0 10px #00ff00;
}

.answer-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.answer-button {
    padding: 1rem 3rem;
    font-size: 1.3rem;
    background: #000000;
    border: 3px solid #00ff00;
    border-radius: 5px;
    cursor: pointer;
    color: #00ff00;
    transition: all 0.3s ease;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.answer-button:hover {
    background: #00ff00;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.6);
}

.answer-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Lose Screen */
#lose-screen {
    background: linear-gradient(to bottom, #000000 0%, #1a0000 50%, #000000 100%);
}

.lose-content {
    text-align: center;
    color: #ff0000;
}

.ghost-text {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: glitch 0.5s ease;
    text-shadow: 0 0 30px #ff0000;
    letter-spacing: 5px;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    25% { transform: translate(-5px, 5px); }
    50% { transform: translate(5px, -5px); }
    75% { transform: translate(-5px, -5px); }
}

.wrong-answer-message {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    color: #00ff00;
    text-shadow: 0 0 15px #00ff00;
}

.ghost-emoji {
    font-size: 8rem;
    margin: 2rem 0;
    animation: ghostBounce 2s ease infinite;
}

@keyframes ghostBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

.secret-link {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 0.7rem;
    color: rgba(0, 255, 0, 0.3);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.secret-link:hover {
    color: rgba(0, 255, 0, 0.8);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
}

/* Win Screen - Seamless Animation */
#win-screen {
    background: linear-gradient(to bottom, #000000 0%, #0a0a0a 100%);
}

.win-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.church-small {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
}

.win-emily {
    position: absolute;
    left: 25%;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    z-index: 10;
}

.win-car {
    position: absolute;
    left: 35%;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 100px;
}

.win-car.driving-away {
    animation: driveToSonic 4s ease-in-out forwards;
}

@keyframes driveToSonic {
    0% {
        left: 35%;
    }
    50% {
        left: 60%;
    }
    100% {
        left: 150%;
    }
}

.win-message {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    max-width: 800px;
}

.win-message h1 {
    font-size: 3rem;
    color: #00ff00;
    text-shadow: 0 0 30px #00ff00;
    animation: fadeIn 1s ease;
    margin-bottom: 1rem;
}

.win-subtext {
    font-size: 1.5rem;
    color: #00ff00;
    text-shadow: 0 0 15px #00ff00;
    margin: 0.5rem 0 2rem 0;
}

.pill-choice {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.pill-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 3px solid;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px;
}

.blue-pill {
    background: #000033;
    color: #6699ff;
    border-color: #6699ff;
    box-shadow: 0 0 20px rgba(102, 153, 255, 0.3);
}

.blue-pill:hover {
    background: #6699ff;
    color: #000033;
    box-shadow: 0 0 40px rgba(102, 153, 255, 0.6);
}

.red-pill {
    background: #330000;
    color: #ff3333;
    border-color: #ff3333;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
}

.red-pill:hover {
    background: #ff3333;
    color: #330000;
    box-shadow: 0 0 40px rgba(255, 51, 51, 0.6);
}

.win-message.fade-out {
    animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.sonic-sign {
    position: absolute;
    right: 20%;
    top: 30%;
    z-index: 5;
}

.sonic-logo {
    font-size: 3rem;
    color: #ff0000;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    border: 3px solid #ff0000;
    border-radius: 10px;
    text-shadow: 0 0 20px #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.ice-cream-popup {
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    border: 3px solid #00ff00;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.5);
    z-index: 50;
}

.ice-cream-popup .ice-cream-cone {
    font-size: 6rem;
    animation: celebrate 2s ease infinite;
}

.ice-cream-popup .ice-cream-text {
    font-size: 1.2rem;
    color: #ff0000;
    margin-top: 1rem;
    text-shadow: 0 0 10px #ff0000;
}

.chat-bubble {
    position: absolute;
    background: white;
    color: #000000;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 60;
    max-width: 350px;
    animation: popIn 0.3s ease;
}

.chat-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid white;
}

.chat-bubble p {
    margin: 0;
    font-family: 'Courier New', monospace;
}

.sonic-response {
    right: 25%;
    top: 25%;
    left: auto;
}

.sonic-response::after {
    bottom: auto;
    top: -10px;
    left: 30px;
    border-top: none;
    border-bottom: 15px solid white;
}

.nuts-reveal {
    font-style: italic;
    color: #666;
    margin-top: 0.5rem !important;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dramatic Ending - Star Wars Style */
.dramatic-ending {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 200;
    animation: fadeInDramatic 2s ease;
}

.ending-text {
    font-size: 3rem;
    color: #00ff00;
    text-shadow: 0 0 30px #00ff00;
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
}

.ending-twist {
    font-size: 2.5rem;
    color: #ff0000;
    text-shadow: 0 0 30px #ff0000;
    font-style: italic;
    animation: twistReveal 1.5s ease 2s both;
}

@keyframes fadeInDramatic {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes twistReveal {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.emily-driving {
    position: absolute;
    font-size: 4rem;
    z-index: 15;
}

.hidden {
    display: none !important;
}

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

/* Credits Screen */
#credits-screen {
    background: linear-gradient(to bottom, #000000 0%, #0d1f0d 50%, #000000 100%);
}

.credits-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.night-sky {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        linear-gradient(to bottom, #000000 0%, #0d1f0d 100%);
    background-size: 200% 200%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.credits-text {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #00ff00;
    animation: scrollUp 20s linear forwards;
}

.credits-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 0 20px #00ff00;
}

.credits-text p {
    font-size: 1.5rem;
    margin: 1rem 0;
    font-weight: 300;
    text-shadow: 0 0 10px #00ff00;
}

.heart {
    font-size: 3rem;
    margin-top: 2rem;
    color: #ff0000;
    animation: heartbeat 1.5s ease infinite;
    text-shadow: 0 0 20px #ff0000;
}

@keyframes scrollUp {
    from { bottom: 100px; }
    to { bottom: 80%; }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .spooky-title {
        font-size: 2rem;
    }

    .question-panel {
        min-width: 90%;
        padding: 1.5rem;
    }

    .church {
        width: 120px;
        height: 180px;
    }

    .car {
        width: 120px;
        height: 70px;
    }

    .player {
        width: 30px;
        height: 60px;
    }
}
