/* =============================================================
   LSM245 — Royal Crimson Lion · Imperial Chinese Classic
   Palette: maroon → blood red + gold leaf + ivory + jade
   Hard borders, ornamental gold filigree, drop shadows. NO glass.
   ============================================================= */

/* ----- TOKENS ----- */
:root {
  --bg-0: #0a0204;
  --bg-1: #1a0508;
  --bg-2: #25060c;
  --bg-3: #3b0a0f;
  --bg-4: #4a1219;
  --bg-paper: #f8f0e3;

  --crim-1: #c8102e;
  --crim-2: #a50b25;
  --crim-3: #8b0000;
  --crim-4: #5c0011;

  --gold-1: #f5d97a;
  --gold-2: #d4af37;
  --gold-3: #b8860b;
  --gold-4: #8b6914;

  --ivory: #f8f0e3;
  --ivory-2: #e8dcc1;
  --jade: #00674f;
  --jade-2: #008e6a;
  --ink: #1a0508;

  --line-gold: rgba(212, 175, 55, 0.45);
  --line-gold-soft: rgba(212, 175, 55, 0.18);
  --line-crim: rgba(200, 16, 46, 0.35);

  --text: #f1e6d3;
  --text-2: #c4b598;
  --text-3: #8a7a5e;

  --shadow-deep: 0 12px 36px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.85);
  --shadow-mid: 0 6px 18px rgba(0, 0, 0, 0.55);
  --inset-gold: inset 0 0 0 1px rgba(212, 175, 55, 0.55);

  --aside-w: 232px;
}

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

html { scroll-behavior: smooth; background: var(--bg-0); }

body {
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(200, 16, 46, 0.18), transparent 65%),
    radial-gradient(900px 600px at -8% 38%, rgba(60, 0, 6, 0.55), transparent 65%),
    repeating-linear-gradient(
      45deg,
      rgba(212, 175, 55, 0.012) 0 2px,
      transparent 2px 14px
    ),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-1) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Sarabun', 'IBM Plex Sans Thai', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.62;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

/* damask pattern overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.025) 0 1px, transparent 1px),
    radial-gradient(circle at 25% 75%, rgba(212, 175, 55, 0.018) 0 1px, transparent 1px);
  background-size: 32px 32px, 64px 64px;
  background-position: 0 0, 16px 16px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

a { color: var(--gold-2); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--gold-1); }

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

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, h5 {
  font-family: 'Noto Serif Thai', 'Cinzel', 'Trirong', serif;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.005em;
  color: var(--ivory);
}

h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
h4 { font-size: 15px; font-weight: 600; }

.gold-text {
  background: linear-gradient(180deg, #ffe89a 0%, #d4af37 35%, #b8860b 70%, #8b6914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Cinzel', 'Noto Serif Thai', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ivory-text { color: var(--ivory); }
.dim { color: var(--text-2); }
.dim-2 { color: var(--text-3); }
.cinzel { font-family: 'Cinzel', 'Noto Serif Thai', serif; letter-spacing: 0.04em; }
.serif { font-family: 'Noto Serif Thai', 'Trirong', serif; }
.upper { text-transform: uppercase; letter-spacing: 0.06em; }
.right { text-align: right; }
.center { text-align: center; }

/* Chinese seal-style */
.han-seal {
  display: inline-block;
  font-family: 'Noto Serif Thai', 'Cinzel', serif;
  background: var(--crim-1);
  color: var(--ivory);
  border: 1.5px solid var(--gold-2);
  padding: 6px 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4), inset 0 0 6px rgba(0, 0, 0, 0.35);
  transform: rotate(-3deg);
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 2px;
  font-family: 'Noto Serif Thai', 'Sarabun', serif;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--gold-3);
  background: var(--bg-3);
  color: var(--ivory);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-crimson {
  background: linear-gradient(180deg, #c8102e 0%, #a50b25 50%, #5c0011 100%);
  color: var(--ivory);
  border: 1px solid var(--gold-2);
  box-shadow:
    0 4px 14px rgba(200, 16, 46, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35);
  font-weight: 700;
}
.btn-crimson:hover {
  box-shadow:
    0 8px 22px rgba(200, 16, 46, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35);
}

.btn-gold {
  background: linear-gradient(180deg, #f5d97a 0%, #d4af37 50%, #8b6914 100%);
  color: var(--ink);
  border: 1px solid var(--gold-1);
  box-shadow:
    0 4px 14px rgba(212, 175, 55, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18);
  font-weight: 700;
}
.btn-gold:hover {
  box-shadow:
    0 8px 22px rgba(212, 175, 55, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18);
}

.btn-jade {
  background: linear-gradient(180deg, #008e6a 0%, #00674f 100%);
  color: var(--ivory);
  border: 1px solid var(--gold-3);
  box-shadow: 0 4px 12px rgba(0, 103, 79, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

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

.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ----- LAYOUT FRAME ----- */
/* top thin ribbon */
.top-ribbon {
  background: linear-gradient(90deg, var(--crim-4) 0%, var(--crim-2) 50%, var(--crim-4) 100%);
  border-bottom: 1px solid var(--gold-3);
  font-size: 12px;
  color: var(--ivory-2);
  padding: 6px 0;
  position: relative;
  z-index: 30;
  overflow: hidden;
}
.top-ribbon-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ribbon-scroll 38s linear infinite;
}
.top-ribbon span.tag {
  color: var(--gold-1);
  font-weight: 700;
  font-family: 'Noto Serif Thai', serif;
}
@keyframes ribbon-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* main app frame: aside + main */
.app {
  display: grid;
  grid-template-columns: var(--aside-w) 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ----- LEFT VERTICAL ASIDE NAV ----- */
.aside {
  background:
    linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 60%, var(--bg-1) 100%);
  border-right: 1px solid var(--gold-3);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 25;
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.5);
}
.aside::-webkit-scrollbar { width: 4px; }
.aside::-webkit-scrollbar-track { background: var(--bg-2); }
.aside::-webkit-scrollbar-thumb { background: var(--gold-4); }

.aside-banner {
  padding: 22px 18px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line-gold);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(212, 175, 55, 0.15), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent);
  position: relative;
}
.aside-banner::before, .aside-banner::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--gold-2);
}
.aside-banner::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.aside-banner::after { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }

