/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Background Animations */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, #001122 0%, #0a0a0f 70%),
                radial-gradient(circle at 80% 20%, #110033 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, #002200 0%, transparent 50%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #00f5ff, transparent),
        radial-gradient(1px 1px at 40px 70px, #ff0080, transparent),
        radial-gradient(1px 1px at 90px 40px, #00ff88, transparent),
        radial-gradient(1px 1px at 130px 80px, #ffaa00, transparent),
        radial-gradient(1px 1px at 160px 30px, #00f5ff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 3s ease-in-out infinite alternate;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 245, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridFloat 10s ease-in-out infinite;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

@keyframes gridFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -10px); }
}

/* Screen Management */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.screen.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.container {
    text-align: center;
    max-width: 400px;
    padding: 32px;
}

/* Typography */
.title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.1;
}

.title-glow {
    background: linear-gradient(45deg, #00f5ff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.title-accent {
    background: linear-gradient(45deg, #ff0080, #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 0, 128, 0.5);
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 30px rgba(0, 245, 255, 0.5); }
    100% { text-shadow: 0 0 40px rgba(0, 245, 255, 0.8), 0 0 60px rgba(0, 245, 255, 0.3); }
}

.subtitle {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 32px;
    font-weight: 300;
}

/* Score Display */
.score-display {
    margin-bottom: 32px;
}

.best-score {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 12px;
    padding: 16px 24px;
    backdrop-filter: blur(10px);
}

.best-score .label {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 4px;
}

.best-score .value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #00f5ff;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

/* Buttons */
.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn {
    background: none;
    border: 2px solid;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    border-color: #00f5ff;
    color: #00f5ff;
    background: rgba(0, 245, 255, 0.1);
}

.btn-primary:hover {
    background: rgba(0, 245, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    border-color: #ff0080;
    color: #ff0080;
    background: rgba(255, 0, 128, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 0, 128, 0.2);
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: #666;
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Game HUD */
.game-hud {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    z-index: 100;
}

.hud-left, .hud-right {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 20px;
    backdrop-filter: blur(10px);
}

.hud-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.score .label, .best .label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 2px;
}

.score .value, .best .value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #00f5ff;
}

/* Combo Display */
.combo {
    background: linear-gradient(45deg, #ff0080, #ffaa00);
    border-radius: 50px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: comboEntry 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.5);
}

.combo.hidden {
    display: none;
}

.combo #comboCount {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}

.combo-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

/* Game Area */
.game-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* Game Shapes */
.shape {
    position: absolute;
    cursor: pointer;
    border-radius: 50%;
    animation: shapeAppear 0.2s ease;
    z-index: 50;
}

.shape.square {
    border-radius: 12px;
}

.shape.circle {
    border-radius: 50%;
}

.shape.emoji {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

@keyframes shapeAppear {
    0% { 
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.shape.hit {
    animation: shapeHit 0.3s ease forwards;
}

@keyframes shapeHit {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(0); opacity: 0; }
}

/* Pause Button */
.pause-btn {
    position: fixed;
    top: 24px;
    right: 50%;
    transform: translateX(50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.pause-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(50%) scale(1.1);
}

/* Game Over Screen */
.game-over-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 24px;
    background: linear-gradient(45deg, #ff4444, #ff0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.final-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat .label {
    color: #888;
    font-size: 0.9rem;
}

.stat .value {
    color: #00f5ff;
    font-weight: 700;
    font-size: 1.2rem;
}

.new-record {
    background: linear-gradient(45deg, #ffaa00, #ff0080);
    border-radius: 12px;
    padding: 12px 24px;
    margin-bottom: 16px;
    font-weight: 700;
    animation: recordCelebration 0.8s ease infinite alternate;
}

@keyframes recordCelebration {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.performance-text {
    color: #888;
    font-style: italic;
    margin-bottom: 24px;
    min-height: 24px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00f5ff;
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #fff;
}

.modal-body {
    padding: 24px;
}

.instruction {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.instruction:last-child {
    margin-bottom: 0;
}

.instruction-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    text-align: center;
}

.instruction-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

.instruction-text p {
    color: #888;
    line-height: 1.5;
}

/* Particle Effects */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 200;
}

.particle {
    position: absolute;
    pointer-events: none;
    font-size: 1.5rem;
    animation: particleFloat 1s ease-out forwards;
}

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

/* Screen Shake */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Player Setup Screen Styles */
.setup-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #00f5ff, #ff0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.setup-subtitle {
    font-size: 1rem;
    color: #888;
    margin-bottom: 32px;
    line-height: 1.5;
}

.player-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    color: #00f5ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    outline: none;
    border-color: #00f5ff;
    background: rgba(0, 245, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.input-group input::placeholder {
    color: #666;
}

/* Turn-Based Game Styles */
.turn-based-hud {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.current-player, .turn-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.current-player .label, .turn-score .label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-player .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00f5ff;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.turn-score .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff0080;
    text-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

.timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.timer-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffaa00;
    text-shadow: 0 0 20px rgba(255, 170, 0, 0.5);
    animation: timerPulse 1s ease-in-out infinite alternate;
}

.timer-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes timerPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.timer-value.warning {
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.8);
    animation: timerWarning 0.5s ease-in-out infinite alternate;
}

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

.turn-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f5ff, #ff0080);
    border-radius: 3px;
    transition: width 1s linear;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.turn-indicator {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    font-weight: 600;
}

/* Turn Transition Styles */
.turn-over-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(45deg, #00ff88, #00f5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.turn-result {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.turn-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px 24px;
    min-width: 100px;
}

.turn-stat .label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.turn-stat .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00f5ff;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.next-player-info {
    margin-bottom: 24px;
}

.next-player-info p {
    font-size: 1.1rem;
    color: #ff0080;
    font-weight: 600;
    text-align: center;
}

/* Turn-Based Results Styles */
.turn-based-final-results {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    justify-content: center;
}

.player-result {
    text-align: center;
    min-width: 140px;
}

.player-result h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-result.winner h3 {
    color: #ffaa00;
    text-shadow: 0 0 15px rgba(255, 170, 0, 0.5);
}

.player-result:not(.winner) h3 {
    color: #888;
}

.result-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-result .stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-result.winner .stat {
    border-color: rgba(255, 170, 0, 0.3);
    background: rgba(255, 170, 0, 0.1);
}

.player-result .stat .label {
    font-size: 0.8rem;
    color: #888;
}

.player-result .stat .value {
    font-size: 1rem;
    font-weight: 700;
    color: #00f5ff;
}

.player-result.winner .stat .value {
    color: #ffaa00;
}

.match-summary {
    margin-bottom: 24px;
    text-align: center;
}

.match-summary p {
    font-size: 1rem;
    color: #888;
    font-style: italic;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Two Player Mode Styles */
.two-player-hud {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.player-hud {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.player-hud.player-1 {
    color: #00f5ff;
}

.player-hud.player-2 {
    color: #ff0080;
}

.player-name {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-score .label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
    margin-bottom: 2px;
}

.player-score .value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.center-divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #00f5ff, #ff0080);
    border-radius: 1px;
}

.two-player-areas {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
}

.player-area {
    flex: 1;
    position: relative;
    cursor: crosshair;
}

.player-area.player-1 {
    background: radial-gradient(circle at 30% 70%, rgba(0, 245, 255, 0.05) 0%, transparent 50%);
}

.player-area.player-2 {
    background: radial-gradient(circle at 70% 30%, rgba(255, 0, 128, 0.05) 0%, transparent 50%);
}

.area-divider {
    width: 2px;
    background: linear-gradient(to bottom, rgba(0, 245, 255, 0.3), rgba(255, 0, 128, 0.3));
    position: relative;
}

.area-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.player-label {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.3;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
}

.player-area.player-1 .player-label {
    color: #00f5ff;
}

.player-area.player-2 .player-label {
    color: #ff0080;
}

/* Two Player Game Over Styles */
.two-player-final-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    justify-content: center;
}

.player-final-stat {
    text-align: center;
    min-width: 120px;
}

.player-final-stat h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-final-stat:first-child h3 {
    color: #00f5ff;
}

.player-final-stat:last-child h3 {
    color: #ff0080;
}

.vs-divider {
    font-size: 1.5rem;
    font-weight: 900;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.player-final-stat .stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }
    
    .game-hud {
        padding: 16px;
    }
    
    .hud-left, .hud-right {
        padding: 8px 12px;
    }
    
    .score .value, .best .value {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .final-stats {
        gap: 12px;
    }
    
    .stat {
        padding: 10px 12px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-header, .modal-body {
        padding: 16px;
    }
    
    .instruction {
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .instruction-icon {
        font-size: 1.5rem;
        width: 36px;
    }
    
    .two-player-hud {
        padding: 12px 16px;
    }
    
    .player-name {
        font-size: 0.8rem;
    }
    
    .player-score .value {
        font-size: 1rem;
    }
    
    .two-player-areas {
        top: 70px;
    }
    
    .two-player-final-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .vs-divider {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .game-hud {
        padding: 12px;
    }
    
    .combo {
        padding: 6px 16px;
    }
    
    .combo #comboCount {
        font-size: 1.2rem;
    }
    
    .combo-text {
        font-size: 0.8rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .shape {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* Dark Mode Support (already dark, but for future) */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark mode */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}