/* ============================================
   MAGIC MUNCH - COMPLETE GAME STYLES
   ============================================ */

/* === CSS VARIABLES === */
:root {
    --bg-dark: #0a0a1a;
    --bg-medium: #12122a;
    --bg-card: #1a1a3e;
    --bg-glass: rgba(20, 20, 60, 0.85);
    --purple-primary: #8b5cf6;
    --purple-light: #a78bfa;
    --purple-dark: #6d28d9;
    --gold-primary: #f59e0b;
    --gold-light: #fbbf24;
    --gold-glow: rgba(245, 158, 11, 0.4);
    --pink-primary: #ec4899;
    --pink-light: #f472b6;
    --teal-primary: #14b8a6;
    --teal-light: #2dd4bf;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-dim: #64748b;
    --border-glow: rgba(139, 92, 246, 0.3);
    --shadow-purple: 0 0 30px rgba(139, 92, 246, 0.3);
    --shadow-gold: 0 0 30px rgba(245, 158, 11, 0.3);
    --maze-wall: #6d28d9;
    --maze-path: #0f0f2e;
    --dot-color: #fbbf24;
    --power-dot: #ec4899;
    --font-game: 'Press Start 2P', monospace;
    --font-ui: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-ui);
    background: var(--bg-dark);
    color: var(--text-primary);
    cursor: default;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === SCREEN MANAGEMENT === */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
}

.screen.fade-out {
    opacity: 0;
}

/* === STARFIELD BACKGROUND === */
.stars-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: radial-gradient(ellipse at center, #12122a 0%, #0a0a1a 70%);
}

.stars-bg::before,
.stars-bg::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
}

.stars-bg::before {
    box-shadow:
        50px 100px #fff2, 150px 200px #fff3, 300px 50px #fff2,
        450px 300px #fff3, 600px 150px #fff2, 750px 350px #fff3,
        100px 400px #fff2, 250px 500px #fff3, 400px 450px #fff2,
        550px 100px #fff3, 700px 250px #fff2, 850px 400px #fff3,
        50px 550px #fff2, 200px 650px #fff3, 350px 50px #fff2,
        500px 200px #fff3, 650px 500px #fff2, 800px 100px #fff3,
        900px 300px #fff2, 1000px 450px #fff3, 1100px 200px #fff2,
        1200px 350px #fff3, 80px 250px #fff2, 180px 370px #fff3;
    animation: twinkle 4s infinite alternate;
}

.stars-bg::after {
    box-shadow:
        120px 50px #fff1, 200px 300px #fff2, 350px 150px #fff1,
        500px 400px #fff2, 650px 200px #fff1, 800px 300px #fff2,
        100px 500px #fff1, 300px 600px #fff2, 500px 50px #fff1,
        700px 450px #fff2, 900px 150px #fff1, 1050px 400px #fff2,
        1150px 250px #fff1, 1300px 100px #fff2, 160px 180px #fff1;
    animation: twinkle 6s infinite alternate-reverse;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* === TITLE SCREEN === */
.title-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo-container {
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
}

.game-title-text {
    font-family: var(--font-game);
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--purple-light) 50%, var(--pink-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5)) drop-shadow(0 0 60px rgba(245, 158, 11, 0.3));
    letter-spacing: 6px;
    text-shadow: none;
    transition: var(--transition-smooth);
    margin: 0;
}

.game-title-text:hover {
    filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.7)) drop-shadow(0 0 80px rgba(245, 158, 11, 0.5));
    transform: scale(1.05);
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 300;
    letter-spacing: 1px;
}

.title-sponsor-logo {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.title-sponsor-logo:hover {
    opacity: 1;
}

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

.tagline {
    font-family: var(--font-ui);
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--purple-light);
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.9;
}

.hint-text {
    font-size: 0.85rem;
    color: var(--text-dim);
    animation: blink 2s infinite;
}

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

/* Floating Ghosts on Title */
.floating-ghosts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.float-ghost {
    position: absolute;
    width: 60px;
    height: 60px;
    object-fit: contain;
    opacity: 0.5;
    filter: blur(1px);
}

.ghost-1 { top: 15%; left: 10%; animation: ghostFloat1 8s ease-in-out infinite; }
.ghost-2 { top: 25%; right: 12%; animation: ghostFloat2 10s ease-in-out infinite; }
.ghost-3 { bottom: 20%; left: 15%; animation: ghostFloat3 9s ease-in-out infinite; }
.ghost-4 { bottom: 15%; right: 10%; animation: ghostFloat4 7s ease-in-out infinite; }

