@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono:wght@400&display=swap');

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

body, html {
    height: 100vh;
    width: 100vw;
    background: #000;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    color: #00ff41;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.computer-frame {
    width: 1000px;
    height: 1080px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.3),
        0 0 50px rgba(255, 0, 255, 0.2),
        0 0 70px rgba(0, 255, 255, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.screen-bezel {
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 15px;
    padding: 15px;
    border: 3px solid #333;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 8px;
    position: relative;
    border: 2px solid #00ff41;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.5),
        0 0 30px rgba(255, 0, 255, 0.3),
        0 0 40px rgba(0, 255, 255, 0.2),
        inset 0 0 10px rgba(0, 255, 65, 0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 255, 65, 0.1);
    border-bottom: 1px solid #00ff41;
    font-size: 14px;
    text-transform: uppercase;
}

.title {
    font-weight: bold;
    text-shadow: 0 0 10px #00ff41;
}

.stats {
    display: flex;
    gap: 20px;
}

.stats span {
    font-family: inherit;
    letter-spacing: 1px;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: calc(100% - 130px);
    background: #000;
    border: none;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    padding: 10px 15px;
    background: rgba(0, 255, 65, 0.1);
    border-top: 1px solid #00ff41;
    font-size: 12px;
}

.control-row {
    display: flex;
    justify-content: space-between;
    margin: 2px 0;
    letter-spacing: 1px;
}

#powerBar {
    font-family: inherit;
    color: #00ff41;
    text-shadow: 0 0 5px #00ff41;
}

/* Developer controls styling */
.dev-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 15px;
    background: rgba(255, 0, 255, 0.1);
    border-top: 1px solid #ff00ff;
    font-size: 11px;
}

.dev-row {
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
    color: #ff00ff;
}

#difficultySlider {
    width: 120px;
    height: 4px;
    background: #333;
    outline: none;
    border-radius: 2px;
    -webkit-appearance: none;
    appearance: none;
}

#difficultySlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #ff00ff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px #ff00ff;
}

#difficultySlider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #ff00ff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px #ff00ff;
}

#difficultyValue {
    color: #ff00ff;
    font-weight: bold;
    text-shadow: 0 0 5px #ff00ff;
    min-width: 35px;
}

/* Retro glow effects */
.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(0, 255, 65, 0.03) 100%),
        linear-gradient(0deg, transparent 98%, rgba(0, 255, 65, 0.03) 100%);
    pointer-events: none;
    border-radius: 8px;
}

/* Scanline effect */
.screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.05) 2px,
        rgba(0, 255, 65, 0.05) 4px
    );
    pointer-events: none;
    border-radius: 8px;
}

/* Blinking cursor effect for score */
#score, #highScore, #ballCount {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}