.aside-lions {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.aside-lion {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.6));
}
.aside-lion.flip { transform: scaleX(-1); }

.aside-brand {
  font-family: 'Cinzel', 'Noto Serif Thai', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-1);
  line-height: 1.1;
}
.aside-brand small {
  display: block;
  font-family: 'Noto Serif Thai', serif;
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.04em;
  margin-top: 4px;
  font-weight: 400;
}
.aside-han {
  font-family: 'Noto Serif Thai', serif;
  font-size: 22px;
  color: var(--crim-1);
  text-shadow: 0 0 8px rgba(200, 16, 46, 0.4);
  margin-top: 6px;
  letter-spacing: 0.18em;
}

/* nav links */
.aside-nav {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.aside-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  font-family: 'Noto Serif Thai', serif;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  border-left: 2px solid transparent;
  border-radius: 0;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  position: relative;
}
.aside-nav a:hover {
  background: rgba(200, 16, 46, 0.18);
  color: var(--gold-1);
  border-left-color: var(--gold-2);
}
.aside-nav a.active {
  background: linear-gradient(90deg, var(--crim-3), transparent);
  color: var(--gold-1);
  border-left: 2px solid var(--gold-2);
  font-weight: 700;
}
.aside-nav a .ic { font-size: 18px; width: 22px; text-align: center; }
.aside-nav a .badge {
  margin-left: auto;
  font-size: 10px;
  background: var(--crim-1);
  color: var(--ivory);
  padding: 2px 7px;
  border-radius: 1px;
  letter-spacing: 0.04em;
  font-weight: 700;
  border: 1px solid var(--gold-3);
}

.aside-cta {
  padding: 14px 14px 18px;
  border-top: 1px solid var(--line-gold);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aside-cta .balance {
  font-family: 'Cinzel', 'Sarabun', serif;
  font-size: 16px;
  color: var(--gold-1);
  text-align: center;
  padding: 8px;
  border: 1px solid var(--line-gold);
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 4px;
}
.aside-cta .balance small {
  display: block;
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
  font-family: 'Noto Serif Thai', serif;
}

.aside-foot {
  padding: 10px 14px;
  font-size: 11px;
  color: var(--text-3);
  border-top: 1px solid var(--line-gold-soft);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ----- MAIN CONTENT AREA ----- */
.main {
  padding: 28px 32px 60px;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* page sections */
section[data-page] { display: none; }
section[data-page].show { display: block; animation: page-fade 0.32s ease; }
@keyframes page-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* section heads */
.sec-head {
  margin: 36px 0 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 14px;
  position: relative;
}
.sec-head::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 60px;
  height: 1px;
  background: var(--gold-2);
}
.sec-head h2 {
  position: relative;
  padding-left: 14px;
}
.sec-head h2::before {
  content: '◆';
  position: absolute;
  left: -2px;
  top: 4px;
  color: var(--gold-2);
  font-size: 12px;
}
.sec-head .more { font-size: 13px; color: var(--gold-2); font-family: 'Noto Serif Thai', serif; }
.sec-head .more:hover { color: var(--gold-1); }

/* ----- ORNAMENTAL FRAMES ----- */
.imp-frame {
  position: relative;
  border: 1px solid var(--gold-3);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 28px;
}
.imp-frame::before, .imp-frame::after,
.imp-frame > .corner-tl, .imp-frame > .corner-tr,
.imp-frame > .corner-bl, .imp-frame > .corner-br {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--gold-2);
  pointer-events: none;
}
.imp-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.imp-frame::after { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.imp-frame > .corner-bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.imp-frame > .corner-br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ----- HERO (STATIC FULLBLEED) ----- */
.hero {
  position: relative;
  margin: 0 0 36px;
  padding: 56px 30px 64px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.15), transparent 65%),
    radial-gradient(ellipse at 50% 100%, rgba(200, 16, 46, 0.18), transparent 65%),
    linear-gradient(180deg, var(--bg-3) 0%, var(--bg-1) 50%, var(--bg-2) 100%);
  border-top: 2px solid var(--gold-2);
  border-bottom: 2px solid var(--gold-2);
  box-shadow: var(--shadow-deep);
  text-align: center;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gold-3);
}
.hero::before { left: 12px; }
.hero::after { right: 12px; }

