/* Palette: Void Black, Neon Red, Green, Blue */
:root {
    --bg: #090909;
    --card-bg: #121212;
    --neon-red: #ff0055;
    --neon-green: #00ff99;
    --neon-blue: #00ccff;
    --text: #ffffff;
    --text-dim: #aaaaaa;
    
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }

/* RGB Line */
.rgb-line-top { height: 4px; width: 100%; background: linear-gradient(90deg, var(--neon-red), var(--neon-green), var(--neon-blue)); position: fixed; top: 0; z-index: 2000; }

/* Header */
.game-header { padding: 20px 0; background: rgba(9,9,9,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid #222; position: sticky; top: 0; z-index: 1000; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-head); font-weight: 900; font-size: 1.8rem; letter-spacing: 2px; color: var(--text); position: relative; }
.glitch { position: relative; color: var(--text); }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.8; }
.glitch::before { color: var(--neon-red); z-index: -1; animation: glitch-anim-1 2s infinite linear alternate-reverse; }
.glitch::after { color: var(--neon-blue); z-index: -2; animation: glitch-anim-2 2s infinite linear alternate-reverse; }

@keyframes glitch-anim-1 { 0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px,0); } 100% { clip-path: inset(80% 0 10% 0); transform: translate(2px,0); } }
@keyframes glitch-anim-2 { 0% { clip-path: inset(10% 0 60% 0); transform: translate(2px,0); } 100% { clip-path: inset(30% 0 20% 0); transform: translate(-2px,0); } }

.game-nav a { margin-left: 30px; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--text-dim); letter-spacing: 1px; }
.game-nav a:hover, .game-nav a.active { color: var(--neon-green); text-shadow: 0 0 10px var(--neon-green); }

.btn-rgb { background: transparent; border: 2px solid var(--text); padding: 8px 25px; font-family: var(--font-head); font-weight: 700; position: relative; overflow: hidden; z-index: 1; transition: 0.3s; color: var(--text); }
.btn-rgb::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, var(--neon-red), var(--neon-blue)); z-index: -1; transition: 0.4s; }
.btn-rgb:hover::before { left: 0; }
.btn-rgb:hover { border-color: transparent; }

.mobile-toggle { display: none; background: transparent; border: 1px solid var(--text); color: var(--text); font-family: var(--font-head); padding: 5px 10px; cursor: pointer; }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100%; background: #000; z-index: 2000; padding: 50px; transition: 0.3s; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.mobile-menu.active { right: 0; }
.close-btn { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 2rem; color: var(--text); cursor: pointer; }
.mobile-menu a { font-family: var(--font-head); font-size: 2.5rem; margin: 15px 0; color: var(--text); text-transform: uppercase; }
.mobile-menu a:hover { color: var(--neon-red); }

@media (max-width: 900px) {
    .game-nav, .user-panel .btn-rgb { display: none; }
    .mobile-toggle { display: block; }
}

/* Hero */
.hero-gamer { height: 85vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 0; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(9,9,9,0.3), rgba(9,9,9,1)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; }

.rank-badge { display: inline-block; background: var(--card-bg); border: 1px solid var(--neon-green); color: var(--neon-green); padding: 5px 15px; font-family: var(--font-head); font-weight: 700; margin-bottom: 20px; letter-spacing: 2px; box-shadow: 0 0 10px rgba(0,255,153,0.3); }
.hero-content h1 { font-family: var(--font-head); font-size: 4.5rem; line-height: 1; margin-bottom: 20px; }
.neon-text { color: var(--neon-blue); text-shadow: 0 0 20px var(--neon-blue); }
.hero-content p { font-size: 1.4rem; color: var(--text-dim); margin-bottom: 40px; }

.cta-row { display: flex; justify-content: center; gap: 20px; }
.btn-polygon { background: var(--neon-red); color: var(--text); padding: 15px 40px; font-family: var(--font-head); font-weight: 700; clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%); transition: 0.3s; display: inline-block; }
.btn-polygon:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 0, 85, 0.5); }
.btn-outline { background: transparent; border: 2px solid var(--text); color: var(--text); padding: 13px 40px; font-family: var(--font-head); font-weight: 700; clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%); transition: 0.3s; display: inline-block; }
.btn-outline:hover { background: var(--text); color: var(--bg); }

/* Trending */
.section-head { margin-bottom: 50px; position: relative; }
.section-head h2 { font-family: var(--font-head); font-size: 3rem; margin-bottom: 10px; }
.bar-glitch { width: 100px; height: 5px; background: var(--neon-blue); position: relative; }
.bar-glitch::after { content: ''; position: absolute; width: 30px; height: 5px; background: var(--neon-red); right: -20px; top: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.game-card { background: var(--card-bg); border: 1px solid #222; transition: 0.3s; position: relative; overflow: hidden; }
.game-card:hover { transform: translateY(-10px); border-color: var(--neon-green); box-shadow: 0 0 20px rgba(0,255,153,0.1); }
.card-img { height: 250px; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.score { position: absolute; top: 10px; right: 10px; background: var(--neon-red); color: var(--text); font-family: var(--font-head); font-weight: 900; padding: 5px 10px; clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%, 0 20%); }
.card-body { padding: 25px; }
.cat { font-family: var(--font-head); font-size: 0.8rem; color: var(--neon-blue); display: block; margin-bottom: 5px; letter-spacing: 1px; }
.game-card h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 10px; line-height: 1.2; }
.game-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 20px; }
.read-more { color: var(--text); font-weight: 700; font-family: var(--font-head); font-size: 0.9rem; }
.read-more:hover { color: var(--neon-green); }

