:root {
    --bg-dark: #0a0a0a;
    --panel-bg: rgba(15, 23, 42, 0.85);
    --panel-border: #1e293b;
    --neon-blue: #0ea5e9;
    --neon-green: #10b981;
    --neon-red: #ef4444;
    --neon-gold: #fbbf24;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --pitch-green: #155d27;
    --pitch-line: rgba(255,255,255,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Rajdhani', sans-serif; user-select: none; }
body { background-color: var(--bg-dark); color: var(--text-main); height: 100vh; overflow: hidden; background-image: radial-gradient(circle at center, #1e1e2f 0%, #0a0a0a 100%); }

.mt-1 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none !important; }
.text-green { color: var(--neon-green); }
.text-blue { color: var(--neon-blue); }
.text-gold { color: var(--neon-gold); }

/* LAYOUT */
#game-ui { display: flex; height: 100%; width: 100%; }

/* NAVIGATION / UTILS */
.nav-btn.active { pointer-events: none; }

/* MAIN CONTENT */
#game-main { flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; }

/* TOP RESOURCE BAR */
#top-resource-bar {
    height: 70px; background: rgba(10, 10, 15, 0.95); border-bottom: 1px solid var(--panel-border);
    display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; z-index: 50; box-shadow: 0 4px 15px rgba(0,0,0,0.5); backdrop-filter: blur(10px);
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 1.5rem; }
.btn-back-menu {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(14, 165, 233, 0.1); border: 1px solid rgba(14, 165, 233, 0.5); padding: 8px 20px; border-radius: 30px; color: var(--neon-blue); font-family: 'Oswald', sans-serif; font-size: 1.2rem; cursor: pointer; transition: 0.3s; letter-spacing: 1px;
}
.btn-back-menu:hover { background: var(--neon-blue); color: #fff; transform: translateX(-5px); box-shadow: 0 0 15px rgba(14, 165, 233, 0.5); }
.btn-back-menu.active { display: none; } /* Hide when on home screen */
.res-item { font-family: 'Oswald', sans-serif; font-size: 1.3rem; display: flex; align-items: center; gap: 0.8rem; background: rgba(0,0,0,0.4); padding: 0.4rem 1rem; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); }
.res-item i { font-size: 1.2rem; }
.action-icon { padding: 0; width: 45px; height: 45px; justify-content: center; border-radius: 50%; cursor: pointer; transition: 0.3s; background: rgba(255,255,255,0.05); }
.action-icon:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* VIEWS */
.game-view { flex: 1; position: absolute; top: 70px; left: 0; width: 100%; height: calc(100% - 70px); display: flex; }

/* HOME VIEW */
.home-container { width: 100%; padding: 2rem; overflow-y: auto; background: url('https://www.transparenttextures.com/patterns/stardust.png') var(--bg-dark); display: flex; flex-direction: column; align-items: center; }
.featured-banner {
    width: 100%; max-width: 1200px; height: 35vh; min-height: 250px; background: url('https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&q=80') center/cover;
    border-radius: 20px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 3rem; box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}
.banner-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(10,10,15,1) 0%, rgba(10,10,15,0.3) 100%); }
.banner-content { position: relative; z-index: 2; max-width: 600px; }
.banner-badge { background: var(--neon-gold); color: #000; padding: 4px 12px; border-radius: 4px; font-weight: 700; font-size: 0.9rem; letter-spacing: 1px; display: inline-block; margin-bottom: 1rem; }
.banner-title { font-family: 'Oswald', sans-serif; font-size: 3.5rem; text-transform: uppercase; line-height: 1.1; margin-bottom: 0.5rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); }
.banner-desc { font-size: 1.2rem; color: #ddd; margin-bottom: 1.5rem; }
.banner-btn { background: var(--neon-blue); color: #fff; padding: 1rem 2.5rem; font-family: 'Oswald', sans-serif; font-size: 1.2rem; border: none; border-radius: 30px; cursor: pointer; font-weight: 700; letter-spacing: 1px; transition: 0.3s; box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4); }
.banner-btn:hover { background: #0284c7; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(14, 165, 233, 0.6); }

/* Main Menu Grid */
.main-menu-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; max-width: 1200px; width: 100%; margin: 0 auto; }
.menu-card {
    background: linear-gradient(135deg, rgba(30,41,59,0.9) 0%, rgba(15,23,42,0.95) 100%);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 2rem 1.5rem;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 1rem; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    width: calc(33.333% - 1rem); min-width: 280px;
}
.menu-card:hover { transform: translateY(-8px); border-color: var(--neon-blue); box-shadow: 0 15px 30px rgba(14, 165, 233, 0.25); background: linear-gradient(135deg, rgba(30,41,59,1) 0%, rgba(15,23,42,1) 100%); }
.menu-icon { font-size: 2.5rem; color: var(--neon-blue); width: 85px; height: 85px; flex-shrink: 0; display: flex; justify-content: center; align-items: center; background: rgba(14, 165, 233, 0.08); border-radius: 50%; border: 2px solid rgba(14, 165, 233, 0.4); box-shadow: inset 0 0 15px rgba(14, 165, 233, 0.2); line-height: 1; margin-bottom: 0.5rem; }
.menu-text { width: 100%; }
.menu-text h3 { font-family: 'Oswald', sans-serif; font-size: 1.8rem; letter-spacing: 1.5px; margin-bottom: 0.5rem; text-transform: uppercase; }
.menu-text p { font-size: 1rem; color: var(--text-muted); line-height: 1.4; }
#menu-match .menu-icon { color: var(--neon-green); background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.4); box-shadow: inset 0 0 15px rgba(16, 185, 129, 0.1); }
#menu-match:hover { border-color: var(--neon-green); box-shadow: 0 15px 30px rgba(16, 185, 129, 0.25); }


/* SQUAD VIEW */
.pitch-area { flex: 1; display: flex; justify-content: center; align-items: center; background: url('https://www.transparenttextures.com/patterns/stardust.png') var(--bg-dark); }
.pitch { width: 60%; height: 85%; background: linear-gradient(0deg, #124b1f, #1a6b2d); border: 2px solid var(--pitch-line); position: relative; border-radius: 4px; box-shadow: 0 0 30px rgba(0,0,0,0.8) inset, 0 10px 40px rgba(0,0,0,0.5); }
.center-circle { position: absolute; top: 50%; left: 50%; width: 120px; height: 120px; transform: translate(-50%, -50%); border: 2px solid var(--pitch-line); border-radius: 50%; }
.center-line { position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: var(--pitch-line); }
.penalty-box { position: absolute; left: 20%; width: 60%; border: 2px solid var(--pitch-line); }
.penalty-box.top { top: 0; height: 15%; border-top: none; }
.penalty-box.bottom { bottom: 0; height: 15%; border-bottom: none; }
.goal-box { position: absolute; left: 35%; width: 30%; border: 2px solid var(--pitch-line); }
.goal-box.top { top: 0; height: 5%; border-top: none; }
.goal-box.bottom { bottom: 0; height: 5%; border-bottom: none; }
#pitch-players { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.field-player { position: absolute; width: 60px; height: 70px; transform: translate(-50%, -50%); transition: top 0.5s ease-in-out, left 0.5s ease-in-out; display: flex; flex-direction: column; align-items: center; cursor: pointer; z-index: 10; }
.field-player:hover { transform: translate(-50%, -50%) scale(1.1); }
.field-player.selected .fp-card { border-color: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue); }
.fp-card { background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; width: 100%; text-align: center; padding: 2px; backdrop-filter: blur(4px); }
.fp-ovr { font-family: 'Oswald', sans-serif; font-size: 1.2rem; font-weight: 700; color: #fff; line-height: 1; }
.fp-pos { font-size: 0.7rem; color: var(--neon-blue); font-weight: 700; background: rgba(0,0,0,0.5); margin-top:2px; border-radius: 2px; }
.fp-name { font-size: 0.75rem; font-weight: 600; white-space: nowrap; text-shadow: 1px 1px 2px #000; margin-top: 2px; }
.fp-cond { position: absolute; top: -5px; right: -5px; background: #000; border-radius: 50%; padding: 2px; font-size: 0.6rem; border:1px solid #333;}

.info-panel { width: 320px; background: var(--panel-bg); border-left: 1px solid var(--panel-border); backdrop-filter: blur(10px); padding: 2rem 1.5rem; display: flex; flex-direction: column; overflow-y: auto; }
.club-header { text-align: center; margin-bottom: 2rem; }
.club-logo-img { width: 60px; height: 60px; border-radius: 12px; margin-bottom: 1rem; }
.club-header h1 { font-family: 'Oswald', sans-serif; font-size: 1.8rem; margin-bottom: 0.2rem; }
.manager-name { color: var(--text-muted); font-size: 0.9rem; }
.strength-box, .chemistry-box { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); padding: 1rem; border-radius: 8px; margin-bottom: 1rem; text-align: center; }
.strength-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.strength-value { font-family: 'Oswald', sans-serif; font-size: 2.5rem; color: var(--neon-blue); }
.chem-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.chem-bar-container { width: 100%; height: 6px; background: #333; border-radius: 3px; overflow: hidden; margin-bottom: 0.5rem; }
.chem-bar { height: 100%; background: var(--neon-green); transition: width 0.3s; }
.chem-val { font-family: 'Oswald', sans-serif; font-size: 1.2rem; }
.game-select { width: 100%; background: rgba(0,0,0,0.5); color: #fff; border: 1px solid var(--panel-border); padding: 0.8rem; border-radius: 6px; font-size: 1rem; outline: none; margin-top: 0.5rem; }
.bench-title { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--panel-border); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.bench-list { display: flex; flex-direction: column; gap: 0.5rem; }
.bench-item { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.3); padding: 0.5rem; border-radius: 6px; cursor: pointer; border: 1px solid transparent; }
.bench-item:hover { background: rgba(0,0,0,0.5); }
.bench-item.selected { border-color: var(--neon-blue); }
.bi-left { display: flex; gap: 10px; align-items: center; }
.bi-pos { font-weight: 700; color: var(--neon-blue); font-size: 0.8rem; width: 25px; }
.bi-name { font-size: 0.9rem; }
.bi-ovr { font-family: 'Oswald', sans-serif; font-weight: 700; }

/* TACTICS, LEAGUE, TRANSFER, SETTINGS VIEWS */
.tactics-container, .league-container, .transfer-container { width: 100%; padding: 3rem; background: rgba(15, 23, 42, 0.6); overflow-y: auto; }
.centered-view { display: flex; flex-direction: column; align-items: center; }
.view-title { font-family: 'Oswald', sans-serif; font-size: 2.5rem; text-transform: uppercase; letter-spacing: 2px; border-bottom: 2px solid var(--neon-blue); display: inline-block; padding-bottom: 0.5rem; margin-bottom: 2rem; }
.tactic-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.tactic-card { background: rgba(0,0,0,0.5); border: 1px solid var(--panel-border); padding: 2rem 1.5rem; border-radius: 12px; text-align: center; cursor: pointer; transition: all 0.2s; }
.tactic-card:hover { transform: translateY(-5px); background: rgba(0,0,0,0.8); }
.tactic-card.active { border-color: var(--neon-blue); box-shadow: 0 0 20px rgba(14, 165, 233, 0.3); }
.tactic-card i { font-size: 2.5rem; color: var(--neon-blue); margin-bottom: 1rem; }
.tactic-card h3 { font-family: 'Oswald', sans-serif; font-size: 1.5rem; margin-bottom: 0.5rem; }

.league-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; }
.matchday-info { font-size: 1.2rem; color: var(--neon-blue); font-weight: 600; }
.league-standings { background: rgba(0,0,0,0.5); border: 1px solid var(--panel-border); border-radius: 12px; overflow: hidden; }
.ls-header, .ls-row { display: grid; grid-template-columns: 50px 3fr repeat(5, 1fr) 1.5fr; padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); align-items: center; }
.ls-header { background: rgba(0,0,0,0.8); font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 0.8rem; }
.ls-row:hover { background: rgba(255,255,255,0.05); }
.ls-row.player-team { background: rgba(14, 165, 233, 0.1); border-left: 4px solid var(--neon-blue); }
.ls-pos { font-family: 'Oswald', sans-serif; font-size: 1.2rem; }
.ls-club { font-weight: 600; font-size: 1.1rem; }
.ls-pts { font-family: 'Oswald', sans-serif; font-size: 1.2rem; color: var(--neon-blue); font-weight: 700; }

.transfer-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; }
.club-funds { font-family: 'Oswald', sans-serif; font-size: 2rem; color: var(--neon-green); }
.transfer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.tf-card { background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; text-align: center; position: relative; }
.tf-photo { width: 100%; height: 150px; background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent), url('https://via.placeholder.com/200/333/fff?text=Photo') center/cover; }
.tf-ovr { position: absolute; top: 10px; left: 10px; font-family: 'Oswald', sans-serif; font-size: 1.5rem; background: rgba(0,0,0,0.7); padding: 5px 10px; border-radius: 6px; }
.tf-info { padding: 1.5rem; }
.tf-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.tf-details { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.btn-buy { width: 100%; padding: 0.8rem; background: var(--neon-blue); color: #fff; border: none; border-radius: 6px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.btn-buy:hover { background: #0284c7; }

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

/* EVENT MODAL */
.event-content { background: rgba(15, 23, 42, 0.95); border: 2px solid var(--neon-gold); padding: 3rem; border-radius: 16px; text-align: center; width: 600px; box-shadow: 0 0 50px rgba(251, 191, 36, 0.2); }
.event-title { font-family: 'Oswald', sans-serif; font-size: 2.5rem; letter-spacing: 2px; color: var(--neon-gold); margin-bottom: 1rem; }
.event-desc { font-size: 1.2rem; line-height: 1.6; margin-bottom: 2rem; }
.event-choices { display: flex; flex-direction: column; gap: 1rem; }

.game-btn-large { width: 100%; padding: 1rem; font-family: 'Oswald', sans-serif; font-size: 1.5rem; letter-spacing: 2px; background: var(--neon-green); color: #000; border: none; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.game-btn-large:hover { transform: scale(1.02); box-shadow: 0 0 20px rgba(16, 185, 129, 0.5); }
.game-btn-secondary { width: 100%; padding: 1rem; font-family: 'Oswald', sans-serif; font-size: 1.2rem; background: transparent; color: #fff; border: 1px solid var(--text-muted); border-radius: 8px; cursor: pointer; }

/* PRE MATCH */
.pre-match-content { background: rgba(15, 23, 42, 0.95); border: 2px solid var(--neon-blue); padding: 3rem; border-radius: 16px; text-align: center; width: 600px; box-shadow: 0 0 50px rgba(14, 165, 233, 0.2); }
.pm-title { font-family: 'Oswald', sans-serif; font-size: 2.5rem; letter-spacing: 3px; margin-bottom: 2rem; color: var(--neon-blue); }
.pm-matchup { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.pm-team { width: 40%; }
.pm-logo { font-size: 4rem; color: #fff; margin-bottom: 1rem; filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)); }
.pm-team h2 { font-family: 'Oswald', sans-serif; font-size: 1.8rem; }
.pm-str { font-size: 1rem; color: var(--text-muted); }
.pm-vs { font-family: 'Oswald', sans-serif; font-size: 2rem; color: var(--neon-red); }
.pm-info { display: flex; justify-content: space-around; background: rgba(0,0,0,0.5); padding: 1rem; border-radius: 8px; font-size: 1.1rem; }

/* SIMULATION */
.sim-content { text-align: center; }
.sim-logos { position: relative; height: 150px; width: 400px; margin: 0 auto 2rem; }
.sim-logo { font-size: 6rem; position: absolute; top: 50%; transform: translateY(-50%); transition: left 0.1s, right 0.1s; }
.sim-logo.left { left: 0; animation: clashLeft 0.5s infinite alternate; }
.sim-logo.right { right: 0; animation: clashRight 0.5s infinite alternate; }
@keyframes clashLeft { from { left: 0; } to { left: 40%; } }
@keyframes clashRight { from { right: 0; } to { right: 40%; } }
.sim-text { font-family: 'Oswald', sans-serif; font-size: 3rem; letter-spacing: 5px; }
.flash { animation: flash 1s infinite; }
@keyframes flash { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }
.sim-ambience { font-size: 1.2rem; color: var(--text-muted); margin-top: 1rem; }

/* RESULT */
.result-content { background: rgba(0,0,0,0.9); border: 2px solid #fff; padding: 3rem; border-radius: 16px; width: 700px; text-align: center; }
.ft-label { font-family: 'Oswald', sans-serif; font-size: 1.5rem; color: var(--neon-red); letter-spacing: 4px; margin-bottom: 1rem; }
.result-score-box { display: flex; flex-direction: row !important; justify-content: center; align-items: center; margin-bottom: 2rem; width: 100%; flex-wrap: nowrap; }
.res-team { font-family: 'Oswald', sans-serif; font-size: 2rem; flex: 1; text-align: center; word-break: break-word; line-height: 1.2; }
.res-score { font-family: 'Oswald', sans-serif; font-size: 3.5rem; font-weight: 700; background: linear-gradient(180deg, #fff, var(--neon-gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; padding: 0 1rem; white-space: nowrap; text-shadow: none; filter: drop-shadow(0 0 10px rgba(251,191,36,0.5)); }
.res-scorers { display: flex; flex-direction: column; gap: 0.5rem; font-size: 1.1rem; color: #ccc; min-height: 80px; }
.res-stats { background: rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 12px; }
.res-stat-row { display: flex; justify-content: space-between; margin-bottom: 1rem; font-family: 'Oswald', sans-serif; font-size: 1.5rem; }
.res-stat-row span:nth-child(2) { color: var(--text-muted); font-size: 1.2rem; }
.res-motm { font-family: 'Oswald', sans-serif; font-size: 1.5rem; color: var(--neon-gold); }

/* PLAYER DETAIL */
.pd-content { background: var(--panel-bg); border: 1px solid var(--panel-border); padding: 2rem; width: 400px; border-radius: 16px; position: relative; }
.btn-close-pd { position: absolute; top: 1rem; right: 1rem; background: transparent; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.pd-header { display: flex; gap: 1rem; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; }
.pd-photo { width: 80px; height: 80px; background: #333; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 3rem; color: #555; }
.pd-titles { flex: 1; }
.pd-titles h2 { font-family: 'Oswald', sans-serif; font-size: 1.8rem; line-height: 1.2; }
.pd-pos-badge { background: var(--neon-blue); padding: 2px 6px; border-radius: 4px; font-weight: 700; font-size: 0.8rem; margin-right: 5px; }
.pd-trait { background: var(--neon-gold); color: #000; padding: 2px 6px; border-radius: 4px; font-weight: 700; font-size: 0.7rem; margin-left: 5px; }
.pd-ovr-box { text-align: center; }
.pd-ovr-val { font-family: 'Oswald', sans-serif; font-size: 2.5rem; color: var(--neon-green); line-height: 1; }
.pd-ovr-label { font-size: 0.8rem; color: var(--text-muted); }

.pd-basic-info { display: flex; justify-content: space-between; font-size: 1.1rem; }
.pd-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: rgba(0,0,0,0.3); padding: 1rem; border-radius: 8px; }
.pd-stat { display: flex; justify-content: space-between; font-size: 1.1rem; }
.pd-stat label { color: var(--text-muted); }
.pd-stat span { font-weight: 700; }

/* SCREEN TRANSITIONS & LEADERBOARD */
.fade-in { animation: fadeIn 0.5s forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.slide-up { animation: slideUp 0.8s ease-out forwards; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.highlight-rank { background: rgba(16, 185, 129, 0.3) !important; border-left: 4px solid var(--neon-green) !important; animation: pulseRank 2s infinite; }
@keyframes pulseRank { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

#screen-transition {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9000; display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease; pointer-events: none; opacity: 0;
}
#screen-transition.active { opacity: 1; pointer-events: all; }
.transition-logo { font-size: 5rem; color: var(--neon-blue); animation: spin 1s infinite linear; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    /* Top Bar */
    #top-resource-bar { padding: 0 1rem; height: 60px; }
    .top-bar-left, .top-bar-right { gap: 0.8rem; }
    .btn-back-menu { padding: 6px 12px; font-size: 1rem; }
    .res-item { font-size: 1.1rem; padding: 0.3rem 0.8rem; }
    .game-view { top: 60px; height: calc(100% - 60px); }
    
    /* Home View */
    .home-container { padding: 1rem; }
    .featured-banner { padding: 1.5rem; height: 25vh; min-height: 200px; border-radius: 12px; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
    .banner-title { font-size: 2.2rem; }
    .banner-desc { font-size: 1rem; margin-bottom: 1rem; }
    .banner-btn { padding: 0.8rem 1.5rem; font-size: 1rem; }
    
    /* Main Menu Grid */
    .main-menu-grid { flex-direction: column; gap: 1rem; }
    .menu-card { width: 100%; min-width: unset; padding: 1rem; gap: 1rem; border-radius: 12px; }
    .menu-icon { width: 60px; height: 60px; font-size: 1.8rem; border-radius: 12px; border-width: 1px; }
    .menu-text h3 { font-size: 1.3rem; }
    .menu-text p { font-size: 0.85rem; }
    
    /* Pitch / Game Plan */
    .pitch-area { flex-direction: column !important; padding: 0 !important; }
    .pitch { width: 100% !important; min-height: 400px; }
    .info-panel { width: 100% !important; max-width: none !important; border-left: none; border-top: 1px solid var(--panel-border); }
    
    /* Modals */
    .pm-matchup { flex-direction: column; gap: 1rem; }
    .pm-vs { font-size: 1.5rem; margin: 0; }
    .event-content, .result-content { padding: 1.5rem; width: 95%; max-width: 400px; }
    .event-title { font-size: 1.8rem; }
    
    /* Match Result Horizontal Fixes */
    .res-team { font-size: 1.3rem; }
    .res-score { font-size: 2.2rem; padding: 0 0.5rem; }
    .result-score-box { margin-bottom: 1rem; }
}