.hero-lions {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 130px;
  height: 220px;
  opacity: 0.92;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
  animation: lion-breath 4s ease-in-out infinite;
}
.hero-lion-l { left: 24px; }
.hero-lion-r { right: 24px; transform: translateY(-50%) scaleX(-1); }
@keyframes lion-breath {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4)); }
  50% { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.7)); }
}

.hero-eyebrow {
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--gold-2);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.hero-han {
  font-family: 'Noto Serif Thai', serif;
  font-size: 60px;
  color: var(--crim-1);
  letter-spacing: 0.18em;
  text-shadow: 0 0 24px rgba(200, 16, 46, 0.5), 0 4px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 8px;
  font-weight: 800;
}
.hero h1 {
  font-family: 'Noto Serif Thai', serif;
  font-size: clamp(34px, 4.5vw, 52px);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
  font-weight: 800;
  background: linear-gradient(180deg, #ffe89a 0%, #d4af37 50%, #8b6914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.tagline {
  color: var(--ivory-2);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto 26px;
  font-family: 'Noto Serif Thai', serif;
  line-height: 1.7;
}
.hero-actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.05em;
}
.hero-meta b {
  color: var(--gold-2);
  font-family: 'Cinzel', 'Sarabun', serif;
  font-weight: 700;
}

/* hero ribbon banner scroll */
.hero-scroll {
  margin-top: 28px;
  padding: 12px 0;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0.6) 75%, transparent);
  border-top: 1px solid var(--line-gold-soft);
  border-bottom: 1px solid var(--line-gold-soft);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.hero-scroll-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  font-family: 'Noto Serif Thai', serif;
  font-size: 13px;
  color: var(--ivory-2);
  animation: ribbon-scroll 40s linear infinite;
  letter-spacing: 0.04em;
}
.hero-scroll-track .seal-tag {
  color: var(--crim-1);
  font-weight: 700;
}

/* ----- ORACLE WIDGET — เซียมซี ----- */
.oracle-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  margin-bottom: 36px;
}

