/* =========================================================
 * RACHA999 · #23 MYSTIC TAROT COSMIC · ไพ่ยิปซีจักรวาล
 * ---------------------------------------------------------
 * Audience: 25-50 · ดวง-curious / lottery-leaning · feminine-friendly
 * Surface : starfield bg · velvet noise · gold filigree · radius 8-12
 * Theme   : deep purple · gold leaf · mystic pink · sapphire
 * ========================================================= */

/* ---------- 0. RESET & TOKENS ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* core palette */
  --night:        #1A0033;
  --night-deep:   #0D001A;
  --violet:       #4B0082;
  --violet-deep:  #2C0050;
  --violet-warm:  #7B2CBF;
  --gold:         #D4AF37;
  --gold-bright:  #F2D060;
  --gold-deep:    #A8841C;
  --pink:         #FF1493;
  --pink-soft:    #FF6FB5;
  --sapphire:     #0F52BA;
  --sapphire-deep:#0A3580;

  /* parchment / text */
  --ivory:        #F5F0E0;
  --ivory-soft:   #D8D2BD;
  --ivory-mute:   #9D9784;

  /* surfaces */
  --velvet:       rgba(75, 0, 130, 0.42);
  --velvet-deep:  rgba(26, 0, 51, 0.78);
  --glass:        rgba(245, 240, 224, 0.06);
  --glass-strong: rgba(245, 240, 224, 0.12);
  --glass-thin:   rgba(245, 240, 224, 0.04);
  --gold-glass:   rgba(212, 175, 55, 0.08);

  /* borders */
  --border-gold:    1px solid rgba(212, 175, 55, 0.45);
  --border-gold-2:  1.5px solid rgba(212, 175, 55, 0.75);
  --border-velvet:  1px solid rgba(245, 240, 224, 0.10);
  --border-pink:    1px solid rgba(255, 20, 147, 0.30);

  /* shadows */
  --shadow-velvet:  0 18px 50px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(75, 0, 130, 0.4);
  --shadow-gold:    0 0 0 1px rgba(212, 175, 55, 0.3), 0 14px 40px rgba(212, 175, 55, 0.12), inset 0 1px 0 rgba(255, 224, 160, 0.18);
  --shadow-card:    0 12px 32px rgba(13, 0, 26, 0.7), 0 2px 8px rgba(75, 0, 130, 0.4), inset 0 1px 0 rgba(245, 240, 224, 0.06);
  --shadow-glow:    0 0 24px rgba(255, 20, 147, 0.45), 0 0 60px rgba(75, 0, 130, 0.35);
  --shadow-orb:     inset -10px -16px 36px rgba(75, 0, 130, 0.55), inset 14px 12px 28px rgba(255, 227, 244, 0.3), 0 22px 60px rgba(255, 20, 147, 0.35);

  /* radius */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* spacing */
  --container: 1240px;

  /* transitions */
  --t-soft: 480ms cubic-bezier(.22,.61,.36,1);
  --t-fast: 220ms cubic-bezier(.22,.61,.36,1);
}

html, body {
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Sarabun", "Trirong", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.65;
  font-size: 15.5px;
  letter-spacing: 0.005em;
  background: var(--night);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

/* deep cosmic gradient base */
body::before {
  content: "";
  position: fixed;
  inset: -10vh -10vw;
  z-index: -3;
  background:
    radial-gradient(70% 60% at 18% 18%, rgba(75, 0, 130, 0.65), transparent 65%),
    radial-gradient(60% 60% at 82% 28%, rgba(15, 82, 186, 0.42), transparent 70%),
    radial-gradient(60% 60% at 75% 85%, rgba(255, 20, 147, 0.32), transparent 70%),
    radial-gradient(60% 60% at 12% 82%, rgba(123, 44, 191, 0.5), transparent 70%),
    linear-gradient(180deg, var(--night-deep), var(--night) 40%, var(--violet-deep) 100%);
  background-size: 200% 200%;
  animation: cosmicDrift 36s ease-in-out infinite;
}

/* velvet noise texture overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 25% 35%, rgba(245, 240, 224, 0.08), transparent),
    radial-gradient(1px 1px at 75% 60%, rgba(245, 240, 224, 0.06), transparent),
    radial-gradient(1.5px 1.5px at 45% 80%, rgba(212, 175, 55, 0.08), transparent);
  background-size: 280px 280px, 200px 200px, 320px 320px;
  mix-blend-mode: screen;
  opacity: 0.6;
}

@keyframes cosmicDrift {
  0%, 100% { background-position: 0% 50%, 100% 0%, 50% 100%, 0% 100%, 0% 50%; }
  50%      { background-position: 100% 50%, 0% 100%, 0% 50%, 100% 0%, 100% 50%; }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button {
  font-family: inherit;
  border: 0;
  cursor: pointer;
  background: none;
  color: inherit;
}
input, select, textarea {
  font-family: inherit;
  color: var(--ivory);
}

/* shared headings */
h1, h2, h3, h4, h5, h6 {
  font-family: "Cinzel", "Trirong", "Sarabun", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  color: var(--ivory);
}

h1 {
  font-size: clamp(36px, 5.6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.005em;
}
h2 {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.2;
}
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; }
h4 {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1em; color: var(--ivory-soft); }

.cursive {
  display: block;
  font-family: "Pinyon Script", "Trirong", cursive;
  font-style: normal;
  letter-spacing: 0.01em;
  color: var(--gold);
  font-size: 1.85em;
  line-height: 1;
  font-weight: 400;
  margin-bottom: 0.4em;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.4);
}

.eyebrow {
  display: inline-block;
  font-family: "Cinzel", "Trirong", serif;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  padding: 7px 16px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--r-pill);
  background: rgba(212, 175, 55, 0.06);
  margin-bottom: 18px;
}

.gold-text {
  background: linear-gradient(120deg, #F2D060 0%, #FFE9A0 30%, #D4AF37 50%, #F2D060 70%, #A8841C 100%);
  background-size: 250% 250%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 6s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

@keyframes goldShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* container */
.container {
  width: min(var(--container), 100% - 36px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5), transparent);
  margin: 60px auto;
  position: relative;
  width: min(900px, 92%);
}
.divider::before,
.divider::after {
  content: "✦";
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--night);
  padding: 0 14px;
  color: var(--gold);
  font-size: 14px;
}
.divider::before { left: 50%; }
.divider::after { display: none; }

