/* ============================================================
   LuckyVibe Social Casino - Main Stylesheet
   Pure HTML / CSS / JS - No frameworks
   ============================================================ */

:root {
  --bg-dark: #0b0e1a;
  --bg-panel: #141a2e;
  --bg-panel-2: #1c2440;
  --accent: #ff4d8d;
  --accent-2: #7c4dff;
  --gold: #ffd166;
  --text: #eef1ff;
  --text-muted: #9aa3c7;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --maxw: 1180px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1a2142 0%, var(--bg-dark) 55%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}

.brand .logo-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 0 18px rgba(255, 77, 141, 0.6);
}

.brand span.vibe {
  background: linear-gradient(90deg, var(--gold), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text-muted);
  transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-panel-2);
}

.age-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
  text-align: center;
}

.nav-toggle {
  display: none;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.3rem;
  cursor: pointer;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 26px rgba(124, 77, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(124, 77, 255, 0.55);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg-panel-2);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 80% 20%, rgba(124, 77, 255, 0.25), transparent),
    radial-gradient(500px 280px at 10% 80%, rgba(255, 77, 141, 0.22), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero h1 .hl {
  background: linear-gradient(90deg, var(--gold), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-art {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- Section ---------------- */
.section {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------------- Games grid ---------------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.game-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 77, 141, 0.4);
}

.game-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.game-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.game-card:hover .thumb img {
  transform: scale(1.07);
}

.game-card .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 14, 26, 0.8);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.game-card .body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.game-card h3 {
  font-size: 1.25rem;
}

.game-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.game-card .play-link {
  align-self: flex-start;
  color: var(--accent);
  font-weight: 700;
}

.game-card .play-link:hover {
  text-decoration: underline;
}

/* ---------------- Feature / Content ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.feature .ico {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------------- Content prose ---------------- */
.prose {
  max-width: 820px;
  margin: 0 auto;
}

.prose h2 {
  margin: 28px 0 12px;
  font-size: 1.6rem;
}

.prose h3 {
  margin: 22px 0 10px;
  font-size: 1.25rem;
  color: var(--gold);
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.prose ul {
  padding-left: 22px;
}

.prose a {
  color: var(--accent);
}

.cta-banner {
  background: linear-gradient(135deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin-top: 40px;
}

.cta-banner h2 {
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* ---------------- Game page ---------------- */
.game-hero {
  padding: 50px 0 30px;
}

.game-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.game-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 14px;
}

.game-hero p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.game-hero .thumb {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.iframe-wrap {
  margin: 30px 0 50px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow);
}

.iframe-wrap iframe {
  width: 100%;
  height: 78vh;
  min-height: 540px;
  border: 0;
  display: block;
}

.game-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.game-meta .box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.game-meta .box strong {
  display: block;
  font-size: 1.3rem;
  color: var(--gold);
}

.game-meta .box span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------------- Age notice ---------------- */
.age-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 77, 141, 0.08);
  border: 1px solid rgba(255, 77, 141, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 24px 0;
  color: var(--text);
  font-weight: 600;
}

.age-notice .badge {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 50px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-grid h4 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.responsible {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.responsible .badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.responsible .pill {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.responsible .pill strong {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------------- Age gate modal ---------------- */
.age-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 7, 15, 0.92);
  display: none;
  place-items: center;
  padding: 20px;
}

.age-modal.open {
  display: grid;
}

.age-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 460px;
  width: 100%;
  padding: 38px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.age-card .big-badge {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
}

.age-card h2 {
  margin-bottom: 12px;
}

.age-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.age-card .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-grid,
  .game-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .game-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .iframe-wrap iframe {
    height: 70vh;
  }

  .cta-banner {
    padding: 28px 18px;
  }
}