.oracle-card {
  position: relative;
  padding: 24px 26px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.2)),
    linear-gradient(135deg, var(--crim-4) 0%, var(--bg-2) 100%);
  border: 1px solid var(--gold-3);
  box-shadow: var(--shadow-mid), var(--inset-gold);
  text-align: center;
}
.oracle-card h3 {
  font-family: 'Noto Serif Thai', serif;
  font-size: 22px;
  color: var(--gold-1);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.oracle-card .han-sub {
  color: var(--crim-1);
  font-size: 18px;
  font-family: 'Noto Serif Thai', serif;
  margin-bottom: 14px;
  letter-spacing: 0.18em;
}

/* siam-si tube */
.tube {
  position: relative;
  width: 86px;
  height: 150px;
  margin: 0 auto 16px;
  cursor: pointer;
  transform-origin: 50% 22px;
  transition: transform 0.3s ease;
}
.tube.shaking { animation: shake 0.8s ease-in-out; }
@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-18deg); }
  25% { transform: rotate(20deg); }
  40% { transform: rotate(-22deg); }
  55% { transform: rotate(18deg); }
  70% { transform: rotate(-14deg); }
  85% { transform: rotate(10deg); }
}
.tube .body {
  width: 100%;
  height: 132px;
  background: linear-gradient(180deg, #5c0011 0%, #8b0000 50%, #3b0a0f 100%);
  border: 2px solid var(--gold-2);
  border-radius: 4px 4px 8px 8px;
  margin-top: 14px;
  position: relative;
  box-shadow: var(--shadow-mid), inset 0 0 12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.tube .body::before {
  content: '神';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Noto Serif Thai', serif;
  font-size: 36px;
  color: var(--gold-2);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
  font-weight: 800;
}
.tube .sticks {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 28px;
  display: flex;
  justify-content: space-between;
}
.tube .sticks::before, .tube .sticks::after {
  content: '';
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  border: 1px solid var(--ink);
  border-radius: 2px;
}
.tube .sticks::before { box-shadow: 8px 0 0 -1px var(--gold-2), 18px 0 0 -1px var(--gold-3); }
.tube .sticks::after { box-shadow: -8px 0 0 -1px var(--gold-2), -18px 0 0 -1px var(--gold-3); }

.tube-hint {
  font-size: 12px;
  color: var(--text-2);
  font-family: 'Noto Serif Thai', serif;
  margin-bottom: 12px;
}
.tube-hint b { color: var(--gold-1); }

.fortune-result {
  margin-top: 12px;
  padding: 16px;
  border: 1px dashed var(--gold-3);
  background: rgba(0, 0, 0, 0.4);
  min-height: 100px;
  text-align: center;
  display: none;
}
.fortune-result.show { display: block; animation: page-fade 0.4s; }
.fortune-result .num {
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  font-size: 38px;
  color: var(--crim-1);
  font-weight: 800;
  text-shadow: 0 0 12px rgba(200, 16, 46, 0.6);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.fortune-result .level {
  font-family: 'Noto Serif Thai', serif;
  color: var(--gold-1);
  font-size: 18px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  font-weight: 700;
}
.fortune-result .text {
  font-family: 'Noto Serif Thai', serif;
  color: var(--ivory-2);
  font-size: 13px;
  line-height: 1.7;
}

/* ----- DAILY FORTUNE PANEL ----- */
.fortune-card {
  padding: 24px 26px;
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 1px solid var(--gold-3);
  box-shadow: var(--shadow-mid), var(--inset-gold);
  position: relative;
}
.fortune-card .ribbon-flag {
  position: absolute;
  top: -1px;
  right: 14px;
  background: var(--crim-1);
  color: var(--ivory);
  padding: 6px 12px;
  font-family: 'Cinzel', 'Sarabun', serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  border: 1px solid var(--gold-2);
  border-top: 0;
}
.fortune-card h3 {
  font-family: 'Noto Serif Thai', serif;
  color: var(--gold-1);
  font-size: 21px;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.fortune-card .fortune-text {
  font-family: 'Noto Serif Thai', serif;
  font-style: italic;
  color: var(--ivory-2);
  font-size: 14px;
  line-height: 1.85;
  border-left: 2px solid var(--gold-2);
  padding: 8px 0 8px 14px;
  margin: 14px 0 18px;
}
.fortune-cn {
  color: var(--crim-1);
  font-family: 'Noto Serif Thai', serif;
  font-size: 20px;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.fortune-numbers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}
.fortune-numbers .label {
  font-size: 12px;
  color: var(--text-2);
  font-family: 'Noto Serif Thai', serif;
  margin-right: 6px;
}
.luck-num {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 32px;
  text-align: center;
  background: linear-gradient(180deg, var(--crim-1), var(--crim-3));
  color: var(--gold-1);
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  font-size: 17px;
  font-weight: 700;
  border: 2px solid var(--gold-2);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* ----- CATEGORY GRID ----- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.cat-card {
  position: relative;
  padding: 22px 20px;
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-1) 100%);
  border: 1px solid var(--gold-3);
  box-shadow: var(--shadow-mid);
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line-gold-soft);
  pointer-events: none;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-2);
  box-shadow: 0 12px 30px rgba(200, 16, 46, 0.3), var(--inset-gold);
}
.cat-card .ic {
  font-size: 38px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}
.cat-card h3 {
  font-family: 'Noto Serif Thai', serif;
  color: var(--gold-1);
  font-size: 17px;
  margin-bottom: 4px;
  font-weight: 700;
}
.cat-card p {
  font-size: 12px;
  color: var(--text-2);
  font-family: 'Noto Serif Thai', serif;
}
.cat-card .han-cn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: 'Noto Serif Thai', serif;
  color: var(--crim-1);
  opacity: 0.8;
  font-size: 14px;
  font-weight: 700;
}