/* ---------- 1. STARFIELD ---------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.starfield .star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #FFE3F4;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255, 227, 244, 0.8);
  animation: twinkle var(--d, 3s) ease-in-out infinite;
}
.starfield .star.big {
  width: 3px;
  height: 3px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.9);
}
.starfield .sparkle {
  position: absolute;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(transparent 47%, var(--gold) 50%, transparent 53%),
    linear-gradient(90deg, transparent 47%, var(--gold) 50%, transparent 53%);
  opacity: 0.7;
  animation: sparkleSpin 6s linear infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.7); }
  50%      { opacity: 1; transform: scale(1.3); }
}
@keyframes sparkleSpin {
  0%   { transform: rotate(0deg) scale(0.8); opacity: 0.4; }
  50%  { transform: rotate(180deg) scale(1.2); opacity: 0.9; }
  100% { transform: rotate(360deg) scale(0.8); opacity: 0.4; }
}

/* ---------- 2. HEADER & NAV ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  background: rgba(13, 0, 26, 0.78);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand__crystal {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px rgba(255, 20, 147, 0.5));
  animation: crystalGlow 4s ease-in-out infinite;
}
.brand__crystal svg { width: 100%; height: 100%; }
@keyframes crystalGlow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(255, 20, 147, 0.5)); }
  50%      { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.7)); }
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__name b {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.18em;
  display: block;
}
.brand__r {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--ivory-soft);
  font-weight: 500;
}
.brand__sub {
  font-family: "Pinyon Script", "Trirong", cursive;
  font-size: 16px;
  color: var(--pink-soft);
  margin-top: 2px;
}

.brand--small .brand__crystal { width: 36px; height: 36px; }
.brand--small .brand__name b { font-size: 16px; }
.brand--small .brand__r { font-size: 11px; letter-spacing: 0.4em; }
.brand--small .brand__sub { font-size: 13px; }

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__item {
  position: relative;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: "Cinzel", "Sarabun", serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ivory-soft);
  position: relative;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.nav__link svg { width: 12px; height: 12px; opacity: 0.6; }
.nav__link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: transform var(--t-fast);
}
.nav__link:hover { color: var(--gold); }
.nav__link.is-active { color: var(--gold); }
.nav__link.is-active::after,
.nav__link:hover::after { transform: translateX(-50%) scaleX(1); }

.nav__drop {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  padding: 14px 12px 12px;
  border-radius: var(--r-md);
  background: rgba(13, 0, 26, 0.96);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-velvet);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast), visibility var(--t-fast), transform var(--t-fast);
}
.nav__drop--wide { min-width: 320px; }
.nav__item:hover .nav__drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__drop-title {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  padding: 0 6px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 8px;
}
.nav__drop a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--ivory-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__drop a small {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  opacity: 0.8;
}
.nav__drop a:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--ivory);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: "Cinzel", "Sarabun", serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  border-radius: var(--r-pill);
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(245, 240, 224, 0.04);
  color: var(--ivory);
  transition: all var(--t-fast);
  position: relative;
  overflow: hidden;
}
.btn:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.18);
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(245, 240, 224, 0.18);
}
.btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn--outline:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-bright);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
}

.btn--solid {
  background:
    linear-gradient(135deg, var(--violet-warm), var(--violet)),
    radial-gradient(circle at 20% 20%, rgba(255, 224, 160, 0.5), transparent 50%);
  background-blend-mode: screen;
  border: 1px solid var(--gold);
  color: var(--ivory);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.4),
    0 14px 30px rgba(75, 0, 130, 0.5),
    inset 0 1px 0 rgba(255, 227, 244, 0.25);
}
.btn--solid:hover {
  background: linear-gradient(135deg, var(--pink), var(--violet-warm));
  box-shadow:
    0 0 0 1px var(--gold),
    0 0 30px rgba(255, 20, 147, 0.55),
    0 14px 36px rgba(75, 0, 130, 0.6);
  color: var(--ivory);
  transform: translateY(-1px);
}

.btn--full { width: 100%; }

.burger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: rgba(245, 240, 224, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.35);
  position: relative;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: var(--gold);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.burger span::before { transform: translate(-50%, -7px); }
.burger span::after { transform: translate(-50%, 5px); }

/* ---------- 3. RIBBON ---------- */
.ribbon {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  padding: 8px 0;
  overflow: hidden;
}
.ribbon__inner {
  position: relative;
  overflow: hidden;
}
.ribbon__track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: ribbonFlow 38s linear infinite;
  font-size: 13px;
  color: var(--ivory-soft);
}
.ribbon__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ribbon__item b { color: var(--gold); font-weight: 700; }
.ribbon__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  align-self: center;
  opacity: 0.7;
}
@keyframes ribbonFlow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 4. PAGES & FADE ---------- */
.page {
  display: none;
  padding: 30px 0 80px;
}
.page.is-active { display: block; }

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.8s cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  padding: 60px 0 90px;
  overflow: hidden;
}

.hero__moon {
  position: absolute;
  top: -120px;
  right: 12%;
  width: 380px;
  height: 380px;
  z-index: 0;
  pointer-events: none;
}
.moon-orb {
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, #FFFAEC 0%, #F5E5C0 30%, #D4AF37 70%, #5C4818 100%);
  box-shadow:
    0 0 60px rgba(212, 175, 55, 0.3),
    inset -25px -25px 60px rgba(0, 0, 0, 0.4);
  opacity: 0.35;
}
.moon-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.18) 0%, transparent 65%);
  animation: moonHalo 8s ease-in-out infinite;
}
@keyframes moonHalo {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.08); opacity: 0.9; }
}

