@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-1: #020817;
  --bg-2: #071a44;
  --blue: #0b5cff;
  --blue-soft: #1b7dff;
  --red: #ff173d;
  --red-dark: #b60024;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --panel: rgba(7, 23, 60, 0.74);
  --panel-2: rgba(1, 12, 35, 0.84);
  --stroke: rgba(70, 145, 255, 0.42);
  --shadow-red: rgba(255, 23, 61, 0.42);
  --shadow-blue: rgba(27, 125, 255, 0.42);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Noto Sans Thai', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 2%, rgba(255, 23, 61, 0.34), transparent 32%),
    radial-gradient(circle at 90% 5%, rgba(27, 125, 255, 0.46), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(255, 23, 61, 0.24), transparent 38%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1) 42%, #03050d 100%);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 65%);
}

.site-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 14px max(28px, env(safe-area-inset-bottom));
}

.brand-card,
.hero-card,
.stat-box,
.jackpot,
.promo-card,
.online-box,
.feed-card {
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(13, 45, 105, 0.78), rgba(2, 12, 34, 0.88));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42), 0 0 24px var(--shadow-blue);
  backdrop-filter: blur(14px);
}

.brand-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 20px 18px 18px;
  border-radius: var(--radius);
  text-align: center;
}

.brand-glow {
  position: absolute;
  width: 190px;
  height: 190px;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 23, 61, 0.78), transparent 66%);
  filter: blur(8px);
  z-index: -1;
}

.eyebrow {
  margin: 0 0 7px;
  color: #b8d6ff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 11vw, 3.65rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 0 0 13px rgba(27, 125, 255, 0.95), 0 0 26px rgba(255, 23, 61, 0.55);
}

.subtitle {
  margin: 9px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.hero-card,
.promo-card {
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-card {
  margin-bottom: 18px;
  border-color: rgba(255, 23, 61, 0.64);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42), 0 0 28px var(--shadow-red);
}

.hero-card img,
.promo-card img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #04163d, #ff173d);
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 82px;
  margin: 0 0 18px;
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.28rem, 5.9vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.2px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 46%),
    linear-gradient(135deg, #ff2448, #d50027 50%, #870018);
  box-shadow: 0 16px 38px rgba(255, 23, 61, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateZ(0);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.cta-button:active {
  transform: scale(0.98);
  filter: brightness(1.12);
}

.arrow {
  display: inline-flex;
  transform: translateY(-1px);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.65));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 18px;
}

.stat-box {
  min-height: 132px;
  padding: 16px 8px;
  border-radius: 22px;
  text-align: center;
}

.stat-icon {
  margin-bottom: 8px;
  font-size: 1.65rem;
}

.stat-box strong {
  display: block;
  margin-bottom: 5px;
  font-size: clamp(1.05rem, 4.3vw, 1.45rem);
  font-weight: 900;
  white-space: nowrap;
}

.stat-box span {
  display: block;
  color: var(--muted);
  font-size: clamp(0.72rem, 3.5vw, 0.9rem);
  font-weight: 600;
}

.jackpot {
  margin-bottom: 18px;
  padding: 23px 18px;
  border-radius: var(--radius);
  text-align: center;
}

.jackpot h2,
.feed-head h2 {
  margin: 0;
  font-weight: 900;
}

.jackpot h2 {
  color: #ffed7a;
  font-size: clamp(1.45rem, 7vw, 2.15rem);
  text-shadow: 0 0 15px rgba(255, 23, 61, 0.58);
}

.jackpot-panel {
  margin-top: 18px;
  padding: 21px 10px;
  border-radius: 20px;
  color: #160025;
  background: linear-gradient(135deg, #fff5a6, #ffcf32 54%, #ff2b49);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.56), 0 16px 34px rgba(255, 23, 61, 0.27);
}

.jackpot-panel span {
  display: block;
  margin-bottom: 6px;
  font-weight: 900;
}

.jackpot-panel strong {
  display: block;
  font-size: clamp(1.95rem, 9vw, 3rem);
  line-height: 1.1;
  color: #14005d;
  font-weight: 900;
  letter-spacing: 1px;
}

.promo-stack {
  display: grid;
  gap: 18px;
}

.promo-card {
  margin: 0;
  border-color: rgba(255, 23, 61, 0.48);
}

.online-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0;
  min-height: 78px;
  padding: 14px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, rgba(4, 42, 100, 0.88), rgba(2, 12, 34, 0.92));
}

.online-box span,
.online-box strong,
.online-box b {
  font-size: clamp(1.02rem, 4.6vw, 1.45rem);
}

.online-box strong {
  color: #68abff;
  font-weight: 900;
}

.feed-card {
  padding: 18px 15px 16px;
  border-radius: var(--radius);
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.feed-head h2 {
  font-size: clamp(1.12rem, 5.2vw, 1.55rem);
}

.live-dot {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 12px 8px 22px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--red));
  box-shadow: 0 0 22px rgba(27, 125, 255, 0.45);
}

.live-dot::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.16);
}

.withdraw-list {
  display: grid;
}

.withdraw-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.withdraw-item:last-child {
  border-bottom: 0;
}

.avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--red));
  box-shadow: 0 0 20px rgba(27, 125, 255, 0.26);
}

.withdraw-main strong,
.withdraw-amount strong {
  display: block;
  font-weight: 900;
}

.withdraw-main span,
.withdraw-amount span {
  color: #8fc0ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.withdraw-amount {
  text-align: right;
}

.withdraw-amount strong {
  font-size: 1.05rem;
}

.withdraw-amount span {
  color: #ff9cad;
}

.footer {
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 22px 0 8px;
  color: var(--muted);
}

.footer span {
  font-weight: 900;
  letter-spacing: 1.2px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 521px) {
  body {
    background-attachment: fixed;
  }

  .site-shell {
    padding-inline: 20px;
  }

  .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(255, 23, 61, 0.48), 0 0 22px rgba(27, 125, 255, 0.32);
  }
}

@media (max-width: 360px) {
  .site-shell {
    padding-inline: 10px;
  }

  .stats-grid {
    gap: 8px;
  }

  .stat-box {
    min-height: 118px;
    padding-inline: 5px;
  }

  .withdraw-item {
    grid-template-columns: 44px 1fr auto;
    gap: 9px;
  }

  .avatar {
    width: 44px;
    height: 44px;
  }
}
