:root {
  --bg-deep: #120a14;
  --bg-panel: #1f1228;
  --bg-soft: #2a1835;
  --rose: #e879a9;
  --rose-bright: #ff9ec8;
  --gold: #f5c842;
  --gold-dim: #c9a227;
  --mint: #6ee7b7;
  --text: #f8f0f5;
  --text-muted: #c4b0c8;
  --border: rgba(245, 200, 66, 0.22);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-ui: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --play-url: https://play.google.com/store/apps/details?id=com.funstage.gta.ma.luckylady&hl=en;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 121, 169, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(245, 200, 66, 0.12), transparent);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
.contain-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

a { color: var(--rose-bright); text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--gold);
  color: #1a0a14;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { width: min(1140px, 92vw); margin-inline: auto; }

/* Compliance */
.compliance-bar {
  background: linear-gradient(90deg, #2d1538, #3d1f4a 50%, #2d1538);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.compliance-bar p { margin: 0; width: min(1140px, 92vw); margin-inline: auto; padding: 0 4vw; }
.compliance-bar strong { color: var(--gold); }
.age-mark {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--rose);
  color: #1a0812;
  font-weight: 700;
  font-size: 0.72rem;
  margin: 0 4px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(18, 10, 20, 0.88);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-dim);
  background: var(--bg-soft);
  flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.logo-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--rose);
}

/* Age gate */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 4, 12, 0.92);
  padding: 20px;
}
.age-gate.is-hidden { display: none; }
html.age-ok #age-gate { display: none !important; }
.age-card {
  max-width: 420px;
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.age-card h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 16px 0 10px;
}
.age-slider-wrap { margin: 20px 0; text-align: left; }
.age-slider { width: 100%; accent-color: var(--rose); }
.age-slider-hint { font-size: 0.82rem; color: var(--text-muted); margin: 8px 0 0; }
.btn-enter {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #1a0a14;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.btn-enter:disabled { opacity: 0.45; cursor: not-allowed; }

/* Typography blocks */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 10px;
}
.page-hero {
  padding: 36px 0 28px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 12px;
  line-height: 1.15;
  color: var(--rose-bright);
}
.page-hero p { color: var(--text-muted); max-width: 62ch; margin: 0; }

/* Game intro */
.game-intro {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.game-intro::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: url("../images/favicon.webp") center/contain no-repeat;
  opacity: 0.08;
}
.game-intro h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 16px;
  color: var(--gold);
}
.game-intro p { margin: 0 0 12px; }
.game-intro ul {
  margin: 12px 0;
  padding-left: 0;
  list-style: none;
}
.game-intro li { padding: 4px 0; }
.intro-highlight {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--rose-bright);
  margin-top: 16px !important;
}
.at-glance-box {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--rose);
}
.at-glance-box h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--gold);
}
.at-glance-box ul { margin: 0; padding-left: 18px; }

.note-ribbon {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: rgba(110, 231, 183, 0.08);
  border: 1px dashed rgba(110, 231, 183, 0.35);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.note-ribbon .logo-mark { width: 40px; height: 40px; }

/* Hero bento */
.hero-bento {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin-bottom: 40px;
}
@media (max-width: 860px) {
  .hero-bento { grid-template-columns: 1fr; }
}
.hero-main h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 14px;
  line-height: 1.1;
}
.hero-main .lead { color: var(--text-muted); font-size: 1.05rem; }
.info-stack {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.info-chip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.info-chip .chip-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  overflow: hidden;
}
.hero-aside {
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.hero-aside .big-icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  overflow: hidden;
  background: #2a1835;
}
.meta-list { list-style: none; padding: 0; margin: 0; }
.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}
.meta-list strong { color: var(--gold); font-weight: 600; }

/* Tabs */
.tab-shell {
  margin-bottom: 48px;
}
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tab-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.2s;
}
.tab-btn.is-active,
.tab-btn:hover {
  background: var(--rose);
  color: #1a0812;
  border-color: var(--rose);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp 0.35s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.review-card {
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
}
.review-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.review-card cite {
  display: block;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: normal;
}
.review-card .review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--bg-soft);
}

.symbol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 600px) { .symbol-grid { grid-template-columns: 1fr; } }
.symbol-card {
  text-align: center;
  padding: 20px;
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.symbol-card .sym-img {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  object-fit: contain;
}

/* Sections */
.section-block { margin-bottom: 48px; }
.section-head { margin-bottom: 22px; }
.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 8px;
  color: var(--gold);
}
.section-sub { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* Gallery */
.shot-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 100%;
}
@media (max-width: 560px) { .shot-gallery { grid-template-columns: 1fr; } }
.shot-frame {
  aspect-ratio: 4/3;
  min-height: 220px;
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 10px;
}
.shot-frame img { width: 100%; height: 100%; object-fit: contain; }

