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

body {
    font-family: 'Courier New', monospace;
    background: #0a0a0a;
    color: #00ff00;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    position: relative;
    width: 100%;
    height: 100vh;
    max-width: 1200px;
    background: linear-gradient(180deg, #0d1b2a 0%, #1b263b 100%);
    overflow: hidden;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 0, 0.03) 0px,
        rgba(0, 255, 0, 0.03) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 1000;
    animation: scanline-move 10s linear infinite;
}

@keyframes scanline-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.hud {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    z-index: 100;
}

.score-box, .combo-box, .time-box {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    backdrop-filter: blur(5px);
}

.label {
    font-size: 12px;
    color: #00ffff;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.value {
    font-size: 32px;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.combo-box .value {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

.game-area {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lane-container {
    position: relative;
    width: 600px;
    height: 100%;
    display: flex;
    gap: 10px;
}

.lane {
    flex: 1;
    position: relative;
    background: rgba(0, 255, 0, 0.05);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.lane::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 255, 0, 0.1) 50%,
        transparent 100%
    );
    animation: lane-glow 2s ease-in-out infinite;
}

@keyframes lane-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.lane-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: rgba(0, 255, 0, 0.3);
    z-index: 1;
}

.lane.active {
    border-color: #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.lane.active .lane-label {
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
}

.judge-line {
    position: absolute;
    bottom: 80px;
    left: -10px;
    right: -10px;
    height: 4px;
    background: linear-gradient(90deg, #ff00ff 0%, #00ffff 50%, #ffff00 100%);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
    animation: judge-line-pulse 0.5s ease-in-out infinite;
}

@keyframes judge-line-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.note {
    position: absolute;
    width: 100%;
    height: 40px;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px currentColor;
    z-index: 10;
}

.note.perfect {
    color: #00ff00;
    animation: perfect-flash 0.3s ease-out;
}

.note.good {
    color: #00ffff;
    animation: good-flash 0.3s ease-out;
}

.note.miss {
    color: #ff0000;
    animation: miss-flash 0.3s ease-out;
}

@keyframes perfect-flash {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes good-flash {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes miss-flash {
    0% { opacity: 1; }
    100% { opacity: 0.3; }
}

.controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 100;
}

.control-btn {
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 0, 0.2);
    border: 3px solid #00ff00;
    border-radius: 50%;
    color: #00ff00;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.control-btn:hover {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    transform: scale(1.1);
}

.control-btn:active {
    background: rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
    transform: scale(0.95);
}

.control-btn.active {
    background: rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
    animation: button-pulse 0.2s ease-out;
}

@keyframes button-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.start-screen, .game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
}

.title {
    font-size: 72px;
    font-weight: bold;
    background: linear-gradient(45deg, #00ff00, #00ffff, #ff00ff, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-glow 2s ease-in-out infinite;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 8px;
}

@keyframes title-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

.subtitle {
    font-size: 24px;
    color: #00ffff;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.instructions {
    font-size: 16px;
    color: #888;
    margin-top: 20px;
}

.start-btn, .restart-btn {
    padding: 15px 50px;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #00ff00, #00ffff);
    border: none;
    border-radius: 50px;
    color: #000;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    transition: all 0.3s;
}

.start-btn:hover, .restart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.8);
}

.hidden {
    display: none;
}

.game-over-screen h2 {
    font-size: 64px;
    color: #ff00ff;
    margin-bottom: 30px;
    text-shadow: 0 0 30px #ff00ff;
    animation: game-over-flash 1s ease-in-out infinite;
}

@keyframes game-over-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.final-score {
    background: rgba(0, 255, 0, 0.1);
    border: 3px solid #00ff00;
    padding: 30px 60px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.4);
}

.score-label {
    font-size: 20px;
    color: #00ffff;
    margin-bottom: 10px;
}

.score-value {
    font-size: 56px;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
}

.effects-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 500;
}

.effect {
    position: absolute;
    font-size: 48px;
    font-weight: bold;
    animation: effect-float 0.5s ease-out forwards;
    text-shadow: 0 0 20px currentColor;
}

@keyframes effect-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

.effect.perfect {
    color: #00ff00;
}

.effect.good {
    color: #00ffff;
}

.effect.miss {
    color: #ff0000;
}