.hero__layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__copy { position: relative; }
.hero__copy h1 {
  margin-bottom: 22px;
}
.hero__copy h1 .cursive {
  font-size: 0.45em;
  display: block;
  margin-bottom: 10px;
}
.hero__lead {
  font-size: 17px;
  color: var(--ivory-soft);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 28px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero__meta {
  display: flex;
  gap: 22px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  padding-top: 22px;
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
}
.hero__meta-item .num {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.hero__meta-item .lab {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-mute);
  margin-top: 6px;
  font-family: "Cinzel", "Trirong", serif;
}

.hero__stage {
  position: relative;
  height: 540px;
}

.zodiac-wheel {
  position: absolute;
  top: -20px;
  right: -40px;
  width: 240px;
  height: 240px;
  opacity: 0.85;
  animation: zodiacSpin 60s linear infinite;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
}
@keyframes zodiacSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* tarot spread */
.tarot-spread {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 460px;
  height: 320px;
}
.tarot-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 150px;
  height: 240px;
  perspective: 800px;
}
.tarot-card.tc1 {
  transform: translate(-150%, 0) rotate(-12deg);
  animation: tcFloat 7s ease-in-out infinite;
}
.tarot-card.tc2 {
  transform: translate(-50%, 30px);
  animation: tcFloat 7s ease-in-out infinite -2.5s;
  z-index: 2;
}
.tarot-card.tc3 {
  transform: translate(50%, 0) rotate(12deg);
  animation: tcFloat 7s ease-in-out infinite -5s;
}
@keyframes tcFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}
.tc__inner {
  width: 100%;
  height: 100%;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--violet-deep), var(--night-deep));
  border: 2px solid var(--gold);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(212, 175, 55, 0.25),
    inset 0 1px 0 rgba(255, 224, 160, 0.18);
  overflow: hidden;
  position: relative;
}
.tc__face {
  position: absolute;
  inset: 0;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: var(--r-md);
  margin: 5px;
}
.tc__rune {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 4px;
}
.tc__art {
  flex: 1;
  width: 100%;
  margin: 6px 0;
  border-radius: var(--r-sm);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc__name {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  line-height: 1.1;
}
.tc__th {
  font-family: "Pinyon Script", "Trirong", cursive;
  font-size: 16px;
  color: var(--pink-soft);
  margin-top: 2px;
}

/* tarot art motifs */
.moon-art {
  background:
    radial-gradient(circle at 50% 35%, #FFFAEC 0%, #F5E5C0 18%, #D4AF37 30%, transparent 33%),
    radial-gradient(circle at 50% 90%, rgba(75,0,130,0.4) 0%, transparent 60%),
    linear-gradient(180deg, rgba(15,82,186,0.4), rgba(75,0,130,0.6));
}
.moon-art::before {
  content: "☽";
  font-size: 50px;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
  position: absolute;
}
.wheel-art {
  background:
    conic-gradient(from 0deg, var(--violet-warm), var(--gold), var(--pink), var(--sapphire), var(--violet-warm));
  border: 2px solid var(--gold);
  position: relative;
}
.wheel-art::before {
  content: "✦";
  font-size: 36px;
  color: var(--ivory);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 0 12px rgba(255, 227, 244, 1);
}
.wheel-art::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: radial-gradient(circle, rgba(75,0,130,0.4), transparent);
}
.sun-art {
  background:
    radial-gradient(circle at 50% 55%, #FFE9A0 0%, #F2D060 25%, #D4AF37 45%, transparent 50%),
    repeating-conic-gradient(from 0deg at 50% 55%, var(--gold) 0deg 8deg, transparent 8deg 16deg),
    linear-gradient(180deg, rgba(255,20,147,0.2), rgba(75,0,130,0.4));
}
.sun-art::before {
  content: "☉";
  font-size: 44px;
  color: var(--night);
  text-shadow: 0 0 12px rgba(212, 175, 55, 1);
  position: absolute;
}

/* crystal ball */
.crystal-ball {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 220px;
}
.cb__orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,227,244,0.85) 0%, var(--pink) 25%, var(--violet) 60%, var(--night-deep) 100%);
  box-shadow:
    0 0 40px rgba(255, 20, 147, 0.6),
    0 0 80px rgba(75, 0, 130, 0.5),
    inset -20px -25px 50px rgba(0, 0, 0, 0.4),
    inset 12px 16px 30px rgba(255, 227, 244, 0.4);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cbPulse 5s ease-in-out infinite;
}
@keyframes cbPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(255, 20, 147, 0.6), 0 0 80px rgba(75, 0, 130, 0.5), inset -20px -25px 50px rgba(0, 0, 0, 0.4), inset 12px 16px 30px rgba(255, 227, 244, 0.4); }
  50%      { box-shadow: 0 0 60px rgba(255, 20, 147, 0.85), 0 0 120px rgba(212, 175, 55, 0.4), inset -20px -25px 50px rgba(0, 0, 0, 0.4), inset 12px 16px 30px rgba(255, 227, 244, 0.55); }
}
.cb__shine {
  position: absolute;
  width: 30px;
  height: 18px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  filter: blur(6px);
  top: 30px;
  left: 35px;
}
.cb__inner {
  position: absolute;
  inset: 0;
}
.cb__symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(212, 175, 55, 1);
  animation: symFloat 4s ease-in-out infinite;
}
@keyframes symFloat {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  50%      { transform: translate(-50%, -54%) rotate(180deg); }
}
.cb__base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 36px;
  background:
    linear-gradient(180deg, var(--gold-deep) 0%, #6B5414 50%, var(--gold-deep) 100%);
  border-radius: 50% 50% 8px 8px / 30% 30% 8px 8px;
  border: 1px solid var(--gold);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.6),
    inset 0 2px 0 rgba(255, 224, 160, 0.5);
}

/* reaper mascot */
.reaper {
  position: absolute;
  bottom: 50px;
  left: -20px;
  width: 130px;
  height: 160px;
  z-index: 3;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5));
  animation: reaperFloat 5s ease-in-out infinite;
}
.reaper svg { width: 100%; height: 100%; }
@keyframes reaperFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-12px) rotate(3deg); }
}

/* hero chips */
.hero__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(13, 0, 26, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-family: "Cinzel", "Sarabun", serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ivory);
  z-index: 4;
  animation: chipFloat 6s ease-in-out infinite;
}
.hero__chip svg { width: 16px; height: 16px; flex-shrink: 0; }
.hero__chip.c1 { top: 5%; left: 10%; animation-delay: 0s; }
.hero__chip.c2 { top: 50%; right: -5%; animation-delay: -2s; }
.hero__chip.c3 { bottom: 8%; right: 35%; animation-delay: -4s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ---------- 6. TRUST ROW ---------- */
.trust-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: rgba(245, 240, 224, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.18);
  margin-top: -30px;
  position: relative;
  z-index: 5;
  backdrop-filter: blur(10px);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  border-right: 1px solid rgba(212, 175, 55, 0.12);
}
.trust-item:last-child { border-right: 0; }
.trust-ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-ic svg { width: 20px; height: 20px; }
.trust-item b {
  display: block;
  font-family: "Cinzel", "Trirong", serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.trust-item small {
  font-size: 11.5px;
  color: var(--ivory-mute);
}

/* ---------- 7. SECTION HEADS ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin: 50px 0 30px;
  flex-wrap: wrap;
}
.section-head__intro { max-width: 720px; }
.section-head__intro h2 { margin-bottom: 10px; }
.section-head__intro p {
  font-size: 14.5px;
  color: var(--ivory-soft);
  margin: 0;
}
.section-head__cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- 8. WHY GRID ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-card {
  padding: 26px 22px 22px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(160deg, rgba(75, 0, 130, 0.5), rgba(13, 0, 26, 0.85));
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.why-card::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: calc(var(--r-lg) - 4px);
  border: 1px solid rgba(212, 175, 55, 0.18);
  pointer-events: none;
}
.why-card::after {
  content: "✦";
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--gold);
  opacity: 0.4;
  font-size: 12px;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 22px 50px rgba(75, 0, 130, 0.6), 0 0 30px rgba(212, 175, 55, 0.2);
}
.why-glyph {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.why-glyph svg { width: 36px; height: 36px; }
.why-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ivory);
}
.why-card p {
  font-size: 13.5px;
  color: var(--ivory-soft);
  line-height: 1.6;
  margin-bottom: 14px;
}
.why-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-family: "Cinzel", "Trirong", serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
}

/* ---------- 9. TAROT 3-CARD WIDGET ---------- */
.tarot-widget {
  padding: 40px 30px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(75, 0, 130, 0.4), rgba(13, 0, 26, 0.85));
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-card);
  position: relative;
}
.tarot-widget::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--r-xl) - 6px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  pointer-events: none;
}

