/* ===== PARTYREALM.INFO — MAIN STYLESHEET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #6c2bd9;
  --purple-dark: #4a1a9e;
  --purple-light: #8b3ef5;
  --gold: #ffd700;
  --gold-dark: #e6b800;
  --bg-dark: #0d0a1a;
  --bg-mid: #1a1030;
  --bg-card: #231845;
  --text: #f0eaff;
  --text-muted: #a89cc8;
  --accent: #ff4da6;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(108,43,217,0.3);
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 900;
  background: rgba(13,10,26,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(108,43,217,0.4);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar .logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; color: var(--gold); letter-spacing: 1px; }
.navbar .logo span { color: var(--purple-light); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--text); font-weight: 500; transition: color .2s; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-cta { background: var(--purple); color: #fff !important; padding: 8px 20px; border-radius: 24px; border-bottom: none !important; transition: background .2s !important; }
.nav-cta:hover { background: var(--purple-light) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 26px; height: 2px; background: var(--text); display: block; transition: .3s; }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 520px; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 100%);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: 4rem 2rem; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15; color: #fff; margin-bottom: 1rem; }
.hero-content h1 span { color: var(--gold); }
.hero-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }
.btn { display: inline-block; padding: 12px 32px; border-radius: 32px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: transform .15s, box-shadow .15s; border: none; }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--purple-light)); color: #fff; box-shadow: 0 4px 20px rgba(108,43,217,0.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(108,43,217,0.7); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #1a1030; }
.btn-gold:hover { transform: translateY(-2px); color: #1a1030; }
.btn-outline { background: transparent; border: 2px solid var(--purple-light); color: var(--purple-light); }
.btn-outline:hover { background: var(--purple-light); color: #fff; }

/* ===== SECTIONS ===== */
section { padding: 5rem 2rem; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; color: #fff; }
.section-title h2 span { color: var(--gold); }
.section-title p { color: var(--text-muted); margin-top: .5rem; font-size: 1.05rem; }

.container { max-width: 1100px; margin: 0 auto; }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: var(--bg-card); border-radius: var(--radius); padding: 1.8rem; border: 1px solid rgba(108,43,217,0.3); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; border-radius: 8px; margin-bottom: 1rem; object-fit: cover; height: 180px; }
.card h3 { font-size: 1.15rem; font-weight: 700; color: var(--gold); margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .95rem; }

