:root {
  --bg: #2b2b2b;
  --surface: #383838;
  --surface2: #444444;
  --surface-border: #555555;
  --text: #f0f0f0;
  --muted: #a0a0aa;
  --gold: #FFD700;
  --gold2: #FDB931;
  --accent: #FFA500;
  --emerald: #00C853;
  --glow: rgba(255, 215, 0, 0.18);
  --radius: 14px;
  --btn-radius: 50px;
  --font-stack: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  background: #1a1a1a;
  display: flex;
  justify-content: center;
  font-family: var(--font-stack);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
}

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

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

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

.hdr-logo {
  height: 32px;
  width: auto;
  display: block;
}

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

/* Button Component Standards */
.btn {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000000;
  padding: 8px 18px;
  border-radius: var(--btn-radius);
  font-weight: 800;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.35);
  color: #000000;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 14px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  width: 100%;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.25);
}

/* Notification & Compliance Pill Badges (Strictly <p> / <div>, Zero Heading Tags) */
.pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
  flex-shrink: 0;
}

.pill-badge.pill-emerald {
  background: rgba(0, 200, 83, 0.18);
  border-color: rgba(0, 200, 83, 0.45);
  color: #00e676;
}

.pill-badge.pill-gold {
  background: rgba(255, 215, 0, 0.16);
  border-color: rgba(255, 215, 0, 0.45);
  color: #FFE033;
}

.notice-banner {
  background: rgba(35, 35, 35, 0.95);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin: 10px 14px;
  font-size: 0.76rem;
  color: #f3f4f6;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 10px;
  overflow-x: auto;
}

.notice-banner span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e5e7eb;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1f1f1f;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.78) 45%, rgba(0, 0, 0, 0.55) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.hero h1 {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 1), 0 1px 3px rgba(0, 0, 0, 0.9);
  margin-bottom: 6px;
}

.hero-tag {
  font-size: 0.8rem;
  color: #f3f4f6;
  line-height: 1.45;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 1), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.hero-tag strong {
  color: #FFD700;
  font-weight: 700;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 8px 10px;
  background: #202020;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
}

.trust-bar .pill-badge {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.65rem;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.trust-bar .pill-badge.pill-emerald {
  background: rgba(0, 200, 83, 0.2);
  border-color: rgba(0, 200, 83, 0.5);
  color: #00e676;
}

.trust-bar .pill-badge.pill-gold {
  background: rgba(255, 215, 0, 0.18);
  border-color: rgba(255, 215, 0, 0.5);
  color: #FFE033;
}

.main-content {
  padding: 0 16px;
}

/* Quick Summary / Answer Capsule */
.answer-capsule {
  background: var(--glow);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #f3f4f6;
}

.answer-capsule strong {
  color: var(--gold);
}

/* Category & Section Layouts */
.section {
  margin: 24px 0;
}

.section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 14px 0 6px;
  color: #e5e7eb;
}

.section p {
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* 3. Interactive 3x2 Game Grid with Dual-Button Overlays */
.game-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}

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

.game-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  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: rgba(255, 215, 0, 0.35);
}

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

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

.game-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

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

.game-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-meta {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.game-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
}

.game-actions .btn-play {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000000;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 6px 0;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  display: block;
}

.game-actions .btn-guide {
  background: var(--surface2);
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.72rem;
  padding: 6px 0;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-actions .btn-guide:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* 4. PAA & FAQ Accordion Components */
.faq-wrap {
  margin: 16px 0;
}

.faq-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-card[open] {
  border-color: rgba(255, 215, 0, 0.3);
}

.faq-card summary {
  padding: 12px 38px 12px 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #f3f4f6;
  cursor: pointer;
  list-style: none;
  position: relative;
  line-height: 1.4;
}

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

.faq-card summary::after {
  content: '+';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
}

.faq-card[open] summary::after {
  content: '−';
}

.faq-card .faq-answer {
  padding: 0 14px 14px;
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 10px;
}

/* Feature & Transaction Highlights */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.feature-item {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.feature-icon {
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glow);
  border-radius: 10px;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #f3f4f6;
}

.feature-item p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}

/* Compliance Footer & Mandatory Responsible Gaming Elements */
.site-footer {
  background: #1c1c1c;
  padding: 24px 16px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 30px;
}

.compliance-box {
  background: rgba(43, 43, 43, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
  text-align: left;
}

.compliance-box p {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 6px;
}

.compliance-box p:last-child {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--muted);
}

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

/* Data Tables (Mobile-Friendly Responsive Wrapper) */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  background: var(--surface);
  text-align: left;
}

.data-table th, .data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.data-table th {
  background: rgba(0, 0, 0, 0.4);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

.data-table td strong {
  color: #ffffff;
}

/* 5. Fixed Bottom Navigation Bar (5 Touch Tabs) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(43, 43, 43, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 0 10px;
  z-index: 100;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.68rem;
  transition: color 0.2s ease;
  gap: 2px;
}

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

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

.nav-tab.promo-tab {
  color: var(--gold);
  font-weight: 700;
}

.nav-tab.promo-tab .nav-tab-icon {
  background: var(--glow);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 215, 0, 0.4);
}
