:root {
  --paper: #1a120c;
  --ink: #f4e6d0;
  --muted: #c4aa8c;
  --mist: #d8c6ae;
  --line: rgba(224, 180, 100, 0.22);
  --gold: #e0b464;
  --gold-lit: #fff0cb;
  --gold-deep: #c9922f;
  --blush: #f4b8a6;
  --mint: #7ec8b2;
  --sky: #8ec5e8;
  --card: rgba(38, 26, 18, 0.86);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  --tile: #1a100d;
  --tile-line: rgba(232, 196, 120, 0.28);
  --tile-ink: #efe0c2;
  --on-gold: #2b2118;
  --glow-a: #d4a054;
  --glow-b: #8a1f24;
  --glow-c: #c48a2a;
  --nav-bg: rgba(18, 12, 8, 0.97);
  --stage:
    linear-gradient(180deg, rgba(255, 214, 140, 0.08), transparent 28%),
    radial-gradient(circle at 50% 120%, rgba(80, 48, 16, 0.55), transparent 48%);
  --bg:
    radial-gradient(70vw 38vw at 50% -8%, rgba(232, 188, 96, 0.32), transparent 58%),
    radial-gradient(42vw 34vw at 8% 18%, rgba(168, 36, 42, 0.22), transparent 62%),
    radial-gradient(46vw 36vw at 96% 72%, rgba(212, 160, 84, 0.16), transparent 60%),
    linear-gradient(180deg, #21160f 0%, #0c0907 46%, #17110c 100%);
  --veil-rgb: 12, 8, 5;
  --veil-a: 0.45;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Be Vietnam Pro", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

#demo-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #f59e0b;
  color: #1a1a1a;
  text-align: center;
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--stage);
  box-shadow: inset 0 0 180px 50px rgba(0, 0, 0, 0.45);
}
.sparkle {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 12%, #ffe7b0 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 28%, #fff4d2 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 41% 9%, #ffd27a 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 21%, #fff1c4 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 81% 14%, #ffe7b0 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 33%, #ffd27a 50%, transparent 51%),
    radial-gradient(1px 1px at 14% 62%, #fff4d2 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 37% 78%, #ffe7b0 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 69%, #ffd27a 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 76% 86%, #fff1c4 50%, transparent 51%),
    radial-gradient(1px 1px at 89% 58%, #ffe7b0 50%, transparent 51%);
}

.aurora {
  position: fixed;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  will-change: transform, opacity;
}
.aurora-orb.o1 {
  width: 42vw; height: 42vw; max-width: 520px; max-height: 520px;
  left: 4%; top: -6%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold-lit) 58%, transparent) 0%, transparent 70%);
  animation: aurora-a 18s ease-in-out infinite alternate;
}
.aurora-orb.o2 {
  width: 34vw; height: 34vw; max-width: 420px; max-height: 420px;
  right: 2%; top: 12%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 50%, transparent) 0%, transparent 68%);
  animation: aurora-b 22s ease-in-out infinite alternate;
}
.aurora-orb.o3 {
  width: 48vw; height: 28vw; max-width: 640px; max-height: 360px;
  left: 22%; bottom: -8%;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow-c) 46%, transparent) 0%, transparent 72%);
  animation: aurora-c 20s ease-in-out infinite alternate;
}
.aurora-orb.o4 {
  width: 22vw; height: 22vw; max-width: 260px; max-height: 260px;
  left: 38%; top: 28%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold-lit) 42%, transparent) 0%, transparent 66%);
  animation: aurora-d 14s ease-in-out infinite alternate;
}
.aurora-orb.o5 {
  width: 26vw; height: 26vw; max-width: 300px; max-height: 300px;
  right: 18%; bottom: 18%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 38%, transparent) 0%, transparent 70%);
  animation: aurora-a 16s ease-in-out infinite alternate-reverse;
}
.aurora-orb.o6 {
  width: 18vw; height: 18vw; max-width: 200px; max-height: 200px;
  left: 12%; top: 58%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold-lit) 36%, transparent) 0%, transparent 64%);
  animation: aurora-b 12s ease-in-out infinite alternate-reverse;
}
.aurora-orb.o7 {
  width: 20vw; height: 20vw; max-width: 220px; max-height: 220px;
  right: 8%; top: 48%;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow-a) 40%, transparent) 0%, transparent 68%);
  animation: aurora-d 19s ease-in-out infinite alternate-reverse;
}
@keyframes aurora-a {
  from { transform: translate(-3%, 2%) scale(1); opacity: 0.55; }
  to { transform: translate(8%, -7%) scale(1.18); opacity: 0.85; }
}
@keyframes aurora-b {
  from { transform: translate(4%, -3%) scale(1.05); opacity: 0.45; }
  to { transform: translate(-7%, 6%) scale(1.2); opacity: 0.8; }
}
@keyframes aurora-c {
  from { transform: translate(-5%, 0) rotate(-4deg) scale(1); opacity: 0.4; }
  to { transform: translate(6%, -5%) rotate(6deg) scale(1.14); opacity: 0.75; }
}
@keyframes aurora-d {
  from { transform: translate(2%, 4%) scale(0.92); opacity: 0.35; }
  to { transform: translate(-6%, -3%) scale(1.22); opacity: 0.7; }
}

.glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(48px);
  opacity: 0.42;
}
.glow-a { top: 4%; left: -8%; width: 320px; height: 320px; background: var(--glow-a); border-radius: 50%; animation: aurora-a 21s ease-in-out infinite alternate; }
.glow-b { top: 38%; right: -10%; width: 360px; height: 360px; background: var(--glow-b); border-radius: 50%; animation: aurora-c 24s ease-in-out infinite alternate; }
.glow-c { bottom: -10%; left: 28%; width: 380px; height: 240px; background: var(--glow-c); border-radius: 50%; animation: aurora-b 19s ease-in-out infinite alternate-reverse; }

.top, main { position: relative; z-index: 1; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 6vw 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.8rem; min-width: 0; flex: 1; }
.mark, .mark-img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #fff 0%, #ffe0b8 100%);
  box-shadow: var(--shadow);
  font-family: Fraunces, serif;
  font-size: 1.6rem;
  color: #b6792a;
}
.mark-img {
  object-fit: contain;
  background: var(--tile);
  border: 1px solid var(--gold);
}
/* ชื่อแบรนด์มาตรฐานทุกเว็บ — ให้ตรงกับ src/landing/brand-font.ts */
.brand strong {
  display: block;
  font-family: Fraunces, "Be Vietnam Pro", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--gold-lit);
}
.brand small { color: var(--mist); }

