/* ===== TEAMLOUNGE.INFO — MAIN STYLESHEET ===== */
:root {
  --primary: #6C3CE1;
  --primary-dark: #4e28b0;
  --accent: #FFD700;
  --accent2: #FF6B35;
  --bg-dark: #0d0b1e;
  --bg-card: #1a1630;
  --bg-card2: #221e3a;
  --text: #f0eeff;
  --text-muted: #a09cc0;
  --border: #2e2a50;
  --radius: 14px;
  --shadow: 0 4px 32px rgba(108,60,225,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }

img { max-width: 100%; display: block; }

/* ===== AGE GATE POPUP ===== */
#age-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,8,30,0.97);
  display: flex; align-items: center; justify-content: center;
}
#age-gate .ag-box {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 460px;
  width: 92%;
  text-align: center;
  box-shadow: 0 0 60px rgba(108,60,225,0.45);
}
#age-gate .ag-icon { font-size: 3.5rem; margin-bottom: 12px; }
#age-gate h2 { font-size: 1.8rem; color: var(--accent); margin-bottom: 10px; }
#age-gate p { color: var(--text-muted); margin-bottom: 28px; font-size: 0.97rem; }
.ag-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-yes, .btn-no {
  padding: 13px 36px; border-radius: 50px; font-size: 1rem;
  font-weight: 700; cursor: pointer; border: none; transition: transform .15s, box-shadow .15s;
}
.btn-yes { background: var(--primary); color: #fff; }
.btn-yes:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,60,225,0.4); }
.btn-no { background: var(--bg-card2); color: var(--text-muted); border: 1px solid var(--border); }
.btn-no:hover { background: #2e2a50; }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 8888;
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.88rem; color: var(--text-muted);
}
#cookie-banner a { color: var(--accent); }
#cookie-banner button {
  background: var(--primary); color: #fff; border: none;
  padding: 8px 22px; border-radius: 50px; cursor: pointer; font-weight: 600;
}
#cookie-banner button:hover { background: var(--primary-dark); }

/* ===== HEADER / NAV ===== */
header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(13,11,30,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800; color: var(--text);
}
.logo span { color: var(--accent); }
.logo-icon { font-size: 1.6rem; }
nav { display: flex; gap: 6px; align-items: center; }
nav a {
  color: var(--text-muted); padding: 7px 15px; border-radius: 8px;
  font-size: 0.93rem; font-weight: 500; transition: background .2s, color .2s;
}
nav a:hover, nav a.active { background: var(--bg-card2); color: var(--text); }
.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  border-radius: 50px !important; padding: 8px 20px !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  background: var(--bg-card); padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a { color: var(--text-muted); padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  filter: brightness(0.35);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(108,60,225,0.45) 0%, rgba(13,11,30,0.7) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; padding: 0 24px; }
.hero-badge {
  display: inline-block; background: var(--accent); color: #0d0b1e;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 2px;
  padding: 5px 16px; border-radius: 50px; margin-bottom: 20px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--primary); color: #fff; padding: 14px 36px;
  border-radius: 50px; font-size: 1rem; font-weight: 700; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,60,225,0.45); }