/* ----- GAME GRID — slot/fish ----- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.game-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--gold-4);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-2);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--gold-2);
}
.game-card .thumb-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  overflow: hidden;
}
.game-card img.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.game-card:hover img.thumb { transform: scale(1.05); }
.game-card .provider-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--crim-1);
  color: var(--ivory);
  font-size: 10px;
  padding: 3px 7px;
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  font-weight: 700;
  border: 1px solid var(--gold-2);
  letter-spacing: 0.06em;
  z-index: 2;
}
.game-card .hot-flag {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  color: var(--ink);
  font-size: 10px;
  padding: 3px 7px;
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  font-weight: 700;
  border: 1px solid var(--gold-2);
  letter-spacing: 0.06em;
  z-index: 2;
}
.game-card .thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 2, 4, 0.9) 100%);
  pointer-events: none;
}
.game-card-info {
  padding: 9px 10px;
  border-top: 1px solid var(--line-gold-soft);
  background: var(--bg-1);
}
.game-card-info h4 {
  font-family: 'Noto Serif Thai', serif;
  font-size: 13px;
  color: var(--ivory);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card-info p {
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 2px;
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  letter-spacing: 0.04em;
}

/* ----- LIVE CASINO PREVIEW ----- */
.live-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.live-card {
  position: relative;
  border: 1px solid var(--gold-3);
  background: var(--bg-2);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s;
}
.live-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-2);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
}
.live-card .thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.live-card img.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.live-card .live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--crim-1);
  color: var(--ivory);
  padding: 3px 9px;
  font-size: 10px;
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  z-index: 2;
  border: 1px solid var(--gold-2);
}
.live-card .live-badge::before {
  content: '●';
  color: #ff3344;
  margin-right: 4px;
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.live-card .seat {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--gold-1);
  padding: 3px 9px;
  font-size: 10px;
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  z-index: 2;
  border: 1px solid var(--line-gold);
  letter-spacing: 0.04em;
}
.live-card-info {
  padding: 11px 12px;
  background: var(--bg-1);
  border-top: 1px solid var(--line-gold-soft);
}
.live-card-info h4 {
  font-family: 'Noto Serif Thai', serif;
  font-size: 14px;
  color: var(--ivory);
  margin-bottom: 4px;
  font-weight: 700;
}
.live-card-info p {
  font-size: 11px;
  color: var(--text-2);
  font-family: 'Noto Serif Thai', serif;
}
.live-card-info .min-bet {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 6px;
  border: 1px solid var(--line-gold);
  font-size: 10px;
  color: var(--gold-1);
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  letter-spacing: 0.04em;
}

/* ----- LOTTERY COUNTDOWN ----- */
.lott-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.lott-card {
  position: relative;
  padding: 18px 16px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-1));
  border: 1px solid var(--gold-3);
  box-shadow: var(--shadow-mid);
  text-align: center;
  transition: transform 0.18s, border-color 0.2s;
}
.lott-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-2);
}
.lott-card .han-mark {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: 'Noto Serif Thai', serif;
  color: var(--crim-1);
  font-size: 14px;
  opacity: 0.85;
  font-weight: 700;
}
.lott-card .lott-icon {
  font-size: 28px;
  margin: 4px 0 8px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}
.lott-card h4 {
  font-family: 'Noto Serif Thai', serif;
  color: var(--gold-1);
  font-size: 15px;
  margin-bottom: 8px;
  font-weight: 700;
}
.lott-card .ratio {
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 12px;
  font-family: 'Noto Serif Thai', serif;
}
.lott-card .ratio b { color: var(--gold-2); font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif; }
.countdown {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 8px;
}
.countdown .unit {
  background: var(--bg-1);
  border: 1px solid var(--line-gold);
  padding: 5px 8px;
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  min-width: 36px;
}
.countdown .unit .num {
  display: block;
  color: var(--gold-1);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}
.countdown .unit .lbl {
  font-size: 9px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  font-family: 'Noto Serif Thai', serif;
}

/* ----- PROMO STRIP ----- */
.promo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.promo-card {
  padding: 22px 22px;
  background:
    radial-gradient(ellipse at 100% 100%, rgba(212, 175, 55, 0.15), transparent 65%),
    linear-gradient(135deg, var(--crim-4) 0%, var(--bg-2) 100%);
  border: 1px solid var(--gold-3);
  position: relative;
  overflow: hidden;
}
.promo-card::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: 8px;
  left: 8px;
  border: 1px solid var(--line-gold-soft);
  pointer-events: none;
}
.promo-card .promo-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--crim-1);
  color: var(--ivory);
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  border: 1px solid var(--gold-2);
}
.promo-card h3 {
  font-family: 'Noto Serif Thai', serif;
  color: var(--gold-1);
  font-size: 19px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.promo-card p {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 14px;
  font-family: 'Noto Serif Thai', serif;
}
.promo-card .promo-pct {
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  font-size: 36px;
  color: var(--gold-1);
  font-weight: 800;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* ----- VIP DRAGON PATH (8-tier climbing) ----- */
.dragon-path {
  position: relative;
  padding: 30px 24px 36px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200, 16, 46, 0.18), transparent 65%),
    linear-gradient(180deg, var(--bg-3), var(--bg-1));
  border: 1px solid var(--gold-3);
  box-shadow: var(--shadow-mid);
  margin-bottom: 28px;
  overflow: hidden;
}
.dragon-path .head {
  text-align: center;
  margin-bottom: 28px;
}
.dragon-path h3 {
  font-family: 'Noto Serif Thai', serif;
  color: var(--gold-1);
  font-size: 24px;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}