.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(38, 26, 18, 0.72);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
}
.nav a.active { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
/* จอคอมใช้ปุ่มมุมขวาเพียงปุ่มเดียว ปุ่มในแถบเมนูซ้ำจึงซ่อน */
.nav-auth { display: none !important; }

.wallet {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 6.4rem;
  min-height: 4.2rem;
  border: 1px solid rgba(224, 180, 100, 0.42);
  cursor: pointer;
  padding: 0.4rem 0.7rem;
  border-radius: 0.7rem;
  background: linear-gradient(180deg, #2c2218 0%, #14100c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 226, 170, 0.12), 0 6px 14px rgba(0, 0, 0, 0.35);
  font-weight: 700;
  font: inherit;
  color: #f3d7a0;
  text-align: center;
  text-shadow: 0 0 8px rgba(224, 180, 100, 0.28);
}
.wallet .q-ico { font-size: 1.25rem; line-height: 1; filter: drop-shadow(0 0 6px rgba(224, 180, 100, 0.45)); }
.wallet .q-lab { font-size: 0.7rem; }
.wallet small { display: block; color: #c9a46a; font-weight: 500; font-size: 0.68rem; }
.wallet.is-guest:hover,
.wallet:hover {
  border-color: #e0b464;
  background: linear-gradient(180deg, #3a2c1c 0%, #1a140e 100%);
  box-shadow: 0 0 14px rgba(224, 180, 100, 0.32);
  color: #ffe7b8;
}

main { padding: 0 0 7.4rem; flex: 1; min-width: 0; }

.scene {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 1.4rem 6vw 1.8rem;
  background-color: var(--paper, #120c08);
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(var(--veil-rgb), var(--veil-a));
}
.scene > * { position: relative; z-index: 1; }

.scene-jackpot {
  background-image: var(--lobby-bg-jackpot);
  background-position: center 38%;
  padding-top: 1.1rem;
  padding-bottom: 1.4rem;
}

.scene-about {
  background-image: var(--lobby-bg-about);
  background-position: center;
}

.scene-games {
  background-image: var(--lobby-bg-games);
  background-position: center top;
  padding-bottom: 2.4rem;
}

.scene-collection {
  background-image: var(--lobby-bg-collection);
  background-position: center;
  min-height: 32rem;
  padding-top: 1.8rem;
  padding-bottom: 2.6rem;
}
/* Turnstile อยู่ในหน้าล็อกอิน ถ้าบรรพบุรุษมี overflow:hidden กับ backdrop-filter
   ช่องยืนยันจะวาดขึ้นแต่รับการแตะไม่ได้ กดเข้าสู่ระบบแล้วได้แต่ข้อความว่าเป็นบอท */
#scene-account { overflow: visible; }
.scene-collection .panel {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.15rem 1.15rem 1.45rem;
  box-shadow: var(--shadow);
  max-width: 52rem;
  margin-inline: auto;
}
.scene-collection .soon-card,
.scene-collection .wd-wrap,
.scene-collection .checkin-wrap,
.scene-collection .promo-list {
  max-width: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.scene-collection .gold-text {
  text-shadow: 0 1px 10px color-mix(in srgb, var(--paper) 70%, transparent);
}
.scene-collection .promo-card,
.scene-collection .camp-card,
.scene-collection .wd-ticket,
.scene-collection .wd-nav-btn,
.scene-collection .checkin-box {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border: 1px solid var(--line);
}
.scene-collection .ref-tab {
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  border-color: var(--line);
  color: var(--muted);
}
.scene-collection .ref-tab.active {
  background: var(--gold);
  color: var(--on-gold);
  border-color: var(--gold);
}

.ham {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  padding: 0.7rem 0.65rem;
  flex-direction: column;
  justify-content: space-between;
}
.ham span {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
}
.drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(8, 5, 3, 0.62);
  z-index: 20;
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(20rem, 86vw);
  z-index: 21;
  background: var(--paper);
  box-shadow: 16px 0 40px rgba(0, 0, 0, 0.45);
  padding: 1.2rem 1rem 6rem;
  overflow: auto;
  transform: translateX(-105%);
  transition: transform 0.22s ease;
}
.drawer.open { transform: translateX(0); }
.drawer-group {
  margin: 1rem 0 0.4rem;
  color: #c4843b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.drawer a, .drawer-logout {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  background: rgba(38, 26, 18, 0.9);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
  margin: 0.28rem 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.drawer a:hover, .drawer-logout:hover { border-color: var(--gold); }
.drawer-logout { color: #c45c3e; margin-top: 1rem; }

.lobby-body {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.side-rail {
  position: sticky;
  top: 0.55rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 0 0 6.5rem;
  width: 6.5rem;
  max-height: calc(100vh - 7.6rem);
  overflow-y: auto;
  padding: 0.35rem 0.4rem 1rem;
  scrollbar-width: thin;
}
.side-rail a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  min-height: 4.6rem;
  text-decoration: none;
  color: var(--tile-ink);
  background: var(--tile);
  border: 1px solid var(--tile-line);
  border-radius: 1.05rem;
  padding: 0.5rem 0.28rem 0.4rem;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.2;
}
.side-rail a:hover,
.side-rail a.active {
  border-color: var(--gold);
  background: var(--card);
  color: var(--gold-lit);
}
.q-ico {
  font-size: 1.25rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(224, 180, 100, 0.45));
}
.q-lab { display: block; }

.soon-card {
  max-width: 28rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem 1.6rem;
}
.soon-card h2 { font-family: Fraunces, serif; margin: 0.2rem 0 0.7rem; }

.promo-list { padding: 1rem; max-width: 52rem; }
.promo-list h2 { margin-bottom: 1rem; }
.promo-card {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.promo-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 160px;
  object-fit: cover;
  display: block;
}
.promo-card-body { padding: 0.85rem 1rem; }
.promo-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.promo-card-meta {
  display: flex;
  gap: 0.85rem;
  font-size: 0.85rem;
  color: #aaa;
  flex-wrap: wrap;
}

@media (min-width: 721px) {
  .promo-card {
    display: flex;
    align-items: stretch;
  }
  .promo-card img {
    width: 240px;
    min-width: 240px;
    height: 135px;
    max-height: 135px;
    aspect-ratio: auto;
  }
  .promo-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
.primary-link {
  display: inline-block;
  margin-top: 0.8rem;
  text-decoration: none;
  background: var(--gold);
  color: var(--on-gold);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
}

.bottom-nav {
  display: flex;
  justify-content: center;
  align-items: end;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  background: var(--nav-bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.48);
  padding: 0.7rem 0.6rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  max-width: 6.8rem;
  gap: 0.28rem;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.45rem 0.2rem 0.2rem;
}
.bottom-nav a span {
  font-size: 1.45rem;
  line-height: 1;
}
.bottom-nav a img {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
.bottom-nav a.active { color: var(--gold); }
.bottom-nav a .qs-ico {
  width: 1.45rem;
  height: 1.45rem;
  color: var(--gold);
}
.bottom-nav .bottom-home .qs-ico { color: var(--on-gold); }
.bottom-nav .bottom-home {
  flex: 1.2 1 0;
  max-width: 8.2rem;
  margin: -1.55rem 0.15rem 0;
  border-radius: 1.25rem 1.25rem 0.6rem 0.6rem;
  padding: 1.2rem 0.55rem 0.65rem;
  background: linear-gradient(180deg, var(--gold-lit) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  color: var(--on-gold);
  box-shadow: 0 -8px 22px rgba(200, 140, 50, 0.4), 0 10px 18px rgba(0, 0, 0, 0.38);
  font-size: 0.92rem;
}
.bottom-nav .bottom-home span { font-size: inherit; }
.hero-banner {
  position: relative;
  width: min(100% - 2.4rem, 64rem);
  margin: 0.2rem auto 1.6rem;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #140e0a;
}
.banners { position: relative; }
.banner {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}
.banner.is-on {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.banner-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.4rem 1.5rem 3.2rem;
  max-width: 34rem;
}
.banner-lead {
  margin: 0.55rem 0 1rem;
  color: var(--mist);
  font-size: 1rem;
  line-height: 1.45;
}
.banner-cta {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(180deg, #f3d089, #d4a054);
  color: #2b2118;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(180, 120, 40, 0.35);
}
.banner-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}
.banner-arrow {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(18, 12, 8, 0.7);
  color: #fff4dc;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.banner-dots { display: flex; gap: 0.4rem; }
.banner-dot {
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 244, 220, 0.35);
  cursor: pointer;
  padding: 0;
}
.banner-dot.is-on { background: #e0b464; transform: scale(1.15); }
.banner-copy h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.85rem);
}
@media (max-width: 720px) {
  .hero-banner { width: calc(100% - 1.4rem); }
  .banner img { height: auto; }
  .banner-copy { padding: 0.85rem 0.9rem 2.4rem; max-width: 100%; }
  .banner-lead { display: none; }
  .banner-copy h1 { font-size: 1.45rem; }
}
.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4843b;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
h1 {
  font-family: Fraunces, serif;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0;
  font-weight: 650;
  color: #fff6e4;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip, .back {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  cursor: pointer;
}
.chip.active {
  background: var(--gold);
  color: var(--on-gold);
  border-color: var(--gold);
}
.search input {
  width: min(22rem, 100%);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  outline: none;
}
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }
.search input::placeholder { color: var(--muted); }

.grid {
  display: grid;
  gap: 1rem;
}
.brands { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.lottery-note { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.92rem; }
.lottery-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.9rem; }
.lottery-filters.hidden { display: none; }
.lottery-filters button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.lottery-filters button.active { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.lottery-card .thumb img { width: 100%; height: 86%; object-fit: contain; }
.brands.lottery-board { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.lottery-offer { display: flex; flex-direction: column; gap: 0.55rem; padding: 0.85rem 0.9rem 0.75rem; }
.lottery-offer-head { display: flex; align-items: center; gap: 0.65rem; }
.lottery-offer-head img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.lottery-offer-head h3 { margin: 0; font-size: 1rem; }
.lottery-offer-head p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.78rem; }
.lottery-offer-head > div { flex: 1; min-width: 0; }
.lottery-offer-badge {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  background: color-mix(in srgb, var(--gold) 22%, transparent);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
}
.lottery-offer.is-closed .lottery-offer-badge { background: rgba(148, 163, 184, 0.2); color: var(--muted); }
.lottery-offer dl { display: grid; gap: 0.22rem; margin: 0; }
.lottery-offer dl div { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.84rem; }
.lottery-offer dt { color: var(--muted); }
.lottery-offer dd { margin: 0; font-weight: 700; }
.lottery-offer-go {
  display: block;
  width: 100%;
  appearance: none;
  border: 0;
  text-align: center;
  background: var(--gold);
  color: var(--on-gold);
  border-radius: 999px;
  padding: 0.48rem 0.7rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.games { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.card {
  appearance: none;
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  background: var(--card);
  border-radius: 1.3rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0;
  color: inherit;
  font: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 36px rgba(0, 0, 0, 0.45); }

.brand-card { display: flex; flex-direction: column; }
.brand-card .thumb {
  aspect-ratio: 1;
  background: var(--tile);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0.85rem;
}
.brand-card .thumb img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}
.brand-card:hover .thumb img { transform: scale(1.06); }
.brand-card .mono {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-family: Fraunces, serif;
  font-size: 1.25rem;
  color: var(--gold-lit);
}
.brand-card .meta { padding: 0.8rem 0.9rem 1rem; }
.brand-card h3 { margin: 0 0 0.2rem; font-size: 1.02rem; }
.brand-card p { margin: 0; color: var(--muted); font-size: 0.82rem; }

.game-card .thumb {
  aspect-ratio: 1;
  background: var(--tile);
  overflow: hidden;
}
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.game-card:hover img { transform: scale(1.06); }
.game-card .meta { padding: 0.75rem 0.85rem 0.95rem; }
.game-card h3 { margin: 0; font-size: 0.92rem; line-height: 1.3; }
.game-card span { color: var(--gold); font-size: 0.75rem; font-weight: 600; }

#view-auth {
  display: flex;
  justify-content: center;
}
.auth-card, .cash-card, .profile-card {
  max-width: 32rem;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem 1.6rem;
}
.auth-card { margin-inline: auto; text-align: center; }
#view-auth.panel {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}
#turnstile-widget {
  display: flex;
  justify-content: center;
  margin: 0.85rem 0 0.2rem;
  min-height: 65px;
  position: relative;
  z-index: 2;
}
.auth-logo {
  display: block;
  width: 7.2rem;
  height: 7.2rem;
  margin: 0 auto 0.85rem;
  border-radius: 1.35rem;
  object-fit: contain;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(212, 160, 84, 0.28);
  border: 1px solid rgba(224, 180, 100, 0.4);
}
.auth-card label { text-align: left; }
.auth-lead, #auth-lead { margin: 0 0 1rem; font-size: 0.86rem; }
.auth-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 1.1rem;
  max-width: 11rem;
}
.auth-step {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2a1d14;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.85rem;
}
.auth-step.is-on, .auth-step.is-done {
  background: #e0b464;
  color: #2b2118;
  border-color: #e0b464;
  box-shadow: 0 0 14px rgba(224, 180, 100, 0.45);
}
.auth-step-line {
  flex: 1;
  height: 4px;
  margin: 0 0.35rem;
  background: #2a1d14;
  border-radius: 99px;
}
.auth-step-line.is-on { background: #e0b464; }
.bank-picker-title {
  margin: 0 0 0.7rem;
  color: #e0b464;
  font-weight: 700;
  text-align: left;
}
.bank-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.7rem;
  background: #f4efe6;
  border-radius: 1rem;
}
.bank-tile {
  border: 2px solid transparent;
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.45rem 0.2rem 0.4rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  min-height: 4.4rem;
}
.bank-tile.is-on { border-color: #c9922f; box-shadow: 0 0 0 2px rgba(201, 146, 47, 0.25); }
.bank-badge {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bank, #3a2a1c);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.bank-tile small {
  color: #4a3728;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.bank-chosen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0.2rem 0 0.8rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #241810;
  text-align: left;
}
.bank-chosen strong { color: #fff4dc; }
.bank-chosen button {
  border: 0;
  background: none;
  color: #e0b464;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.auth-warn {
  margin: 0.2rem 0 0.8rem;
  color: #f0a08a;
  font-size: 0.78rem;
  text-align: left;
  line-height: 1.4;
}
.auth-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.4rem;
}
.auth-actions .primary, .auth-actions .ghost { flex: 1; }
.auth-actions .ghost {
  border: 1px solid var(--line);
  background: #241810;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-switch-wrap {
  margin: 0.85rem 0 0;
  text-align: center;
}
#auth-switch {
  display: inline-block;
  padding: 0.62rem 1.2rem;
  border: 1px solid rgba(224, 180, 100, 0.38);
  border-radius: 999px;
  background: rgba(36, 24, 16, 0.45);
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
#auth-switch:hover {
  background: rgba(224, 180, 100, 0.1);
  border-color: rgba(255, 215, 0, 0.55);
  color: #ffe566;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.14);
}
#auth-switch:active {
  transform: scale(0.98);
}
@media (max-width: 420px) {
  .bank-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.auth-card h2, .cash-card h3, .profile-card h3 { font-family: Fraunces, serif; margin: 0.2rem 0 1rem; }
.auth-card label, .cash-card label, .profile-card label {
  display: block;
  margin: 0.7rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.auth-card input, .cash-card input, .profile-card input,
.auth-card select, .cash-card select, .profile-card select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #241810;
  color: var(--ink);
}
.auth-card input::placeholder,
.cash-card input::placeholder,
.profile-card input::placeholder { color: #9a8166; }
.primary, .cash-actions button {
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #e0b464;
  color: #2b2118;
}
.cash-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 1rem; }
.cash-actions .ghost { background: #241810; color: var(--ink); border: 1px solid var(--line); }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0 0.8rem; }
.quick-amounts button {
  border: 1px solid var(--line);
  background: #241810;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.account-hero { margin: 0.2rem 0 1.2rem; }
.account-hero h2 { font-family: Fraunces, serif; margin: 0.2rem 0; font-size: 2.2rem; color: #fff4dc; }
.account-hero p { margin: 0; color: var(--mist); }
.history-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
  padding: 0.95rem 1.05rem;
  margin-bottom: 0.75rem;
}
.history-card strong { display: block; }
.history-card .muted { color: var(--muted); font-size: 0.82rem; }
.history-card .win { color: #5ed39a; font-weight: 700; }
.history-card .lose { color: #c45c3e; font-weight: 700; }
.ghost, .history-card .ghost {
  border: 1px solid var(--line);
  background: #241810;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.studio { margin: 0.4rem 0 1.1rem; display: flex; gap: 1rem; align-items: center; }
.studio-img {
  width: 4.6rem;
  height: 4.6rem;
  object-fit: contain;
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
  background: var(--tile);
  padding: 0.35rem;
}
.studio h2 { font-family: Fraunces, serif; margin: 0.35rem 0 0; font-size: 2rem; color: var(--gold-lit); }
.studio p { margin: 0; color: var(--muted); }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.status { color: var(--mist); min-height: 1.4rem; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 6.8rem;
  transform: translateX(-50%);
  background: #2b2118;
  color: #fff7ee;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  z-index: 30;
  max-width: min(90vw, 32rem);
}
.skel {
  min-height: 168px;
  border-radius: 1.3rem;
  background: linear-gradient(90deg, #2a1d14, #3a2a1c, #2a1d14);
  background-size: 200% 100%;
  animation: shine 1.2s infinite;
}
@keyframes shine { to { background-position: -200% 0; } }

@media (max-width: 720px) {
  .top { padding: 1rem 1.1rem; flex-wrap: nowrap; }
  .brand small, .nav { display: none; }
  .ham { display: flex; }
  main { padding: 0 0 8rem; }
  .scene { padding-left: 1.1rem; padding-right: 1.1rem; }
  /* จอแคบเลื่อนจากหัวแถว ไม่จัดกลางแล้วโดนตัดสองข้าง */
  .lobby-body { gap: 0.3rem; }
  .side-rail { display: none; }
  .scene-collection { background-position: 70% 78%; }
  .grid { gap: 0.5rem; }
  .brands,
  .games { grid-template-columns: repeat(3, 1fr); }
  .card { border-radius: 0.85rem; }
  .brand-card .thumb { padding: 0.4rem; }
  .brand-card .meta { padding: 0.4rem 0.35rem 0.5rem; }
  .brand-card h3,
  .game-card h3 {
    font-size: 0.72rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-card p { font-size: 0.62rem; }
  .game-card .meta { padding: 0.4rem 0.35rem 0.5rem; }
  .game-card span { font-size: 0.62rem; }
  .toast { bottom: 6.8rem; }
  .bottom-nav {
    padding: 0.75rem 0.35rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
  }
  .bottom-nav a { font-size: 0.8rem; max-width: none; }
  .bottom-nav a span { font-size: 1.5rem; }
  .bottom-nav a img { width: 2.05rem; height: 2.05rem; }
  .bottom-nav .bottom-home {
    max-width: none;
    margin-top: -1.7rem;
    padding: 1.3rem 0.4rem 0.7rem;
    font-size: 0.88rem;
  }
}

:root {
  --gold-lit: #fff0cb;
  --gold-deep: #c9922f;
  --green: #34a86e;
  --green-lit: #4fce8c;
  --green-deep: #26935f;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.gold-text {
  background: linear-gradient(180deg, #f8dfae 12%, var(--gold-lit) 46%, var(--gold-deep) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.rule {
  position: relative;
  height: 2px;
  margin: 1.5rem 0;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(224, 180, 100, 0.26) 18%, rgba(243, 208, 137, 0.6) 50%, rgba(224, 180, 100, 0.26) 82%, transparent);
}
.rule::after {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 203, 0.95), transparent);
  animation: ruleSweep 3.6s linear infinite;
}
@keyframes ruleSweep {
  from { transform: translateX(-140%); }
  to { transform: translateX(440%); }
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(240, 205, 140, 0.32);
  box-shadow: 0 0 12px rgba(240, 205, 140, 0.45);
  animation: drift 11s ease-in-out infinite;
}
.particle:nth-child(1) { left: 12%; top: 21%; animation-delay: 0s; }
.particle:nth-child(2) { left: 82%; top: 34%; animation-delay: 2.2s; }
.particle:nth-child(3) { left: 38%; top: 62%; animation-delay: 4.4s; }
.particle:nth-child(4) { left: 68%; top: 14%; animation-delay: 1.1s; }
.particle:nth-child(5) { left: 24%; top: 78%; animation-delay: 3.3s; }
.particle:nth-child(6) { left: 91%; top: 69%; animation-delay: 5.5s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.26; }
  50% { transform: translate(-26px, 18px) scale(1.6); opacity: 0.7; }
}

.marquee-wrap { position: relative; z-index: 1; margin: 0 0 1.2rem; }
.marquee {
  position: relative;
  overflow: hidden;
  padding: 0.75rem 0;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4.5rem;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--paper), transparent); }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: marqueeSlide 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 2.2rem;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.marquee-track img:hover { opacity: 1; transform: scale(1.12); }
@keyframes marqueeSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.jackpot { position: relative; z-index: 1; text-align: center; margin: 0 0 0.6rem; }
.jackpot-amount {
  font-family: Fraunces, serif;
  font-size: clamp(2.1rem, 7vw, 3.5rem);
  font-weight: 700;
  margin: 0.1rem 0 0.3rem;
  animation: jackpotGlow 2.4s ease-in-out infinite alternate;
}
@keyframes jackpotGlow {
  from { filter: drop-shadow(0 0 12px rgba(224, 180, 100, 0.26)); }
  to { filter: drop-shadow(0 0 30px rgba(240, 205, 140, 0.6)); }
}
.jackpot-note { margin: 0; color: var(--muted); font-size: 0.74rem; }

.gtabs {
  gap: 0.45rem;
  padding: 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--gold-lit) 8%, transparent);
}
.gtab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  min-width: 5.2rem;
  min-height: 5.4rem;
  padding: 0.55rem 0.55rem 0.45rem;
  border: 1px solid var(--tile-line);
  border-radius: 0.7rem;
  background: var(--tile);
  color: var(--gold);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-shadow: 0 0 8px color-mix(in srgb, var(--gold) 28%, transparent);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.gtab svg,
.gtab img,
.gtab-ico {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--gold) 55%, transparent));
}
.gtab-name { line-height: 1.15; }
.gtab-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
}
.gtab:hover,
.gtab.active {
  background: color-mix(in srgb, var(--tile) 82%, var(--gold) 18%);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 0 16px color-mix(in srgb, var(--gold) 32%, transparent);
  color: var(--gold-lit);
}
.gtab.active .gtab-name,
.gtab.active .gtab-count { color: var(--gold-lit); }

.banner-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.banner-cta { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.banner-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45); }
.banner-cta.cta-green {
  background: linear-gradient(180deg, var(--green-lit), var(--green-deep));
  color: #04241a;
  box-shadow: 0 10px 22px rgba(38, 147, 95, 0.32);
}
.primary.is-green {
  background: linear-gradient(180deg, var(--green-lit), var(--green-deep));
  color: #04241a;
}
#btn-deposit {
  background: linear-gradient(180deg, var(--green-lit), var(--green-deep));
  color: #04241a;
}

