/* ==========================================================================
   777SH Mobile App Shell & Design System
   Reverse-Engineered from Benchmark Blueprint
   Strict Zero-SEO-Jargon Compliant
   ========================================================================== */

:root {
  /* Brand Palette Tokens */
  --primary: #F5C451;
  --primary-hover: #FBB961;
  --accent: #FF8A1E;
  --secondary-deep: #C8922A;
  --gold-grad: linear-gradient(135deg, #D49D34 0%, #F5C658 35%, #FDE48C 55%, #EBB645 80%, #D49D34 100%);
  --bg: #0C0E14;
  --bg-secondary: #121620;
  --surface: #161D2E;
  --surface-hover: #1D263B;
  --outer-bg: #1a1a1a;
  
  /* Text & Border Tokens */
  --text-main: #F4F1E8;
  --text-muted: #A39C93;
  --text-muted-deep: #70685E;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(245, 196, 81, 0.45);
  --success: #2BFF9B;
  --danger: #FF3B30;
  
  /* Effects & Sizing */
  --glow-gold: 0 0 8px rgba(245, 196, 81, 0.55), 0 0 24px rgba(245, 196, 81, 0.25);
  --glow-cta: 0 4px 20px rgba(217, 138, 46, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  --card-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  --header-h: 62px;
  --bottom-nav-h: 66px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Typography Stack */
  --font-display: 'Bebas Neue', 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--outer-bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--outer-bg);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
}

/* ==========================================================================
   1. Mobile App Shell Layout (.app-shell)
   Desktop: max-width 430px centered against #1a1a1a
   Mobile: 100% viewport width
   ========================================================================== */
.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  background-color: var(--bg);
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

@media (max-width: 480px) {
  .app-shell {
    max-width: 100%;
    box-shadow: none;
  }
}

/* ==========================================================================
   2. Sticky Header (.hdr)
   Logo left, Quick Login & Register right
   ========================================================================== */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.hdr__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 8px;
}

.hdr__logo img {
  height: 38px;
  width: auto;
  display: block;
}

.hdr__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1;
  border: 1px solid transparent;
}

.btn:active {
  transform: scale(0.96);
}

.btn-login {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-register {
  background: var(--gold-grad);
  color: #0E0300;
  box-shadow: 0 2px 10px rgba(245, 196, 81, 0.35);
}

.btn-register:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px rgba(245, 196, 81, 0.55);
}

/* ==========================================================================
   Notification & 21+ Compliance Disclaimers
   Sleek, compact 1-2 straight line banner/card
   ========================================================================== */
