/* Grey Mobile App-Shell & Compliance Design Tokens (en-PH) */
:root {
  --bg-outer: #1a1a1a;
  --bg-shell: #2b2b2b;
  --bg-card: #222631;
  --bg-elevated: #323746;
  --bg-provider-pill: #1e2430;
  --text-primary: #f3f4f6;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-amber: #f59e0b;
  --accent-amber-hover: #d97706;
  --accent-emerald: #10b981;
  --accent-azure: #38bdf8;
  --border-subtle: #3f4454;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg-outer);
  color: var(--text-primary);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-outer);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Centered 430px Mobile App-Shell Container */
.app-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: #2b2b2b;
  color: #f3f4f6;
  position: relative;
  padding-top: 64px;
  padding-bottom: 84px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.65);
  border-left: 1px solid #333846;
  border-right: 1px solid #333846;
}

/* Keyboard Accessibility & Focus-Visible States (WCAG 2.2 AA) */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 2px;
}

/* Fixed Top App Header */
.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: rgba(30, 34, 45, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 100;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-cashier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.btn-cashier:hover {
  filter: brightness(1.06);
}

/* Quick Category Top Pill Strip & Quick Navigation */
.top-quick-nav,
.top-quick-nav-extra {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px;
  background: #1e222d;
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
}
.top-quick-nav::-webkit-scrollbar,
.top-quick-nav-extra::-webkit-scrollbar {
  display: none;
}
.quick-pill,
.quick-pill-extra {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #282e3c;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #3d4558;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.quick-pill:hover,
.quick-pill-extra:hover {
  background: #363e52;
  color: #ffffff;
  border-color: #f59e0b;
}
.quick-pill.active,
.quick-pill-extra.active {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #0f172a;
  border-color: #f59e0b;
  font-weight: 800;
}

/* Main Content Wrapper */
.shell-main {
  padding: 14px;
}

/* Hero Carousel Frame (Interactive Horizontal Banner Slider - Top 3 H2s on Homepage) */
.hero-carousel,
.hero-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid #434c66;
  margin-bottom: 18px;
  background: #141824;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hero-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
  flex: 0 0 100%;
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #141926;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 1;
  pointer-events: none;
  opacity: 0.88;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 18px 14px 42px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(90deg, rgba(16, 20, 31, 0.98) 0%, rgba(16, 20, 31, 0.88) 55%, rgba(16, 20, 31, 0.3) 82%, rgba(16, 20, 31, 0.0) 100%);
}

.hero-slide-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fbbf24;
  margin-bottom: 6px;
}

.hero-slide-title,
.hero-slide h2 {
  margin: 0 0 6px 0;
  font-size: 1.02rem;
  line-height: 1.28;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  max-width: 82%;
}

.hero-slide-desc,
.hero-slide p {
  margin: 0 0 10px 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #cbd5e1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  max-width: 76%;
}

.hero-slide-cta,
.hero-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.hero-slide-cta:hover,
.hero-slide-btn:hover {
  filter: brightness(1.08);
}

.hero-carousel-controls,
.carousel-nav-dots {
  position: absolute;
  bottom: 8px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.hero-dot,
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dot.active,
.carousel-dot.active {
  width: 22px;
  background: #f59e0b;
}

.hero-arrows {
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.hero-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero-arrow:hover {
  background: #f59e0b;
  color: #0f172a;
  border-color: #f59e0b;
}

/* Typography & Editorial Content */
h1 {
  font-size: 1.42rem;
  line-height: 1.28;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: -0.2px;
}

.editorial-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.editorial-section h2 {
  font-size: 1.14rem;
  line-height: 1.35;
  font-weight: 700;
  color: #fbbf24;
  margin: 0 0 10px 0;
}

.editorial-section h3 {
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 700;
  color: #38bdf8;
  margin: 14px 0 6px 0;
}

.editorial-section p {
  margin: 0 0 12px 0;
  font-size: 0.94rem;
  color: var(--text-primary);
}

.editorial-section p:last-child {
  margin-bottom: 0;
}

.editorial-section ul,
.editorial-section ol {
  margin: 0 0 12px 0;
  padding-left: 20px;
}

.editorial-section li {
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* E-E-A-T Byline & Verification Box */
.eeat-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #202531;
  border-left: 3px solid var(--accent-emerald);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.eeat-badge {
  color: #34d399;
  font-weight: 700;
}

/* Game Studio Grid (2 Columns inside 430px Shell) */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 6px;
}

.game-card {
  background: #1b1f2a;
  border: 1px solid #384152;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111827;
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-rtp-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.88);
  color: #34d399;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.game-studio-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.game-card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.game-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.game-card-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 0;
}

.btn-game-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: var(--radius-pill);
  background: #2e3648;
  color: #fbbf24;
  border: 1px solid #f59e0b;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.btn-game-action:hover {
  background: #f59e0b;
  color: #0f172a;
}

/* Responsive Data & Math Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 12px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

table.math-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  background: #1c202b;
}

table.math-table th,
table.math-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid #2e3446;
}

table.math-table th {
  background: #151922;
  color: #fbbf24;
  font-weight: 700;
  white-space: nowrap;
}

table.math-table tr:last-child td {
  border-bottom: none;
}

/* Reality Check / Math Callout Box */
.callout-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 0.86rem;
}

.callout-box.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.4);
}

.callout-title {
  font-weight: 800;
  color: #fbbf24;
  display: block;
  margin-bottom: 4px;
}

/* Primary CTA Button (Thumb-Reachable 48px+) */
.cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  margin: 12px 0;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

/* Collapsible FAQ Accordions */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-item {
  background: #1b1f2a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.faq-item summary {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent-amber);
  font-weight: 800;
  font-size: 1.1rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 10px 0 0 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  border-top: 1px solid #2e3446;
  padding-top: 8px;
}

/* Internal Directory & Category Navigation Grid */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.explore-link-card {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: #1b1f2a;
  border: 1px solid #384152;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #ffffff;
}

.explore-link-card:hover {
  border-color: var(--accent-amber);
}

.explore-link-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fbbf24;
}

.explore-link-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Image 1 & 2 3-Row Dark Pill Badge Footer (Mandatory on All 11 Pages)
   ========================================================================== */
.trust-footer {
  background: #181c26;
  border-top: 1px solid #333a4d;
  padding: 20px 14px 28px 14px;
  margin-top: 20px;
}

.trust-row {
  margin-bottom: 16px;
}

.trust-row-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 8px;
}

.trust-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* White Rounded Pills (Row 1 Payments & Row 3 Licensed & Safe) */
.pill-white {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 5px 11px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.pill-white-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
}

/* Dark Rounded Pills #1e2430 (Row 2 Providers) */
.pill-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e2430;
  color: #f3f4f6;
  border: 1px solid #333d52;
  border-radius: 9999px;
  padding: 5px 11px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.pill-dark-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  flex-shrink: 0;
}

.self-exclusion-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: underline;
  padding: 4px 8px;
}

.footer-disclaimer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #283042;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Sticky 5-Icon Mobile Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 64px;
  background: rgba(24, 28, 38, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid #374151;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 600;
  gap: 3px;
  min-height: 48px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: #f59e0b;
}

.bottom-nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}


.btn-header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: #232836;
  border: 1px solid #475569;
  color: #f3f4f6;
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.btn-header-login:hover {
  background: #2e3648;
  border-color: #f59e0b;
  color: #fbbf24;
}

.btn-header-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.78rem;
  text-decoration: none;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.btn-header-register:hover {
  filter: brightness(1.08);
}
