/* ==========================================================================
   Pt Gaming Mobile App-Shell & UI Design System
   Target Geo: Philippines (en-PH) | Bounded Design Token Architecture
   ========================================================================== */

:root {
  /* Brand-Seeded Deterministic Tokens */
  --shell-max-w: 414px;
  --btn-min-h: 48px;
  --btn-radius: 16px;
  --btn-pad-x: 22px;
  --card-pad: 10px;
  --card-radius: 12px;
  --font-stack-base: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Color System */
  --color-outer-bg: #1a1a1a;
  --color-app-bg: #2b2b2b;
  --color-surface: #333333;
  --color-surface-card: #2e2e2e;
  --color-surface-hover: #3d3d3d;
  --color-surface-elevated: #3a3a3a;
  --color-border: #404040;
  --color-border-subtle: rgba(255, 255, 255, 0.08);

  --color-text-main: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-text-dim: #6b7280;

  /* Accent & Action Tokens */
  --color-gold: #fbbf24;
  --color-amber: #f59e0b;
  --color-amber-hover: #d97706;
  --color-emerald: #10b981;
  --color-cyan: #06b6d4;
  --color-blue: #3b82f6;
  --color-crimson: #ef4444;

  /* Layout Measurements */
  --header-height: 56px;
  --bottom-nav-height: 64px;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  background-color: var(--color-outer-bg);
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--color-outer-bg);
  color: var(--color-text-main);
  font-family: var(--font-stack-base);
  line-height: 1.5;
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Mobile App Shell Container */
.app-shell {
  width: 100%;
  max-width: var(--shell-max-w);
  min-height: 100vh;
  background-color: var(--color-app-bg);
  color: var(--color-text-main);
  position: relative;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  padding-bottom: var(--bottom-nav-height);
  overflow-x:clip;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(43, 43, 43, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

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

.header-logo {
  height: 32px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header-cashier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-hover));
  color: #111827;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: var(--btn-radius);
  text-decoration: none;
  min-height: 34px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-header-cashier:active {
  transform: scale(0.97);
}

.cashier-icon {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Hero Carousel (Single-Unit Smooth Transition)
   ========================================================================== */
.hero-carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #222;
  overflow: hidden;
}

.hero-slider-track {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Inlined critical rules for instant layout stability */
.hero-slide {
  display: none !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.hero-slide.active {
  display: block !important;
  animation: fadeInSlide 0.4s ease-in-out;
}

@keyframes fadeInSlide {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

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

.hero-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 20, 20, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-slide-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(245, 158, 11, 0.9);
  color: #111;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.hero-slide h2 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  margin: 0;
}

.hero-dots {
  position: absolute;
  bottom: 8px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.dot.active {
  background: var(--color-amber);
  width: 18px;
  border-radius: 4px;
}

/* ==========================================================================
   Live Operational Status Ticker (Anti-Deceptive Social Proof)
   ========================================================================== */
.operational-ticker-bar {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  height: 38px;
  overflow: hidden;
  position: relative;
}

.ticker-label-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #252525;
  color: var(--color-emerald);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  height: 100%;
  border-right: 1px solid var(--color-border);
  z-index: 2;
  box-shadow: 3px 0 6px rgba(0, 0, 0, 0.3);
}

.ticker-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  animation: pulseLight 1.8s infinite;
}

@keyframes pulseLight {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.ticker-marquee-track {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
}

.ticker-marquee-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 20px;
  animation: scrollMarquee 32s linear infinite;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.ticker-marquee-content span.highlight {
  color: var(--color-text-main);
  font-weight: 600;
}

.ticker-marquee-content span.sep {
  color: #555;
  margin: 0 10px;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Main Content Layout & Strict Heading Hierarchy
   ========================================================================== */
.main-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

/* Primary Page H1 Heading */
h1.page-primary-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin: 4px 0 8px 0;
  letter-spacing: -0.3px;
}

/* Lead Paragraph */
p.lead-summary {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

/* Supporting H2 Section Headers */
h2.section-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gold);
  margin: 16px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

h3.sub-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  margin: 10px 0 6px 0;
}

/* ==========================================================================
   Structural DOM Jitter & Asymmetric Content Blocks
   ========================================================================== */
.content-block,
.content-section,
.content-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  position: relative;
}

.content-card.accent-card {
  border-left: 3px solid var(--color-amber);
}

p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: #ffffff;
  font-weight: 600;
}

