:root {
  --bg: #0E0716;
  --surface: #180E29;
  --surface-elevated: #23153B;
  --border: #3B235E;
  --border-glow: #A855F7;
  --accent: #E879F9;
  --accent-hover: #F5A3FF;
  --accent-violet: #A855F7;
  --accent-2: #FBBF24;
  --accent-2-hover: #FDE047;
  --gold-grad: linear-gradient(135deg, #FCEB4C 0%, #F59E0B 62%, #EA580C 100%);
  --violet-grad: linear-gradient(135deg, #F472B6 0%, #C026D3 52%, #9333EA 100%);
  --text: #FAF5FF;
  --text-soft: #E9DDFB;
  --text-muted: #B8A7D9;
  --danger: #FB7185;
  --success: #34D399;
  --radius: 14px;
  --radius-sm: 10px;
  --font-head: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: #2b2b2b;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #2b2b2b;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
}

/* 430px Mobile App-Shell Frame */
.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 12% 0%, rgba(192, 38, 211, 0.2), transparent 36%),
    radial-gradient(circle at 92% 4%, rgba(245, 158, 11, 0.13), transparent 30%),
    var(--bg);
  box-shadow: 0 0 48px rgba(0, 0, 0, 0.6);
  overflow-x: clip;
}

a { color: var(--accent); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

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

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

/* 21+ Top Compliance Bar */
.compliance-bar {
  background: #08040D;
  border-bottom: 1px solid rgba(168, 85, 247, 0.28);
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 6px 0;
}
.compliance-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 8px;
}
.compliance-bar strong { color: var(--accent-2); }
.compliance-bar a { color: var(--accent); font-weight: 500; }

/* Sticky App Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(14, 7, 22, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(8, 3, 15, 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 8px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-link img {
  height: 24px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(232, 121, 249, 0.28));
}
.brand-link:hover { text-decoration: none; }

/* Slide-Down App Drawer Nav */
.main-nav {
  display: none;
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  background: #140B24;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  align-items: stretch;
  padding: 12px 16px;
  gap: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  z-index: 59;
}
.main-nav.open { display: flex; }
.main-nav a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(35, 21, 59, 0.45);
  border: 1px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--accent-2);
  border-color: var(--accent);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Official PHLove Gold + Magenta-Violet Buttons */
.btn-ghost-sm, .btn-gold-sm, .btn-primary-cta, .btn-secondary-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  text-decoration: none !important;
  cursor: pointer;
}
.btn-ghost-sm {
  padding: 6px 10px;
  font-size: 0.82rem;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}
.btn-ghost-sm:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--surface-elevated);
}

.btn-gold-sm {
  padding: 6px 11px;
  font-size: 0.82rem;
  color: #14081F;
  background: var(--gold-grad);
  border: 1px solid #FDE047;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
}
.btn-gold-sm:hover {
  transform: translateY(-1px);
  color: #14081F;
}

.btn-primary-cta {
  padding: 12px 18px;
  font-size: 0.95rem;
  color: #14081F;
  background: var(--gold-grad);
  border: 1px solid #FDE047;
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.34);
  flex: 1 1 auto;
}
.btn-primary-cta:hover {
  transform: translateY(-1px);
  color: #14081F;
}

.btn-secondary-guide {
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--text);
  background: linear-gradient(135deg, rgba(192, 38, 211, 0.22) 0%, rgba(147, 51, 234, 0.28) 100%);
  border: 1px solid var(--accent);
  flex: 1 1 auto;
}
.btn-secondary-guide:hover {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.3) 0%, rgba(147, 51, 234, 0.38) 100%);
  color: var(--text);
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* Breadcrumbs */
.breadcrumb {
  padding: 10px 0 2px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #6D4C9E; }
.breadcrumb a { color: var(--text-muted); }

/* Hero Section (App-Shell Vertical Flow) */
.hero-section {
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(35, 21, 59, 0.38) 0%, rgba(14, 7, 22, 0) 100%);
}
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(192, 38, 211, 0.18);
  border: 1px solid rgba(232, 121, 249, 0.45);
  color: #F5D0FE;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.24;
  margin-top: 0;
}
h1 { font-size: 1.58rem; margin-bottom: 10px; letter-spacing: -0.02em; }
h2 { font-size: 1.28rem; margin: 26px 0 12px; }
h3 { font-size: 1.08rem; margin: 18px 0 8px; color: var(--accent-2); }

