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

:root {
  --bg:        #0d1223;
  --bg2:       #0a0f1e;
  --gold:      #c9a227;
  --gold2:     #f0c040;
  --gold3:     #8b6914;
  --purple:    #6b21a8;
  --purple2:   #9333ea;
  --white:     #ffffff;
  --gray:      #94a3b8;
  --card-bg:   #1a2035;
  --border:    #2d3748;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Prevent iOS auto-zoom */
input, textarea, select { font-size: 16px; }
a, button, [onclick] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* ══════════════════════════════
   LIVE TICKER BAR
══════════════════════════════ */
.ticker-bar {
  background: linear-gradient(90deg, #0a0f1e, #120820, #0a0f1e);
  border-bottom: 1px solid rgba(201,162,39,0.2);
  padding: 9px 0;
  overflow: hidden;
  position: relative;
}
.ticker-bar::before, .ticker-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.ticker-bar::before { left: 0;  background: linear-gradient(90deg, #0a0f1e, transparent); }
.ticker-bar::after  { right: 0; background: linear-gradient(-90deg, #0a0f1e, transparent); }

.ticker-label {
  position: absolute;
  left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 10px; font-weight: 800;
  color: var(--gold);
  letter-spacing: 1.5px;
  z-index: 3;
  background: #0a0f1e;
  padding-right: 8px;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: tickerScroll 28s linear infinite;
  white-space: nowrap;
  padding-left: 120px;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
.ticker-item .t-name  { color: #fff; font-weight: 700; }
.ticker-item .t-amt   { color: #4ade80; font-weight: 800; }
.ticker-item .t-game  { color: var(--gold); font-size: 11px; }
.ticker-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: tickDot 1.5s ease infinite; flex-shrink: 0; }
@keyframes tickDot { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #080c17;
  border-bottom: 1px solid rgba(201,162,39,0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 42px; height: 42px;
  background: radial-gradient(circle, #1a1a2e, #0a0a15);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  line-height: 1;
  box-shadow: 0 0 12px rgba(201,162,39,0.3);
}

.logo-crown { font-size: 10px; color: var(--gold); }
.logo-fp    { font-size: 12px; font-weight: 900; color: var(--gold); font-family: 'Cinzel', serif; }

.logo-text {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.verified-badge {
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.hamburger {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.hamburger:active { background: rgba(255,255,255,0.12); }

.nav-menu {
  display: none;
  position: absolute;
  top: 66px; right: 12px;
  background: #0d1223;
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 16px;
  padding: 12px;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.nav-menu.open { display: flex; }
.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 10px;
  font-weight: 500;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.nav-menu a:active { background: rgba(255,255,255,0.08); }
.nav-menu-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 4px 8px;
}
.btn-signup-nav {
  background: linear-gradient(135deg, var(--gold3), var(--gold2)) !important;
  color: #1a0800 !important;
  font-weight: 800 !important;
  justify-content: center;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  position: relative;
  background: linear-gradient(160deg, #0d0820 0%, #1a0d3d 35%, #0d1a3d 65%, #071230 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(107,33,168,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(201,162,39,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(99,102,241,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* Floating suit decorations */
.hero-suit {
  position: absolute;
  font-size: 80px;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  animation: floatSuit 8s ease-in-out infinite;
}
.hero-suit:nth-child(1) { top: 10%; right: 5%;  animation-delay: 0s;   font-size: 100px; }
.hero-suit:nth-child(2) { bottom: 15%; right: 20%; animation-delay: 3s; font-size: 60px; }
.hero-suit:nth-child(3) { top: 60%; left: 2%;   animation-delay: 5s;   font-size: 70px; }
@keyframes floatSuit {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(8deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 28px;
  text-align: center;
}

/* Hero content — centered single column */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-content-left {
  max-width: 560px;
  width: 100%;
}

.fp-logo-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.fp-emblem {
  width: 68px; height: 68px;
  background: radial-gradient(circle, #2a1a00, #0d0820);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(201,162,39,0.45), 0 0 0 6px rgba(201,162,39,0.08);
  flex-shrink: 0;
}

.emblem-crown { font-size: 15px; color: var(--gold); }
.emblem-fp    { font-size: 17px; font-weight: 900; color: var(--gold); font-family: 'Cinzel', serif; }

.fp-brand { display: flex; flex-direction: column; }
.fp-fortune     { font-family: 'Cinzel', serif; font-size: 26px; font-weight: 900; color: var(--gold2); letter-spacing: 3px; line-height: 1; }
.fp-plays-script { font-size: 20px; color: var(--gold); font-style: italic; font-family: Georgia, serif; }

.hero-welcome { color: #6b7280; font-size: 11px; letter-spacing: 3.5px; margin-bottom: 4px; text-transform: uppercase; }
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: 34px; font-weight: 900;
  color: var(--gold2);
  letter-spacing: 2px;
  text-shadow: 0 0 30px rgba(240,192,64,0.45);
  line-height: 1.1;
  margin-bottom: 8px;
}
.hero-sub {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 2.5px;
  margin-bottom: 22px;
  opacity: 0.8;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 16px;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.hero-badges::-webkit-scrollbar { display: none; }

.badge {
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.35);
  color: var(--gold2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-features {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.divider { color: rgba(201,162,39,0.4); }

.btn-play-now {
  display: flex;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--gold3), var(--gold), var(--gold2));
  color: #1a0a00;
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 900;
  padding: 16px 20px;
  border-radius: 12px;
  text-decoration: none;
  letter-spacing: 2px;
  box-shadow: 0 4px 24px rgba(201,162,39,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  border: 2px solid var(--gold2);
  position: relative;
  overflow: hidden;
  animation: playNowPulse 2.2s ease-in-out infinite;
  transition: transform 0.2s;
  min-height: 58px;
  align-items: center; justify-content: center;
}

.btn-play-now::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  animation: shimmer 2.6s ease-in-out infinite;
  transform: skewX(-20deg);
}

.btn-play-now::after {
  content: '◆ PLAY NOW ◆';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 17px; font-weight: 900;
  color: #1a0a00; letter-spacing: 2px;
  pointer-events: none;
}
.btn-play-now span { visibility: hidden; }

@keyframes shimmer {
  0%   { left: -75%; opacity: 0; }
  10%  { opacity: 1; }
  60%  { left: 125%; opacity: 1; }
  61%  { opacity: 0; }
  100% { left: 125%; opacity: 0; }
}
@keyframes playNowPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(201,162,39,0.5), 0 0 0 0 rgba(201,162,39,0.35), inset 0 1px 0 rgba(255,255,255,0.2); }
  50%       { box-shadow: 0 6px 32px rgba(201,162,39,0.8), 0 0 0 10px rgba(201,162,39,0), inset 0 1px 0 rgba(255,255,255,0.2); }
}
.btn-play-now:hover { transform: translateY(-3px) scale(1.03); animation: none; box-shadow: 0 10px 40px rgba(201,162,39,0.9), inset 0 1px 0 rgba(255,255,255,0.3); }

.hero-tagline { color: var(--gold3); font-size: 12px; margin-top: 12px; letter-spacing: 2px; opacity: 0.8; }

/* Login / nav buttons — keep around for nav-menu reference but hero login removed */

/* RIGHT login panel */
.hero-login {
  width: 330px;
  display: flex;
  align-items: center;
  padding: 28px 28px 28px 8px;
  flex-shrink: 0;
}

.login-panel {
  position: relative;
  background: linear-gradient(180deg, #1a0d30 0%, #110920 50%, #0d0820 100%);
  border: 1.5px solid rgba(201,162,39,0.35);
  border-radius: 16px;
  padding: 24px 24px 20px;
  width: 100%;
  box-shadow: 0 0 50px rgba(107,33,168,0.25), inset 0 1px 0 rgba(201,162,39,0.08);
}

.login-corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--gold);
  border-style: solid;
}
.login-corner.tl { top: -1px; left: -1px; border-width: 2.5px 0 0 2.5px; border-radius: 4px 0 0 0; }
.login-corner.tr { top: -1px; right: -1px; border-width: 2.5px 2.5px 0 0; border-radius: 0 4px 0 0; }
.login-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2.5px 2.5px; border-radius: 0 0 0 4px; }
.login-corner.br { bottom: -1px; right: -1px; border-width: 0 2.5px 2.5px 0; border-radius: 0 0 4px 0; }

.spade-row {
  text-align: center;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 8px;
  margin-bottom: 14px;
}

.panel-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold2);
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.input-group {
  position: relative;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.input-group input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(201,162,39,0.25);
  border-radius: 10px;
  padding: 13px 44px 13px 40px;
  color: var(--white);
  font-size: 16px; /* iOS no-zoom */
  outline: none;
  transition: border-color 0.2s;
  min-height: 50px;
  font-family: 'Inter', sans-serif;
}
.input-group input:focus { border-color: var(--gold); background: rgba(255,255,255,0.08); }
.input-group input::placeholder { color: rgba(255,255,255,0.3); font-size: 14px; }

.input-icon {
  position: absolute;
  left: 13px;
  font-size: 14px;
  z-index: 1;
  pointer-events: none;
}

.eye-icon {
  position: absolute;
  right: 0;
  width: 44px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
}
.eye-icon:active { color: var(--gold); }

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--gold3), var(--gold), var(--gold2));
  color: #1a0800;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(201,162,39,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  margin-bottom: 12px;
  min-height: 50px;
}
.btn-login:active { transform: scale(0.97); }

.or-divider {
  text-align: center;
  color: #4b5563;
  font-size: 11px;
  margin-bottom: 12px;
  position: relative;
}
.or-divider::before, .or-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.or-divider::before { left: 0; }
.or-divider::after  { right: 0; }

.btn-signup-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: rgba(107,33,168,0.15);
  border: 1.5px solid rgba(147,51,234,0.4);
  color: var(--white);
  border-radius: 10px;
  padding: 13px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 12px;
  transition: background 0.2s;
  min-height: 48px;
}
.btn-signup-link:active { background: rgba(107,33,168,0.3); }

.forgot-link {
  display: block;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
  text-decoration: none;
  min-height: 32px;
  line-height: 32px;
}
.forgot-link:active { color: var(--gold); }

/* ══════════════════════════════
   SLIDER DOTS
══════════════════════════════ */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 14px;
  position: relative; z-index: 2;
}
.dot { width: 24px; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; }
.dot.active { background: var(--gold); }

/* ══════════════════════════════
   TRUST STATS STRIP
══════════════════════════════ */
.stats-strip {
  background: linear-gradient(90deg, #060b14, #0a1020, #060b14);
  border-top: 1px solid rgba(201,162,39,0.08);
  border-bottom: 1px solid rgba(201,162,39,0.08);
  padding: 16px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 8px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.stat-item:last-child { border-right: none; }

.stat-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.stat-val {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-family: 'Cinzel', serif;
  white-space: nowrap;
}
.stat-lbl {
  font-size: 10px;
  color: #6b7280;
  margin-top: 3px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ══════════════════════════════
   PLAY NOW BAR
══════════════════════════════ */
.play-now-bar {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(180deg, #080c17 0%, #0d1223 100%);
}

.btn-play-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold3), var(--gold), var(--gold2));
  color: #1a0800;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  padding: 16px 72px;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  animation: barBounce 2s ease-in-out infinite;
  min-height: 56px;
  letter-spacing: 1px;
}

.btn-play-bar::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: shimmer 2.2s ease-in-out infinite 0.5s;
  transform: skewX(-15deg);
}

@keyframes barBounce {
  0%, 100% { transform: translateY(0);    box-shadow: 0 4px 20px rgba(201,162,39,0.4); }
  40%       { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(201,162,39,0.65); }
  60%       { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(201,162,39,0.55); }
}
.btn-play-bar:active { animation: none; transform: scale(0.96); }

/* ══════════════════════════════
   GAMES SECTION
══════════════════════════════ */
.games-section {
  background: #080c17;
  padding: 24px 0 48px;
}

.games-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 18px;
}

.games-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.games-heading-icon { font-size: 22px; }
.games-heading-text {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.games-heading-sub {
  font-size: 11px;
  color: #4b5563;
  margin-top: 2px;
  letter-spacing: 1px;
}

.games-count-badge {
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.3);
  color: var(--gold2);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.game-card {
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.game-card:hover  { transform: translateY(-5px); }
.game-card:active { transform: scale(0.94); }

.game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.07);
  transition: border-color 0.2s, box-shadow 0.2s;
  background-size: cover;
  background-position: center;
}
.game-card:hover .game-img {
  border-color: rgba(201,162,39,0.5);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.game-card p {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.3;
}

/* Game card backgrounds */
.juwa-bg        { background: url('images/juwa.jpg') center/cover,           linear-gradient(135deg, #3a1a00, #8b4400); }
.gameroom-bg    { background: url('images/gameroom.webp') center/cover,      linear-gradient(135deg, #1a1200, #4a3800); }
.gamevault-bg   { background: url('images/gamevault.jpg') center/cover,      linear-gradient(135deg, #1a0050, #5a0090); }
.orion-bg       { background: url('images/orionstars.jpg') center/cover,     linear-gradient(135deg, #100020, #3a0060); }
.milky-bg       { background: url('images/milkyway.jpg') center/cover,       linear-gradient(135deg, #1a0050, #4a0090); }
.firekirin-bg   { background: url('images/firekirin.webp') center/cover,     linear-gradient(135deg, #3a0010, #aa0040); }
.panda-bg       { background: url('images/ultrapanda.jpg') center/cover,     linear-gradient(135deg, #001a00, #005000); }
.vegas-bg       { background: url('images/vegassweeps.jpg') center/cover,    linear-gradient(135deg, #1a0050, #5500aa); }
.pandamaster-bg { background: url('images/pandamaster.webp') center/cover,   linear-gradient(135deg, #3a0000, #aa0000); }
.river-bg       { background: url('images/riversweeps.webp') center/cover,   linear-gradient(135deg, #1a0050, #5500bb); }
.vblink-bg      { background: url('images/vblink.webp') center/cover,        linear-gradient(135deg, #1a0030, #5500aa); }
.yolo-bg        { background: url('images/yolo.webp') center/cover,          linear-gradient(135deg, #1a0050, #5500aa); }
.cashmachine-bg { background: url('images/cashmachine.webp') center/cover,   linear-gradient(135deg, #1a0050, #6600cc); }
.cashfrenzy-bg  { background: url('images/cashfrenzy.webp') center/cover,    linear-gradient(135deg, #001a40, #0050aa); }
.mafia-bg       { background: url('images/mafia.webp') center/cover,         linear-gradient(135deg, #1a1400, #4a3a00); }
.mrallinone-bg  { background: url('images/mrallinone.webp') center/cover,    linear-gradient(135deg, #001a20, #003a50); }
.noble-bg       { background: url('images/noble.webp') center/cover,         linear-gradient(135deg, #1a0000, #600000); }
.juwa2-bg       { background: url('images/juwa2.webp') center/cover,         linear-gradient(135deg, #1a0000, #600020); }

/* ══════════════════════════════
   CTA SECTION
══════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, #0f0820 0%, #1a0d3d 50%, #0d1230 100%);
  border-top: 1px solid rgba(201,162,39,0.1);
  border-bottom: 1px solid rgba(201,162,39,0.1);
  padding: 40px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(107,33,168,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-family: 'Cinzel', serif;
  font-size: 26px; font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
}
.cta-title span {
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-sub { color: #6b7280; font-size: 14px; margin-bottom: 24px; position: relative; }
.btn-cta-big {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--gold3), var(--gold), var(--gold2));
  color: #1a0800;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 16px; font-weight: 900;
  padding: 17px 20px;
  border-radius: 50px;
  letter-spacing: 2px;
  min-height: 58px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(201,162,39,0.45);
}
.btn-cta-big::before {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2.4s ease-in-out infinite 1s;
  transform: skewX(-15deg);
}
.btn-cta-big:active { transform: scale(0.97); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  background: #04070f;
  padding: 36px 20px 28px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-icon {
  width: 56px; height: 56px;
  background: radial-gradient(circle, #1a1a2e, #0a0a15);
  border: 2px solid var(--gold);
  border-radius: 14px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 0 auto 12px;
}

.footer-brand {
  color: #4ade80;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-links a { color: #4b5568; text-decoration: none; font-size: 12px; min-height: 32px; display: flex; align-items: center; }
.footer-links a:hover { color: var(--gray); }
.footer-links span { color: #1e2d4a; }

.footer-copy { color: #2d3748; font-size: 12px; }

/* ══════════════════════════════
   GAME MODAL
══════════════════════════════ */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal.hidden { display: none; }
.hidden { display: none !important; }

.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #1a0d30, #0d0820);
  border: 1.5px solid rgba(201,162,39,0.4);
  border-radius: 20px;
  padding: 32px 28px;
  width: 360px;
  max-width: 92vw;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:active { background: rgba(255,255,255,0.15); }

.modal-logo { font-size: 40px; margin-bottom: 12px; }

.modal-box h2 {
  font-family: 'Cinzel', serif;
  color: var(--gold2);
  font-size: 20px;
  margin-bottom: 4px;
}

.modal-subtitle { color: var(--gray); font-size: 13px; margin-bottom: 20px; }

.cred-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
}

.cred-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cred-row:last-child { border-bottom: none; }

.cred-label { color: var(--gray); font-size: 12px; width: 70px; text-align: left; }
.cred-value { flex: 1; color: var(--gold2); font-family: monospace; font-size: 14px; font-weight: 700; text-align: left; }
.cred-locked { color: #6b7280 !important; font-family: inherit !important; font-size: 13px !important; font-weight: 500 !important; }

.modal-features {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px; text-align: left;
}
.modal-feat {
  font-size: 13px; color: #d1d5db;
  background: rgba(255,255,255,0.04);
  border-radius: 8px; padding: 8px 12px;
}

.modal-actions { display: flex; gap: 10px; flex-direction: column; margin-bottom: 4px; }

.btn-modal-play {
  display: block; text-align: center; text-decoration: none;
  background: linear-gradient(135deg, var(--gold3), var(--gold2));
  color: #1a0800 !important; border: none; border-radius: 10px;
  padding: 15px; font-weight: 800; font-size: 15px; cursor: pointer;
  letter-spacing: 1px; min-height: 50px; line-height: 1.2;
  transition: opacity 0.15s;
}
.btn-modal-play:hover { opacity: 0.92; }
.btn-modal-play:active { opacity: 0.8; }

.btn-modal-login {
  display: block; text-align: center; text-decoration: none;
  color: var(--gray); font-size: 13px; padding: 10px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  transition: color 0.15s, border-color 0.15s;
}
.btn-modal-login:hover { color: var(--gold); border-color: rgba(201,162,39,0.4); }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

@media (max-width: 600px) {
  /* Navbar */
  .navbar { padding: 10px 14px; }
  .logo-text { font-size: 14px; letter-spacing: 1px; }

  /* Hero */
  .hero-inner { padding: 28px 16px 22px; }
  .hero-title { font-size: 26px; }
  .hero-sub { font-size: 10px; letter-spacing: 1.5px; margin-bottom: 16px; }
  .hero-welcome { font-size: 10px; letter-spacing: 2.5px; }
  .fp-fortune { font-size: 22px; letter-spacing: 2px; }
  .fp-plays-script { font-size: 17px; }
  .fp-emblem { width: 58px; height: 58px; }
  .emblem-fp { font-size: 15px; }
  .hero-features { font-size: 12px; gap: 8px; margin-bottom: 20px; }
  .btn-play-now { font-size: 15px; min-height: 54px; max-width: 100%; }
  .btn-play-now::after { font-size: 15px; }

  /* Stats strip */
  .stat-item { padding: 4px 6px; gap: 7px; }
  .stat-icon { font-size: 18px; }
  .stat-val { font-size: 13px; }
  .stat-lbl { font-size: 9px; }

  /* Games */
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 0 12px; }
  .games-header { padding: 0 12px; }
  .games-heading-text { font-size: 16px; }
  .game-card p { font-size: 11px; margin-top: 5px; }
  .game-img { border-radius: 12px; }

  /* CTA */
  .cta-section { padding: 30px 16px; }
  .cta-title { font-size: 20px; }
  .cta-sub { font-size: 13px; }
  .btn-cta-big { font-size: 14px; letter-spacing: 1px; max-width: 100%; }

  /* Footer */
  .footer { padding: 28px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 390px) {
  /* Tightest phones (iPhone SE etc.) */
  .hero-inner { padding: 22px 14px 18px; }
  .hero-title { font-size: 22px; }
  .fp-fortune { font-size: 19px; }
  .fp-plays-script { font-size: 15px; }
  .fp-emblem { width: 52px; height: 52px; }
  .badge { font-size: 11px; padding: 5px 9px; }
  .hero-badges { gap: 6px; }
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 10px; }
  .ticker-item { padding: 0 16px; font-size: 11px; }

  /* Stats: 2×2 grid on very small screens */
  .stats-strip { grid-template-columns: repeat(2, 1fr); padding: 12px 0; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 8px 12px; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .stat-item:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.06); }
  .stat-icon { font-size: 20px; }
  .stat-val { font-size: 15px; }
  .stat-lbl { font-size: 10px; }
}