.tarot-deck {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.deck-card {
  width: 180px;
  height: 280px;
  perspective: 1000px;
  background: transparent;
  padding: 0;
  border: 0;
  position: relative;
  cursor: pointer;
}
.deck-card.center {
  transform: translateY(-12px);
}
.deck-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 1.2s cubic-bezier(.68,-0.4,.32,1.4);
  transform-style: preserve-3d;
}
.deck-card.is-flipped .deck-card__inner {
  transform: rotateY(180deg);
}

.deck-card__back,
.deck-card__front {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  text-align: center;
  border: 2px solid var(--gold);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 224, 160, 0.2);
  overflow: hidden;
}
.deck-card__back {
  background:
    radial-gradient(circle at 50% 50%, var(--violet-warm), var(--violet-deep) 60%, var(--night-deep)),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(212,175,55,0.04) 10px 11px);
}
.deck-card__back::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--r-lg) - 6px);
  border: 1px solid rgba(212, 175, 55, 0.5);
  pointer-events: none;
}
.deck-emblem {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.5));
  animation: deckEmblem 5s ease-in-out infinite;
}
.deck-emblem svg { width: 100%; height: 100%; }
@keyframes deckEmblem {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(180deg); }
}
.deck-card__label {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
}
.deck-card__front {
  transform: rotateY(180deg);
  background: linear-gradient(165deg, var(--violet-deep) 0%, var(--night-deep) 100%);
  padding: 16px 12px;
}
.deck-card__rune {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.deck-card__art {
  width: 100%;
  flex: 1;
  margin: 8px 0;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
}
.deck-card__title {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  line-height: 1.1;
  margin: 4px 0 0;
}
.deck-card__th {
  font-family: "Pinyon Script", "Trirong", cursive;
  font-size: 18px;
  color: var(--pink-soft);
  line-height: 1;
  margin: 2px 0 4px;
}
.deck-card__msg {
  font-size: 11px;
  color: var(--ivory-soft);
  line-height: 1.4;
  margin-top: 4px;
}

.deck-card:not(.is-flipped):hover .deck-card__back {
  transform: scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 20, 147, 0.4), inset 0 1px 0 rgba(255, 224, 160, 0.3);
}

.tarot-result {
  border-radius: var(--r-md);
  background: rgba(245, 240, 224, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 20px 24px;
  min-height: 90px;
  margin-bottom: 18px;
}
.tarot-result__placeholder {
  text-align: center;
}
.tarot-result__placeholder p {
  font-size: 13px;
  color: var(--ivory-mute);
  margin: 0;
}
.tarot-result h4 {
  color: var(--gold);
  margin-bottom: 6px;
}
.tarot-result__game {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  align-items: center;
  gap: 14px;
}
.tarot-result__game img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--gold);
}
.tarot-result__game .info b {
  display: block;
  color: var(--gold);
  font-family: "Cinzel", "Trirong", serif;
  font-size: 14px;
}
.tarot-result__game .info small {
  font-size: 12px;
  color: var(--ivory-soft);
}

.tarot-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 10. MOON BONUS ---------- */
.moon-bonus {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 0% 50%, rgba(212, 175, 55, 0.18), transparent 50%),
    linear-gradient(135deg, rgba(75, 0, 130, 0.3), rgba(13, 0, 26, 0.85));
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-card);
}

.moon-bonus__visual {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mb-orb {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #FFFAEC 0%, #F5E5C0 25%, #D4AF37 60%, #8B6F1A 100%);
  box-shadow:
    0 0 60px rgba(212, 175, 55, 0.3),
    inset -30px -30px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.mb-shadow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--night-deep);
  /* clip-path is set by JS based on phase */
  clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
  transition: clip-path var(--t-soft);
  opacity: 0.92;
}
.mb-craters .cr {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.3);
}
.mb-craters .c1 { width: 28px; height: 28px; top: 24%; left: 26%; }
.mb-craters .c2 { width: 18px; height: 18px; top: 55%; left: 38%; }
.mb-craters .c3 { width: 22px; height: 22px; top: 38%; left: 58%; }
.mb-craters .c4 { width: 14px; height: 14px; top: 70%; left: 60%; }
.mb-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 60%);
  animation: moonHalo 6s ease-in-out infinite;
  z-index: -1;
}

.moon-bonus__copy h2 { margin-bottom: 12px; }
.moon-info {
  margin: 18px 0 22px;
  border-radius: var(--r-md);
  background: rgba(245, 240, 224, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 6px 16px;
}
.moon-info__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}
.moon-info__row:last-child { border-bottom: 0; }
.moon-info__row span {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ivory-mute);
  text-transform: uppercase;
}
.moon-info__row b {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 15px;
  color: var(--ivory);
  font-weight: 600;
}
.moon-info__row.big b {
  font-size: 22px;
  font-weight: 800;
}

.moon-cycles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cycle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(245, 240, 224, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-family: "Cinzel", "Sarabun", serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ivory-soft);
  white-space: nowrap;
}
.cycle-pill b { font-weight: 600; color: var(--ivory); }
.cycle-pill i {
  font-style: normal;
  font-family: "Cinzel", "Trirong", serif;
  color: var(--gold);
  font-weight: 700;
}
.cycle-pill.highlight {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold);
  color: var(--gold-bright);
}
.cycle-pill.highlight i { color: var(--gold-bright); }
.cycle-pill.rare {
  background: rgba(255, 20, 147, 0.18);
  border-color: var(--pink);
  color: #ffd0e6;
}
.cycle-pill.rare i { color: var(--pink); }

/* ---------- 11. ZODIAC GRID ---------- */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.zodiac-card {
  padding: 18px 12px;
  border-radius: var(--r-md);
  background: rgba(245, 240, 224, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast);
  position: relative;
  overflow: hidden;
}
.zodiac-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.zodiac-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
}
.zodiac-card:hover::before { opacity: 1; }
.zodiac-card.is-active {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.25), rgba(75, 0, 130, 0.4));
  box-shadow: 0 0 0 1px var(--gold), 0 14px 30px rgba(212, 175, 55, 0.2);
}
.zodiac-card .zsym-big {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 36px;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}
.zodiac-card h4 {
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--ivory);
}
.zodiac-card .zspan {
  font-size: 11px;
  color: var(--ivory-mute);
  font-family: "Cinzel", "Trirong", serif;
  letter-spacing: 0.04em;
}