.hero-lead {
  font-size: 0.96rem;
  color: var(--text-soft);
  margin: 0 0 16px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.trust-strip-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.trust-pill {
  background: rgba(24, 14, 41, 0.92);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.78rem;
  color: var(--text-soft);
  text-align: center;
}

/* 3-Slide Interactive App Carousel */
.hero-carousel {
  background: linear-gradient(160deg, #1E1133 0%, #140B24 100%);
  border: 1px solid rgba(168, 85, 247, 0.42);
  border-radius: var(--radius);
  padding: 12px;
  position: relative;
  box-shadow: 0 10px 28px rgba(10, 4, 20, 0.5);
}
.carousel-viewport {
  overflow: hidden;
  border-radius: 10px;
}
.carousel-track {
  display: flex;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.carousel-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.carousel-card:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.carousel-card img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: top center;
  background: #120920;
}
.carousel-card-body { padding: 8px 10px; }
.carousel-card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  margin: 0 0 3px;
}
.carousel-card-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.carousel-dots { display: flex; gap: 6px; }
.carousel-dot {
  width: 22px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}
.carousel-dot[aria-selected="true"] { background: var(--violet-grad); }
.carousel-nav-btns { display: flex; gap: 6px; }
.carousel-btn {
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-weight: 700;
  cursor: pointer;
}
.carousel-btn:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* Main Content (Single-Column Mobile App Flow) */
.main-content {
  padding: 22px 0 32px;
  flex: 1 0 auto;
}
.content-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-main { min-width: 0; }
.content-main p, .content-main li { font-size: 0.96rem; color: var(--text-soft); }
.content-main ol, .content-main ul { padding-left: 20px; }
.content-main li { margin-bottom: 8px; }

/* Answer Capsule (AEO / GEO) */
.answer-capsule {
  background: linear-gradient(90deg, rgba(192, 38, 211, 0.16) 0%, rgba(245, 158, 11, 0.08) 100%);
  border-left: 3.5px solid var(--accent-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  margin: 10px 0 16px;
  color: var(--text);
  font-size: 0.92rem;
}

/* Spec Cards (2x2 App Grid) */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0 22px;
}
.spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.spec-label { font-size: 0.74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.spec-value { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--accent-2); margin-top: 3px; }

/* Portrait Game Grid (2-Column Mobile Casino Lobby) */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0 22px;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.game-card img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: top center;
}
.game-card-body { padding: 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.game-card-body h3 { margin: 0; font-size: 0.92rem; color: var(--text); }
.game-meta { font-size: 0.76rem; color: var(--text-muted); margin: 0; line-height: 1.35; }
.game-card-actions { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 8px; }
.game-card-actions .btn-gold-sm, .game-card-actions .btn-ghost-sm { width: 100%; padding: 6px 8px; font-size: 0.78rem; }

/* Horizontal-Swipe Mobile Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 14px 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
}
th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
}
th {
  background: var(--surface-elevated);
  color: var(--accent-2);
  font-family: var(--font-head);
  font-weight: 700;
}
tr:last-child td { border-bottom: none; }
.badge-ok {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.16);
  color: #34D399;
  font-size: 0.74rem;
  font-weight: 700;
}

/* Stacked App Sidebar Cards */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.sidebar-card h3 { margin-top: 0; font-size: 1rem; color: var(--text); }
.sidebar-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sidebar-list a { color: var(--text-soft); font-size: 0.9rem; }
.sidebar-list a:hover { color: var(--accent-2); }

/* Hub Spoke Cards (Single Column Mobile List) */
.spoke-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0 22px;
}
.spoke-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.spoke-card h3, .spoke-card h4 { margin: 0; font-size: 0.98rem; }
.spoke-card p { margin: 0; font-size: 0.86rem; color: var(--text-muted); }

/* FAQ Accordions */
.faq-list { display: flex; flex-direction: column; gap: 9px; margin: 14px 0 22px; }
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
details.faq-item[open] { border-color: var(--accent-violet); }
details.faq-item summary {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; color: var(--accent-2); font-size: 1.2rem; }
details.faq-item[open] summary::after { content: "-"; color: var(--accent); }
details.faq-item p { margin: 10px 0 0; color: var(--text-soft); font-size: 0.9rem; }

/* Analyst Box */
.analyst-box {
  background: linear-gradient(135deg, rgba(35, 21, 59, 0.92) 0%, rgba(24, 14, 41, 0.96) 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 22px;
}
.analyst-box h3 { margin: 0 0 6px; color: var(--accent-2); font-size: 0.98rem; }
.analyst-box p { margin: 0; font-size: 0.88rem; color: var(--text-soft); }

/* 3-Row Authority Footer (App-Shell Compact + Bottom Bar Clearance) */
.site-footer {
  background: #08040E;
  border-top: 1px solid var(--border);
  padding: 28px 0 84px;
  color: var(--text-muted);
}
.footer-row-1 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.footer-col h4 {
  color: var(--accent-2);
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-col a { color: var(--text-muted); font-size: 0.82rem; }
.footer-col a:hover { color: var(--accent); }

.footer-row-2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.footer-row-2 img { height: 28px; width: auto; }

.footer-row-3 {
  padding-top: 16px;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Sticky Bottom Mobile App Navigation Bar */
.app-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: rgba(14, 7, 22, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0 6px;
  z-index: 70;
}
.app-bottom-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  height: 44px;
  border-radius: 10px;
  text-decoration: none;
}
.app-bottom-bar a[aria-current="page"],
.app-bottom-bar a:hover {
  color: var(--accent);
}
.app-bottom-bar a.app-bar-play {
  background: var(--gold-grad);
  color: #14081F;
  border: 1px solid #FDE047;
  height: 40px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.app-bottom-bar a.app-bar-play:hover {
  color: #14081F;
}
