/* ==========================================================================
   JILINO1 (jilino1bet.ph) PRODUCTION DESIGN SYSTEM
   Reverse-Engineered from jl-bet.ph & Official jilino1.to Platform
   Compliant with [casino-design-system] and [ace58-ui-guidance]
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Prompt:wght@600;700;800&display=swap');

:root {
  /* Brand Tokens extracted from jilino1 live audit */
  --primary: #F5BE2E;
  --primary-hover: #FFC82C;
  --primary-glow: rgba(245, 190, 46, 0.35);
  
  --secondary-cta: #1B2230;
  --secondary-cta-hover: #263044;
  
  --accent: #E94242;
  --accent-hover: #D32F2F;
  --accent-glow: rgba(233, 66, 66, 0.3);

  /* Backgrounds & Surfaces */
  --bg-outer: #1a1a1a;
  --bg: #0B0E14;
  --bg-elevated: #121620;
  --surface: #161B26;
  --surface-hover: #1E2534;
  --surface-card: #18202F;
  --border: #263044;
  --border-light: rgba(255, 255, 255, 0.08);

  /* Typography Colors */
  --text: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --gold: #F5BE2E;
  --gold2: #FFC82C;
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.12);

  /* Elevation & Geometry */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Typography Scale */
  --font-display: 'Prompt', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px rgba(245, 190, 46, 0.25);
  --shell-max-w: 430px;
}

/* Base Reset & Centered Outer Canvas */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

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

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

/* 2. Navigation & Sticky Header */
.hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(11, 14, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
}

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

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #000000;
  border-color: #E2A400;
  box-shadow: 0 2px 10px rgba(245, 190, 46, 0.3);
}

.btn-primary:hover {
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 190, 46, 0.45);
}

.btn-secondary {
  background: var(--secondary-cta);
  color: #FFFFFF;
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--secondary-cta-hover);
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(245, 190, 46, 0.1);
  color: var(--primary-hover);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
}

.btn-full {
  width: 100%;
}

/* Notification & Disclaimers: STRICTLY ZERO HEADING TAGS */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  line-height: 1.3;
}

.pill-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  flex-shrink: 0;
}

.pill-badge.warning-badge {
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.pill-badge.warning-badge .badge-dot {
  background: #F59E0B;
  box-shadow: 0 0 6px #F59E0B;
}

.pill-badge.accent-badge {
  color: #FCA5A5;
  background: rgba(233, 66, 66, 0.12);
  border-color: rgba(233, 66, 66, 0.35);
}

.disclaimer-text {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 6px;
}

/* Notification Bar / Announcement Ticker */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.notice-icon {
  font-size: 0.9rem;
  color: var(--primary);
  flex-shrink: 0;
}

.notice-content {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Content Wrapper */
.main {
  padding: 0 16px;
  flex: 1;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 430/215;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  padding: 16px;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.4) 0%, rgba(11, 14, 20, 0.95) 100%);
  margin-top: -30px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Page Hero Image Banner */
.hero-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(245, 190, 46, 0.25);
  background: #0E121A;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

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

/* TL;DR Summary Box */
.tldr-box {
  background: rgba(245, 190, 46, 0.08);
  border: 1px solid rgba(245, 190, 46, 0.25);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 0.85rem;
  line-height: 1.55;
}

.tldr-box b {
  color: var(--primary);
}

/* Sections & Typography */
.section {
  margin: 24px 0;
}

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

.section-hdr h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

.section-hdr .view-all {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
}

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

@media (min-width: 400px) {
  .game-grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 190, 46, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

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

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

.game-card:hover .game-thumb-wrap img {
  transform: scale(1.04);
}

.game-provider-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--primary);
  border: 1px solid rgba(245, 190, 46, 0.3);
  z-index: 2;
}

.game-rtp-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(16, 185, 129, 0.85);
  backdrop-filter: blur(4px);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-size: 0.65rem;
  font-weight: 700;
  color: #FFFFFF;
  z-index: 2;
}

.game-info {
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.game-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

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

.game-actions .btn {
  padding: 6px 0;
  font-size: 0.72rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

/* Studio & Category Horiztonal Scroll / Carousel */
.studio-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.studio-pills::-webkit-scrollbar {
  display: none;
}

.studio-pill {
  flex-shrink: 0;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.studio-pill.active,
.studio-pill:hover {
  background: var(--surface-hover);
  color: var(--primary);
  border-color: var(--primary);
}

/* E-E-A-T Author Card */
.eeat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin: 18px 0;
  display: flex;
  gap: 12px;
  align-items: center;
}

.eeat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--secondary-cta);
  border: 2px solid var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.eeat-info {
  flex: 1;
}

.eeat-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
}

.eeat-badge {
  font-size: 0.7rem;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.eeat-date {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* FAQ Accordion */
.faq-wrap {
  margin: 14px 0;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

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

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

.faq-icon {
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

details[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 14px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
}

/* Footer Section */
.footer-shell {
  background: #080A0F;
  border-top: 1px solid var(--border);
  padding: 24px 16px 20px;
  text-align: center;
}

.footer-logo {
  height: 28px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.footer-rg-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

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

@media (max-width: 430px) {
  .bottom-nav {
    max-width: 100%;
  }
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  gap: 2px;
  flex: 1;
  padding: 4px 0;
  transition: color 0.15s ease, transform 0.15s ease;
  min-height: 44px;
}

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

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

.nav-tab.tab-cta {
  color: #000000;
}

.nav-tab.tab-cta .tab-pill {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 190, 46, 0.4);
}

/* Age Gate Modal Component */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.age-gate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.age-gate-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.age-gate-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #FFFFFF;
}

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

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

/* -------------------------------------------------------------
   Postcard 2-Column Spoke Grid Component
   ------------------------------------------------------------- */
.spoke-postcard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 14px 0 18px;
}

@media (max-width: 360px) {
  .spoke-postcard-grid {
    grid-template-columns: 1fr;
  }
}

.postcard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.postcard-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 190, 46, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.postcard-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0E121A;
}

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

.postcard-card:hover .postcard-thumb-wrap img {
  transform: scale(1.05);
}

.postcard-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(11, 14, 20, 0.88);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--primary);
  border: 1px solid rgba(245, 190, 46, 0.35);
  z-index: 2;
  letter-spacing: 0.3px;
}

.postcard-tag-rtp {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(16, 185, 129, 0.9);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-size: 0.65rem;
  font-weight: 800;
  color: #FFFFFF;
  z-index: 2;
}

.postcard-body {
  padding: 10px 10px 6px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.postcard-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 4px;
}

.postcard-title a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.postcard-card:hover .postcard-title a {
  color: var(--primary);
}

.postcard-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 8px;
  flex: 1;
}

.postcard-meta {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.postcard-footer {
  padding: 0 10px 10px;
}

.postcard-btn {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

