/* ==========================================================================
   333JILI Mobile App Shell Design System & Tokens
   Auto-configured from brand_palette.json and benchmark blueprint (max-width: 430px)
   ========================================================================== */

:root {
  /* Color Tokens mapped from brand_palette.json */
  --primary: #F59E0B;
  --primary-hover: #D97706;
  --primary-light: #FDE68A;
  --accent: #DC2626;
  --accent-hover: #B91C1C;
  --accent-gcash: #007DFE;
  --accent-maya: #22C55E;
  --gold: #F59E0B;
  --gold2: #FBBF24;
  --glow: rgba(245, 158, 11, 0.2);
  --glow-strong: rgba(245, 158, 11, 0.45);
  
  /* Surfaces */
  --bg: #080E1A;
  --surface: #162035;
  --surface2: #1E293B;
  --surface-dark: #0F172A;
  --surface-glass: rgba(22, 32, 53, 0.85);
  
  /* Text */
  --text: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-gold: #FBBF24;
  
  /* Borders & Radii */
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 158, 11, 0.35);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Outer Desktop Canvas: Centered Viewport Container */
body {
  background: #1a1a1a;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Shell: Max-Width 430px on desktop, 100% on mobile */
.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.95), 0 0 15px rgba(0, 0, 0, 0.8);
  padding-bottom: 84px; /* Space for sticky bottom navigation */
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Sticky Header Component (.hdr)
   -------------------------------------------------------------------------- */
.hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

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

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

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

.hdr-btn-login {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hdr-btn-login:hover {
  background: rgba(245, 158, 11, 0.15);
  transform: translateY(-1px);
}

.hdr-btn-register {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.8rem;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
  transition: all 0.2s ease;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hdr-btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.6);
}

/* --------------------------------------------------------------------------
   Notification & 21+ Compliance Pill Badges (Strictly <p> / <div>, zero headings)
   -------------------------------------------------------------------------- */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 6px 0;
  text-decoration: none;
}

.pill-badge-alert {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #FCA5A5;
}

.pill-badge-gold {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--gold2);
}

.pill-badge-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86EFAC;
}

.ticker-strip {
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ticker-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

.ticker-highlight {
  color: var(--gold);
  font-weight: 700;
}

.age-disclaimer-strip {
  background: rgba(220, 38, 38, 0.08);
  border-top: 1px solid rgba(220, 38, 38, 0.2);
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
  padding: 5px 14px;
  text-align: center;
}

.age-disclaimer-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #FCA5A5;
  letter-spacing: 0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #080E1A;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  min-height: auto;
}

.hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.7) 0%, rgba(8, 14, 26, 0.95) 75%, #080E1A 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 16px 14px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  margin-top: 0;
  margin-bottom: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-subtitle {
  font-size: 0.84rem;
  color: #CBD5E1;
  font-weight: 400;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  margin-top: 0;
  margin-bottom: 12px;
}

.hero-subtitle strong {
  color: var(--gold2);
  font-weight: 700;
}

.dual-cta-box {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
  margin: 10px 0 14px;
}

.act-btn {
  background: linear-gradient(135deg, var(--gold), #D97706);
  color: #080E1A;
  padding: 11px 12px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 4px 14px var(--glow);
  min-height: 44px;
  white-space: nowrap;
}

.act-btn:hover {
  box-shadow: 0 6px 18px var(--glow-strong);
  color: #080E1A;
  transform: translateY(-1px);
}

.int-btn {
  background: transparent;
  color: var(--gold2);
  border: 1px solid var(--border-gold);
  padding: 11px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
}

.int-btn:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #FFFFFF;
}

.trust-pill-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  justify-content: space-between;
}

.trust-pill {
  flex: 1 1 auto;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 8px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.hero-cta-btn {
  background: linear-gradient(135deg, var(--gold), #D97706);
  color: #080E1A;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px var(--glow-strong);
  transition: all 0.2s ease;
  min-height: 48px; /* Touch target */
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.6);
}

/* --------------------------------------------------------------------------
   Main Content Layout & Typography
   -------------------------------------------------------------------------- */
.main {
  padding: 0 14px;
}

.section {
  margin: 22px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-more-link {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Interactive 3x2 Game Placecard Grid (.game-grid)
   -------------------------------------------------------------------------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}

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

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 12px var(--glow);
}

.game-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0B111E;
}

.game-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.game-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(8, 14, 26, 0.85);
  border: 1px solid var(--border-gold);
  color: var(--gold2);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  z-index: 2;
  backdrop-filter: blur(4px);
}

.game-rtp-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(34, 197, 94, 0.85);
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.game-body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.game-studio {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Dual-Button Overlays / Action Row */
.game-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 6px;
  margin-top: auto;
}

.btn-play {
  background: linear-gradient(135deg, var(--gold), #D97706);
  color: #080E1A;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 7px 4px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px var(--glow);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 36px;
}

.btn-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--glow-strong);
  color: #080E1A;
}

.btn-guide {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.73rem;
  padding: 7px 4px;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
}

.btn-guide:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245, 158, 11, 0.08);
}

/* --------------------------------------------------------------------------
   Cashier & Payment Trust Badges
   -------------------------------------------------------------------------- */
.cashier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin: 14px 0;
}

.cashier-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.cashier-badge {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cashier-badge:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.cashier-badge-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 3px;
}

.cashier-badge-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Responsible Gaming Footer & Mandatory Disclaimers
   -------------------------------------------------------------------------- */
.rg-footer {
  background: #060B14;
  padding: 24px 16px 20px;
  margin-top: 32px;
  border-top: 1px solid rgba(245, 158, 11, 0.15);
  text-align: center;
}

.rg-shield {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.35);
  margin-bottom: 14px;
}

.rg-shield-text {
  font-size: 0.75rem;
  font-weight: 800;
  color: #F87171;
  letter-spacing: 0.5px;
  margin: 0;
}

.rg-legal-p {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 12px;
}

.rg-helplines {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 14px 0;
  text-align: left;
}

.rg-helplines-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold2);
  margin-bottom: 4px;
}

.rg-helplines-list {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.rg-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 8px;
}

.rg-links a {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rg-links a:hover {
  color: var(--gold);
}

.rg-copy {
  font-size: 0.68rem;
  color: #475569;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Fixed Mobile Bottom Bar (.bottom-nav) - 5 Touch Tabs
   -------------------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 4px 10px;
  z-index: 100;
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.bnav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  transition: color 0.15s ease;
  min-width: 58px;
  gap: 2px;
  min-height: 48px; /* Touch target */
  justify-content: center;
}

.bnav-tab:hover, .bnav-tab.active {
  color: var(--gold);
}

.bnav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

/* Center Elevated Promo CTA Tab */
.bnav-cta-center {
  position: relative;
  top: -12px;
  background: linear-gradient(135deg, var(--gold), #D97706);
  color: #080E1A !important;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--glow-strong);
  border: 3px solid #0F172A;
  min-width: 54px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bnav-cta-center:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.7);
}

.bnav-cta-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.bnav-cta-label {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-top: 1px;
}