.card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card.in { opacity: 1; transform: none; }
.card.in:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
  border-color: var(--gold);
}

@media (max-width: 720px) {
  .gtabs {
    width: 100%;
    /* Without this the nowrap row sets a max-content min-width and drags the
       whole page wider than the screen. */
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .gtabs::-webkit-scrollbar { display: none; }
  .gtab { min-width: 4.4rem; padding: 0.6rem 0.55rem 0.5rem; font-size: 0.76rem; }
  .gtab svg,
  .gtab img,
  .gtab-ico { width: 1.5rem; height: 1.5rem; }
  .marquee-track { gap: 1.6rem; }
  .marquee-track img { height: 1.8rem; }
  .marquee::before, .marquee::after { width: 2.4rem; }
  .brands.lottery-board {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }
  .lottery-offer { padding: 0.6rem 0.55rem 0.5rem; gap: 0.4rem; }
  .lottery-offer-head { flex-wrap: wrap; align-items: flex-start; gap: 0.3rem 0.4rem; }
  .lottery-offer-head img { width: 22px; height: 22px; }
  .lottery-offer-head h3 { font-size: 0.82rem; line-height: 1.25; }
  .lottery-offer-head p { font-size: 0.68rem; }
  .lottery-offer-badge { font-size: 0.62rem; padding: 0.08rem 0.36rem; margin-left: auto; }
  .lottery-offer dl { gap: 0.12rem; }
  .lottery-offer dl div { font-size: 0.7rem; gap: 0.3rem; }
  .lottery-offer-go { padding: 0.38rem 0.4rem; font-size: 0.8rem; border-radius: 0.7rem; }
}

/* ── Cashback daily table ── */
.cb-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.cb-table th { color: #a3a3a3; font-weight: 600; padding: 0.4rem 0.35rem; border-bottom: 1px solid rgba(255,255,255,0.12); white-space: nowrap; }
.cb-table td { padding: 0.4rem 0.35rem; border-bottom: 1px solid rgba(255,255,255,0.06); white-space: nowrap; }
.cb-badge { display: inline-block; font-size: 0.7rem; padding: 0.15rem 0.45rem; border-radius: 6px; font-weight: 600; }
.cb-paid { background: rgba(74,222,128,0.15); color: #4ade80; }
.cb-pending { background: rgba(250,204,21,0.15); color: #facc15; }
.cb-win { background: rgba(96,165,250,0.15); color: #60a5fa; }

.ref-tabs { display: flex; gap: .5rem; }
.ref-tab { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #aaa; padding: 8px 16px; border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.ref-tab.active { background: #ffd700; color: #000; border-color: #ffd700; }

.camp-card {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: .75rem;
}
.camp-card-img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: .75rem; }
.camp-card-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.camp-reward { font-size: .85rem; color: #ffd700; font-weight: 600; }
.camp-turnover { font-size: .8rem; color: #a3a3a3; }
.camp-uses { font-size: .8rem; color: #60a5fa; }
.camp-valid { font-size: .8rem; color: #a3a3a3; }
.camp-claim-btn { display: block; width: 100%; margin-top: .75rem; background: #ffd700; color: #000; border: none; padding: 10px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: .9rem; }
.camp-claim-btn:disabled { background: rgba(255,255,255,.1); color: #888; cursor: not-allowed; }
.camp-streak { margin-top: .75rem; }
.camp-streak-bar { height: 8px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; }
.camp-streak-fill { height: 100%; background: linear-gradient(90deg, #ffd700, #4ade80); border-radius: 4px; transition: width .3s; }
.camp-streak-label { font-size: .8rem; color: #ccc; margin: .4rem 0 0; }
.camp-checkin-placeholder { margin-top: .75rem; padding: .75rem; background: rgba(255,215,0,.06); border: 1px dashed rgba(255,215,0,.3); border-radius: 8px; }
.camp-history-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .85rem; }
.camp-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 1rem; }
.camp-form-card { background: #1e1e1e; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 1.2rem; max-width: 360px; width: 100%; }
.camp-file-label { display: flex; align-items: center; cursor: pointer; }
.camp-file-btn { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 6px 14px; font-size: .85rem; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .card { opacity: 1; transform: none; }
  .particle,
  .aurora-orb,
  .glow,
  .rule::after,
  .marquee-track,
  .jackpot-amount { animation: none; }
}

/* ── Check-in chip (header) ── */
.checkin-chip {
  position: relative;
  flex-shrink: 0;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-weight: 600;
  font: inherit;
  font-size: 0.82rem;
  color: var(--gold);
  white-space: nowrap;
}
.checkin-chip-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
  animation: chipDotPulse 1.8s ease-in-out infinite;
}
@keyframes chipDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ── Check-in page ── */
.checkin-wrap {
  max-width: 32rem;
  padding: 1rem;
}
.checkin-wrap h2 {
  font-family: Fraunces, serif;
  margin: 0 0 1rem;
}
.checkin-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.5rem 0 1rem;
}
.checkin-strip::-webkit-scrollbar { display: none; }

.checkin-box {
  flex: 0 0 auto;
  width: 5rem;
  min-width: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.4rem;
  border-radius: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(38, 26, 18, 0.7);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.checkin-box-day {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.2;
}
.checkin-box-reward {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.checkin-box-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.checkin-box.is-done {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.3);
}
.checkin-box.is-done .checkin-box-reward { color: var(--muted); }
.checkin-box.is-done .checkin-box-icon { color: #4ade80; }

.checkin-box.is-today {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(224, 180, 100, 0.3), 0 0 24px rgba(224, 180, 100, 0.1);
  animation: checkinGlow 2s ease-in-out infinite alternate;
}
.checkin-box.is-today .checkin-box-reward { color: var(--gold); }

.checkin-box.is-locked {
  opacity: 0.45;
}

@keyframes checkinGlow {
  from { box-shadow: 0 0 10px rgba(224, 180, 100, 0.2); }
  to { box-shadow: 0 0 18px rgba(224, 180, 100, 0.45); }
}

.checkin-claim-btn {
  display: block;
  width: 100%;
  margin: 0.75rem 0;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(180deg, #f3d089, #d4a054);
  color: #2b2118;
  box-shadow: 0 8px 20px rgba(180, 120, 40, 0.3);
  transition: opacity 0.2s, transform 0.2s;
}
.checkin-claim-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}
.checkin-history-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--gold);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
}
.checkin-history-link:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .checkin-chip-dot { animation: none; }
  .checkin-box.is-today { animation: none; }
}

/* ── Deposit page ── */
.dep-wrap { max-width: 28rem; padding: 1rem; }
.dep-wrap h2 { font-family: Fraunces, serif; margin: 0 0 1rem; }
.dep-step-indicator { display: flex; gap: 0.4rem; margin-bottom: 1.2rem; }
.dep-step-dot { width: 2.2rem; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.12); transition: background 0.3s; }
.dep-step-dot.is-on { background: var(--gold); }

.dep-channels { display: flex; flex-direction: column; gap: 0.6rem; }
.dep-ch-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 0.9rem 1rem; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.dep-ch-card:hover, .dep-ch-card:focus-visible { border-color: var(--gold); box-shadow: 0 0 10px rgba(224,180,100,0.15); outline: none; }
.dep-ch-name { font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; }
.dep-ch-info { font-size: 0.82rem; color: var(--muted); }
.dep-ch-badge { display: inline-block; font-size: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 6px; font-weight: 600; margin-left: 0.4rem; vertical-align: middle; }
.dep-ch-badge.is-auto { background: rgba(74,222,128,0.15); color: #4ade80; }
.dep-ch-badge.is-review { background: rgba(250,204,21,0.15); color: #facc15; }

.dep-amount-form { display: flex; flex-direction: column; gap: 0.8rem; }
.dep-quick-amounts { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-bottom: 0.6rem; }
.dep-quick-btn { background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.12); color: var(--mist); font-size: 0.9rem; font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 20px; cursor: pointer; transition: all 0.2s; min-width: 3.2rem; }
.dep-quick-btn:hover, .dep-quick-btn:active { background: rgba(232,188,96,0.15); border-color: var(--gold); color: var(--gold); }
.dep-quick-btn.is-active { background: rgba(232,188,96,0.2); border-color: var(--gold); color: var(--gold); }
.dep-amount-input { width: 100%; font: inherit; font-size: 1.4rem; font-weight: 700; text-align: center; padding: 0.9rem 1rem; border-radius: 12px; border: 2px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.25); color: var(--ink); outline: none; transition: border-color 0.2s; }
.dep-amount-input:focus { border-color: var(--gold); }
.dep-amount-hint { font-size: 0.82rem; color: var(--muted); text-align: center; }
.dep-amount-err { font-size: 0.82rem; color: #f87171; text-align: center; min-height: 1.2em; }

/* Promo picker on the amount step */
.dep-promo { display: flex; flex-direction: column; gap: 0.5rem; }
.dep-promo-list { display: flex; flex-direction: column; gap: 0.5rem; }
.dep-promo-card { display: flex; align-items: center; gap: 0.65rem; width: 100%; text-align: left; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 0.7rem 0.75rem; color: inherit; font: inherit; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s; }
.dep-promo-card:hover, .dep-promo-card:focus-visible { border-color: var(--gold); box-shadow: 0 0 10px rgba(224,180,100,0.15); outline: none; }
.dep-promo-card.is-on { border-color: var(--gold); background: rgba(224,180,100,0.14); }
.dep-promo-card.is-off { opacity: 0.45; cursor: not-allowed; filter: grayscale(1); }
.dep-promo-card.is-off:hover, .dep-promo-card.is-off:focus-visible { border-color: rgba(255,255,255,0.12); box-shadow: none; }
.dep-promo-thumb { width: 2.9rem; height: 2.9rem; flex: 0 0 2.9rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; border-radius: 12px; background: rgba(0,0,0,0.22); object-fit: cover; }
.dep-promo-body { flex: 1; min-width: 0; }
.dep-promo-name { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.15rem; overflow-wrap: anywhere; }
.dep-promo-desc { font-size: 0.75rem; color: var(--muted); line-height: 1.3; margin-bottom: 0.15rem; overflow-wrap: anywhere; }
.dep-promo-gain { font-size: 0.85rem; font-weight: 700; color: var(--gold); }
.dep-promo-line { font-size: 0.75rem; color: var(--muted); line-height: 1.35; }
.dep-promo-warn { font-size: 0.72rem; color: #facc15; margin-top: 0.15rem; line-height: 1.3; }
.dep-promo-tick { width: 1.15rem; height: 1.15rem; flex: 0 0 1.15rem; border-radius: 50%; border: 2px solid rgba(255,255,255,0.22); transition: border-color 0.2s, background 0.2s; }
.dep-promo-card.is-on .dep-promo-tick { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 0 46%, transparent 47%); }
.dep-promo-preview { border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; background: rgba(0,0,0,0.25); padding: 0.7rem 0.8rem; text-align: center; }
.dep-promo-preview-main { font-size: 0.9rem; font-weight: 700; overflow-wrap: anywhere; }
.dep-promo-preview-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }
@media (min-width: 480px) {
  .dep-promo-card { gap: 0.85rem; padding: 0.85rem 0.95rem; }
  .dep-promo-thumb { width: 3.4rem; height: 3.4rem; flex-basis: 3.4rem; }
  .dep-promo-name { font-size: 1rem; }
  .dep-promo-preview-main { font-size: 0.95rem; }
}

.dep-bank-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 1.2rem; text-align: center; margin-bottom: 1rem; }
.dep-bank-logo { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 0.6rem; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.dep-bank-logo span { font-size: 0.7rem; font-weight: 700; color: #fff; letter-spacing: 0.02em; line-height: 1; }
.dep-bank-name { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.3rem; }
.dep-bank-acct { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); margin: 0.4rem 0; word-break: break-all; }
.dep-bank-holder { font-size: 0.9rem; color: var(--muted); }
.dep-copy-btn { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.7rem; padding: 0.55rem 1.4rem; border: none; border-radius: 999px; background: var(--gold); color: #1b120b; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: opacity 0.2s; }
.dep-copy-btn:active { opacity: 0.7; }
.dep-ref { font-size: 0.82rem; color: var(--muted); margin-top: 0.6rem; }
.dep-timer { font-size: 0.95rem; font-weight: 600; color: #facc15; margin-top: 0.6rem; }
.dep-timer.is-expired { color: #f87171; }

.dep-upload-area { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.dep-file-label { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.65rem 1.4rem; border-radius: 10px; background: rgba(255,255,255,0.08); border: 1px dashed rgba(255,255,255,0.25); cursor: pointer; font-size: 0.9rem; color: var(--ink); transition: border-color 0.2s; }
.dep-file-label:hover { border-color: var(--gold); }
.dep-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.dep-file-name { font-size: 0.82rem; color: var(--muted); }
.dep-ocr-info { background: rgba(255,255,255,0.05); border-radius: 10px; padding: 0.8rem; font-size: 0.85rem; margin-top: 0.7rem; text-align: center; }
.dep-ocr-info .dep-ocr-amount { font-weight: 700; color: var(--gold); font-size: 1.1rem; }

.dep-status-card { text-align: center; padding: 1.5rem 0.5rem; }
.dep-status-icon { font-size: 2.4rem; margin-bottom: 0.5rem; }
.dep-status-label { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.dep-status-label.is-ok { color: #4ade80; }
.dep-status-label.is-fail { color: #f87171; }
.dep-status-label.is-wait { color: #facc15; }
.dep-status-detail { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }

.dep-btn { display: block; width: 100%; margin-top: 0.8rem; border: 0; border-radius: 999px; padding: 0.85rem 1.2rem; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; background: linear-gradient(180deg, #f3d089, #d4a054); color: #2b2118; box-shadow: 0 8px 20px rgba(180,120,40,0.3); transition: opacity 0.2s, transform 0.2s; }
.dep-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; background: rgba(255,255,255,0.1); color: var(--muted); }
.dep-btn-ghost { display: block; width: 100%; margin-top: 0.5rem; border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; padding: 0.7rem 1rem; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; background: transparent; color: var(--ink); transition: border-color 0.2s; }
.dep-btn-ghost:hover { border-color: var(--gold); }
.dep-empty { text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: 0.9rem; }
.dep-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; margin: 0 0 1rem; }
.dep-nav-btn { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); color: inherit; font: inherit; font-size: 0.72rem; font-weight: 600; border-radius: 12px; padding: 0.55rem 0.2rem; cursor: pointer; }
.dep-nav-btn.is-on { border-color: var(--gold); background: rgba(224,180,100,0.14); color: var(--gold); }
.dep-nav-ico { font-size: 1.15rem; line-height: 1; }
.dep-sec-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); margin: 0.2rem 0 0.55rem; text-transform: uppercase; }
.dep-hist-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 0.9rem 1rem; margin-bottom: 0.7rem; }
.dep-hist-card.is-open { border-color: rgba(250,204,21,0.38); background: rgba(250,204,21,0.06); }
.dep-hist-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8rem; }
.dep-hist-amt { font-weight: 700; white-space: nowrap; }
.dep-hist-card .is-ok { color: #4ade80; }
.dep-hist-card .is-fail { color: #f87171; }
.dep-hist-card .is-wait { color: #facc15; }
.dep-hist-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.dep-hist-actions .dep-btn,
.dep-hist-actions .dep-btn-ghost { margin-top: 0; width: auto; flex: 1; padding: 0.55rem 0.7rem; font-size: 0.85rem; }

/* Channel grouping */
.dep-kind-group { margin-bottom: 0.6rem; }
.dep-kind-header { font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 0.4rem; padding-left: 0.2rem; }
.dep-ch-icon { margin-right: 0.3rem; }

/* Deposit type menu */
.dep-menu { display: flex; flex-direction: column; gap: 0.7rem; }
.dep-menu-card { display: flex; align-items: center; gap: 0.85rem; width: 100%; text-align: left; background: rgba(20,14,10,0.92); border: 1px solid rgba(224,180,100,0.25); border-radius: 14px; padding: 0.95rem 1rem; color: inherit; font: inherit; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s; backdrop-filter: blur(8px); }
.dep-menu-card:hover, .dep-menu-card:focus-visible { border-color: var(--gold); box-shadow: 0 0 12px rgba(224,180,100,0.25); outline: none; background: rgba(30,20,14,0.95); }
.dep-menu-card.is-off { opacity: 0.55; cursor: not-allowed; filter: grayscale(0.6); }
.dep-menu-card.is-off:hover, .dep-menu-card.is-off:focus-visible { border-color: rgba(224,180,100,0.15); box-shadow: none; }
.dep-menu-icon { width: 3rem; height: 3rem; flex: 0 0 3rem; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; border-radius: 12px; background: rgba(0,0,0,0.45); border: 1px solid rgba(224,180,100,0.15); }
.dep-menu-body { min-width: 0; }
.dep-menu-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; color: var(--ink); text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.dep-menu-hint { font-size: 0.8rem; color: var(--mist); line-height: 1.35; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.dep-menu-badge { display: inline-block; font-size: 0.68rem; padding: 0.12rem 0.45rem; border-radius: 6px; font-weight: 700; margin-left: 0.35rem; vertical-align: middle; }
.dep-menu-badge.is-on { background: rgba(74,222,128,0.15); color: #4ade80; }
.dep-menu-badge.is-off { background: rgba(255,255,255,0.08); color: #9ca3af; }

/* QR Payment view */
.dep-qr-wrap { text-align: center; margin-bottom: 1rem; }
.dep-qr-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.8rem; color: var(--ink); }
.dep-qr-img { display: inline-block; padding: 0.8rem; background: #fff; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

/* True Wallet view */
.dep-tw-card { background: rgba(74,222,128,0.06); border: 1px solid rgba(74,222,128,0.2); border-radius: 14px; padding: 1.4rem; text-align: center; margin-bottom: 1rem; }
.dep-tw-icon { font-size: 2.2rem; margin-bottom: 0.3rem; }
.dep-tw-label { font-size: 0.85rem; font-weight: 600; color: #4ade80; margin-bottom: 0.5rem; }
.dep-tw-phone { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); margin: 0.4rem 0; }
.dep-tw-name { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.3rem; }

/* Withdraw page */
.wd-wrap { max-width: 28rem; padding: 1rem; }
.wd-wrap h2 { font-family: Fraunces, serif; margin: 0 0 0.8rem; }
.wd-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0.4rem; margin: 0 0 1rem; }
.wd-nav-btn { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); color: inherit; font: inherit; font-size: 0.72rem; font-weight: 600; border-radius: 12px; padding: 0.55rem 0.2rem; cursor: pointer; }
.wd-nav-btn.is-on { border-color: var(--gold); background: rgba(224,180,100,0.14); color: var(--gold); }
.wd-nav-ico { font-size: 1.15rem; line-height: 1; }
.wd-bal-mini { text-align: center; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.9rem; }
.wd-bal-mini strong { color: var(--gold); }
.wd-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.wd-stat span { color: var(--muted); font-size: 0.88rem; }
.wd-ok { color: #4ade80; }
.wd-lock { color: #facc15; }
.wd-tips { margin: 0; padding-left: 1.1rem; color: var(--ink); }
.wd-tips li { margin: 0.55rem 0; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.wd-ticket { text-align: center; background: rgba(255,255,255,0.05); border-radius: 14px; padding: 1rem; }
.wd-empty { text-align: center; padding: 1.4rem 0.4rem; color: var(--muted); }
.wd-hist { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.wd-hist-amt { font-weight: 700; }
.wd-hist .is-ok { color: #4ade80; }
.wd-hist .is-fail { color: #f87171; }
.wd-hist .is-wait { color: #facc15; }

.btn-primary-sm { display: inline-block; padding: 0.5rem 1.2rem; background: linear-gradient(135deg, var(--gold), #c9922f); color: #1a1008; font-size: 0.85rem; font-weight: 700; border-radius: 10px; text-decoration: none; text-align: center; }
.btn-primary-sm:hover { opacity: 0.9; }

/* Gateway error inline */
.dep-gw-inline-error { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); border-radius: 12px; padding: 0.8rem; margin-top: 0.5rem; text-align: center; }
.dep-gw-inline-msg { font-size: 0.9rem; color: #f87171; font-weight: 600; margin-bottom: 0.6rem; line-height: 1.5; }
.dep-gw-inline-label { font-size: 0.85rem; color: var(--gold); margin-bottom: 0.5rem; font-weight: 600; }
.dep-gw-inline-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.dep-gw-suggest-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: var(--ink); font-size: 0.85rem; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.dep-gw-suggest-btn:hover, .dep-gw-suggest-btn:active { background: rgba(232,188,96,0.25); border-color: var(--gold); color: var(--gold); }

/* Home promo status card */
.home-promo-card { max-width: 44rem; margin: 0.6rem auto 0.2rem; padding: 0.9rem 1rem; background: linear-gradient(135deg, rgba(232,188,96,0.14), rgba(38,26,18,0.9)); border: 1px solid rgba(224,180,100,0.35); border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); }
.home-promo-card.hidden { display: none; }

.home-dash {
  padding: 0.15rem 6vw 0.35rem;
}
.home-dash.hidden { display: none; }
.wallet-strip { margin: 0 0 0.7rem; }
.ws-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.05rem;
  background: var(--tile);
  border: 1px solid var(--tile-line);
  border-radius: 1.25rem;
}
.ws-meta { min-width: 0; }
.ws-meta small { display: block; color: var(--muted); font-size: 0.72rem; }
.ws-meta strong { display: block; font-size: 1.02rem; color: var(--ink); margin: 0.08rem 0 0.15rem; }
.ws-bal { display: block; color: #4ade80; font-weight: 700; font-size: 1.05rem; }
.ws-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; }
.ws-btn {
  text-decoration: none;
  color: var(--tile-ink);
  background: var(--card);
  border: 1px solid var(--tile-line);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.ws-btn.ws-in { background: linear-gradient(180deg, #4fce8c, #26935f); color: #082214; border-color: #34a86e; }
.ws-btn.ws-out { background: linear-gradient(180deg, var(--gold-lit), var(--gold)); color: var(--on-gold); border-color: var(--gold); }
.ws-btn.ws-login { background: linear-gradient(180deg, var(--gold-lit), var(--gold)); color: var(--on-gold); border-color: var(--gold); }
.ws-btn.ws-reg { background: linear-gradient(180deg, #4fce8c, #26935f); color: #082214; border-color: #34a86e; }
.home-shortcuts {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin: 0 0 0.7rem;
}
.qs-ico {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--gold);
  display: block;
  flex-shrink: 0;
}
img.qs-ico,
.qs-ico-img {
  object-fit: contain;
}
.home-shortcuts a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 5.45rem;
  text-decoration: none;
  color: var(--tile-ink);
  background: var(--tile);
  border: 1px solid var(--tile-line);
  border-radius: 1.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  padding: 0.7rem 0.2rem 0.55rem;
}
.home-shortcuts a:active,
.home-shortcuts a.active {
  background: var(--card);
  border-color: var(--gold);
}
.home-shortcuts a .qs-ico {
  width: 1.85rem;
  height: 1.85rem;
}
.side-rail a .qs-ico {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--gold);
}
.home-shortcuts a.hidden { display: none; }
.home-announce {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
  padding: 0.7rem 0.75rem;
  background: rgba(232, 188, 96, 0.1);
  border: 1px solid rgba(224, 180, 100, 0.32);
  border-radius: 12px;
}
.home-announce.hidden { display: none; }
.home-announce-body {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.home-announce-ico { font-size: 1.1rem; line-height: 1.2; }
.home-announce-body strong { display: block; color: var(--gold); font-size: 0.88rem; }
.home-announce-body small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--mist);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}
.home-announce-close {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff4dc;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 720px) {
  .home-dash { padding: 0.2rem 1.1rem 0.15rem; }
  .home-shortcuts { display: grid; }
  .ws-box { flex-direction: column; align-items: stretch; }
  .ws-actions { justify-content: stretch; }
  .ws-btn { flex: 1 1 0; text-align: center; }
}
.hp-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.55rem; }
.hp-title { font-weight: 700; font-size: 0.98rem; color: var(--gold); }
.hp-title .hp-ico { margin-right: 0.35rem; }
.hp-link { color: var(--gold); font-size: 0.78rem; text-decoration: none; opacity: 0.9; }
.hp-link:hover { opacity: 1; text-decoration: underline; }
.hp-bar { position: relative; height: 10px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.hp-bar-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ffd782, #e0b464 60%, #c9922f); border-radius: 999px; transition: width 0.5s ease; }
.hp-row { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.82rem; color: var(--mist); margin-top: 0.4rem; flex-wrap: wrap; }
.hp-row strong { color: var(--ink); }
.hp-row .hp-pct { color: var(--gold); font-weight: 700; }
.hp-providers { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }

/* Status badges (my-promo/history) */
.pb-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; letter-spacing: 0.02em; }
.pb-badge.is-active { background: rgba(142,197,232,0.16); color: #8ec5e8; }
.pb-badge.is-completed { background: rgba(74,222,128,0.16); color: #4ade80; }
.pb-badge.is-ended { background: rgba(255,255,255,0.08); color: #b8b8b8; }
.pb-badge.is-forfeited { background: rgba(248,113,113,0.16); color: #f87171; }
.pb-badge.is-unlocked { background: rgba(232,188,96,0.18); color: var(--gold); }

/* Promo history list */
.ph-wrap { padding: 1rem; max-width: 44rem; margin: 0 auto; }
.ph-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 0.85rem 1rem; margin-bottom: 0.7rem; }
.ph-item-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.ph-item-name { font-weight: 600; color: var(--ink); }
.ph-item-meta { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; }
.ph-empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }

@media (max-width: 640px) {
  .home-promo-card { margin: 0.5rem 0.6rem 0.2rem; padding: 0.75rem 0.85rem; }
  .hp-title { font-size: 0.9rem; }
}

/* ─── Lucky Wheel ─────────────────────────────────────────────────── */
.wheel-page { padding: 1rem; max-width: 32rem; margin: 0 auto; animation: fadeIn .3s; }
.wheel-tier-tabs { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }
.wheel-tier-btn { padding: .4rem .9rem; border-radius: 20px; border: 2px solid var(--tier-color, #FFD700); background: transparent; color: var(--ink); font-size: .85rem; cursor: pointer; transition: all .2s; }
.wheel-tier-btn.active { background: var(--tier-color, #FFD700); color: #1a1a1a; font-weight: 600; }
.wheel-container { display: flex; flex-direction: column; align-items: center; position: relative; margin-bottom: 1.5rem; }
.wheel-pointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 1.6rem; z-index: 10; color: #f87171; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.wheel-svg-wrap { width: 280px; height: 280px; position: relative; margin: 1rem 0; }
.wheel-svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 16px rgba(0,0,0,.4)); border-radius: 50%; }
.wheel-spin-btn { margin-top: .8rem; padding: .7rem 2rem; border-radius: 30px; border: none; background: linear-gradient(135deg, #FFD700, #FF8C00); color: #1a1a1a; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s; box-shadow: 0 4px 16px rgba(255,200,0,.3); }
.wheel-spin-btn:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 6px 24px rgba(255,200,0,.5); }
.wheel-spin-btn:disabled { opacity: .5; cursor: not-allowed; }
.wheel-ticket-count { text-align: center; margin-top: .5rem; color: var(--muted); font-size: .9rem; }

.view-switch {
  display: flex;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(38, 26, 18, 0.72);
}
.view-switch button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.38rem 0.62rem;
  cursor: pointer;
}
.view-switch button.active {
  background: var(--gold);
  color: var(--on-gold);
}
.account-password-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 0.75rem;
  text-decoration: none;
  background: var(--gold);
  color: var(--on-gold);
  border-radius: 999px;
  padding: 0.48rem 0.95rem;
  font-weight: 700;
  font-size: 0.88rem;
}

@media (min-width: 721px) {
  body:not(.force-mobile) .bottom-nav { display: none; }
  body:not(.force-mobile) main { padding-bottom: 2rem; }
}
body.force-desktop .nav { display: flex !important; }
body.force-desktop .brand small { display: block !important; }
body.force-desktop .ham { display: none !important; }
body.force-desktop .side-rail { display: flex !important; }
body.force-desktop .home-shortcuts { display: none !important; }
body.force-desktop .bottom-nav { display: none !important; }
body.force-desktop main { padding-bottom: 2rem !important; }
body.force-mobile .nav { display: none !important; }
body.force-mobile .brand small { display: none !important; }
body.force-mobile .ham { display: flex !important; }
body.force-mobile .side-rail { display: none !important; }
body.force-mobile .home-shortcuts { display: grid !important; }
body.force-mobile .bottom-nav { display: flex !important; }
body.force-mobile main { padding: 0 0 8rem !important; }
body.force-mobile .lobby-body { gap: 0.3rem; }
body.force-mobile .brands.lottery-board {
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
body.force-mobile .lottery-offer { padding: 0.6rem 0.55rem 0.5rem; gap: 0.4rem; }
body.force-mobile .lottery-offer-head { flex-wrap: wrap; align-items: flex-start; gap: 0.3rem 0.4rem; }
body.force-mobile .lottery-offer-head img { width: 22px; height: 22px; }
body.force-mobile .lottery-offer-head h3 { font-size: 0.82rem; line-height: 1.25; }
body.force-mobile .lottery-offer-head p { font-size: 0.68rem; }
body.force-mobile .lottery-offer-badge { font-size: 0.62rem; padding: 0.08rem 0.36rem; margin-left: auto; }
body.force-mobile .lottery-offer dl { gap: 0.12rem; }
body.force-mobile .lottery-offer dl div { font-size: 0.7rem; gap: 0.3rem; }
body.force-mobile .lottery-offer-go { padding: 0.38rem 0.4rem; font-size: 0.8rem; border-radius: 0.7rem; }
.wheel-history { margin-top: 1rem; }
.wheel-history h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--ink); }
.wheel-hist-row { display: flex; justify-content: space-between; padding: .4rem .6rem; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: .82rem; gap: .3rem; }
.wheel-hist-row .text-green { color: #4ade80; font-weight: 600; }

.dep-success-wrap { text-align: center; padding: 2rem 1rem; }
.dep-success-icon { font-size: 3rem; margin-bottom: .5rem; }
.dep-success-title { font-size: 1.3rem; font-weight: 700; color: #4ade80; margin-bottom: .5rem; }
.dep-success-amount { font-size: 1.1rem; color: var(--ink); margin-bottom: 1.5rem; }

html[data-lobby-theme="whitegreen"] .top {
  background: #336551;
  border-bottom: 2px solid #f7a400;
  margin: 0;
}
html[data-lobby-theme="whitegreen"] .brand strong { color: #fff; }
html[data-lobby-theme="whitegreen"] .brand small { color: rgba(255, 255, 255, 0.82); }
html[data-lobby-theme="whitegreen"] .nav a {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
html[data-lobby-theme="whitegreen"] .nav a.active {
  background: #f7a400;
  color: #212121;
  border-color: #f7a400;
}
html[data-lobby-theme="whitegreen"] .view-switch {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
}
html[data-lobby-theme="whitegreen"] .view-switch button {
  color: #fff;
}
html[data-lobby-theme="whitegreen"] .view-switch button.active {
  background: #f7a400;
  color: #212121;
}
html[data-lobby-theme="whitegreen"] .ham {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}
html[data-lobby-theme="whitegreen"] .ham span { background: #fff; }
html[data-lobby-theme="whitegreen"] .wallet,
html[data-lobby-theme="whitegreen"] .wallet.is-guest:hover,
html[data-lobby-theme="whitegreen"] .wallet:hover {
  background: #fff;
  color: #1e4d36;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
html[data-lobby-theme="whitegreen"] .wallet small,
html[data-lobby-theme="whitegreen"] .wallet .q-lab { color: #5e6a64; }
html[data-lobby-theme="whitegreen"] .bottom-nav {
  border-top: 2px solid #f7a400;
  box-shadow: 0 -8px 24px rgba(33, 33, 33, 0.12);
}
html[data-lobby-theme="whitegreen"] .bottom-nav a { color: #fff; }
html[data-lobby-theme="whitegreen"] .bottom-nav a.active { color: #f7a400; }
html[data-lobby-theme="whitegreen"] .bottom-nav .bottom-home {
  background: linear-gradient(180deg, #ffd36a 0%, #f7a400 55%, #d48900 100%);
  color: #212121;
}
html[data-lobby-theme="whitegreen"] .bottom-nav .bottom-home .qs-ico { color: #212121; }
html[data-lobby-theme="whitegreen"] .drawer a,
html[data-lobby-theme="whitegreen"] .drawer-logout {
  background: #f9f2e7;
  color: #212121;
}
html[data-lobby-theme="whitegreen"] .drawer-group { color: #336551; }
html[data-lobby-theme="whitegreen"] .stage { box-shadow: none; }
html[data-lobby-theme="whitegreen"] {
  --paper: #ffffff;
  --ink: #212121;
  --muted: #5e6a64;
  --mist: #3e6b54;
  --line: rgba(51, 101, 81, 0.22);
  --gold: #336551;
  --gold-lit: #3f8f68;
  --gold-deep: #1e4d36;
  --card: #f9f2e7;
  --shadow: 0 12px 28px rgba(51, 101, 81, 0.12);
  --tile: #ffffff;
  --tile-line: rgba(51, 101, 81, 0.28);
  --tile-ink: #212121;
  --on-gold: #ffffff;
  --glow-a: #f7a400;
  --glow-b: #336551;
  --glow-c: #1e4d36;
  --nav-bg: #336551;
  --stage: linear-gradient(180deg, rgba(51, 101, 81, 0.06), transparent 36%);
  --bg: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
  --veil-rgb: 255, 255, 255;
}
html[data-lobby-theme="whitegreen"] .sparkle,
html[data-lobby-theme="whitegreen"] .particles { opacity: 0; }
html[data-lobby-theme="whitegreen"] h1 {
  color: #212121;
  text-shadow: none;
}
html[data-lobby-theme="whitegreen"] .eyebrow { color: #336551; }
html[data-lobby-theme="whitegreen"] .gold-text {
  background: none;
  -webkit-text-fill-color: #336551;
  color: #336551;
  filter: none;
}
html[data-lobby-theme="whitegreen"] .auth-logo {
  box-shadow: 0 10px 24px rgba(51, 101, 81, 0.16);
  border-color: rgba(51, 101, 81, 0.28);
}
html[data-lobby-theme="whitegreen"] .auth-card input,
html[data-lobby-theme="whitegreen"] .auth-card select,
html[data-lobby-theme="whitegreen"] .cash-card input,
html[data-lobby-theme="whitegreen"] .cash-card select,
html[data-lobby-theme="whitegreen"] .profile-card input,
html[data-lobby-theme="whitegreen"] .profile-card select {
  background: #fff;
  color: #212121;
  border-color: rgba(51, 101, 81, 0.35);
}
html[data-lobby-theme="whitegreen"] .auth-card input::placeholder,
html[data-lobby-theme="whitegreen"] .cash-card input::placeholder,
html[data-lobby-theme="whitegreen"] .profile-card input::placeholder { color: #6d7a74; }
html[data-lobby-theme="ivory"] .auth-card input,
html[data-lobby-theme="ivory"] .auth-card select,
html[data-lobby-theme="ivory"] .cash-card input,
html[data-lobby-theme="ivory"] .cash-card select,
html[data-lobby-theme="ivory"] .profile-card input,
html[data-lobby-theme="ivory"] .profile-card select {
  background: #f6f0e4;
  color: #2c2418;
  border: 1px solid #c6a15a;
}
html[data-lobby-theme="ivory"] .auth-card input::placeholder,
html[data-lobby-theme="ivory"] .cash-card input::placeholder,
html[data-lobby-theme="ivory"] .profile-card input::placeholder { color: #7a6550; }
html[data-lobby-theme="ivory"] .auth-card input:focus,
html[data-lobby-theme="ivory"] .cash-card input:focus,
html[data-lobby-theme="ivory"] .profile-card input:focus {
  border-color: #8a6a32;
  box-shadow: 0 0 0 3px rgba(212, 177, 92, 0.28);
  outline: none;
}
html[data-lobby-theme="whitegreen"] .primary,
html[data-lobby-theme="whitegreen"] .cash-actions button:not(.ghost) {
  background: #f7a400;
  color: #212121;
}
html[data-lobby-theme="whitegreen"] .auth-actions .ghost,
html[data-lobby-theme="whitegreen"] .cash-actions .ghost,
html[data-lobby-theme="whitegreen"] .quick-amounts button {
  background: #fff;
  color: #1e4d36;
  border-color: rgba(51, 101, 81, 0.35);
}
html[data-lobby-theme="whitegreen"] .auth-step { background: #fff; color: #5e6a64; }
html[data-lobby-theme="whitegreen"] .auth-step.is-on,
html[data-lobby-theme="whitegreen"] .auth-step.is-done {
  background: #336551;
  color: #fff;
  border-color: #336551;
  box-shadow: none;
}
html[data-lobby-theme="whitegreen"] .auth-step-line { background: rgba(51, 101, 81, 0.22); }
html[data-lobby-theme="whitegreen"] .auth-step-line.is-on { background: #336551; }
html[data-lobby-theme="whitegreen"] .bank-picker-title { color: #336551; }
html[data-lobby-theme="whitegreen"] .bank-chosen { background: #fff; }
html[data-lobby-theme="whitegreen"] .bank-chosen strong { color: #212121; }
html[data-lobby-theme="whitegreen"] .bank-chosen button { color: #1e4d36; }
html[data-lobby-theme="whitegreen"] .account-hero h2 { color: #212121; }
html[data-lobby-theme="whitegreen"] #auth-switch {
  background: #fff;
  color: #1e4d36;
  border-color: rgba(51, 101, 81, 0.35);
}
html[data-lobby-theme="whitegreen"] #auth-switch:hover {
  background: #f9f2e7;
  color: #1e4d36;
  border-color: #336551;
  box-shadow: none;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.85) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