.compliance-banner {
  margin: 10px 14px;
  padding: 8px 12px;
  background: rgba(245, 196, 81, 0.05);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.compliance-card {
  margin: 12px 0;
  padding: 8px 12px;
  background: rgba(245, 196, 81, 0.05);
  border: 1px solid rgba(245, 196, 81, 0.35);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2.5px 7px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #0E0300 !important;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}

.compliance-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0 !important;
}

.compliance-text strong {
  color: var(--primary);
  font-weight: 700;
}

/* Ticker announcement bar & Live Wins Marquee */
.ticker-bar {
  margin: 0 14px 10px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  overflow: hidden;
}

.ticker-icon {
  color: var(--primary);
  font-size: 13px;
  flex-shrink: 0;
}

.ticker-text {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.2;
}

/* Live Player Wins Marquee - Single-line infinite ticker */
.live-wins-bar {
  margin: 0 14px 14px;
  background: rgba(245, 196, 81, 0.05);
  border: 1px solid rgba(245, 196, 81, 0.22);
  border-radius: var(--radius-full);
  padding: 6px 10px 6px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  width: calc(100% - 28px);
}

.live-wins-badge {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.live-wins-track {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
}

.live-wins-marquee {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: marquee-scroll 24s linear infinite;
  color: var(--text-muted);
  flex-shrink: 0;
}

.live-wins-marquee span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.live-wins-marquee strong {
  color: var(--primary);
  font-weight: 700;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   3. Interactive 3x2 Game Grid
   Placecards with dual-button overlays:
   - Primary Gold Button: "Play" -> Promo URL
   - Outline Button: "Guide" -> Internal Game Guide URL
   ========================================================================== */
.section-title-wrap {
  padding: 16px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title-wrap .title-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.section-title-wrap .view-all-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 14px;
}

@media (max-width: 360px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.game-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.game-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0E1320;
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.game-card:hover .game-card__media img {
  transform: scale(1.08);
}

.game-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(15, 20, 30, 0.82);
  color: #F0C465;
  border: 1px solid rgba(240, 196, 101, 0.35);
  backdrop-filter: blur(4px);
  z-index: 2;
  letter-spacing: 0.3px;
}

.game-card__info {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.game-card__name {
  font-size: 12px;
  font-weight: 700;
  color: #EDE8DF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card__meta {
  font-size: 10px;
  color: #8C857B;
  display: flex;
  justify-content: space-between;
}

.game-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 6px;
}

.btn-game-play,
.content-body .btn-game-play {
  background: linear-gradient(135deg, #E5AC38 0%, #F5C860 100%) !important;
  color: #121008 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 6px 0 !important;
  border-radius: var(--radius-sm) !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
  display: block !important;
  line-height: 1.2 !important;
}

.btn-game-play:hover,
.content-body .btn-game-play:hover {
  filter: brightness(1.08) !important;
  color: #121008 !important;
  text-decoration: none !important;
}

.btn-game-guide,
.content-body .btn-game-guide {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 6px 0 !important;
  border-radius: var(--radius-sm) !important;
  text-align: center !important;
  text-decoration: none !important;
  display: block !important;
  transition: all 0.2s ease !important;
  line-height: 1.2 !important;
}

.btn-game-guide:hover,
.content-body .btn-game-guide:hover {
  background: rgba(245, 196, 81, 0.12) !important;
  color: #F5C451 !important;
  border-color: rgba(245, 196, 81, 0.45) !important;
  text-decoration: none !important;
}

/* ==========================================================================
   4. PAA & FAQ Accordion Components
   Accessible <details> and <summary> (.faq-card)
   Highlighted direct answers for mobile readability
   ========================================================================== */
.faq-section {
  padding: 18px 14px;
}

.faq-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-card[open] {
  border-color: var(--border-gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.faq-summary {
  padding: 13px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-card[open] .faq-summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 14px 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Direct answer highlight snippet block */
.faq-snippet {
  background: rgba(245, 196, 81, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--text-main);
  font-weight: 500;
}

/* ==========================================================================
   5. Fixed Bottom Navigation Bar (.bottom-nav)
   5 mobile touch tabs: Home, Games, Center Promo CTA, Cashier, Profile
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--bottom-nav-h);
  background: color-mix(in srgb, var(--bg-secondary) 95%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 999;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  height: 100%;
  transition: color 0.2s ease;
  padding: 4px 2px;
}

.nav-tab:hover,
.nav-tab.active {
  color: var(--primary);
}

.nav-tab svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Raised Center Floating Action CTA */
.nav-tab--fab {
  position: relative;
  overflow: visible;
}

.nav-tab__fab-circle {
  position: absolute;
  top: -18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-grad);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(245, 196, 81, 0.6), 0 0 0 4px var(--bg-secondary);
  transition: transform 0.2s ease;
}

.nav-tab--fab:active .nav-tab__fab-circle {
  transform: scale(0.92);
}

.nav-tab__fab-circle svg {
  width: 22px;
  height: 22px;
  fill: #0E0300;
}

.nav-tab--fab .nav-tab__label {
  margin-top: 24px;
  color: var(--primary);
  font-weight: 800;
}

/* ==========================================================================
   6. Content Body & Rich UI Components
   ========================================================================== */
.content-body {
  color: var(--text-main);
  line-height: 1.65;
  font-size: 14px;
}

.content-body p {
  margin-bottom: 12px;
  color: #D1CCD7;
}

.content-body strong {
  color: #FFFFFF;
}

.article-h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.article-h2 {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 24px;
  margin-bottom: 12px;
  line-height: 1.35;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.article-h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 16px;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Dual CTA Button Container */
.cta-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

@media (min-width: 360px) {
  .cta-container {
    flex-direction: row;
  }
}

.cta-container a.btn-primary,
a.btn-primary,
.btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1;
  background: var(--gold-grad) !important;
  color: #0E0300 !important;
  font-family: var(--font-body) !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  padding: 13px 18px !important;
  border-radius: var(--radius-md) !important;
  text-decoration: none !important;
  text-align: center !important;
  box-shadow: 0 4px 16px rgba(245, 196, 81, 0.45) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  border: none !important;
  line-height: 1.2 !important;
  -webkit-appearance: none;
}

.cta-container a.btn-primary:hover,
a.btn-primary:hover,
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: #0E0300 !important;
  text-decoration: none !important;
}

.cta-container a.btn-secondary,
a.btn-secondary,
.btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-gold) !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 13px 18px !important;
  border-radius: var(--radius-md) !important;
  text-decoration: none !important;
  text-align: center !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  line-height: 1.2 !important;
  -webkit-appearance: none;
}

.cta-container a.btn-secondary:hover,
a.btn-secondary:hover,
.btn-secondary:hover {
  background: rgba(245, 196, 81, 0.12) !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

/* Trust Pill Bar */
.trust-pill-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(22, 29, 46, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 16px 0 20px;
}

.trust-pill-bar span {
  font-size: 12px;
  color: #CBD5E1;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-divider {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin: 24px 0;
}

/* Styled Responsive Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.styled-table thead tr {
  background: rgba(245, 196, 81, 0.12);
  color: var(--primary);
  border-bottom: 1px solid var(--border-gold);
}

.styled-table th {
  padding: 10px 12px;
  font-weight: 700;
  white-space: nowrap;
}

.styled-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #D1CCD7;
}

.styled-table tbody tr:last-child td {
  border-bottom: none;
}

.styled-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Content Links & Lists */
.content-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.content-body a:hover {
  color: #FFEAA8;
}

.content-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
}

.content-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #D1CCD7;
}

.content-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 12px;
}

/* ==========================================================================
   7. Compliance & Trust Footer (.app-footer)
   ========================================================================== */
.app-footer {
  margin-top: 32px;
  padding: 24px 14px 12px;
  border-top: 1px solid var(--border-subtle);
  background: #090B10;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.footer-text {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
  max-width: 390px;
  margin-left: auto;
  margin-right: auto;
}

.footer-text strong {
  color: var(--primary);
}

.footer-text a {
  color: var(--primary);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-bottom: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links a {
  font-size: 11.5px;
  color: #CBD5E1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  padding: 3px 6px;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 10.5px;
  color: var(--text-muted-deep);
  line-height: 1.45;
  margin: 0;
}

.footer-copy strong {
  color: var(--text-muted);
}