.dragon-path .head .han {
  color: var(--crim-1);
  font-family: 'Noto Serif Thai', serif;
  font-size: 18px;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
  font-weight: 700;
}
.dragon-path .head p {
  color: var(--text-2);
  font-size: 13px;
  font-family: 'Noto Serif Thai', serif;
  max-width: 540px;
  margin: 0 auto;
}

.tier-track {
  position: relative;
  padding: 12px 0 60px;
}
.tier-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-4), var(--gold-2), var(--gold-4));
  z-index: 0;
}
.tier-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  position: relative;
  z-index: 1;
}
.tier-node {
  position: relative;
  text-align: center;
  cursor: pointer;
}
.tier-node .node {
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-1));
  border: 2px solid var(--gold-3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif Thai', serif;
  font-size: 22px;
  color: var(--gold-2);
  font-weight: 800;
  transition: transform 0.18s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.tier-node .node::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px dashed var(--line-gold-soft);
  border-radius: 50%;
  pointer-events: none;
}
.tier-node:hover .node {
  transform: scale(1.12);
  border-color: var(--gold-1);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.55);
}
.tier-node[data-active="true"] .node {
  background: linear-gradient(180deg, var(--crim-1), var(--crim-3));
  border-color: var(--gold-1);
  box-shadow: 0 0 18px rgba(200, 16, 46, 0.65);
  color: var(--gold-1);
}
.tier-node h5 {
  font-family: 'Noto Serif Thai', serif;
  color: var(--ivory);
  font-size: 12px;
  margin-bottom: 2px;
  font-weight: 600;
}
.tier-node small {
  color: var(--text-3);
  font-size: 10px;
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  letter-spacing: 0.04em;
}

.tier-detail {
  margin-top: 20px;
  padding: 18px 24px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-gold);
  border-radius: 0;
}
.tier-detail h4 {
  font-family: 'Noto Serif Thai', serif;
  color: var(--gold-1);
  font-size: 17px;
  margin-bottom: 6px;
}
.tier-detail .han {
  color: var(--crim-1);
  font-family: 'Noto Serif Thai', serif;
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.tier-detail ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 14px;
  margin-top: 8px;
}
.tier-detail ul li {
  color: var(--text-2);
  font-family: 'Noto Serif Thai', serif;
  font-size: 13px;
  padding-left: 18px;
  position: relative;
}
.tier-detail ul li::before {
  content: '◆';
  color: var(--gold-2);
  position: absolute;
  left: 0;
  font-size: 8px;
  top: 7px;
}

/* ----- PROVIDERS WALL ----- */
.providers-wall {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}
.prov-cell {
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--gold-4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: border-color 0.2s, transform 0.18s, box-shadow 0.2s;
  cursor: pointer;
}
.prov-cell:hover {
  border-color: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}
.prov-cell img {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
  filter: brightness(0.95);
}

