/* ===========================================
   DESIGN TOKENS — Premium Dark
   =========================================== */
:root {
  --bg-page:        #000000;
  --bg-section:     #050505;
  --bg-card:        rgba(255, 255, 255, 0.04);
  --bg-card-hover:  rgba(255, 255, 255, 0.07);

  --gold:           #C8A951;
  --gold-light:     #E2C878;
  --gold-dark:      #A8893C;
  --gold-glow:      rgba(200, 169, 81, 0.16);

  --text-primary:   #FFFFFF;
  --text-secondary: #999999;
  --text-muted:     #555555;
  --text-faint:     #303030;

  --green:          #34C759;
  --red:            #FF3B30;

  --border:         rgba(255, 255, 255, 0.08);
  --border-light:   rgba(255, 255, 255, 0.04);

  --radius-card:    20px;
  --radius-btn:     14px;

  --font:           -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, Arial, sans-serif;

  --header-h:       56px;
  --sticky-h:       64px;

  --ease:           0.18s ease;
  --ease-slow:      0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================================
   RESET & BASE
   =========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

ul,
ol {
  list-style: none;
}

strong {
  font-weight: 600;
  color: var(--gold);
}

/* ===========================================
   LAYOUT UTILITIES
   =========================================== */
.section-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: clamp(20px, 4.5vw, 30px);
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 40px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ===========================================
   CTA BUTTONS
   =========================================== */
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 24px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    background var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  cursor: pointer;
  text-wrap: balance;
}

.cta-btn--primary {
  background: var(--gold);
  color: #000000;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 4px 20px var(--gold-glow);
}

.cta-btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 8px 32px rgba(200, 169, 81, 0.28);
}

.cta-btn--primary:active {
  transform: translateY(0);
  background: var(--gold-dark);
}

.cta-btn--primary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

.cta-btn--large {
  padding: 20px 28px;
  font-size: 16px;
}

.cta-subtext {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.02em;
}

/* ===========================================
   STICKY HEADER
   =========================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
  max-width: 760px;
  margin: 0 auto;
}

.header-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
  font-family: var(--font);
}

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

.badge-age {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}

.badge-pagcor {
  font-size: 9px;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  line-height: 1.3;
  border: 1px solid rgba(200, 169, 81, 0.35);
  padding: 3px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===========================================
   URGENCY STRIP
   =========================================== */
#urgency-strip {
  background: #000;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.urgency-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-wrap: wrap;
  text-align: center;
  line-height: 1.4;
}

.urgency-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-flex;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.urgency-divider {
  opacity: 0.3;
}

/* ===========================================
   HERO
   =========================================== */
#hero {
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(200, 169, 81, 0.07) 0%, transparent 65%),
    #000;
  padding: 48px 20px 56px;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.hero-spins {
  font-size: clamp(52px, 16vw, 88px);
  font-weight: 800;
  color: var(--gold);
  line-height: 0.95;
  letter-spacing: -0.03em;
  display: block;
}

.hero-game {
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  letter-spacing: -0.02em;
}

.hero-body {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-image-wrap {
  width: 100%;
  min-height: 200px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 40px var(--gold-glow);
}

.hero-game-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 20px;
  padding: 0;
}

.trust-row li {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
}

/* ===========================================
   COUNTDOWN BAR
   =========================================== */
#countdown-bar {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 20px;
}

.countdown-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.countdown-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.countdown-units {
  display: flex;
  align-items: center;
  gap: 10px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 4px 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.countdown-unit span {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: center;
  letter-spacing: -0.02em;
}

.countdown-unit small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
}

.countdown-sep {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-faint);
  margin-bottom: 20px;
  line-height: 1;
}

/* ===========================================
   ZERO WAGERING CALLOUT
   =========================================== */
#difference {
  padding: 80px 0;
  background: var(--bg-section);
}

.diff-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--ease), border-color var(--ease);
}

.diff-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.diff-icon {
  font-size: 28px;
  line-height: 1;
}

.diff-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.diff-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ===========================================
   HOW TO CLAIM
   =========================================== */
#how-to-claim {
  padding: 80px 0;
  background: var(--bg-page);
}

.steps-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
  padding: 0;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 24px 26px;
  width: 100%;
  text-align: center;
  position: relative;
  display: block;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 4px #000, 0 0 16px var(--gold-glow);
}

.step-icon {
  font-size: 32px;
  margin: 8px 0 14px;
  display: block;
  line-height: 1;
}

.step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.step-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-arrow {
  font-size: 18px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  transform: rotate(90deg);
  line-height: 1;
}

/* ===========================================
   WHY BET88
   =========================================== */
#why-bet88 {
  padding: 80px 0;
  background: var(--bg-section);
}

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

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--ease), border-color var(--ease);
}

.why-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.why-icon {
  font-size: 24px;
  line-height: 1;
}

.why-card h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.why-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===========================================
   FEATURED GAME
   =========================================== */
#featured-game {
  padding: 80px 0;
  background: var(--bg-page);
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
}

.game-card-label {
  background: var(--gold);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  text-transform: uppercase;
  display: inline-block;
}

