/* Mobile App Shell & UI System - Reverse-Engineered Benchmark Architecture */
/* Generated dynamically from brand_palette.json */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  --primary: #FF3B30;
  --primary-hover: #E02E24;
  --primary-subtle: #FEE2E2;
  --accent: #FF9500;
  --accent-gold: #FFD700;
  --cta-green: #00C853;
  --cta-green-hover: #00B248;
  --bg-outer: #1a1a1a;
  --bg: #0B0F19;
  --surface: #151C2C;
  --surface-elevated: #1E293B;
  --surface-muted: #0F172A;
  --border: #1E293B;
  --border-accent: rgba(255, 149, 0, 0.35);
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shell-width: 430px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-outer);
  color: var(--text-primary);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 1. Mobile App Shell Layout */
.app-shell {
  width: 100%;
  max-width: var(--shell-width);
  min-height: 100vh;
  background-color: var(--bg);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.85);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 84px; /* Space for fixed bottom bar */
}

@media (max-width: 430px) {
  body {
    background-color: var(--bg);
  }
  .app-shell {
    max-width: 100%;
    box-shadow: none;
  }
}

/* 2. Sticky Header (.hdr) */
.hdr {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 62px;
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.hdr-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.hdr-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-login {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-secondary);
}

.btn-register {
  background: linear-gradient(135deg, var(--cta-green) 0%, #00a846 100%);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 200, 83, 0.35);
  transition: all 0.2s ease;
}

.btn-register:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Notification & Compliance Notice (Zero Headings) */
.ticker-wrap {
  padding: 8px 16px 0;
}

.ticker-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.ticker-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-text {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compliance-strip {
  padding: 10px 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.35);
  color: #ff6b62;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

.compliance-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Hero & Promotion Banner */
.hero-promo {
  margin: 12px 16px;
  background: linear-gradient(135deg, #1e1b4b 0%, #151c2c 60%, #0f172a 100%);
  border: 1px solid rgba(255, 149, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
}

.hero-promo::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.hero-headline {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.hero-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b00 100%);
  color: #000000;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 149, 0, 0.4);
  transition: transform 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
}

/* Category Quick Navigation */
.category-nav {
  display: flex;
  gap: 8px;
  padding: 8px 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cat-pill.active, .cat-pill:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Section Header */
.sec-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
}

.sec-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* 3. Interactive 3x2 Game Grids */
.game-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px 20px;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0d121f;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-rtp {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
}

.badge-studio {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--accent-gold);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
}

.card-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

/* Dual-Button Overlays */
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: auto;
}

.btn-play-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent) 100%);
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 0;
  text-align: center;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(255, 149, 0, 0.25);
  transition: opacity 0.2s ease;
}

.btn-play-gold:hover {
  opacity: 0.9;
}

.btn-guide-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 0;
  text-align: center;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-guide-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: var(--text-secondary);
}

/* Cashier Fast Actions */
.cashier-bar {
  margin: 0 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cashier-info {
  display: flex;
  flex-direction: column;
}

.cashier-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.cashier-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.cashier-btn {
  background: var(--cta-green);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
}

/* Compliance Footer */
.compliance-footer {
  padding: 24px 16px 16px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compliance-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.compliance-link {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
}

.compliance-link:hover {
  color: var(--text-secondary);
}

.disclaimer-text {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* 4. Fixed Bottom Bar (.bottom-nav) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: var(--shell-width);
  margin: 0 auto;
  height: 66px;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 100;
  padding: 0 4px;
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  height: 100%;
  transition: color 0.2s ease;
}

.nav-tab.active, .nav-tab:hover {
  color: var(--text-primary);
}

.nav-tab-icon {
  font-size: 18px;
  line-height: 1;
}

/* Highlighted Center CTA Tab */
.nav-tab-center {
  color: #000000;
  position: relative;
}

.nav-center-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(255, 149, 0, 0.45);
  transform: translateY(-8px);
  transition: transform 0.2s ease;
}

.nav-tab-center:hover .nav-center-bubble {
  transform: translateY(-11px) scale(1.05);
}

.nav-center-icon {
  font-size: 20px;
}

/* =======================================================
   5. Rich Spoke & Guide Typography & High-Converting UI
   ======================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

/* Hero Title Accent */
.guide-article h1,
.hero-title-wrap h1 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 12px;
}

.hero-title-wrap h1 span {
  background: linear-gradient(90deg, #ffd700, #ff9500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Quick Facts KPI Grid */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0 20px;
}

.qf-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease;
}

.qf-item:hover {
  border-color: rgba(255, 149, 0, 0.4);
}

.qf-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1.1;
}

.qf-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Key Takeaway / TLDR Box */
.tldr, .info-callout {
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.28);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.tldr strong, .info-callout strong {
  color: var(--accent-gold);
}

/* Spoke Guide Section Card */
.spoke-section, .guide-sec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.spoke-section h2, .guide-sec h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 12px;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.spoke-section p, .guide-sec p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.spoke-section p:last-of-type, .guide-sec p:last-of-type {
  margin-bottom: 0;
}

/* Spec Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.spec-table, table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
  background: var(--surface-muted);
}

.spec-table th, table th {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.spec-table td, table td {
  padding: 9px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.spec-table tr:last-child td, table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:hover td, table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Step Lists */
.step-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-item strong {
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}

/* FAQ Details Accordion */
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

details.faq-item:hover, details.faq-item[open] {
  border-color: rgba(255, 149, 0, 0.35);
}

details.faq-item summary {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-primary);
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: '+';
  color: var(--accent-gold);
  font-size: 1.15rem;
  font-weight: 800;
  margin-left: 10px;
}

details.faq-item[open] summary::after {
  content: '−';
}

details.faq-item .faq-ans {
  padding: 0 14px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 10px;
}

/* Polished Dual-Intent CTA Block */
.cta-dual, .dual-cta-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  padding: 12px;
  background: rgba(255, 149, 0, 0.06);
  border: 1px solid rgba(255, 149, 0, 0.22);
  border-radius: var(--radius-md);
}

.btn-action-primary, .cta-dual .btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent) 100%);
  color: #000000;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  padding: 11px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(255, 149, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-action-primary:hover, .cta-dual .btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-guide-secondary, .cta-dual .btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-guide-secondary:hover, .cta-dual .btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.05);
}