/* ----- BANK WALL ----- */
.bank-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 12px 0 28px;
}
.bank-cell {
  padding: 12px 8px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--gold-4);
  text-align: center;
  text-decoration: none;
  color: var(--ivory);
  transition: border-color 0.2s, transform 0.18s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.bank-cell:hover {
  border-color: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.18);
}
.bank-cell img {
  width: 100%;
  max-width: 56px;
  height: 36px;
  object-fit: contain;
  background: var(--ivory);
  border: 1px solid var(--gold-3);
  border-radius: 4px;
  padding: 3px;
}
.bank-cell span {
  font-family: 'Noto Serif Thai', serif;
  color: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.bank-cell .ic {
  font-size: 28px;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.bank-cell h5 {
  font-family: 'Noto Serif Thai', serif;
  color: var(--ivory);
  font-size: 11.5px;
  font-weight: 600;
}
.bank-cell small {
  font-size: 9.5px;
  color: var(--text-3);
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
}

/* ----- SOCCER MATCH TABLE ----- */
.match-table {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--gold-3);
  border-collapse: collapse;
  font-size: 13px;
  font-family: 'Noto Serif Thai', serif;
  margin-bottom: 24px;
}
.match-table th {
  background: linear-gradient(180deg, var(--crim-3), var(--crim-4));
  color: var(--gold-1);
  font-family: 'Noto Serif Thai', serif;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--gold-2);
  letter-spacing: 0.04em;
}
.match-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-gold-soft);
  color: var(--text);
}
.match-table tr:hover td { background: rgba(200, 16, 46, 0.08); }
.match-table .lg {
  font-size: 11px;
  color: var(--text-3);
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  letter-spacing: 0.04em;
}
.match-table .time {
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.odds-btn {
  padding: 6px 11px;
  background: var(--bg-1);
  border: 1px solid var(--line-gold);
  color: var(--gold-1);
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  margin: 0 2px;
  letter-spacing: 0.04em;
  border-radius: 0;
}
.odds-btn:hover { background: var(--bg-3); border-color: var(--gold-2); }
.odds-btn.selected {
  background: var(--crim-1);
  color: var(--ivory);
  border-color: var(--gold-1);
}

/* ----- TABLES & FORMS (deposit/account/etc.) ----- */
.kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 18px;
}
.kv label {
  font-family: 'Noto Serif Thai', serif;
  font-size: 13px;
  color: var(--text-2);
}
.kv input, .kv select, .input {
  background: var(--bg-1);
  border: 1px solid var(--gold-4);
  color: var(--ivory);
  padding: 10px 12px;
  font-family: 'Sarabun', sans-serif;
  font-size: 14px;
  border-radius: 0;
  width: 100%;
}
.kv input:focus, .kv select:focus, .input:focus {
  outline: none;
  border-color: var(--gold-2);
  box-shadow: 0 0 0 1px var(--gold-2);
}

.amt-quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.amt-quick button {
  background: var(--bg-1);
  border: 1px solid var(--gold-4);
  color: var(--gold-1);
  padding: 7px 14px;
  font-family: 'Cinzel', 'Noto Serif Thai', 'Trirong', serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.02em;
  border-radius: 0;
}
.amt-quick button:hover {
  border-color: var(--gold-2);
  background: var(--bg-3);
}

/* ----- TIER GRID page ----- */
.tier-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.tier-page-card {
  padding: 20px 22px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-1));
  border: 1px solid var(--gold-3);
  position: relative;
}
.tier-page-card::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line-gold-soft);
  pointer-events: none;
}
.tier-page-card h3 {
  font-family: 'Noto Serif Thai', serif;
  color: var(--gold-1);
  font-size: 18px;
  margin-bottom: 4px;
  font-weight: 700;
}
.tier-page-card .han {
  color: var(--crim-1);
  font-family: 'Noto Serif Thai', serif;
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.tier-page-card ul {
  list-style: none;
  margin: 12px 0;
}
.tier-page-card ul li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
  font-size: 13px;
  font-family: 'Noto Serif Thai', serif;
  color: var(--ivory-2);
}
.tier-page-card ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold-2);
  font-size: 8px;
  top: 6px;
}

/* ----- LORE PAGE ----- */
.lore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.lore-card {
  padding: 26px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-1));
  border: 1px solid var(--gold-3);
  position: relative;
}
.lore-card .lore-han {
  font-family: 'Noto Serif Thai', serif;
  font-size: 32px;
  color: var(--crim-1);
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  font-weight: 700;
}
.lore-card h3 {
  font-family: 'Noto Serif Thai', serif;
  color: var(--gold-1);
  font-size: 19px;
  margin-bottom: 12px;
  font-weight: 700;
}
.lore-card p {
  font-family: 'Noto Serif Thai', serif;
  font-size: 14px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 12px;
}

/* ----- HELP/CONTACT ----- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.contact-card {
  padding: 22px 18px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-1));
  border: 1px solid var(--gold-3);
  text-align: center;
}
.contact-card .ic {
  font-size: 36px;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}
.contact-card h4 {
  font-family: 'Noto Serif Thai', serif;
  color: var(--gold-1);
  font-size: 15px;
  margin-bottom: 6px;
}
.contact-card p {
  color: var(--text-2);
  font-size: 12.5px;
  font-family: 'Noto Serif Thai', serif;
  margin-bottom: 12px;
}

.faq-item {
  margin-bottom: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-gold);
  padding: 14px 18px;
}
.faq-item h4 {
  font-family: 'Noto Serif Thai', serif;
  color: var(--gold-1);
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 600;
}
.faq-item p {
  font-family: 'Noto Serif Thai', serif;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}

/* ----- FOOTER ----- */
.foot {
  margin-top: 60px;
  padding: 36px 0 14px;
  border-top: 2px solid var(--gold-2);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-0));
  position: relative;
}
.foot::before, .foot::after {
  content: '';
  position: absolute;
  top: 14px;
  width: 80px;
  height: 1px;
  background: var(--gold-3);
}
.foot::before { left: 50%; transform: translateX(-100px); }
.foot::after { left: 50%; transform: translateX(20px); }

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.foot-grid h5 {
  font-family: 'Noto Serif Thai', serif;
  color: var(--gold-1);
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.foot-grid ul { list-style: none; }
.foot-grid ul li { margin-bottom: 6px; }
.foot-grid ul a {
  color: var(--text-2);
  font-size: 12.5px;
  font-family: 'Noto Serif Thai', serif;
  transition: color 0.15s;
}
.foot-grid ul a:hover { color: var(--gold-2); }
.foot-brand-block p {
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.7;
  font-family: 'Noto Serif Thai', serif;
  margin-bottom: 10px;
}

.foot-bottom {
  border-top: 1px solid var(--line-gold-soft);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-3);
  font-family: 'Noto Serif Thai', serif;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
}