.zodiac-result {
  margin-top: 22px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(75, 0, 130, 0.4), rgba(13, 0, 26, 0.85));
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.18);
}
.zr-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 18px;
}
.zr-sym {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", "Trirong", serif;
  font-size: 42px;
  color: var(--gold);
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.5));
}
.zr-head h3 { margin-bottom: 4px; color: var(--gold); }
.zr-head span {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ivory-mute);
}
.zr-head p {
  font-size: 13.5px;
  margin: 6px 0 0;
  color: var(--ivory-soft);
}

.zr-games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* ---------- 12. GAME GRID & CARDS ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.game-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(13, 0, 26, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  cursor: pointer;
  transition: transform var(--t-fast), border-color var(--t-fast);
  box-shadow: var(--shadow-card);
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(75, 0, 130, 0.6), 0 0 24px rgba(212, 175, 55, 0.25);
}
.game-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.game-card .body {
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, rgba(13, 0, 26, 0.4), rgba(13, 0, 26, 0.95));
}
.game-card h4 {
  font-size: 13px;
  font-family: "Cinzel", "Sarabun", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: var(--ivory);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.game-card .meta span {
  font-family: "Cinzel", "Trirong", serif;
  letter-spacing: 0.08em;
  color: var(--ivory-mute);
}
.game-card .meta b {
  font-family: "Cinzel", "Trirong", serif;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.ribbon-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(13, 0, 26, 0.85);
  border: 1px solid var(--gold);
  font-family: "Cinzel", "Trirong", serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  z-index: 2;
}
.game-card.hot .ribbon-tag { color: var(--pink-soft); border-color: var(--pink); }
.game-card.new .ribbon-tag { color: #98D8FF; border-color: var(--sapphire); }
.game-card.jackpot .ribbon-tag { background: var(--gold); color: var(--night); }
.game-card .zsym {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(13, 0, 26, 0.85);
  border: 1px solid var(--gold);
  font-family: "Cinzel", "Trirong", serif;
  font-size: 14px;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.filter-pill {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(245, 240, 224, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-family: "Cinzel", "Trirong", serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ivory-soft);
  cursor: pointer;
  transition: all var(--t-fast);
}
.filter-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.filter-pill.is-on {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.more-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* ---------- 13. MAJOR ARCANA ---------- */
.progress-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--gold);
  font-family: "Cinzel", "Trirong", serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ivory);
}
.progress-stat b {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-bright);
}
.progress-stat small {
  font-size: 11px;
  color: var(--ivory-mute);
  letter-spacing: 0.12em;
}

.arcana-collection {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 10px;
}
.arc-card {
  aspect-ratio: 2/3;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, var(--violet-deep), var(--night-deep));
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast);
}
.arc-card::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: calc(var(--r-sm) - 2px);
  border: 1px solid rgba(212, 175, 55, 0.18);
  pointer-events: none;
}
.arc-card .arc-rune {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 4px;
}
.arc-card .arc-sym {
  font-size: 22px;
  color: var(--ivory-soft);
  margin: 2px 0;
}
.arc-card .arc-name {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  line-height: 1.05;
}
.arc-card .arc-th {
  font-family: "Pinyon Script", "Trirong", cursive;
  font-size: 10px;
  color: var(--pink-soft);
  margin-top: 2px;
  line-height: 1;
}
.arc-card.locked {
  opacity: 0.32;
  filter: saturate(0.4);
}
.arc-card.locked::after {
  content: "🔒";
  position: absolute;
  font-size: 18px;
  opacity: 0.6;
  filter: grayscale(1);
}
.arc-card.locked .arc-rune,
.arc-card.locked .arc-sym,
.arc-card.locked .arc-name,
.arc-card.locked .arc-th { visibility: hidden; }
.arc-card.unlocked {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}
.arc-card.rare.unlocked {
  border-color: var(--pink);
  box-shadow: 0 0 18px rgba(255, 20, 147, 0.4);
}
.arc-card:hover {
  transform: translateY(-3px) scale(1.05);
  z-index: 2;
}

/* ---------- 14. LIVE TABLES ---------- */
.live-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.live-card {
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(13, 0, 26, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-fast);
}
.live-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.live-card__media {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.live-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(1.1);
}
.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--night);
  font-family: "Cinzel", "Trirong", serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
}
.live-card__media .seats {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(13, 0, 26, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-family: "Cinzel", "Trirong", serif;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.live-card .body {
  padding: 14px 16px;
}
.live-card h4 {
  margin-bottom: 6px;
  font-size: 14px;
}
.live-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ivory-soft);
}
.live-card .meta b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-family: "Cinzel", "Trirong", serif;
}
.dot-on {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4FE388;
  box-shadow: 0 0 6px rgba(79, 227, 136, 0.8);
  display: inline-block;
}

/* ---------- 15. LOTTERY ---------- */
.lottery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lot-card {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.35), rgba(13, 0, 26, 0.85));
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-fast);
}
.lot-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.lot-flag {
  width: 56px;
  height: 70px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", "Trirong", serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--ivory);
  letter-spacing: 0.06em;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.lot-body { flex: 1; min-width: 0; }
.lot-body h4 { font-size: 15px; margin-bottom: 4px; }
.lot-tag {
  font-size: 11.5px;
  color: var(--ivory-mute);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.lot-prize {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 13px;
  color: var(--ivory-soft);
}
.lot-prize b {
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
}
.lot-prize span {
  color: var(--ivory-mute);
  font-size: 11px;
}
.lot-cd {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.lot-cd span {
  flex: 1;
  padding: 6px 4px;
  border-radius: var(--r-xs);
  background: rgba(245, 240, 224, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.18);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lot-cd b {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 16px;
  color: var(--gold);
  font-weight: 700;
}
.lot-cd i {
  font-style: normal;
  font-family: "Cinzel", "Trirong", serif;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ivory-mute);
  text-transform: uppercase;
}

.lucky-gen {
  margin-top: 28px;
  padding: 26px 30px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 20, 147, 0.18), transparent 50%),
    linear-gradient(135deg, rgba(75, 0, 130, 0.4), rgba(13, 0, 26, 0.85));
  border: 1.5px solid var(--gold);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 30px;
  align-items: center;
}
.lg-left h3 { color: var(--gold); margin-bottom: 8px; }
.lg-left p { font-size: 13.5px; margin: 0; }
.lg-right { display: flex; flex-direction: column; gap: 12px; }
.lg-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lg-row span {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 12px;
  color: var(--ivory-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  width: 80px;
  flex-shrink: 0;
}
.lg-balls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.lg-balls i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--violet-warm), var(--violet-deep));
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", "Trirong", serif;
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  color: var(--gold-bright);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 224, 160, 0.2);
}
.lg-balls i.spin {
  animation: ballSpin 0.4s ease;
}
@keyframes ballSpin {
  0% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.15); }
  100% { transform: rotateY(360deg) scale(1); }
}

