/* Cosmynx - Stellar Social Casino Styles */
/* Blue sports theme */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue: #0ea5e9; --blue-dark: #0284c7; --bg: #0c1929; --bg-light: #1e3a5f;
    --text: #f0f9ff; --text-dim: #7dd3fc; --glow: rgba(14, 165, 233, 0.3);
}

html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; }
h1, h2, h3 { font-family: 'Russo One', sans-serif; font-weight: 400; line-height: 1.3; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
a { color: var(--blue); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--text); }

/* Gate */
.gate-screen { position: fixed; inset: 0; background: rgba(12, 25, 41, 0.98); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.gate-screen.hidden { display: none; }
.gate-box { background: var(--bg-light); border: 2px solid var(--blue); border-radius: 16px; padding: 50px 40px; max-width: 480px; text-align: center; }
.gate-icon { font-size: 56px; margin-bottom: 15px; }
.gate-box h2 { font-size: 1.6rem; margin-bottom: 12px; color: var(--blue); }
.gate-box p { color: var(--text-dim); margin-bottom: 28px; }
.gate-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-go, .btn-back { padding: 14px 28px; font-family: 'Russo One', sans-serif; font-size: 0.9rem; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s; }
.btn-go { background: var(--blue); color: var(--bg); }
.btn-go:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-back { background: transparent; border: 1px solid var(--text-dim); color: var(--text-dim); }
.btn-back:hover { border-color: #ef4444; color: #ef4444; }

/* Header */
.cosm-header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(12, 25, 41, 0.95); z-index: 1000; border-bottom: 1px solid rgba(14, 165, 233, 0.2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1400px; margin: 0 auto; }
.cosm-brand { display: flex; align-items: center; gap: 8px; font-family: 'Russo One', sans-serif; font-size: 1.5rem; color: var(--text); }
.brand-icon { color: var(--blue); }
.cosm-brand:hover { color: var(--blue); }
.nav-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-btn span { display: block; width: 26px; height: 2px; background: var(--blue); transition: all 0.3s; }
.nav-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-btn.active span:nth-child(2) { opacity: 0; }
.nav-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.cosm-nav { display: flex; gap: 35px; }
.cosm-nav a { font-size: 0.9rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; padding: 6px 0; position: relative; }
.cosm-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--blue); transition: width 0.3s; }
.cosm-nav a:hover, .cosm-nav a.active { color: var(--text); }
.cosm-nav a:hover::after, .cosm-nav a.active::after { width: 100%; }

/* Hero */
.stellar-hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 24px; background: radial-gradient(ellipse at 50% 50%, rgba(14, 165, 233, 0.1), transparent 60%); }
.hero-content { max-width: 800px; }
.hero-content h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); margin-bottom: 20px; color: var(--text); }
.hero-content p { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-dim); margin-bottom: 35px; }
.cosm-btn { display: inline-block; padding: 16px 45px; background: var(--blue); color: var(--bg); font-family: 'Russo One', sans-serif; font-size: 1rem; border-radius: 8px; transition: all 0.3s; }
.cosm-btn:hover { background: var(--blue-dark); transform: translateY(-3px); box-shadow: 0 10px 30px var(--glow); color: var(--bg); }

/* Pitch Info */
.pitch-info { padding: 100px 0; background: var(--bg-light); }
.pitch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pitch-card { padding: 40px 30px; background: var(--bg); border-radius: 16px; text-align: center; border: 1px solid rgba(14, 165, 233, 0.2); transition: all 0.3s; }
.pitch-card:hover { border-color: var(--blue); transform: translateY(-5px); }
.pc-icon { font-size: 48px; margin-bottom: 18px; display: block; }
.pitch-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--blue); }
.pitch-card p { color: var(--text-dim); }

/* Game */
.game-pitch { padding: 100px 0; background: var(--bg); }
.game-header { text-align: center; margin-bottom: 45px; }
.gm-tag { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--blue); padding: 6px 16px; border: 1px solid var(--blue); border-radius: 8px; margin-bottom: 15px; }
.game-header h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 8px; }
.game-header p { color: var(--text-dim); }
.game-field { max-width: 1100px; margin: 0 auto; aspect-ratio: 16/10; border: 3px solid var(--blue); border-radius: 16px; overflow: hidden; box-shadow: 0 0 50px var(--glow); }
.game-field iframe { width: 100%; height: 100%; border: none; }