.btn-outline {
  background: transparent; color: var(--text); padding: 14px 36px;
  border-radius: 50px; font-size: 1rem; font-weight: 700;
  border: 2px solid rgba(255,255,255,0.3); cursor: pointer; transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== SECTION COMMONS ===== */
section { padding: 80px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.section-header h2 span { color: var(--accent); }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ===== GAMES GRID ===== */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.game-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-card img { width: 100%; height: 200px; object-fit: cover; }
.game-card-body { padding: 22px; }
.game-card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.game-card-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.tag {
  display: inline-block; background: rgba(108,60,225,0.2);
  color: var(--primary); font-size: 0.75rem; font-weight: 700;
  padding: 3px 10px; border-radius: 50px; margin-bottom: 12px;
  border: 1px solid rgba(108,60,225,0.3);
}

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-text h2 { font-size: clamp(1.7rem, 2.5vw, 2.4rem); font-weight: 800; margin-bottom: 18px; }
.about-text h2 span { color: var(--accent); }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.stats-row { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat .num { font-size: 2rem; font-weight: 900; color: var(--accent); }
.stat .lbl { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ===== VENUES ===== */
.venues-section { background: var(--bg-card); }
.venues-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.venue-card {
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.venue-card img { width: 100%; height: 180px; object-fit: cover; }
.venue-card-body { padding: 18px; }
.venue-card-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.venue-card-body p { color: var(--text-muted); font-size: 0.85rem; }
.venue-card-body address { font-style: normal; color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; }

/* ===== SUBSCRIBE ===== */
.subscribe-section {
  background: linear-gradient(135deg, var(--primary) 0%, #3a1e8a 100%);
  text-align: center;
}
.subscribe-section h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.subscribe-section p { color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.subscribe-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 520px; margin: 0 auto; }
.subscribe-form input[type="email"] {
  flex: 1; min-width: 220px; padding: 13px 20px;
  border-radius: 50px; border: none; background: rgba(255,255,255,0.15);
  color: #fff; font-size: 0.95rem; outline: none;
}
.subscribe-form input::placeholder { color: rgba(255,255,255,0.55); }
.subscribe-form button {
  background: var(--accent); color: #0d0b1e; padding: 13px 28px;
  border-radius: 50px; border: none; font-weight: 800; cursor: pointer; font-size: 0.95rem;
  transition: transform .15s;
}
.subscribe-form button:hover { transform: scale(1.04); }
.subscribe-msg { margin-top: 14px; font-size: 0.9rem; color: var(--accent); display: none; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.contact-info h2 span { color: var(--accent); }
.contact-info p { color: var(--text-muted); margin-bottom: 24px; }
.contact-detail { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-detail .icon { font-size: 1.3rem; margin-top: 2px; }
.contact-detail div strong { display: block; font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); padding: 11px 14px; font-size: 0.95rem;
  outline: none; transition: border-color .2s; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-success { display: none; background: rgba(108,60,225,0.15); border: 1px solid var(--primary); border-radius: 8px; padding: 14px; text-align: center; color: var(--accent); margin-top: 14px; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 52px 24px 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent2); color: #fff; font-weight: 900; font-size: 0.75rem;
}

/* ===== POLICY PAGES ===== */
.policy-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a0e4a 100%);
  padding: 64px 24px; text-align: center;
}
.policy-hero h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 900; }
.policy-hero p { color: rgba(255,255,255,0.7); margin-top: 10px; }
.policy-content { max-width: 860px; margin: 0 auto; padding: 60px 24px; }
.policy-content h2 { font-size: 1.4rem; font-weight: 800; color: var(--accent); margin: 36px 0 12px; }
.policy-content h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 8px; }
.policy-content p, .policy-content li { color: var(--text-muted); margin-bottom: 12px; line-height: 1.75; }
.policy-content ul, .policy-content ol { padding-left: 22px; margin-bottom: 16px; }
.policy-content a { color: var(--accent); }
.policy-content .last-updated { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 32px; }

/* ===== GAMES PAGE ===== */
.games-hero {
  background: url('../images/games-banner.jpg') center/cover no-repeat;
  position: relative; padding: 90px 24px; text-align: center;
}
.games-hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(13,11,30,0.78);
}
.games-hero-content { position: relative; z-index: 1; }
.games-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; }
.games-hero p { color: var(--text-muted); margin-top: 12px; }

/* ===== WHEEL GAME ===== */
.wheel-section { background: var(--bg-card); }
.wheel-wrapper {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.wheel-container { position: relative; width: 340px; height: 340px; }
#wheel-canvas { border-radius: 50%; box-shadow: 0 0 40px rgba(108,60,225,0.5); }
.wheel-pointer {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 32px solid var(--accent);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
  z-index: 10;
}
.wheel-result {
  text-align: center; min-height: 60px;
}
.wheel-result h3 { font-size: 1.4rem; color: var(--accent); font-weight: 800; }
.wheel-result p { color: var(--text-muted); font-size: 0.9rem; }
#spin-btn {
  background: var(--primary); color: #fff; padding: 14px 48px;
  border-radius: 50px; font-size: 1.05rem; font-weight: 800; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s; letter-spacing: 0.5px;
}
#spin-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,60,225,0.45); }
#spin-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== SLOT MACHINE ===== */
.slot-section { }
.slot-machine {
  background: var(--bg-card); border: 2px solid var(--primary);
  border-radius: 20px; padding: 32px; max-width: 480px; margin: 0 auto;
  box-shadow: 0 0 40px rgba(108,60,225,0.3);
}
.slot-machine h3 { text-align: center; font-size: 1.4rem; margin-bottom: 24px; color: var(--accent); }
.slot-reels {
  display: flex; gap: 10px; justify-content: center; margin-bottom: 24px;
}
.reel {
  width: 90px; height: 90px; background: var(--bg-dark);
  border: 2px solid var(--border); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; overflow: hidden; position: relative;
  transition: background .3s;
}
.reel.spinning { animation: reelSpin 0.12s linear infinite; }
@keyframes reelSpin {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
.slot-controls { text-align: center; }
#slot-spin-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: #fff; padding: 14px 52px; border-radius: 50px;
  font-size: 1.05rem; font-weight: 800; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
#slot-spin-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,53,0.4); }
#slot-spin-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.slot-result { text-align: center; margin-top: 16px; min-height: 48px; }
.slot-result .win { color: var(--accent); font-size: 1.2rem; font-weight: 800; }
.slot-result .lose { color: var(--text-muted); font-size: 1rem; }
.slot-score { text-align: center; margin-top: 10px; font-size: 0.9rem; color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .wheel-container { width: 280px; height: 280px; }
  #wheel-canvas { width: 280px !important; height: 280px !important; }
  .reel { width: 72px; height: 72px; font-size: 2.4rem; }
}