/* Tournament Ticker */
.tourney-ticker { background: linear-gradient(90deg, #111, #222, #111); padding: 10px 0; border-top: 1px solid #333; border-bottom: 1px solid #333; overflow: hidden; white-space: nowrap; }
.ticker-content { display: inline-block; animation: scroll 20s linear infinite; font-family: var(--font-head); font-weight: 700; color: var(--text-dim); }
.ticker-content span { margin-right: 50px; }
.ticker-content span:nth-child(1) { color: var(--neon-red); text-shadow: 0 0 5px var(--neon-red); }
@keyframes scroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* News Page */
.filter-bar { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
.filter-btn { background: var(--card-bg); color: var(--text-dim); border: 1px solid #333; padding: 10px 20px; font-family: var(--font-head); font-weight: 700; cursor: pointer; transition: 0.3s; clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%); }
.filter-btn.active, .filter-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.news-feed { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.feed-item { display: flex; gap: 30px; background: var(--card-bg); border: 1px solid #222; padding: 20px; transition: 0.3s; }
.feed-item:hover { border-color: var(--neon-blue); box-shadow: -5px 5px 0 var(--neon-blue); }
.feed-img { width: 200px; height: 120px; flex-shrink: 0; }
.feed-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.feed-info h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 10px; }
.feed-cat { color: var(--neon-red); font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; margin-bottom: 5px; display: block; }
.btn-text { color: var(--neon-blue); font-weight: 700; font-family: var(--font-head); margin-top: 10px; display: inline-block; font-size: 0.9rem; }

/* Tournament List */
.tournament-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.tourney-row { display: flex; align-items: center; background: var(--card-bg); border: 1px solid #333; padding: 20px; transition: 0.3s; }
.tourney-row:hover { background: #1a1a1a; border-left: 5px solid var(--neon-green); }
.t-date { text-align: center; margin-right: 30px; color: var(--neon-green); font-family: var(--font-head); border: 1px solid var(--neon-green); padding: 10px; width: 80px; }
.d-day { display: block; font-size: 1.8rem; font-weight: 900; line-height: 1; }
.d-mon { font-size: 0.8rem; }
.t-info { flex: 1; }
.t-info h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 5px; }
.prize { color: var(--neon-red); font-weight: 700; display: block; margin-bottom: 5px; font-family: var(--font-head); }
.btn-join { background: var(--neon-green); color: var(--bg); padding: 10px 25px; font-family: var(--font-head); font-weight: 700; clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%); display: inline-block; text-align: center; }
.btn-join:hover { background: #fff; }

/* Login/Contact */
.login-frame { max-width: 600px; margin: 0 auto; background: linear-gradient(45deg, #222, #111); padding: 5px; }
.frame-border { background: var(--bg); padding: 40px; border: 1px solid #333; }
.frame-border h2 { font-family: var(--font-head); font-size: 2rem; margin-bottom: 10px; text-align: center; }
.frame-border p { text-align: center; color: var(--text-dim); margin-bottom: 30px; }

.cyber-form .input-wrap { margin-bottom: 20px; }
.cyber-form label { display: block; font-family: var(--font-head); font-size: 0.8rem; color: var(--neon-blue); margin-bottom: 5px; letter-spacing: 1px; }
.cyber-form input, .cyber-form select { width: 100%; background: #000; border: 1px solid #333; padding: 12px; color: var(--text); font-family: var(--font-head); }
.cyber-form input:focus, .cyber-form select:focus { border-color: var(--neon-blue); outline: none; box-shadow: 0 0 10px rgba(0, 204, 255, 0.2); }
.full { width: 100%; margin-top: 10px; }
.social-login { text-align: center; margin-top: 20px; border-top: 1px solid #222; padding-top: 20px; }
.btn-discord { background: #5865F2; color: #fff; border: none; padding: 10px 20px; font-family: var(--font-head); font-weight: 700; cursor: pointer; width: 100%; margin-top: 10px; }

/* Legal */
.legal-box { max-width: 800px; margin: 0 auto; }
.legal-box h1 { font-family: var(--font-head); color: var(--neon-green); }
.rgb-line { height: 2px; background: linear-gradient(90deg, var(--neon-red), var(--neon-green), var(--neon-blue)); margin: 20px 0 40px; }

/* Footer */
.game-footer { background: #000; border-top: 1px solid #222; padding: 60px 0 20px; margin-top: 100px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.f-left h4 { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); margin-bottom: 5px; }
.f-right a { margin-left: 20px; font-family: var(--font-head); font-size: 0.9rem; color: var(--text-dim); }
.f-right a:hover { color: var(--neon-blue); }
.copyright { text-align: center; font-family: var(--font-head); font-size: 0.8rem; color: #444; }

@media (max-width: 900px) {
    .hero-content h1 { font-size: 2.8rem; }
    .cta-row { flex-direction: column; align-items: center; }
    .grid-3, .feed-item, .tourney-row { grid-template-columns: 1fr; flex-direction: column; text-align: center; }
    .t-date { margin: 0 auto 15px; }
    .feed-img { width: 100%; height: 200px; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}