:root {
  --bg-charcoal: #1a1a1a;
  --surface-app: #2b2b2b;
  --surface-card: #222222;
  --surface-card-2: #333333;
  --border-app: rgba(255, 255, 255, 0.08);
  --border-focus: #f59e0b;
  
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-light: #34d399;
  
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #d97706;
  --gold-grad: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fde047 100%);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-display: 'Inter', 'Plus Jakarta Sans', -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;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-charcoal);
}

html, body {
  max-width: 100% !important;
  overflow-x: clip !important;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* 430px Centered Mobile App-Shell Container */
.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background-color: var(--surface-app);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.main-content {
  flex: 1;
  padding: 12px 14px 80px 14px;
}

/* Links & Buttons */
a {
  color: inherit;
  text-decoration: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-gold {
  background: var(--gold-grad);
  color: #111827;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #064e3b;
  font-weight: 800;
}

.btn-outline {
  background: transparent;
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Fixed Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(34, 34, 34, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-app);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header__logo-link {
  display: flex;
  align-items: center;
}

.app-header__logo {
  height: 38px;
  width: auto;
}

.app-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-header__btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Category Navigation Bar */
.category-bar {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 8px 14px;
  background: #242424;
  border-bottom: 1px solid var(--border-app);
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-tab {
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #333333;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.category-tab:hover, .category-tab.active {
  background: var(--gold);
  color: #111827;
}

/* Sticky Bottom Navigation */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 100;
  background: #1e1e1e;
  border-top: 1px solid var(--border-app);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
  padding: 6px 4px 8px 4px;
  box-sizing: border-box;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 2px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.bottom-nav-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
}

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

.bottom-nav-item--play {
  background: var(--gold-grad);
  color: #111827;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.75rem;
  white-space: nowrap;
  letter-spacing: 0.3px;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  width: auto;
  justify-self: center;
}

.bottom-nav-item--play:hover {
  color: #111827;
  filter: brightness(1.08);
}

/* Typography & Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-main);
  line-height: 1.25;
}

h1 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 16px 0 12px 0;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 22px 0 10px 0;
}

h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 16px 0 8px 0;
}

p {
  font-size: 0.92rem;
  color: #d1d5db;
  line-height: 1.62;
  margin-bottom: 12px;
}

/* PAA Answer Capsule */
.paa-capsule {
  background: #1f2937;
  border-left: 4px solid var(--emerald);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 10px 0 16px 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #e5e7eb;
}

.paa-capsule strong {
  color: #34d399;
}

/* Trust Badges & Cards */
.spec-card {
  background: var(--surface-card);
  border: 1px solid var(--border-app);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 14px 0;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spec-item {
  background: #2a2a2a;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.spec-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 2px;
}

/* Data Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-app);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
  background: #242424;
}

th {
  background: #1a1a1a;
  color: var(--gold);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #d1d5db;
}

tr:last-child td {
  border-bottom: none;
}

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

.game-card {
  background: #1f1f1f;
  border: 1px solid var(--border-app);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.game-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 220 / 264;
  overflow: hidden;
  background: #151515;
}

.game-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.game-card__rtp {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.8);
  color: #34d399;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}

.game-card__info {
  padding: 8px 6px 10px 6px;
  text-align: center;
}

.game-card__title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.game-card__btn {
  display: block;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--gold-grad);
  color: #111827;
  font-weight: 700;
}

/* FAQ Accordions */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 20px 0;
}

.faq-item {
  background: #242424;
  border: 1px solid var(--border-app);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 12px 14px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 14px 14px 14px;
  font-size: 0.88rem;
  color: #9ca3af;
  line-height: 1.55;
}

/* 3-Row Dark Pill Badge Footer */
.app-footer {
  background: #1e1e1e;
  border-top: 1px solid var(--border-app);
  padding: 20px 14px 90px 14px;
  margin-top: 24px;
}

/* Trust Bar Container (Benchmark Image 1 & 2) */
.trust-bar-container {
  background-color: #121212;
  border: 1px solid #242424;
  border-radius: 12px;
  padding: 16px 14px;
  margin-bottom: 18px;
}

.trust-row {
  padding: 10px 0;
  border-bottom: 1px solid #222222;
}

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

.trust-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

/* White Rounded Pill (Row 1 Payments & Row 3 Licensed & Safe) */
.pill-white {
  background-color: #ffffff;
  border-radius: 9999px;
  padding: 4px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

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

.pill-white img {
  height: 18px;
  width: auto;
  display: block;
}

/* Dark Rounded Pill (Row 2 Providers) */
.pill-dark {
  background-color: #0b111a;
  border: 1px solid #1c2738;
  border-radius: 9999px;
  padding: 4px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}

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

.pill-dark img {
  height: 18px;
  width: auto;
  display: block;
}

.self-exclusion-link {
  color: #9ca3af;
  font-size: 11px;
  text-decoration: underline;
  margin-left: 6px;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  transition: color 0.15s ease;
}

.self-exclusion-link:hover {
  color: #f59e0b;
}

.ft-disclaimer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ft-disclaimer p {
  font-size: 11px;
  color: #888888;
  line-height: 1.45;
  margin-bottom: 8px;
}

.ft-disclaimer p:last-child {
  margin-bottom: 0;
}

.ft-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
}

.ft-link {
  font-size: 0.74rem;
  color: #9ca3af;
  text-decoration: underline;
}

.ft-link:hover {
  color: #f59e0b;
}

.ft-copy {
  margin-top: 14px;
  font-size: 0.7rem;
  color: #6b7280;
  text-align: center;
}