/* ---------- 16. HOROSCOPE MARQUEE ---------- */
.horo-marquee {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(245, 240, 224, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 4px 0;
}
.horo-track {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  animation: horoFlow 70s linear infinite;
}
.horo-card {
  flex: 0 0 280px;
  padding: 18px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(75, 0, 130, 0.5), rgba(13, 0, 26, 0.85));
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: var(--shadow-card);
}
.horo-card .h-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}
.horo-card .h-sym {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 28px;
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}
.horo-card h4 { margin: 0; font-size: 14px; color: var(--ivory); }
.horo-card .h-week {
  font-size: 11px;
  color: var(--ivory-mute);
  letter-spacing: 0.04em;
}
.horo-card .h-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  margin-bottom: 6px;
  color: var(--ivory-soft);
}
.horo-card .h-row b { color: var(--gold); font-family: "Cinzel", "Trirong", serif; }
.horo-card .h-quote {
  font-family: "Pinyon Script", "Trirong", cursive;
  font-size: 17px;
  color: var(--pink-soft);
  margin-top: 10px;
  line-height: 1.3;
}
@keyframes horoFlow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 17. LIVE WITHDRAWAL FEED ---------- */
.feed-wrap {
  border-radius: var(--r-lg);
  background: rgba(245, 240, 224, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 18px;
  max-height: 380px;
  overflow: hidden;
  position: relative;
}
.feed-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(13, 0, 26, 0.95));
  pointer-events: none;
}
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feed-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: rgba(245, 240, 224, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.12);
  font-size: 13px;
  transition: background var(--t-fast);
}
.feed-row.fresh {
  background: rgba(255, 20, 147, 0.15);
  border-color: rgba(255, 20, 147, 0.4);
  animation: feedFresh 1.6s ease;
}
@keyframes feedFresh {
  0% { background: rgba(212, 175, 55, 0.4); transform: translateX(-12px); }
  100% { background: rgba(255, 20, 147, 0.15); transform: translateX(0); }
}
.feed-row .fzy {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", "Trirong", serif;
  font-size: 14px;
  color: var(--gold);
  flex-shrink: 0;
}
.feed-row .fname {
  flex: 1;
  font-family: "Cinzel", "Sarabun", serif;
  color: var(--ivory);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.feed-row .famt {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 14px;
  color: var(--gold-bright);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.feed-row .ftime {
  font-size: 11px;
  color: var(--ivory-mute);
  font-family: "Cinzel", "Trirong", serif;
}

/* ---------- 18. PROVIDERS WALL ---------- */
.provider-wall {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.pw-cell {
  padding: 14px 8px;
  border-radius: var(--r-sm);
  background: rgba(245, 240, 224, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.18);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all var(--t-fast);
}
.pw-cell:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.pw-cell img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.2));
}
.pw-cell span {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 11px;
  color: var(--ivory-soft);
  letter-spacing: 0.08em;
}

/* ---------- 19. BANK WALL (legacy — used inside /bank page) ---------- */
.bank-wall {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.bank-cell {
  padding: 16px 10px;
  border-radius: var(--r-sm);
  background: rgba(245, 240, 224, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all var(--t-fast);
}
.bank-cell:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.bank-cell .badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", "Trirong", serif;
  font-weight: 700;
  font-size: 11px;
  color: var(--ivory);
  letter-spacing: 0.04em;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}
.bank-cell .name {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 12px;
  color: var(--ivory);
  font-weight: 600;
}
.bank-cell .sub {
  font-size: 10.5px;
  color: var(--ivory-mute);
}

/* ---------- 19b. 12-ZODIAC HONEYCOMB HEX BANK ---------- */
.section-head--center {
  justify-content: center;
  text-align: center;
}
.section-head--center .section-head__intro {
  margin-inline: auto;
}
.hive-h2 {
  font-family: "Cinzel", "Trirong", serif;
  letter-spacing: 0.02em;
}
.hive-h2 i {
  font-style: italic;
  font-weight: 700;
}

.hive-section {
  position: relative;
  padding: 56px 24px 44px;
  margin-top: 8px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 20, 147, 0.18), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(75, 0, 130, 0.55), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(15, 82, 186, 0.32), transparent 60%),
    linear-gradient(160deg, rgba(13, 0, 26, 0.85), rgba(26, 0, 51, 0.95) 50%, rgba(13, 0, 26, 0.95));
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 224, 160, 0.1),
    0 0 0 1px rgba(212, 175, 55, 0.16);
  overflow: hidden;
}
.hive-section::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--r-xl) - 6px);
  border: 1px solid rgba(212, 175, 55, 0.18);
  pointer-events: none;
  z-index: 1;
}
.hive-section::after {
  content: "✦";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 12px;
  opacity: 0.6;
  z-index: 2;
}

/* twinkling stars layer */
.hive-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hive-stars .s {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #FFE3F4;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255, 227, 244, 0.7);
  animation: twinkle var(--d, 3s) ease-in-out infinite;
}
.hive-stars .s.gold {
  background: var(--gold);
  width: 3px;
  height: 3px;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.9);
}

/* slow rotating zodiac wheel behind hexes */
.hive-wheel-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(440px, 64%, 760px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
  animation: zodiacSpin 110s linear infinite;
  filter: drop-shadow(0 0 28px rgba(212, 175, 55, 0.4));
}
.hive-wheel-bg svg {
  width: 100%;
  height: 100%;
}

/* the honeycomb */
.hive {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hive-row {
  display: flex;
  gap: 16px;
  margin-top: -22px;
}
.hive-row:first-child {
  margin-top: 0;
}
.hive-row--offset {
  transform: translateX(73px);
}

/* a single hex card (flip-card root) */
.hex {
  width: 130px;
  height: 130px;
  position: relative;
  perspective: 1000px;
  cursor: pointer;
  transition: filter var(--t-fast);
}
.hex:hover {
  filter:
    drop-shadow(0 12px 22px rgba(75, 0, 130, 0.55))
    drop-shadow(0 0 18px rgba(212, 175, 55, 0.45));
  z-index: 5;
}

.hex-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.85s cubic-bezier(.68, -0.4, .32, 1.4);
  transform-style: preserve-3d;
}
.hex.is-flipped .hex-inner {
  transform: rotateY(180deg);
}
@media (hover: hover) {
  .hex:hover .hex-inner {
    transform: rotateY(180deg);
  }
}

