/* ============================================
   ANI.MAL+ Hungry Critter - Styles
   A free online snake game with animals
   ============================================ */

/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF7800;
    --primary-dark: #CC6000;
    --primary-light: #FFB366;
    --accent: #FF4500;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-input: #151515;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border: #2a2a2a;
    --glow: rgba(255, 120, 0, 0.4);
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --combo: #a855f7;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(to bottom, #0a1628 0%, #0a0c0f 40%, #000 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(76, 175, 80, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 120, 0, 0.06) 0%, transparent 40%);
    z-index: 0;
    transition: all 1s;
}

.bg-gradient.night {
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
}

.scan-line {
    position: fixed;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    animation: scan 8s linear infinite;
    z-index: 1;
    opacity: 0.15;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    color: var(--primary);
    animation: floatUp 15s infinite;
    opacity: 0.2;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.2; }
    90% { opacity: 0.2; }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.logo-plus {
    color: var(--primary);
    text-shadow: 0 0 20px var(--glow);
}

.tagline {
    font-family: 'Orbitron', monospace;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 700;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.neon-btn {
    font-family: 'Orbitron', monospace;
    padding: 12px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    cursor: pointer;
}

.neon-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--glow);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.neon-btn.small {
    padding: 8px 16px;
    font-size: 0.75rem;
}

/* Game Wrapper */
.game-wrapper {
    max-width: 700px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(15, 15, 15, 0.95));
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    padding: 25px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.game-wrapper.shake {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px) rotate(-1deg); }
    40% { transform: translateX(8px) rotate(1deg); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

/* Settings Bar */
.settings-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.difficulty-selector {
    display: flex;
    gap: 6px;
}

.diff-btn {
    padding: 6px 12px;
    font-size: 0.7rem;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.diff-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.diff-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.diff-btn.easy.active {
    background: var(--success);
    border-color: var(--success);
}

.diff-btn.hard.active {
    background: var(--danger);
    border-color: var(--danger);
}

/* Settings Buttons */
.settings-buttons {
    display: flex;
    gap: 6px;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-input);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.icon-btn.active {
    background: rgba(255, 120, 0, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.icon-btn.muted {
    color: var(--danger);
    border-color: var(--danger);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

/* Character Selector */
.character-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.character-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-input);
    cursor: pointer;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.character-btn:hover {
    border-color: var(--primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px var(--glow);
}

.character-btn.selected {
    border-color: var(--primary);
    background: rgba(255, 120, 0, 0.2);
    box-shadow: 0 0 20px var(--glow);
}

.character-btn .char-name {
    position: absolute;
    bottom: -16px;
    font-size: 0.55rem;
    color: var(--text-secondary);
    font-family: 'Orbitron', monospace;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
}

.character-btn:hover .char-name,
.character-btn.selected .char-name {
    opacity: 1;
}

.character-btn .unlock-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    color: var(--text-secondary);
}

.character-btn .unlock-badge svg {
    width: 14px;
    height: 14px;
}

.character-btn.locked {
    opacity: 0.4;
    filter: grayscale(1);
}

/* Game Canvas */
.game-canvas-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 15px;
    aspect-ratio: 1;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 8px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
    image-rendering: pixelated;
}

#gameCanvas.paused {
    filter: blur(3px) brightness(0.7);
}

/* Combo Display */
.combo-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--combo);
    text-shadow: 0 0 30px var(--combo);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.combo-display.show {
    animation: comboPopup 0.8s ease-out forwards;
}

@keyframes comboPopup {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(1);
    }
}

/* Floating Score */
.floating-score {
    position: absolute;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    pointer-events: none;
    animation: floatScore 1s ease-out forwards;
    z-index: 10;
}

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

/* Game Overlays */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-radius: 8px;
    z-index: 20;
}

.game-overlay.active {
    display: flex;
}

.game-overlay h2 {
    font-family: 'Orbitron', monospace;
    color: var(--primary);
    font-weight: 900;
    font-size: clamp(1.5rem, 5vw, 2rem);
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(255, 120, 0, 0.6);
    text-align: center;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-overlay p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.game-overlay .critter-display {
    font-size: 50px;
    animation: bounce 1s ease-in-out infinite;
}

.game-overlay .hint-text {
    font-size: 0.75rem;
    color: #666;
}

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

/* Pause Overlay */
.pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border-radius: 8px;
    z-index: 15;
}

.pause-overlay.active {
    display: flex;
}

.pause-overlay h2 {
    font-family: 'Orbitron', monospace;
    color: var(--warning);
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Power-up Indicators */
.powerup-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
}

.powerup-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    transition: all 0.3s;
}

.powerup-icon svg {
    width: 14px;
    height: 14px;
}

.powerup-icon.active {
    opacity: 1;
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    animation: powerupGlow 0.5s ease-in-out infinite;
}

@keyframes powerupGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 250px;
    margin: 8px 0;
}

.stat-box {
    background: rgba(255, 120, 0, 0.1);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
}

.stat-box .stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-box .stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Achievement Toast */
.achievement-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(15, 15, 15, 0.98));
    border: 2px solid var(--warning);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.achievement-toast.show {
    transform: translateX(0);
}

.achievement-toast .achievement-icon {
    font-size: 2rem;
    color: var(--warning);
}

.achievement-toast .achievement-icon svg {
    width: 32px;
    height: 32px;
}