/* Charm wall */
.charm-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 24px;
}
@media (max-width: 700px) { .charm-wall { grid-template-columns: repeat(3, 1fr); } }
.charm-tile {
  aspect-ratio: 1;
  background: var(--bg-panel);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.charm-tile img { width: 100%; height: 100%; object-fit: contain; opacity: 0.85; }

/* CTA */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 28px;
  background: linear-gradient(120deg, #3a1f4a, #2a1535);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.cta-band p { margin: 0; max-width: 50ch; color: var(--text-muted); font-size: 0.92rem; }
.store-btn { display: inline-block; line-height: 0; }
.store-btn img { height: 54px; width: auto; object-fit: contain; }

.floating-cta {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 90;
  padding: 10px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.floating-cta img { height: 44px; width: auto; object-fit: contain; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0;
}
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat-pill {
  text-align: center;
  padding: 18px 12px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.stat-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--rose-bright);
}
.stat-pill span { font-size: 0.78rem; color: var(--text-muted); }

/* Games page */
.game-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  .game-card { grid-template-columns: 1fr; text-align: center; }
}
.game-card__icon {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-soft);
}
.game-card__icon img { width: 100%; height: 100%; object-fit: contain; }

.demo-card {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1fr;
  gap: 24px;
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
@media (max-width: 760px) { .demo-card { grid-template-columns: 1fr; } }
.demo-thumb {
  position: relative;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #0d0812;
  min-height: 220px;
  display: block;
  width: 100%;
}
.demo-thumb img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: contain;
}
.demo-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 10, 20, 0.55);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  transition: background 0.2s;
}
.demo-thumb:hover .demo-play { background: rgba(232, 121, 169, 0.45); }
.demo-body { padding: 24px; }
.demo-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.15);
  color: var(--mint);
}

/* Modal iframe */
.game-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 2, 8, 0.88);
  padding: 20px;
}
.game-modal.is-open { display: flex; }
.modal-panel {
  width: min(1100px, 96vw);
  height: min(82vh, 720px);
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { margin: 0; font-size: 1rem; color: var(--gold); }
.modal-close {
  border: none;
  background: var(--rose);
  color: #1a0812;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.modal-panel iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #000;
}

/* Legal prose */
.legal-prose {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 40px;
}
.legal-prose h2 {
  font-family: var(--font-display);
  color: var(--rose-bright);
  font-size: 1.25rem;
  margin: 28px 0 12px;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p, .legal-prose li { color: var(--text-muted); }
.legal-prose ul { padding-left: 20px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  margin-top: 20px;
  background: rgba(0,0,0,0.25);
}
.footer-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-top .logo-mark { width: 48px; height: 48px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: center;
  margin: 18px 0;
}
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.footer-nav a:hover { color: var(--gold); }
.footer-fine {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 72ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 14px 0;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-inner {
  width: min(1140px, 92vw);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-inner p { margin: 0; font-size: 0.85rem; color: var(--text-muted); max-width: 60ch; }
.cookie-accept {
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: #0a1812;
  font-weight: 700;
  cursor: pointer;
}

main { padding-bottom: 80px; }

/* FAQ accordion */
.faq-list { display: grid; gap: 12px; margin-bottom: 40px; }
.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-q:hover { color: var(--gold); }
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-bright);
  font-size: 1.2rem;
  transition: transform 0.25s;
}
.faq-item.is-open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.faq-item.is-open .faq-a { display: block; }

/* Charm atlas timeline */
.lucky-ladder {
  display: grid;
  gap: 0;
  margin-bottom: 40px;
  position: relative;
  padding-left: 28px;
}
.lucky-ladder::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--rose), var(--gold));
}
.ladder-step {
  position: relative;
  padding: 20px 0 20px 28px;
}
.ladder-step::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg-deep);
  box-shadow: 0 0 0 2px var(--rose);
}
.ladder-step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  color: var(--rose-bright);
  font-size: 1.15rem;
}
.ladder-step p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.ladder-step .step-badge {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
@media (max-width: 800px) { .atlas-grid { grid-template-columns: 1fr; } }
.atlas-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
}
.atlas-card .atlas-img {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--bg-soft);
  padding: 10px;
  overflow: hidden;
}
.atlas-card h3 { margin: 0 0 8px; font-size: 1rem; color: var(--gold); }
.atlas-card p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

.compare-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 36px;
}
@media (max-width: 640px) { .compare-strip { grid-template-columns: 1fr; } }
.compare-col {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.compare-col--wild { background: rgba(232, 121, 169, 0.1); }
.compare-col--scatter { background: rgba(245, 200, 66, 0.08); }
.compare-col h3 { margin: 0 0 10px; font-family: var(--font-display); }