.game-card-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.game-card-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.game-card-image {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

/* ===========================================
   FAQ
   =========================================== */
#faq {
  padding: 80px 0;
  background: var(--bg-section);
}

.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.faq-item {
  background: var(--bg-card);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border-light);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  transition: background var(--ease), color var(--ease);
  min-height: 60px;
}

.faq-q:hover {
  background: var(--bg-card-hover);
}

.faq-q:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
  background: var(--bg-card-hover);
}

.faq-q[aria-expanded="true"] {
  color: var(--gold);
  background: var(--bg-card-hover);
}

.faq-icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--ease-slow), color var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--gold);
}

.faq-a {
  padding: 0 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  border-top: 1px solid var(--border-light);
  overflow: hidden;
}

.faq-a[hidden] {
  display: none;
}

.faq-a p {
  padding: 16px 0;
}

/* ===========================================
   FINAL CTA BLOCK
   =========================================== */
#final-cta {
  padding: 88px 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(200, 169, 81, 0.08) 0%, transparent 65%),
    #000;
  text-align: center;
}

.final-cta-title {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.final-cta-sub {
  font-size: 16px;
  font-style: normal;
  color: var(--gold);
  margin-bottom: 36px;
  font-weight: 500;
}

.final-cta-compliance {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 20px;
  line-height: 2;
  letter-spacing: 0.01em;
}

/* ===========================================
   COMPLIANCE FOOTER
   =========================================== */
#site-footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 40px 20px 32px;
}

.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-logo-text {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
  font-family: var(--font);
}

.footer-pagcor-img {
  height: 34px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 3px 6px;
}

.footer-badge {
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  border-radius: 6px;
  text-transform: uppercase;
  padding: 4px 8px;
  letter-spacing: 0.06em;
}

.footer-badge--pagcor,
.footer-badge--ssl {
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.footer-badge--age {
  background: var(--red);
  color: #fff;
  border-radius: 20px;
  padding: 3px 9px;
}

.footer-legal p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 10px;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--text-faint);
}

.footer-legal a:hover {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid var(--border-light);
}

.footer-links a {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-faint);
}

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

/* ===========================================
   STICKY BOTTOM CTA
   =========================================== */
#sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.88);
  border-top: 1px solid var(--border);
  z-index: 999;
  display: flex;
  align-items: flex-start;
  padding: 10px 16px env(safe-area-inset-bottom, 0px);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  transition: transform var(--ease-slow);
}

#sticky-cta.hidden {
  transform: translateY(100%);
}

.sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  height: 44px;
  background: var(--gold);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-btn);
  padding: 0 16px;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--ease), transform var(--ease);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
}

.sticky-cta-btn:active {
  background: var(--gold-dark);
  transform: scale(0.98);
}

.sticky-cta-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.sticky-badge {
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

/* ===========================================
   TABLET / DESKTOP — 640px+
   =========================================== */
@media (min-width: 640px) {

  .section-title {
    font-size: clamp(24px, 4vw, 32px);
  }

  /* Hero */
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .hero-content {
    flex: 0 1 54%;
  }

  .hero-image-wrap {
    flex: 0 1 44%;
  }

  .hero-spins {
    font-size: 76px;
  }

  /* Countdown */
  .countdown-inner {
    flex-direction: row;
    gap: 28px;
  }

  .countdown-unit {
    min-width: 72px;
  }

  .countdown-unit span {
    font-size: 36px;
  }

  /* Diff cards */
  .diff-grid {
    flex-direction: row;
    gap: 14px;
  }

  .diff-card {
    flex: 1;
  }

  /* Steps */
  .steps-grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .step {
    flex: 1;
    width: auto;
  }

  .step-arrow {
    transform: rotate(0deg);
    padding: 0 4px;
    margin-top: 56px;
    flex-shrink: 0;
  }

  /* Game card */
  .game-card-inner {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }

  .game-card-content {
    flex: 1;
  }

  .game-card-image {
    flex: 0 0 200px;
  }

  /* Sticky CTA */
  .sticky-cta-btn {
    font-size: 15px;
    max-width: 560px;
    margin: 0 auto;
  }

  #sticky-cta {
    justify-content: center;
  }
}

/* ===========================================
   LARGE DESKTOP — 900px+
   =========================================== */
@media (min-width: 900px) {
  #hero {
    padding: 64px 20px 72px;
  }

  .hero-spins {
    font-size: 88px;
  }

  .cta-btn {
    font-size: 16px;
  }

  .diff-card,
  .why-card,
  .step {
    padding: 32px 28px;
  }

  #difference,
  #how-to-claim,
  #why-bet88,
  #featured-game,
  #faq {
    padding: 96px 0;
  }

  #final-cta {
    padding: 108px 0;
  }
}

/* ===========================================
   REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===========================================
   PRINT
   =========================================== */
@media print {
  #site-header,
  #sticky-cta,
  #urgency-strip,
  #countdown-bar {
    display: none;
  }

  body {
    padding: 0;
    background: #fff;
    color: #000;
  }
}