.achievement-toast .achievement-info h4 {
    font-family: 'Orbitron', monospace;
    color: var(--warning);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.achievement-toast .achievement-info p {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Game Controls */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.score-display {
    font-family: 'Orbitron', monospace;
    color: var(--primary);
    font-weight: 700;
    font-size: clamp(1rem, 3vw, 1.3rem);
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-display .multiplier {
    font-size: 0.8em;
    padding: 2px 6px;
    background: var(--success);
    color: var(--bg-dark);
    border-radius: 4px;
}

.score-display .combo-badge {
    font-size: 0.7em;
    padding: 2px 6px;
    background: var(--combo);
    color: white;
    border-radius: 4px;
    animation: comboPulse 0.3s ease-in-out infinite;
}

@keyframes comboPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.stats-row {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    align-items: center;
}

.stats-row span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stats-row svg {
    width: 14px;
    height: 14px;
}

/* Initials Input */
.initials-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.initials-input {
    display: flex;
    gap: 6px;
    margin: 8px 0;
}

.initials-input input {
    width: 45px;
    height: 55px;
    background: rgba(255, 120, 0, 0.1);
    border: 2px solid rgba(255, 120, 0, 0.4);
    border-radius: 6px;
    color: var(--primary);
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.initials-input input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 120, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 120, 0, 0.4);
}

/* Scoreboard */
.scoreboard {
    width: 100%;
    max-width: 320px;
    margin-top: 8px;
}

.scoreboard h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.scoreboard-list {
    list-style: none;
    max-height: 180px;
    overflow-y: auto;
}

.scoreboard-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(255, 120, 0, 0.05);
    border: 1px solid var(--border);
    border-radius: 5px;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.scoreboard-list li.highlight {
    background: rgba(255, 120, 0, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(255, 120, 0, 0.3);
}

.scoreboard-rank {
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 25px;
}

.scoreboard-char {
    font-size: 1rem;
}

.scoreboard-initials {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
}

.scoreboard-score {
    color: var(--text-primary);
    font-weight: 700;
}

/* Instructions */
.instructions {
    background: rgba(255, 120, 0, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.instructions h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.instructions p {
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-size: 0.8rem;
}

kbd {
    background: rgba(255, 120, 0, 0.15);
    color: var(--primary);
    padding: 2px 6px;
    border: 1px solid rgba(255, 120, 0, 0.3);
    border-radius: 3px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 0.75rem;
}

.food-legend {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.food-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.food-item span:first-child {
    font-size: 1rem;
}

/* Achievements Section */
.achievements-section {
    margin-top: 15px;
    padding: 12px;
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.achievements-section h3 {
    font-family: 'Orbitron', monospace;
    color: var(--warning);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.achievements-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.achievement-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    filter: grayscale(1);
    transition: all 0.3s;
    cursor: help;
    position: relative;
}

.achievement-badge svg {
    width: 18px;
    height: 18px;
}

.achievement-badge.unlocked {
    opacity: 1;
    filter: none;
    border-color: var(--warning);
    color: var(--warning);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.achievement-badge:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    white-space: nowrap;
    z-index: 100;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px 20px;
    margin-top: 25px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(255, 120, 0, 0.5);
}

.footer-mal {
    color: var(--text-primary);
}

.footer-plus {
    color: var(--primary);
}

.copyright {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #666;
}

/* Mobile Controls */
.mobile-controls {
    display: none;
    justify-content: center;
    margin-top: 12px;
}

.dpad {
    display: grid;
    grid-template-columns: repeat(3, 48px);
    grid-template-rows: repeat(3, 48px);
    gap: 4px;
}

.dpad-btn {
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dpad-btn svg {
    width: 20px;
    height: 20px;
}

.dpad-btn:active {
    background: var(--primary);
    color: var(--text-primary);
    transform: scale(0.95);
}

.dpad-up { grid-column: 2; grid-row: 1; }
.dpad-left { grid-column: 1; grid-row: 2; }
.dpad-center { grid-column: 2; grid-row: 2; opacity: 0.3; }
.dpad-right { grid-column: 3; grid-row: 2; }
.dpad-down { grid-column: 2; grid-row: 3; }

/* Responsive */
@media (max-width: 640px) {
    .mobile-controls {
        display: flex;
    }
    
    .controls {
        justify-content: center;
    }

    .character-btn {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .settings-bar {
        justify-content: center;
    }

    .achievement-toast {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }

    .achievement-toast.show {
        transform: translateY(0);
    }
}

@media (hover: none) and (pointer: coarse) {
    .mobile-controls {
        display: flex;
    }
}

/* New Record Animation */
.new-record {
    color: var(--warning) !important;
    animation: newRecordPulse 0.5s ease-in-out infinite;
}

@keyframes newRecordPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
        transform: scale(1.05);
    }
}

/* Accessibility - Focus States */
.neon-btn:focus,
.icon-btn:focus,
.diff-btn:focus,
.character-btn:focus,
.dpad-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border: #555;
        --text-secondary: #ccc;
    }
    
    .game-wrapper {
        border-width: 2px;
    }
}

/* Print Styles */
@media print {
    .bg-gradient,
    .scan-line,
    .particles,
    .mobile-controls,
    .settings-bar,
    .game-canvas-container {
        display: none !important;
    }
}