@keyframes ghostFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(5deg); }
    50% { transform: translate(60px, 10px) rotate(-3deg); }
    75% { transform: translate(20px, 30px) rotate(8deg); }
}

@keyframes ghostFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-40px, 30px) rotate(-5deg); }
    66% { transform: translate(-20px, -25px) rotate(6deg); }
}

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

@keyframes ghostFloat4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-30px, -30px) rotate(-8deg); }
    75% { transform: translate(20px, 20px) rotate(5deg); }
}

/* === BUTTONS === */
.btn-magic {
    font-family: var(--font-game);
    font-size: 0.85rem;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-bounce);
    letter-spacing: 1px;
    text-transform: uppercase;
    user-select: none;
}

.btn-magic:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.btn-primary {
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-primary));
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), 0 0 40px rgba(139, 92, 246, 0.1);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5), 0 0 60px rgba(139, 92, 246, 0.2);
}

.btn-primary:active:not(:disabled) { transform: translateY(0) scale(0.98); }

.btn-secondary {
    background: var(--bg-card);
    color: var(--purple-light);
    border: 2px solid var(--border-glow);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-sparkle {
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: sparkleSlide 3s infinite;
}

@keyframes sparkleSlide { 0% { left: -100%; } 50% { left: 100%; } 100% { left: 100%; } }

/* === SCREEN CONTENT === */
.screen-content {
    position: relative; z-index: 2; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 20px;
}

.screen-title {
    font-family: var(--font-game); font-size: 1.8rem;
    background: linear-gradient(135deg, var(--gold-light), var(--purple-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    text-shadow: none; filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

.screen-subtitle { font-size: 1.1rem; color: var(--text-secondary); font-weight: 300; letter-spacing: 1px; }

/* === AVATAR SELECTION === */
.avatar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 420px; width: 100%; padding: 10px; }

.avatar-card {
    position: relative; background: var(--bg-card); border-radius: 20px; padding: 20px 15px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    cursor: pointer; border: 2px solid transparent; transition: var(--transition-bounce); outline: none;
}

.avatar-card:hover { transform: translateY(-8px) scale(1.05); border-color: var(--purple-primary); box-shadow: var(--shadow-purple); }

.avatar-card.selected {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold), inset 0 0 30px rgba(245, 158, 11, 0.1);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(139, 92, 246, 0.1));
}

.avatar-card.selected::after {
    content: '\2713'; position: absolute; top: -8px; right: -8px; width: 28px; height: 28px;
    background: var(--gold-primary); color: var(--bg-dark); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.8rem;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.5); animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.avatar-glow {
    position: absolute; top: 50%; left: 50%; width: 80px; height: 80px; transform: translate(-50%, -60%);
    border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.3s ease;
}

.avatar-card:hover .avatar-glow, .avatar-card.selected .avatar-glow { opacity: 1; }

.avatar-card img { width: 100px; height: 100px; object-fit: contain; transition: transform 0.3s ease; position: relative; z-index: 1; }
.avatar-card:hover img { transform: scale(1.1); }

.avatar-name { font-family: var(--font-game); font-size: 0.55rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.avatar-card.selected .avatar-name { color: var(--gold-light); }

/* === NAME ENTRY === */
.selected-avatar-preview {
    width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--purple-primary);
    display: flex; align-items: center; justify-content: center; background: var(--bg-card);
    box-shadow: var(--shadow-purple); animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.6); }
}

.selected-avatar-preview img { width: 80px; height: 80px; object-fit: contain; }
.name-input-container { position: relative; width: 350px; max-width: 90vw; }

.magic-input {
    width: 100%; padding: 16px 24px; font-family: var(--font-game); font-size: 0.9rem;
    color: var(--text-primary); background: var(--bg-card); border: 2px solid var(--border-glow);
    border-radius: 16px; outline: none; text-align: center; transition: var(--transition-smooth); letter-spacing: 2px;
}

.magic-input::placeholder { color: var(--text-dim); font-family: var(--font-ui); font-size: 0.9rem; letter-spacing: 1px; }
.magic-input:focus { border-color: var(--purple-primary); box-shadow: var(--shadow-purple), inset 0 0 20px rgba(139, 92, 246, 0.1); }

.input-underline {
    position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background: linear-gradient(90deg, var(--purple-primary), var(--gold-primary));
    transition: all 0.3s ease; transform: translateX(-50%); border-radius: 2px;
}