/* hex face — gold filigree mystic border via 2-layer clip-path */
.hex-face {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F2D060 0%, #FFE9A0 25%, #D4AF37 55%, #A8841C 100%);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.hex-face::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  background: linear-gradient(160deg, #1A0033 0%, #2C0050 55%, #4B0082 100%);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  z-index: 1;
}
.hex-face::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.55), rgba(255, 20, 147, 0.18) 50%, rgba(15, 82, 186, 0.45));
  mix-blend-mode: screen;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  z-index: 2;
  pointer-events: none;
}

/* back face: warmer gold-pink frame, deeper purple bg */
.hex-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #D4AF37, #FF1493 50%, #4B0082);
}
.hex-back::before {
  background: linear-gradient(160deg, #4B0082 0%, #2C0050 50%, #1A0033 100%);
}
.hex-back::after {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.45), rgba(212, 175, 55, 0.25) 50%, rgba(75, 0, 130, 0.6));
}

.hex-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  text-align: center;
  gap: 1px;
}

/* corner zodiac glyph on front */
.hex-zglyph {
  position: absolute;
  top: 18%;
  right: 18%;
  font-family: "Cinzel", "Trirong", serif;
  font-size: 12px;
  color: var(--gold);
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.7));
  z-index: 4;
  line-height: 1;
}

/* bank logo with duotone-brand violet/pink overlay (mix-blend-mode: screen) */
.hex-logo {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.hex-logo img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  filter: brightness(1.05) contrast(1.05) saturate(0.85);
}
.hex-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 20, 147, 0.35), transparent 60%),
    linear-gradient(135deg, rgba(75, 0, 130, 0.7), rgba(15, 82, 186, 0.35));
  mix-blend-mode: screen;
  pointer-events: none;
}

.hex-bank {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  line-height: 1.1;
  margin-top: 2px;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.5));
}
.hex-bank-th {
  font-family: "Sarabun", "Trirong", sans-serif;
  font-size: 9.5px;
  color: var(--ivory-soft);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* back face content */
.hex-zsym-big {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 38px;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.7));
}
.hex-zname-big {
  font-family: "Pinyon Script", "Trirong", cursive;
  font-size: 18px;
  color: var(--pink-soft);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(255, 20, 147, 0.4);
}
.hex-luck-label {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--ivory-mute);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.hex-luck-num {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
  letter-spacing: 0.04em;
}

/* CTA below the grid */
.hive-cta {
  position: relative;
  z-index: 2;
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.hive-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Cinzel", "Sarabun", serif;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ivory-soft);
}

/* ---------- 20. FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  padding: 16px 22px;
  border-radius: var(--r-md);
  background: rgba(245, 240, 224, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: border-color var(--t-fast);
}
.faq-item[open] {
  border-color: var(--gold);
  background: rgba(245, 240, 224, 0.06);
}
.faq-item summary {
  font-family: "Cinzel", "Sarabun", serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ivory);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .ic {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  transition: transform var(--t-fast);
}
.faq-item[open] .ic { transform: rotate(45deg); }
.faq-item div {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(212, 175, 55, 0.22);
  color: var(--ivory-soft);
  font-size: 13.5px;
  line-height: 1.7;
}
.faq-item div b { color: var(--gold); font-weight: 600; }

/* ---------- 21. PAGE-SPECIFIC ---------- */
.page-head { padding: 20px 0 30px; text-align: center; }
.page-head h1 { margin: 6px 0 12px; }
.page-head p { color: var(--ivory-soft); max-width: 640px; margin: 0 auto; }

.page-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
}
.page-card {
  padding: 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(75, 0, 130, 0.4), rgba(13, 0, 26, 0.85));
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-card.big {
  grid-row: span 2;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 20, 147, 0.2), transparent 50%),
    linear-gradient(160deg, rgba(75, 0, 130, 0.6), rgba(13, 0, 26, 0.9));
  border-color: var(--gold);
}
.page-card .btn { margin-top: auto; align-self: flex-start; }

.provider-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

/* VIP grid */
.vip-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
.vip-card {
  padding: 22px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(75, 0, 130, 0.5), rgba(13, 0, 26, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.vip-card.high {
  background: linear-gradient(180deg, rgba(255, 20, 147, 0.18), rgba(75, 0, 130, 0.6), rgba(13, 0, 26, 0.95));
  border-color: var(--gold);
}
.vip-sym {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.18);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", "Trirong", serif;
  font-size: 28px;
  color: var(--gold-bright);
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}
.vip-card h3 { font-size: 16px; margin-bottom: 4px; color: var(--gold); }
.vip-card span {
  display: block;
  font-family: "Pinyon Script", "Trirong", cursive;
  font-size: 16px;
  color: var(--pink-soft);
  margin-bottom: 14px;
}
.vip-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.vip-card ul li {
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.18);
  color: var(--ivory-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
.vip-card ul li::before {
  content: "✦";
  color: var(--gold);
  font-size: 10px;
  flex-shrink: 0;
}
.vip-card ul li:last-child { border-bottom: 0; }

/* Bank flow */
.bank-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bank-step {
  padding: 22px;
  border-radius: var(--r-lg);
  background: rgba(245, 240, 224, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  text-align: center;
}
.bf-num {
  font-family: "Cinzel", "Trirong", serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  margin-bottom: 10px;
}
.bank-step h3 { font-size: 16px; margin-bottom: 6px; }
.bank-step p { font-size: 13px; margin: 0; }

/* Help cards */
.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.help-card {
  padding: 22px;
  border-radius: var(--r-lg);
  background: rgba(245, 240, 224, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  text-align: center;
}
.help-ic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245, 240, 224, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.help-ic svg { width: 26px; height: 26px; }
.help-card h3 { font-size: 16px; margin-bottom: 6px; }
.help-card p { font-size: 13px; margin-bottom: 12px; min-height: 40px; }

/* ---------- 22. FOOTER ---------- */
.footer {
  margin-top: 60px;
  padding: 60px 0 30px;
  background:
    radial-gradient(circle at 0% 0%, rgba(75, 0, 130, 0.5), transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(255, 20, 147, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(13, 0, 26, 0.7), var(--night-deep));
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  position: relative;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h5 {
  font-family: "Cinzel", "Trirong", serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer li { margin-bottom: 8px; }
.footer a {
  color: var(--ivory-soft);
  font-size: 13px;
  transition: color var(--t-fast);
}
.footer a:hover { color: var(--gold); }

.footer__brand p { font-size: 13px; max-width: 360px; color: var(--ivory-soft); margin: 14px 0 18px; }
.footer__compliance { display: flex; flex-wrap: wrap; gap: 6px; }

.footer__bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--ivory-mute);
}
.footer__bottom .cursive {
  display: inline;
  font-size: 18px;
  margin: 0;
}

/* ---------- 23. FLOATING ---------- */
.float-line {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.float-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.95), rgba(13, 0, 26, 0.95));
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold);
  box-shadow: 0 14px 30px rgba(75, 0, 130, 0.6), 0 0 24px rgba(212, 175, 55, 0.18);
  font-family: "Cinzel", "Sarabun", serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ivory);
}
.float-back {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 0, 26, 0.85);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(75, 0, 130, 0.5);
}
.float-back svg { width: 18px; height: 18px; }
.float-back.visible {
  opacity: 1;
  pointer-events: auto;
}
.float-back:hover {
  background: var(--gold);
  color: var(--night);
}

