@font-face {
    font-family: 'BoldPixels';
    src: url('src/BoldPixels.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'BoldPixels', sans-serif;
    overflow: hidden;
    background: #0a0a0a;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

canvas {
    display: block;
}

.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    color: white;
}

.hud-score {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

.hud-timer {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
}

.order-card {
    background: rgba(0, 0, 0, 0.8);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    width: 280px;
}

.patience-bar {
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.patience-fill {
    height: 100%;
    transition: width 0.1s linear;
}

.feedback {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 0 0 2px currentColor;
    animation: feedbackPulse 0.5s ease-out;
}

@keyframes feedbackPulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Removed conflicting .menu-screen styles - now handled in menu-styles.css */

.results-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.beat-indicator {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: grid;
    place-items: center;
}

.beat-indicator-inner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    transform: scale(0.85);
    opacity: 0.25;
    transition: transform 0.06s linear, opacity 0.06s linear;
}

.beat-meter {
    position: relative;
    width: 100%;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: visible;
}

.timing-zone {
    position: absolute;
    top: 0;
    height: 100%;
    opacity: 0.3;
}

.timing-zone.perfect {
    left: 40%;
    width: 20%;
    background: #22c55e;
    border-left: 2px solid #22c55e;
    border-right: 2px solid #22c55e;
}

.timing-zone.good {
    width: 10%;
    background: #fbbf24;
}

.timing-zone.good-left {
    left: 30%;
    border-left: 2px solid #fbbf24;
    border-right: 2px solid #fbbf24;
}

.timing-zone.good-right {
    left: 60%;
    border-left: 2px solid #fbbf24;
    border-right: 2px solid #fbbf24;
}

.beat-arrow {
    position: absolute;
    top: -8px;
    left: 0%;
    width: 4px;
    height: 56px;
    background: #ef4444;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: background 0.05s ease;
    box-shadow: 0 0 10px currentColor;
}