.magic-input:focus ~ .input-underline { width: 80%; }

/* === GAME TOP BAR === */
.game-top-bar {
    position: fixed; top: 0; left: 0; right: 0; height: 60px;
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.98) 0%, rgba(10, 10, 26, 0.9) 100%);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-glow);
    display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
    z-index: 100; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.top-bar-left { flex: 0 0 auto; }
.bar-game-title {
    font-family: var(--font-game); font-size: 0.75rem;
    background: linear-gradient(135deg, var(--gold-light), var(--purple-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    letter-spacing: 2px; white-space: nowrap;
}

.bar-sponsor-logo { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: 0.7; }
.top-bar-center { display: flex; gap: 30px; align-items: center; }
.stat-box { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-label { font-family: var(--font-game); font-size: 0.5rem; color: var(--text-dim); letter-spacing: 2px; }
.stat-value { font-family: var(--font-game); font-size: 0.9rem; color: var(--gold-light); text-shadow: 0 0 10px var(--gold-glow); }

.player-name-display {
    color: var(--purple-light) !important; font-size: 0.7rem !important;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.4) !important;
    max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.top-bar-right { flex: 0 0 auto; }
.lives-container { display: flex; gap: 6px; align-items: center; }
.life-icon { font-size: 1.2rem; transition: var(--transition-bounce); filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.5)); }
.life-icon.lost { opacity: 0.2; filter: grayscale(1); transform: scale(0.8); }
.life-icon.losing { animation: lifeLost 0.5s ease-out; }

@keyframes lifeLost {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5) rotate(15deg); opacity: 0.5; }
    100% { transform: scale(0.8); opacity: 0.2; }
}

/* === GAME CANVAS === */
.game-canvas-wrapper {
    display: flex; align-items: center; justify-content: center; width: 100%;
    height: calc(100vh - 60px); margin-top: 60px; background: var(--bg-dark);
    position: relative; overflow: hidden;
}

#game-canvas {
    image-rendering: pixelated; border-radius: 8px;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2), 0 0 80px rgba(0, 0, 0, 0.5);
}

/* === OVERLAYS === */
.level-overlay, .gameover-overlay, .pause-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); display: none; align-items: center; justify-content: center;
    z-index: 200; backdrop-filter: blur(8px);
}

.level-overlay.active, .gameover-overlay.active, .pause-overlay.active { display: flex; }