a.inline-anchor {
  color: var(--color-amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.15s ease;
}

a.inline-anchor:hover {
  color: var(--color-gold);
}

/* ==========================================================================
   Game Placecard Grid (400x260 Images with Brand-Seeded Variance)
   ========================================================================== */
.games-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.game-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.game-placecard {
  background: #252525;
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.game-placecard:active {
  transform: scale(0.98);
  border-color: var(--color-amber);
}

.placecard-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 400 / 260;
  background-color: #1a1a1a;
  overflow: hidden;
}

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

/* Perceptual Hash (pHash) Variance Classes */
.card-var-amber { filter: contrast(102%) saturate(104%); }
.card-var-emerald { filter: contrast(101%) hue-rotate(2deg); }
.card-var-gold { filter: brightness(102%) saturate(103%); }
.card-var-crimson { filter: contrast(103%) saturate(102%); }
.card-var-purple { filter: hue-rotate(-2deg) contrast(102%); }
.card-var-cyan { filter: saturate(104%) brightness(101%); }
.card-var-rose { filter: contrast(102%) brightness(99%); }
.card-var-blue { filter: hue-rotate(3deg) saturate(102%); }
.card-var-teal { filter: contrast(101%) brightness(102%); }
.card-var-slate { filter: contrast(102%); }

.placecard-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(17, 24, 39, 0.85);
  color: var(--color-gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.placecard-info {
  padding: 8px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.placecard-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.placecard-meta {
  font-size: 11px;
  color: var(--color-text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Asymmetric Data Presentations (Table, Grid, Badges)
   ========================================================================== */
/* 1. Responsive Technical Table */
.data-table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  margin: 12px 0;
}

.tech-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.tech-spec-table th {
  background: #252525;
  color: var(--color-gold);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.tech-spec-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
}

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

/* 2. Definition Grid (Asymmetric Key-Value) */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  background: #252525;
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 12px;
  margin: 12px 0;
}

.spec-grid dt {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.spec-grid dd {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

/* 3. Operational Badge Matrix */
.badge-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.op-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #252525;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.op-badge.highlight {
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--color-gold);
}

/* ==========================================================================
   Primary Action Buttons (WCAG >= 44px compliant)
   ========================================================================== */
.btn-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-min-h);
  padding: 0 var(--btn-pad-x);
  border-radius: var(--btn-radius);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  width: 100%;
}

.btn-play-cta {
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-hover));
  color: #111827;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-play-cta:active {
  transform: scale(0.98);
}

.btn-secondary-action {
  background: #333333;
  color: #ffffff;
  border: 1px solid var(--color-border);
}

.btn-secondary-action:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Interactive PAA Accordion
   ========================================================================== */
.paa-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.accordion-item {
  background: #252525;
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.accordion-item.open {
  border-color: rgba(245, 158, 11, 0.5);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  min-height: 48px;
}

.accordion-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  fill: var(--color-text-muted);
}

.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
  fill: var(--color-amber);
}

.accordion-body {
  display: none;
  padding: 0 14px 14px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 2px;
}

.accordion-item.open .accordion-body {
  display: block;
  animation: fadeInAccordion 0.2s ease-in;
}

@keyframes fadeInAccordion {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Sticky Bottom Navigation Bar (5 English Items)
   ========================================================================== */
.sticky-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--shell-max-w);
  height: var(--bottom-nav-height);
  background: rgba(35, 35, 35, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 999;
  padding: 0 4px;
}

.nav-item-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-text-dim);
  flex: 1;
  height: 100%;
  gap: 3px;
  transition: color 0.15s ease;
  min-height: 48px;
}

.nav-item-link.active,
.nav-item-link:active {
  color: var(--color-amber);
}

.nav-icon {
  width: 20px;
  height: 20px;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   Footer Component & Compliance Badges
   ========================================================================== */
.site-footer {
  background: #202020;
  border-top: 1px solid var(--color-border);
  padding: 20px 16px;
  margin-top: auto;
  font-size: 11.5px;
  color: var(--color-text-dim);
  line-height: 1.5;
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.footer-nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.footer-compliance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  margin-top: 12px;
}

.badge-21-plus {
  display: inline-block;
  background: #333;
  color: var(--color-gold);
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-weight: 800;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
}

/* ==========================================================================
   21+ Age Gate Modal (Uses <p class="age-gate-title"> strictly - No H-tags)
   ========================================================================== */
.age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.age-gate-overlay.show {
  display: flex;
}

.age-gate-modal {
  background: #2b2b2b;
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  max-width: 360px;
  width: 100%;
  padding: 24px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
}

.age-gate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-amber);
  font-size: 20px;
  font-weight: 800;
  border: 2px solid var(--color-amber);
  margin-bottom: 12px;
}

/* Modal Title Rule: Must use styled <p class="age-gate-title"> */
p.age-gate-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

p.age-gate-desc {
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-age-confirm {
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-hover));
  color: #111827;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: var(--btn-radius);
  min-height: var(--btn-min-h);
  cursor: pointer;
}

.btn-age-exit {
  background: transparent;
  color: var(--color-text-dim);
  font-size: 12.5px;
  border: none;
  padding: 8px;
  cursor: pointer;
  text-decoration: underline;
}

html,body{overflow-x:clip !important;max-width:100% !important;}
.site-header{position:-webkit-sticky !important;position:sticky !important;top:0 !important;z-index:1000 !important;}