/* ---------- 24. MODAL ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 0, 26, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-mask.is-on { display: flex; }
.modal {
  width: 420px;
  max-width: 100%;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--violet-deep), var(--night-deep));
  border: 1.5px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(212, 175, 55, 0.2);
  padding: 30px 28px;
  position: relative;
}
.modal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--r-lg) - 6px);
  border: 1px solid rgba(212, 175, 55, 0.18);
  pointer-events: none;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(245, 240, 224, 0.06);
  color: var(--ivory);
  font-size: 22px;
  line-height: 1;
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.modal__close:hover { background: var(--pink); border-color: var(--pink); }
.modal__head { text-align: center; margin-bottom: 20px; }
.modal__head h3 { margin-bottom: 14px; }
.modal__tabs {
  display: inline-flex;
  border-radius: var(--r-pill);
  background: rgba(245, 240, 224, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 4px;
}
.modal__tab {
  padding: 7px 16px;
  font-family: "Cinzel", "Trirong", serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  border-radius: var(--r-pill);
  color: var(--ivory-soft);
}
.modal__tab.is-on {
  background: var(--gold);
  color: var(--night);
}
.modal__form { display: flex; flex-direction: column; gap: 14px; }
.modal__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "Cinzel", "Trirong", serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ivory-mute);
  text-transform: uppercase;
}
.modal__form input,
.modal__form select {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(245, 240, 224, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--ivory);
  font-family: "Sarabun", "Trirong", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
  transition: border-color var(--t-fast);
}
.modal__form input:focus,
.modal__form select:focus {
  border-color: var(--gold);
}
.modal__form select option {
  background: var(--night-deep);
  color: var(--ivory);
}
.modal__foot {
  text-align: center;
  font-size: 12px;
  color: var(--ivory-mute);
  margin-top: 8px;
}
.modal__foot a { color: var(--gold); }

/* ---------- 25. RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .topbar.is-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(13, 0, 26, 0.98);
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    padding: 14px 18px;
  }
  .topbar.is-open .nav__item { width: 100%; }
  .topbar.is-open .nav__drop {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 4px 8px 8px;
  }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav-actions { display: none; }
  .topbar.is-open .nav-actions { display: flex; padding: 10px 18px 18px; }

  .hero__layout { grid-template-columns: 1fr; gap: 30px; }
  .hero__stage { height: 460px; }
  .zodiac-wheel { width: 180px; height: 180px; right: 0; top: 0; }
  .reaper { width: 100px; left: 0; }

  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(212, 175, 55, 0.12); padding-bottom: 12px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .live-grid { grid-template-columns: repeat(2, 1fr); }
  .lottery-grid { grid-template-columns: repeat(2, 1fr); }
  .lucky-gen { grid-template-columns: 1fr; }
  .arcana-collection { grid-template-columns: repeat(8, 1fr); }
  .moon-bonus { grid-template-columns: 1fr; }
  .moon-bonus__visual { height: 240px; }
  .mb-orb { width: 180px; height: 180px; }
  .zodiac-grid { grid-template-columns: repeat(4, 1fr); }
  .zr-games { grid-template-columns: repeat(2, 1fr); }
  .vip-grid { grid-template-columns: repeat(3, 1fr); }
  .provider-wall { grid-template-columns: repeat(4, 1fr); }
  .bank-wall { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .bank-flow, .help-grid, .page-grid { grid-template-columns: repeat(2, 1fr); }
  .page-card.big { grid-row: span 1; }

  .hex { width: 110px; height: 110px; }
  .hive-row { gap: 12px; margin-top: -18px; }
  .hive-row--offset { transform: translateX(61px); }
  .hex-logo { width: 42px; height: 42px; }
  .hex-bank { font-size: 10px; letter-spacing: 0.12em; }
  .hex-bank-th { font-size: 9px; }
  .hex-zsym-big { font-size: 32px; }
  .hex-zname-big { font-size: 15px; }
  .hex-luck-num { font-size: 19px; }
  .hex-zglyph { font-size: 11px; }
  .hive-section { padding: 44px 16px 36px; }
}

@media (max-width: 720px) {
  .hero { padding: 30px 0 50px; }
  h1 { font-size: clamp(30px, 8vw, 44px); }
  .hero__stage { height: 400px; }
  .tarot-spread { width: 100%; }
  .tarot-card { width: 100px; height: 160px; }
  .deck-card { width: 130px; height: 200px; }
  .deck-emblem { width: 64px; height: 64px; margin-bottom: 8px; }

  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .live-grid, .lottery-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .arcana-collection { grid-template-columns: repeat(6, 1fr); }
  .zodiac-grid { grid-template-columns: repeat(3, 1fr); }
  .zr-games { grid-template-columns: 1fr; }
  .vip-grid { grid-template-columns: 1fr; }
  .provider-wall { grid-template-columns: repeat(3, 1fr); }
  .bank-wall { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .bank-flow, .help-grid, .page-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .feed-row { font-size: 12px; gap: 10px; padding: 8px 12px; }
  .feed-row .ftime { display: none; }
  .lg-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .lg-row span { width: auto; }

  .hex { width: 88px; height: 88px; }
  .hive-row { gap: 8px; margin-top: -14px; }
  .hive-row--offset { transform: translateX(48px); }
  .hex-logo { width: 32px; height: 32px; margin-bottom: 2px; }
  .hex-bank { font-size: 8.5px; letter-spacing: 0.08em; }
  .hex-bank-th { font-size: 8px; }
  .hex-zsym-big { font-size: 24px; margin-bottom: 2px; }
  .hex-zname-big { font-size: 12px; margin-bottom: 4px; }
  .hex-luck-label { font-size: 7px; letter-spacing: 0.12em; }
  .hex-luck-num { font-size: 16px; }
  .hex-zglyph { font-size: 9px; top: 14%; right: 14%; }
  .hex-content { padding: 10px 8px; }
  .hive-section { padding: 30px 8px 28px; }
  .hive-cta { gap: 12px; margin-top: 24px; }
  .hive-note { font-size: 11px; text-align: center; }
}
