:where([class^="ri-"])::before {
    content: "\f3c2";
}

body {
    background-color: #121212;
    color: #f5f5f5;
    font-family: 'Inter', sans-serif;
}

.tv-frame {
    background-color: #3b2a1a;
    border: 12px solid #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.tv-inner-frame {
    background-color: #d4b87b;
    border: 4px solid #a89060;
}

.tv-screen {
    background-color: #1a2b2a;
    border-radius: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.channel-dial {
    background-color: #d4b87b;
    border: 3px solid #8a7242;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

.dial-indicator {
    background-color: #333;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.control-knob {
    background-color: #d4b87b;
    border: 2px solid #8a7242;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.speaker-grille {
    background-color: #333;
}

.game-pixel {
    transition: all 0.1s ease;
}

.scan-line {
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.05) 0%, 
        rgba(255,255,255,0) 50%);
    pointer-events: none;
}

@keyframes flicker {
    0% { opacity: 0.97; }
    5% { opacity: 0.9; }
    10% { opacity: 0.97; }
    15% { opacity: 0.94; }
    20% { opacity: 0.98; }
    25% { opacity: 0.91; }
    30% { opacity: 0.97; }
    35% { opacity: 0.93; }
    40% { opacity: 0.99; }
    45% { opacity: 0.92; }
    50% { opacity: 0.96; }
    55% { opacity: 0.93; }
    60% { opacity: 0.98; }
    65% { opacity: 0.91; }
    70% { opacity: 0.97; }
    75% { opacity: 0.94; }
    80% { opacity: 0.98; }
    85% { opacity: 0.92; }
    90% { opacity: 0.97; }
    95% { opacity: 0.93; }
    100% { opacity: 0.97; }
}

.crt-effect {
    animation: flicker 4s infinite;
    pointer-events: none;
}

.game-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.snake-game {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.game-pixel {
    position: absolute;
    background-color: #8E6FF7;
    border-radius: 2px;
}

.food {
    background-color: #ff5e5e;
}

.game-over-screen, .start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 10;
}

.score-display {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: monospace;
    font-size: 18px;
    color: #8E6FF7;
    z-index: 5;
}

.control-label {
    font-size: 10px;
    color: #333;
    text-align: center;
    margin-top: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8E6FF7;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8E6FF7;
    cursor: pointer;
}