/* JL111 430px Grey Mobile App-Shell Design System */
:root {
  --bg-outer: #1a1a1a;
  --bg-shell: #2b2b2b;
  --bg-card: #333333;
  --bg-card-hover: #3c3c3c;
  --bg-elevated: #383838;
  --bg-table-header: #242424;
  
  --amber-label: #f59e0b;
  --gold-accent: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.3);
  --accent-green: #00c853;
  --accent-blue: #3b82f6;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --border-subtle: #404040;
  --border-strong: #525252;
  
  --pill-dark: #1e2430;
  --pill-white: #ffffff;
  
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-full: 9999px;
  
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100% !important;
  overflow-x: clip !important;
  background-color: var(--bg-outer);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--bg-outer);
}

/* 430px Centered Mobile App-Shell */
.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--bg-shell);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  padding-bottom: 74px; /* Space for sticky bottom navigation */
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

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

.btn-header-login {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--r-full);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.6);
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-header-login:hover {
  color: #ffffff;
  border-color: var(--amber-label);
}

.btn-header-register {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px var(--gold-glow);
  transition: transform 0.15s ease, filter 0.15s ease;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

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

/* Content Container */
.content-area {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero Carousel Frame */
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: #222222;
  border: 1px solid var(--border-subtle);
}

.carousel-slides {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  padding: 20px 16px;
  background: linear-gradient(135deg, #2f2a1e 0%, #242424 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-label);
}

.slide-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.slide-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.slide-cta {
  align-self: flex-start;
  margin-top: 6px;
  background: var(--amber-label);
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-full);
}

/* 4-Game Quad Layout for Carousel Slides */
.slide-games-quad {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0 12px;
}

.slide-game-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #141720;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1.35 / 1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.slide-game-item:hover {
  transform: translateY(-2px);
  border-color: var(--amber-label);
}

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

.slide-game-lbl {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.75) 40%, rgba(15, 23, 42, 0.95) 100%);
  color: #f8fafc;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  padding: 8px 4px 4px;
  letter-spacing: 0.02em;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  background: #1c1c1c;
}

.indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #555;
  transition: background 0.2s ease, width 0.2s ease;
}

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

/* Primary H1 Thesis Block */
.thesis-header {
  background: linear-gradient(180deg, #333333 0%, #2a2a2a 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.thesis-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-label);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-bottom: 10px;
}

.main-h1 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 10px;
}

.thesis-lead {
  font-size: 13.5px;
  color: #d1d5db;
  line-height: 1.55;
}

/* Action Quick Nav */
.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.quick-nav-card:hover {
  transform: translateY(-2px);
  border-color: var(--amber-label);
}

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

.quick-nav-label {
  font-size: 11px;
  font-weight: 600;
  color: #e5e7eb;
}

/* Section Headings */
.section-heading-frame {
  margin-top: 10px;
  margin-bottom: 6px;
}

.section-h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--amber-label);
  border-radius: 2px;
}

/* Card Content Blocks */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-card p {
  font-size: 13.5px;
  color: #d1d5db;
  line-height: 1.6;
}

.content-card ul, .content-card ol {
  padding-left: 20px;
  font-size: 13.5px;
  color: #d1d5db;
  line-height: 1.6;
}

.content-card li {
  margin-bottom: 6px;
}

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

.game-card-item {
  background: #252525;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.game-card-item:hover {
  transform: translateY(-2px);
  border-color: var(--amber-label);
}

.game-card-thumb {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  background: #181818;
}

.game-card-details {
  padding: 8px 10px;
}

.game-card-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-studio {
  font-size: 11px;
  color: var(--amber-label);
  font-weight: 600;
}

.game-card-specs {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
  margin: 12px 0;
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
  table-layout: auto !important;
}

.data-table th {
  background-color: var(--bg-table-header);
  color: #f3f4f6;
  padding: 10px 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #3d3d3d;
  color: #d1d5db;
  white-space: normal;
  line-height: 1.45;
}

.data-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

/* PAA Answer Capsules */
.paa-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paa-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  overflow: hidden;
}

.paa-title {
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  background: #2c2c2c;
  border-bottom: 1px solid var(--border-subtle);
}

.paa-capsule {
  padding: 12px 14px;
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.55;
  background: rgba(0, 200, 83, 0.04);
  border-left: 3px solid var(--accent-green);
}

/* CTA Primary Buttons */
.cta-banner {
  background: linear-gradient(135deg, #2e2617 0%, #1f1f1f 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--r-lg);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.cta-banner h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: #ffffff;
  font-weight: 800;
}

.cta-banner p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.btn-cta-gold {
  display: block;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  font-weight: 800;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px var(--gold-glow);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-cta-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Category Quick Links */
.category-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-link-pill {
  background: #272727;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.category-link-pill:hover {
  border-color: var(--amber-label);
  color: #ffffff;
}

/* 3-Row Dark Pill Badge Footer (Exact Blueprint Reference) */
.footer-trust-shell {
  margin-top: 24px;
  padding: 16px 14px 36px;
  background: #181818;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-strip {
  background: #11141c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
}

.trust-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.trust-row:first-child {
  padding-top: 0;
}

.trust-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trust-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f59e0b;
}

.trust-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* White and Dark Rounded Pill Badges */
.trust-pill-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  color: #0f172a;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  height: 27px;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
  line-height: 1;
}

.trust-pill-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0d1522 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  height: 27px;
  white-space: nowrap;
  transition: transform 0.15s ease, border-color 0.15s ease;
  line-height: 1;
}

.trust-pill-white:hover,
.trust-pill-dark:hover {
  transform: translateY(-1px);
}

.trust-self-exclusion {
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 6px;
  transition: color 0.15s ease;
}

.trust-self-exclusion:hover {
  color: #ffffff;
}

/* Benchmark Graphic Integrations */
.brand-hero-frame {
  margin: 14px 0 16px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

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

.guide-image-wrap {
  margin: 14px 0 16px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.guide-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
}

.ft-sublink {
  color: var(--amber-label);
  text-decoration: underline;
  font-weight: 600;
}

.ft-sublink:hover {
  color: #fbbf24;
}

/* E-E-A-T Disclaimers */
.footer-disclaimers {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #2d2d2d;
  padding-top: 12px;
}

.footer-disclaimers strong {
  color: var(--text-muted);
}

.footer-copyright {
  text-align: center;
  font-size: 10.5px;
  color: #555555;
  padding-top: 8px;
}

/* Sticky Bottom Navigation */
.sticky-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background-color: rgba(30, 30, 30, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding: 0 6px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #9ca3af;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.bottom-nav-item.active, .bottom-nav-item:hover {
  color: var(--amber-label);
}

.bottom-nav-icon,
.bottom-nav-svg {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
  transition: stroke 0.15s ease;
}

/* Center Floating Action Button for PLAY */
.bottom-nav-item--fab {
  position: relative;
  overflow: visible;
}

.bottom-nav-fab-circle {
  position: absolute;
  top: -16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.55), 0 0 0 3px rgba(30, 30, 30, 0.98);
  transition: transform 0.18s ease;
}

.bottom-nav-item--fab:active .bottom-nav-fab-circle,
.bottom-nav-item--fab:hover .bottom-nav-fab-circle {
  transform: scale(1.08);
}

.bottom-nav-label-play {
  margin-top: 22px;
  color: #f59e0b;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.06em;
}