/* SEAL STAMP */
.seal-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background:
    radial-gradient(circle at 50% 50%, transparent 60%, var(--crim-1) 60.5%, var(--crim-1) 100%);
  position: relative;
  transform: rotate(-8deg);
  border: 2px solid var(--crim-1);
  border-radius: 4px;
  font-family: 'Noto Serif Thai', serif;
  color: var(--crim-1);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1;
  flex-direction: column;
  gap: 2px;
  background-color: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 4px rgba(200, 16, 46, 0.3), 0 2px 6px rgba(0, 0, 0, 0.3);
  filter: blur(0.4px) contrast(1.05);
  opacity: 0.95;
}
.seal-stamp .stamp-inner {
  font-size: 18px;
  letter-spacing: 0.05em;
  font-weight: 800;
}
.seal-stamp .stamp-sub {
  font-size: 8px;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ----- FLOATING CONTACT ----- */
.float-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--crim-1);
  border: 2px solid var(--gold-2);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.18s, box-shadow 0.2s;
  text-decoration: none;
}
.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 24px rgba(200, 16, 46, 0.7);
  color: var(--gold-1);
}
.float-btn.line { background: #06c755; border-color: var(--gold-2); }
.float-btn.tg { background: #0088cc; border-color: var(--gold-2); }
.float-btn.up { background: var(--bg-3); }

/* ----- TOAST ----- */
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--crim-1), var(--crim-3));
  color: var(--gold-1);
  padding: 12px 22px;
  border: 1px solid var(--gold-2);
  font-family: 'Noto Serif Thai', serif;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  max-width: 90%;
  text-align: center;
  border-radius: 0;
  letter-spacing: 0.04em;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1280px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .providers-wall { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 880px) {
  :root { --aside-w: 0; }
  .app { grid-template-columns: 1fr; }
  .aside {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 95;
  }
  .aside.open { transform: translateX(0); }
  .mobile-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
    border-bottom: 1px solid var(--gold-3);
    position: sticky;
    top: 0;
    z-index: 22;
  }
  .mobile-bar .toggle {
    background: none;
    border: 1px solid var(--gold-3);
    color: var(--gold-1);
    padding: 7px 12px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 0;
  }
  .mobile-bar .brand-mini {
    font-family: 'Cinzel', 'Noto Serif Thai', serif;
    color: var(--gold-1);
    font-size: 16px;
    letter-spacing: 0.06em;
    font-weight: 700;
  }
  .mobile-bar .han {
    color: var(--crim-1);
    font-family: 'Noto Serif Thai', serif;
    font-size: 16px;
    letter-spacing: 0.16em;
    font-weight: 700;
  }
  .main { padding: 18px 16px 50px; }
  .hero { padding: 36px 18px 40px; }
  .hero-han { font-size: 36px; }
  .hero-lions { display: none; }
  .cat-grid, .game-grid, .live-grid, .lott-grid, .promo-strip,
  .lore-grid, .contact-grid, .foot-grid, .tier-page-grid,
  .oracle-wrap {
    grid-template-columns: 1fr 1fr;
  }
  .providers-wall { grid-template-columns: repeat(4, 1fr); }
  .bank-wall { grid-template-columns: repeat(3, 1fr); }
  .tier-row { grid-template-columns: repeat(4, 1fr); row-gap: 24px; }
  .tier-track::before { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }
  .tier-detail ul { grid-template-columns: 1fr; }
}
@media (min-width: 881px) { .mobile-bar { display: none !important; } }

@media (max-width: 540px) {
  .cat-grid, .game-grid, .live-grid, .lott-grid, .promo-strip,
  .lore-grid, .contact-grid, .tier-page-grid, .oracle-wrap {
    grid-template-columns: 1fr;
  }
  .providers-wall { grid-template-columns: repeat(3, 1fr); }
  .bank-wall { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 28px; }
  .hero-han { font-size: 28px; }
  .tier-row { grid-template-columns: repeat(2, 1fr); }
}
