body {
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, #0a0a2e, #000000);
    font-family: 'Comic Neue', cursive;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 400%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        rgba(0, 238, 255, 0.05) 0px,
        rgba(0, 238, 255, 0.05) 20px,
        rgba(0, 119, 255, 0.05) 20px,
        rgba(0, 119, 255, 0.05) 40px
    );
    animation: scrollBg 40s linear infinite;
    z-index: 1;
}

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

.game-container {
    text-align: center;
    background: rgba(25, 25, 35, 0.95);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 238, 255, 0.4);
    position: relative;
    z-index: 2;
    border: 2px solid #00eeff;
    backdrop-filter: blur(3px);
    max-width: 600px;
    width: 90%;
    margin: 1rem auto;
    transform: perspective(800px) rotateX(3deg);
}

.game-container.submarino {
    background: rgba(255, 255, 255, 0.85);
    border: 3px solid #4db6ac;
    box-shadow: 0 0 30px rgba(77, 182, 172, 0.3);
}

.game-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(0,238,255,0.3);
    border-radius: 12px;
    animation: neonPulse 2s infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes neonPulse {
    0%, 100% { filter: drop-shadow(0 0 5px #00eeff); }
    50% { filter: drop-shadow(0 0 15px #00eeff); }
}

h1 {
    color: #00eeff;
    text-shadow: 0 0 10px rgba(0, 238, 255, 0.8);
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin: 1rem 0;
    line-height: 1.3;
    padding: 0 0.5rem;
}

.number-line-container {
    position: relative;
    width: 95%;
    height: 12vh;
    min-height: 70px;
    margin: 1.5rem auto;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 10px;
    overflow: visible;
}

.number-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #00eeff;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.6);
}

.number-tick {
    position: absolute;
    width: 2px;
    height: 20px;
    background: #3498db;
    top: 50%;
    transform: translateY(-50%);
}

.number-label {
    position: absolute;
    top: 60px;
    transform: translateX(-50%);
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #00eeff;
    text-shadow: 0 0 15px rgba(0, 238, 255, 0.9);
    font-weight: bold;
    animation: neonPulse 1.5s infinite;
}

.numbers-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.draggable-number {
    width: clamp(25px, 4vw, 40px);
    height: clamp(25px, 4vw, 40px);
    border-radius: 50%;
    background: #1a1a2e;
    color: #00eeff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.8rem, 2vw, 1rem);
    cursor: move;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid #00eeff;
    box-shadow: 0 0 8px rgba(0, 238, 255, 0.4);
    font-family: 'Courier New', monospace;
}

.draggable-number:hover {
    transform: scale(1.1);
    filter: hue-rotate(90deg);
}

.placed-number {
    background: #2ecc71 !important;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.6) !important;
    color: #fff !important;
}

.bird-container, .bird, .wing {
    display: none;
}

.bird-container {
    margin: 20px 0;
}

.bird {
    width: 80px;
    height: 80px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

@keyframes flap {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

button {
    padding: 0.8rem 1.5rem;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    background: #3498db;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s;
    margin-bottom: 0.5rem;
}

button:hover {
    transform: scale(1.05);
    background: #2980b9;
}

.feedback {
    height: 30px;
    margin: 1rem 0;
    font-size: 1.2rem;
    color: #2ecc71;
    animation: pop 0.3s ease;
}

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

.cloud {
    position: fixed;
    background: white;
    border-radius: 50px;
    animation: float 20s infinite linear;
    z-index: 1;
}

.cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: inherit;
}

.c1 {
    top: 20%;
    left: -200px;
    width: 120px;
    height: 40px;
    animation-delay: 0s;
}
.c1::after {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 30px;
}

.c2 {
    top: 35%;
    right: -200px;
    width: 150px;
    height: 50px;
    animation-delay: 5s;
    animation-direction: reverse;
}
.c2::after {
    width: 70px;
    height: 70px;
    top: -40px;
    right: 20px;
}

.c3 {
    top: 50%;
    left: -200px;
    width: 100px;
    height: 30px;
    animation-delay: 10s;
}
.c3::after {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 20px;
}

.ground {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #8bc34a;
    z-index: 1;
}

.ground::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, #7cb342 60%, transparent);
    border-radius: 50%;
}

@keyframes float {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateY(-10px); }
    50% { transform: translateY(5px); }
    100% { transform: translateX(100vw) translateY(0); }
}

.cyber-glitch {
    position: fixed;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(0deg, transparent 50%, rgba(0,238,255,0.1)),
        linear-gradient(90deg, transparent 50%, rgba(255,0,221,0.1));
    background-size: 4px 4px;
    animation: glitchScan 3s linear infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes glitchScan { 
    0% { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

.star {
    position: fixed;
    background: white;
    border-radius: 50%;
    animation: twinkle 1.5s infinite alternate;
    z-index: 1;
}

@keyframes twinkle {
    0% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); filter: blur(0.5px); }
}

.planet {
    position: fixed;
    right: -50px;
    bottom: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 30% 30%, #4A90E2, #1A237E);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(74, 144, 226, 0.4);
    animation: planet-rotate 40s linear infinite;
}

@keyframes planet-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .number-line-container {
        height: 10vh;
        min-height: 60px;
    }
    
    .number-label {
        top: 45px;
    }
    
    .numbers-container {
        gap: 0.3rem;
        margin: 1rem 0;
    }
}

@media (max-width: 600px) {
    .game-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .number-line-container {
        height: 70px;
    }
    
    .number-label {
        top: 50px;
        font-size: 1rem;
    }
    
    .draggable-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}