/* ===== GAMES SECTION ===== */
.games-section { background: var(--bg-mid); }
.game-tabs { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.tab-btn { padding: 10px 28px; border-radius: 24px; border: 2px solid var(--purple); background: transparent; color: var(--text); font-weight: 600; cursor: pointer; transition: .2s; }
.tab-btn.active, .tab-btn:hover { background: var(--purple); color: #fff; }
.game-panel { display: none; }
.game-panel.active { display: block; }

/* WHEEL GAME */
.wheel-wrapper { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.wheel-container { position: relative; width: 340px; height: 340px; }
#wheelCanvas { border-radius: 50%; box-shadow: 0 0 40px rgba(108,43,217,0.6); }
.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(--gold); filter: drop-shadow(0 2px 6px rgba(255,215,0,0.7)); }
.wheel-result { font-size: 1.3rem; font-weight: 700; color: var(--gold); min-height: 2rem; text-align: center; }

/* SLOTS GAME */
.slots-wrapper { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.slots-machine { background: #1a0a3a; border: 3px solid var(--purple); border-radius: 16px; padding: 2rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; box-shadow: 0 0 40px rgba(108,43,217,0.5); }
.slots-reels { display: flex; gap: 1rem; }
.reel { width: 80px; height: 80px; background: #0d0a1a; border: 2px solid var(--purple-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; overflow: hidden; transition: transform .1s; }
.reel.spinning { animation: reelSpin .1s linear infinite; }
@keyframes reelSpin { 0%{transform:translateY(-4px)} 50%{transform:translateY(4px)} 100%{transform:translateY(-4px)} }
.slots-result { font-size: 1.2rem; font-weight: 700; color: var(--gold); min-height: 2rem; text-align: center; }
.slots-info { color: var(--text-muted); font-size: .9rem; text-align: center; }

/* TOKEN GAME */
.token-wrapper { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.token-board { background: #1a0a3a; border: 3px solid var(--purple); border-radius: 16px; padding: 2rem; width: 100%; max-width: 500px; box-shadow: 0 0 40px rgba(108,43,217,0.5); }
.token-board h3 { color: var(--gold); text-align: center; margin-bottom: 1rem; font-size: 1.2rem; }
.token-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
.token-cell { width: 100%; aspect-ratio: 1; border-radius: 50%; background: #2a1a4a; border: 2px solid var(--purple); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: .2s; }
.token-cell:hover { border-color: var(--gold); transform: scale(1.08); }
.token-cell.revealed { background: var(--purple); border-color: var(--gold); }
.token-cell.matched { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); border-color: var(--gold); animation: matchPop .3s ease; }
@keyframes matchPop { 0%{transform:scale(1)} 50%{transform:scale(1.2)} 100%{transform:scale(1)} }
.token-score { text-align: center; color: var(--gold); font-size: 1.1rem; font-weight: 700; }
.token-status { text-align: center; color: var(--text-muted); font-size: .95rem; min-height: 1.5rem; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.about-text h2 span { color: var(--gold); }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }
.about-list { list-style: none; margin: 1.5rem 0; }
.about-list li { padding: .4rem 0; color: var(--text-muted); display: flex; align-items: center; gap: .6rem; }
.about-list li::before { content: '★'; color: var(--gold); font-size: .8rem; }

/* ===== LOCATIONS ===== */
.locations-section { background: var(--bg-mid); }
.locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.location-card { background: var(--bg-card); border-radius: var(--radius); padding: 1.5rem; border: 1px solid rgba(108,43,217,0.3); }
.location-card h3 { color: var(--gold); font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.location-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.5; }
.location-card .badge { display: inline-block; background: var(--purple); color: #fff; font-size: .75rem; padding: 2px 10px; border-radius: 12px; margin-top: .5rem; }

/* ===== CTA BANNER ===== */
.cta-banner { background: linear-gradient(135deg, var(--purple-dark), var(--purple-light)); text-align: center; padding: 4rem 2rem; }
.cta-banner h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.05rem; }

/* ===== CONTACT / SUBSCRIBE ===== */
.contact-section { background: var(--bg-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-form { background: var(--bg-card); border-radius: var(--radius); padding: 2rem; border: 1px solid rgba(108,43,217,0.3); }
.contact-form h3 { color: var(--gold); font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; color: var(--text-muted); font-size: .9rem; margin-bottom: .4rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: #0d0a1a; border: 1px solid rgba(108,43,217,0.4); border-radius: 8px; padding: 10px 14px; color: var(--text); font-size: 1rem; outline: none; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--purple-light); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success { display: none; background: rgba(108,43,217,0.2); border: 1px solid var(--purple-light); border-radius: 8px; padding: 1rem; color: var(--gold); text-align: center; margin-top: 1rem; }
.subscribe-box { background: var(--bg-card); border-radius: var(--radius); padding: 2rem; border: 1px solid rgba(108,43,217,0.3); display: flex; flex-direction: column; justify-content: center; }
.subscribe-box h3 { color: var(--gold); font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.subscribe-box p { color: var(--text-muted); margin-bottom: 1.5rem; }
.subscribe-row { display: flex; gap: .75rem; }
.subscribe-row input { flex: 1; background: #0d0a1a; border: 1px solid rgba(108,43,217,0.4); border-radius: 8px; padding: 10px 14px; color: var(--text); font-size: 1rem; outline: none; }
.subscribe-row input:focus { border-color: var(--purple-light); }
.sub-success { display: none; color: var(--gold); margin-top: .75rem; font-size: .95rem; }

/* ===== FOOTER ===== */
footer { background: #080612; border-top: 1px solid rgba(108,43,217,0.3); padding: 3rem 2rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .logo { font-size: 1.3rem; font-weight: 800; color: var(--gold); }
.footer-brand .logo span { color: var(--purple-light); }
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: .75rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(108,43,217,0.2); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--text-muted); font-size: .85rem; }
.footer-disclaimer { color: var(--text-muted); font-size: .8rem; text-align: center; margin-top: 1rem; line-height: 1.5; }

/* ===== AGE GATE POPUP ===== */
.age-gate-overlay { position: fixed; inset: 0; background: rgba(8,6,18,0.97); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.age-gate-box { background: var(--bg-card); border: 2px solid var(--purple); border-radius: 20px; padding: 3rem 2.5rem; max-width: 460px; width: 90%; text-align: center; box-shadow: 0 0 60px rgba(108,43,217,0.5); }
.age-gate-box .age-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.age-gate-box h2 { font-size: 1.8rem; font-weight: 900; color: #fff; margin-bottom: .75rem; }
.age-gate-box h2 span { color: var(--gold); }
.age-gate-box p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.6; }
.age-gate-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.age-gate-btns .btn { min-width: 140px; }

/* ===== COOKIE BANNER ===== */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-card); border-top: 1px solid rgba(108,43,217,0.4); padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; z-index: 800; flex-wrap: wrap; }
.cookie-banner p { color: var(--text-muted); font-size: .9rem; flex: 1; }
.cookie-banner a { color: var(--gold); }
.cookie-btns { display: flex; gap: .75rem; }

/* ===== POLICY PAGES ===== */
.policy-hero { background: linear-gradient(135deg, var(--bg-dark), var(--bg-mid)); padding: 4rem 2rem 3rem; text-align: center; }
.policy-hero h1 { font-size: 2.2rem; font-weight: 900; color: #fff; }
.policy-hero h1 span { color: var(--gold); }
.policy-hero p { color: var(--text-muted); margin-top: .5rem; }
.policy-content { max-width: 820px; margin: 0 auto; padding: 3rem 2rem; }
.policy-content h2 { color: var(--gold); font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .75rem; }
.policy-content h3 { color: var(--purple-light); font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
.policy-content p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.7; }
.policy-content ul { color: var(--text-muted); padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-content ul li { margin-bottom: .4rem; line-height: 1.6; }
.policy-content a { color: var(--gold); }
.policy-updated { background: rgba(108,43,217,0.15); border-left: 3px solid var(--purple-light); padding: .75rem 1rem; border-radius: 0 8px 8px 0; margin-bottom: 2rem; color: var(--text-muted); font-size: .9rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(13,10,26,0.98); padding: 1.5rem 2rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .wheel-container { width: 280px; height: 280px; }
  .reel { width: 65px; height: 65px; font-size: 2.2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .subscribe-row { flex-direction: column; }
  .hero-content { padding: 3rem 1.5rem; }
}