/* Story */
.team-story { padding: 100px 0; background: var(--bg-light); text-align: center; }
.team-story h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 30px; color: var(--blue); }
.team-story p { max-width: 800px; margin: 0 auto 20px; color: var(--text-dim); }

/* Whistle */
.final-whistle { padding: 100px 0; background: var(--bg); }
.whistle-box { text-align: center; padding: 70px 40px; border: 3px solid var(--blue); border-radius: 16px; max-width: 700px; margin: 0 auto; background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), transparent); }
.whistle-box h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 12px; }
.whistle-box p { color: var(--text-dim); margin-bottom: 28px; }

/* Page */
.page-header { padding: 150px 24px 70px; text-align: center; background: var(--bg-light); }
.pg-tag { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--blue); margin-bottom: 12px; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.page-header p { color: var(--text-dim); }

/* Play */
.play-arena { padding: 60px 0 100px; background: var(--bg); }
.play-guide { max-width: 900px; margin: 0 auto 45px; padding: 30px; background: var(--bg-light); border-radius: 12px; border: 1px solid rgba(14, 165, 233, 0.2); }
.play-guide h2 { font-size: 1.3rem; margin-bottom: 20px; color: var(--blue); }
.play-guide ul { list-style: disc inside; display: grid; gap: 10px; margin-bottom: 20px; }
.play-guide li { color: var(--text-dim); }
.guide-note { color: var(--text-dim); font-size: 0.85rem; padding-top: 15px; border-top: 1px solid rgba(14, 165, 233, 0.2); }
.main-game { max-width: 1200px; margin: 0 auto; aspect-ratio: 16/10; border: 3px solid var(--blue); border-radius: 16px; overflow: hidden; box-shadow: 0 0 60px var(--glow); }
.main-game iframe { width: 100%; height: 100%; border: none; }
.play-reminder { max-width: 900px; margin: 35px auto 0; padding: 20px 25px; background: rgba(14, 165, 233, 0.1); border-radius: 12px; text-align: center; }
.play-reminder p { color: var(--text-dim); }

/* Legal */
.legal-area { padding: 60px 0 100px; background: var(--bg); }
.legal-block { margin-bottom: 35px; }
.legal-block h2 { font-size: 1.2rem; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid rgba(14, 165, 233, 0.2); }
.legal-block p { color: var(--text-dim); margin-bottom: 12px; }
.legal-date { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(14, 165, 233, 0.2); color: var(--text-dim); font-size: 0.85rem; }
.alert-box { padding: 30px; background: var(--bg-light); border-radius: 12px; border-left: 4px solid var(--blue); margin-bottom: 25px; }
.alert-box h2 { font-size: 1.15rem; margin-bottom: 12px; color: var(--text); border: none; padding: 0; }
.alert-box p { color: var(--text-dim); }

/* Footer */
.cosm-footer { background: var(--bg-light); padding: 60px 0 25px; border-top: 1px solid rgba(14, 165, 233, 0.2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.foot-logo { font-family: 'Russo One', sans-serif; font-size: 1.4rem; color: var(--text); display: block; margin-bottom: 12px; }
.foot-main p { color: var(--text-dim); font-size: 0.9rem; }
.foot-links h4, .foot-support h4 { font-size: 0.9rem; margin-bottom: 18px; color: var(--text); }
.foot-links a, .foot-support a { display: block; color: var(--text-dim); font-size: 0.85rem; padding: 5px 0; }
.foot-links a:hover, .foot-support a:hover { color: var(--blue); }
.foot-bottom { text-align: center; padding-top: 25px; border-top: 1px solid rgba(14, 165, 233, 0.1); }
.foot-bottom p { color: var(--text-dim); font-size: 0.8rem; }

/* Responsive */
@media (max-width: 1024px) { .pitch-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; } .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
    .nav-btn { display: flex; }
    .cosm-nav { position: fixed; top: 0; right: -100%; width: 260px; height: 100vh; background: var(--bg-light); flex-direction: column; padding: 100px 35px; gap: 22px; transition: right 0.3s; border-left: 1px solid rgba(14, 165, 233, 0.2); }
    .cosm-nav.active { right: 0; }
    .stellar-hero { min-height: auto; padding: 150px 24px 100px; }
    .foot-grid { grid-template-columns: 1fr; text-align: center; }
    .gate-box { margin: 16px; padding: 40px 25px; }
}