.level-overlay-content, .gameover-content, .pause-content {
    text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px;
    animation: overlayPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes overlayPop { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.level-overlay-content h2 {
    font-family: var(--font-game); font-size: 1.8rem;
    background: linear-gradient(135deg, var(--gold-light), var(--purple-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.level-overlay-content p { font-family: var(--font-ui); font-size: 1.2rem; color: var(--text-secondary); }
.level-stars { font-size: 2rem; animation: starSpin 1s ease-in-out infinite alternate; }

@keyframes starSpin { 0% { transform: scale(1) rotate(-5deg); } 100% { transform: scale(1.2) rotate(5deg); } }

.gameover-title {
    font-family: var(--font-game); font-size: 2rem; color: #ef4444;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.5); animation: gameover-flash 1s ease-in-out infinite alternate;
}

@keyframes gameover-flash { 0% { opacity: 0.7; } 100% { opacity: 1; } }

.gameover-score, .gameover-level { font-family: var(--font-game); font-size: 0.9rem; color: var(--gold-light); }

.pause-title { font-family: var(--font-game); font-size: 2rem; color: var(--purple-light); text-shadow: 0 0 20px rgba(139, 92, 246, 0.5); }
.pause-content p { color: var(--text-secondary); font-size: 1rem; }

/* === GAME OVER HAPI IMAGE === */
.gameover-hapi-img {
    width: 80px; height: 80px; border-radius: 50%; border: 3px solid #ef4444; object-fit: cover;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5); animation: hapi-shake 0.5s ease-in-out infinite alternate;
}

@keyframes hapi-shake { 0% { transform: rotate(-5deg) scale(1); } 100% { transform: rotate(5deg) scale(1.05); } }

/* === LEADERBOARD === */
.leaderboard-section { width: 100%; max-width: 400px; margin: 5px 0; }
.leaderboard-fullscreen { max-width: 550px; }
.leaderboard-title { font-family: var(--font-game); font-size: 0.75rem; color: var(--gold-light); text-shadow: 0 0 10px var(--gold-glow); margin-bottom: 10px; }

.leaderboard-table-wrapper {
    background: rgba(10, 10, 30, 0.7); border: 1px solid var(--border-glow);
    border-radius: 12px; overflow: hidden; max-height: 200px; overflow-y: auto;
}

.leaderboard-fullscreen .leaderboard-table-wrapper { max-height: 400px; }

.leaderboard-table { width: 100%; border-collapse: collapse; font-family: var(--font-game); font-size: 0.55rem; }
.leaderboard-table thead { position: sticky; top: 0; z-index: 2; }
.leaderboard-table th {
    background: linear-gradient(135deg, var(--purple-dark), var(--bg-card)); color: var(--text-secondary);
    padding: 10px 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 400;
    border-bottom: 1px solid var(--border-glow); text-align: center;
}

.leaderboard-table td { padding: 8px 12px; color: var(--text-primary); border-bottom: 1px solid rgba(139, 92, 246, 0.1); text-align: center; }
.leaderboard-table tr:nth-child(even) { background: rgba(139, 92, 246, 0.05); }
.leaderboard-table tr:hover { background: rgba(139, 92, 246, 0.1); }

.leaderboard-table tr.rank-1 td { color: var(--gold-light); text-shadow: 0 0 8px var(--gold-glow); }
.leaderboard-table tr.rank-2 td { color: #c0c0c0; text-shadow: 0 0 8px rgba(192, 192, 192, 0.3); }
.leaderboard-table tr.rank-3 td { color: #cd7f32; text-shadow: 0 0 8px rgba(205, 127, 50, 0.3); }
.leaderboard-table tr.current-player td { background: rgba(245, 158, 11, 0.15); font-weight: bold; }
.leaderboard-table .rank-medal { font-size: 0.9rem; }
.leaderboard-empty { font-family: var(--font-ui); font-size: 0.95rem; color: var(--text-dim); padding: 30px; font-style: italic; }

.leaderboard-table-wrapper::-webkit-scrollbar { width: 4px; }
.leaderboard-table-wrapper::-webkit-scrollbar-track { background: transparent; }
.leaderboard-table-wrapper::-webkit-scrollbar-thumb { background: var(--purple-dark); border-radius: 4px; }

/* === MOBILE CONTROLS === */
.mobile-controls {
    display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 150; flex-direction: column; align-items: center; gap: 5px;
}

.mobile-row { display: flex; gap: 5px; }

.mobile-btn {
    width: 60px; height: 60px; border-radius: 16px; border: 2px solid var(--border-glow);
    background: rgba(20, 20, 60, 0.9); color: var(--purple-light); font-size: 1.4rem; cursor: pointer;
    transition: var(--transition-smooth); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    user-select: none; -webkit-user-select: none; touch-action: manipulation;
}

.mobile-btn:active { background: rgba(139, 92, 246, 0.3); transform: scale(0.92); }

/* === SCORE POPUP === */
.score-popup {
    position: absolute; font-family: var(--font-game); font-size: 0.65rem; color: var(--gold-light);
    pointer-events: none; animation: scoreFloat 1s ease-out forwards; z-index: 50;
    text-shadow: 0 0 8px var(--gold-glow);
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .screen-title { font-size: 1.2rem; }
    .avatar-grid { grid-template-columns: repeat(2, 1fr); max-width: 300px; }
    .avatar-card img { width: 70px; height: 70px; }
    .game-logo { width: 280px; }
    .tagline { font-size: 0.9rem; letter-spacing: 2px; }
    .top-bar-center { gap: 15px; }
    .stat-value { font-size: 0.7rem; }
    .stat-label { font-size: 0.4rem; }
    .bar-logo { height: 28px; }
    .mobile-controls { display: flex; }
    .btn-magic { font-size: 0.7rem; padding: 12px 30px; }
}

@media (max-width: 480px) {
    .avatar-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .game-top-bar { height: 50px; padding: 0 10px; }
    .game-canvas-wrapper { height: calc(100vh - 50px); margin-top: 50px; }
    .player-name-display { display: none !important; }
}

/* === SCREEN TRANSITION === */
.screen-enter { animation: screenSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

@keyframes screenSlideIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* === PARTICLE SYSTEM === */
.particle {
    position: absolute; width: 4px; height: 4px; border-radius: 50%;
    pointer-events: none; animation: particleFade 1s ease-out forwards;
}

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