/* =========================================================
   Siam Lottery — prototype stylesheet
   Visual thesis: Thai royal crimson + temple gold + lottery-paper cream
   Inspiration: thailotteryok / huaysiam / official GLO brand
   ========================================================= */

:root {
  /* 泰式深红 —— 泰国国旗主色 / 彩票站标配，象征繁荣与紧迫感 */
  --crimson-950: #2e080f;
  --crimson-900: #4c0e1a;
  --crimson-850: #5e1222;
  --crimson-800: #7a1830;
  --crimson-700: #a51931;
  --crimson-600: #c7213b;
  --crimson-500: #e5394a;
  /* 保留 jade 变量名让旧样式自动换肤，实际值映射到 crimson */
  --jade-950: var(--crimson-950);
  --jade-900: var(--crimson-900);
  --jade-850: var(--crimson-850);
  --jade-800: var(--crimson-800);
  --jade-700: var(--crimson-700);
  --jade-600: var(--crimson-600);

  /* 黄金 —— 泰国彩票站的繁荣财富配色，全量保留 */
  --gold: #d7b56d;
  --gold-bright: #f2d493;
  --gold-hot: #ffd27a;
  --gold-deep: #a8873f;
  --gold-soft: rgba(215, 181, 109, 0.18);

  /* 宝蓝点缀 —— 代表信任稳定，与红绿金三色一起呼应泰国国旗 */
  --trust-blue: #1e3a5f;
  --trust-blue-soft: #37527a;

  /* 彩票纸底色 */
  --cream: #faf5e8;
  --paper: #f3ead4;
  --white: #fffdf7;
  --ink: #2e080f;
  --ink-soft: #5c4a4a;
  --ink-faint: #9a8a8a;

  --marigold: #e8912f;
  --ruby: #a51931;

  --line: rgba(215, 181, 109, 0.26);
  --line-strong: rgba(215, 181, 109, 0.46);
  --line-ink: rgba(46, 8, 15, 0.12);

  --font-thai: "Kanit", "Noto Sans Thai", "Sukhumvit Set", system-ui, sans-serif;
  --font-body: "Noto Sans Thai", "Kanit", system-ui, sans-serif;
  --font-ui: "Kanit", "Noto Sans Thai", system-ui, sans-serif;

  --radius: 18px;
  --wrap: 1240px;
  --header-h: 78px;

  --shadow-soft: 0 24px 60px -30px rgba(4, 26, 18, 0.55);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

html[lang="zh"] {
  --font-thai: "Noto Serif SC", "Songti SC", "Kanit", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Noto Sans Thai", system-ui, sans-serif;
  --font-ui: "Noto Sans SC", "PingFang SC", "Noto Sans Thai", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--gold);
  color: var(--jade-950);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- shared ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.eyebrow.on-dark {
  color: var(--gold);
}

.today-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(215, 181, 109, 0.18);
  border: 1px solid rgba(215, 181, 109, 0.38);
  color: var(--gold-bright);
  text-transform: none;
  vertical-align: middle;
}

.sec-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.sec-head h2 {
  font-family: var(--font-thai);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 14px;
}

.sec-desc {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 54ch;
}

.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.updated {
  font-size: 13px;
  color: var(--ink-faint);
  white-space: nowrap;
  padding-bottom: 6px;
}

.section {
  padding: 88px 0;
  position: relative;
}

.section-tight {
  padding: 64px 0;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--jade-700);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.25s, gap 0.25s;
}

.link-more:hover {
  color: var(--gold-deep);
  gap: 12px;
}

.link-more svg {
  width: 15px;
  height: 15px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s,
    border-color 0.25s, box-shadow 0.25s;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13.5px;
}

.btn-block {
  width: 100%;
}

.btn-gold {
  background: linear-gradient(150deg, #f3d795, #d7b56d 52%, #b9944b);
  color: #2a1e08;
  box-shadow: 0 12px 28px -14px rgba(215, 181, 109, 0.85);
}

.btn-gold:hover {
  box-shadow: 0 16px 34px -12px rgba(242, 212, 147, 0.9);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--jade-800);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--jade-700);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
  background: rgba(4, 26, 18, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(215, 181, 109, 0.1);
}

.btn-outline-ink {
  border-color: var(--line-ink);
  color: var(--ink);
}

.btn-outline-ink:hover {
  border-color: var(--jade-700);
  background: rgba(11, 51, 37, 0.06);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(4, 22, 15, 0.9);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid rgba(215, 181, 109, 0.16);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: rgba(4, 22, 15, 0.97);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(150deg, #f4dc9f, #c9a45c 60%, #9c7a34);
  color: #201708;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 8px 20px -10px rgba(242, 212, 147, 0.8);
  padding-bottom: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-thai);
  font-size: 20px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.brand-text small {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-family: var(--font-ui);
  font-size: 14.5px;
  color: rgba(250, 245, 232, 0.78);
  padding: 9px 13px;
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover {
  color: var(--gold-bright);
}

.nav a:hover::after {
  transform: scaleX(1);
}

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

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(215, 181, 109, 0.32);
  border-radius: 999px;
}

.lang-switch a,
.lang-switch span {
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1;
  padding: 7px 11px;
  border-radius: 999px;
  color: rgba(250, 245, 232, 0.72);
  transition: background 0.25s, color 0.25s;
}

.lang-switch .is-active {
  background: var(--gold);
  color: #201708;
  font-weight: 600;
}

.lang-switch a:not(.is-active):hover {
  color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(215, 181, 109, 0.32);
  border-radius: 12px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  background: radial-gradient(120% 80% at 50% 0%, #7a1830 0%, #2e080f 70%);
  z-index: 55;
  padding: 28px;
  overflow-y: auto;
  animation: drawerIn 0.35s var(--ease);
}

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.drawer nav {
  display: grid;
  gap: 4px;
}

.drawer nav a {
  font-family: var(--font-thai);
  font-size: 21px;
  color: var(--cream);
  padding: 15px 4px;
  border-bottom: 1px solid rgba(215, 181, 109, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer nav a::after {
  content: "→";
  color: var(--gold);
  font-size: 16px;
}

.drawer-foot {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.drawer-foot .lang-switch {
  justify-self: start;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background: var(--jade-950);
  padding: 46px 0 0;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 38%;
  filter: saturate(1.05) brightness(1.06);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(96deg, rgba(4, 26, 18, 0.96) 0%, rgba(4, 26, 18, 0.88) 32%, rgba(4, 26, 18, 0.5) 58%, rgba(4, 26, 18, 0.42) 76%, rgba(4, 26, 18, 0.62) 100%),
    linear-gradient(180deg, rgba(4, 26, 18, 0.62) 0%, rgba(4, 26, 18, 0.08) 32%, rgba(4, 26, 18, 0.9) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23d7b56d' stroke-opacity='.16' stroke-width='.8'%3E%3Cpath d='M70 14c9 12 20 17 20 28 0 9-9 16-20 16s-20-7-20-16c0-11 11-16 20-28z'/%3E%3Cpath d='M70 70c5 7 11 10 11 16 0 5-5 9-11 9s-11-4-11-9c0-6 6-9 11-16z'/%3E%3Ccircle cx='70' cy='118' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 56px;
  align-items: center;
  padding-bottom: 34px;
  min-height: calc(100svh - var(--header-h) - 184px);
}

.hero-main {
  padding-top: 8px;
}

.hero .eyebrow {
  color: var(--gold);
}

.result-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(215, 181, 109, 0.35);
  border-radius: 999px;
  background: rgba(4, 26, 18, 0.5);
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(250, 245, 232, 0.85);
}

.result-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #58d68d;
  box-shadow: 0 0 0 4px rgba(88, 214, 141, 0.16);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(88, 214, 141, 0);
  }
}

.prize-label {
  margin-top: 30px;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 245, 232, 0.7);
}

.prize-number {
  font-family: var(--font-thai);
  font-weight: 600;
  font-size: clamp(3.6rem, 8.4vw, 7.2rem);
  line-height: 1;
  letter-spacing: 0.045em;
  margin: 10px 0 0 -6px;
  display: flex;
  filter: drop-shadow(0 14px 30px rgba(215, 181, 109, 0.22));
}

.prize-number span {
  display: inline-block;
  background: linear-gradient(178deg, #fbebc0 8%, #e8c98a 48%, #b9924a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(24px);
  animation: digitIn 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 260ms);
}

.prize-number span:nth-child(4) {
  margin-left: 0.12em;
}

@keyframes digitIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prize-amount {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--gold);
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.prize-amount b {
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-bright);
}

/* secondary prize strip */
.prize-strip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 24px;
  border: 1px solid rgba(215, 181, 109, 0.24);
  background: rgba(4, 26, 18, 0.42);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-radius: 14px;
  padding: 18px 22px;
  max-width: 660px;
}

.prize-item {
  padding: 0 26px;
  border-left: 1px solid rgba(215, 181, 109, 0.2);
}

.prize-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.prize-item dt {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 245, 232, 0.55);
  font-family: var(--font-ui);
}

.prize-item dd {
  font-family: var(--font-thai);
  font-size: 21px;
  font-weight: 500;
  color: var(--cream);
  margin-top: 3px;
  letter-spacing: 0.08em;
  display: flex;
  gap: 10px;
}

.prize-item dd span {
  color: var(--gold-bright);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-actions .btn {
  padding: 15px 28px;
}

.hero-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: rgba(250, 245, 232, 0.72);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-note a {
  color: rgba(242, 212, 147, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   Hero / 查询彩票区 —— 泰式彩票站风：深红渐变 + 金色光晕
   ========================================================= */
.section-check-home.is-hero {
  padding-top: 44px;
  padding-bottom: 0;
  background: var(--paper);
  position: relative;
}

.section-check-home.is-hero > .wrap {
  position: relative;
}

/* 深红 hero 头：只覆盖顶部 hp-hero + ticker 区域，下面让 cp-layout 浮出来 */
.section-check-home.is-hero > .wrap::before {
  content: "";
  position: absolute;
  top: -44px;
  left: -960px;
  right: -960px;
  height: 420px;
  background: linear-gradient(180deg, #2e080f 0%, #4c0e1a 40%, #7a1830 100%);
  pointer-events: none;
  z-index: 0;
}

.section-check-home.is-hero > .wrap::after {
  content: "";
  position: absolute;
  top: -100px; right: -80px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 181, 109, 0.18) 0%, rgba(215, 181, 109, 0) 65%);
  pointer-events: none;
  z-index: 0;
}

.section-check-home.is-hero .hp-hero,
.section-check-home.is-hero .ticker {
  position: relative;
  z-index: 1;
}

.section-check-home.is-hero .hp-head h1 {
  color: var(--cream);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.25;
}

.section-check-home.is-hero .eyebrow {
  color: var(--gold-hot);
  letter-spacing: 0.16em;
}

.section-check-home.is-hero .cp-date {
  color: rgba(250, 245, 232, 0.72);
}

.section-check-home.is-hero .cp-core-num {
  color: var(--gold-hot);
  text-shadow: 0 0 20px rgba(255, 210, 122, 0.35);
}

.hp-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(215, 181, 109, 0.28);
}

/* countdown card —— 彩票纸样式，浮在深红上 */
.section-check-home.is-hero .countdown-card {
  background: linear-gradient(158deg, #fdf8ec 0%, #f5ecd6 58%, #efe2c5 100%);
  color: var(--crimson-900);
  border: 1px solid rgba(215, 181, 109, 0.5);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.5);
}

.section-check-home.is-hero .countdown-card::before,
.section-check-home.is-hero .countdown-card::after {
  background: var(--crimson-900);
}

.section-check-home.is-hero .cd-badge {
  background: var(--crimson-700);
  color: var(--cream);
}

.section-check-home.is-hero .cd-eyebrow {
  color: var(--crimson-700);
}

.section-check-home.is-hero .cd-top {
  border-bottom-color: rgba(46, 8, 15, 0.14);
}

/* ticker 滚动播报 */
.section-check-home.is-hero .ticker {
  margin-top: 14px;
  background: rgba(250, 245, 232, 0.08);
  border: 1px solid rgba(215, 181, 109, 0.3);
  border-radius: 14px;
  color: var(--cream);
  backdrop-filter: blur(4px);
}

.section-check-home.is-hero .ticker-label {
  background: var(--crimson-700);
  color: var(--cream);
}

.section-check-home.is-hero .ticker-item {
  color: rgba(250, 245, 232, 0.85);
}

.section-check-home.is-hero .ticker-item b {
  color: var(--gold-hot);
}

/* cp-layout 从 hero 里浮出来，自己就是彩票纸卡片 */
.section-check-home.is-hero .cp-layout {
  position: relative;
  z-index: 2;
  margin-top: -10px;
  background: var(--cream);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 28px 60px -40px rgba(0, 0, 0, 0.75),
    inset 0 0 0 1px rgba(215, 181, 109, 0.25);
}

.section-check-home .cp-layout {
  background: var(--cream);
  border-radius: 18px;
  padding: 28px;
  box-shadow: inset 0 0 0 1px rgba(215, 181, 109, 0.2);
}

@media (max-width: 960px) {
  .hp-hero { grid-template-columns: 1fr; }
  .section-check-home.is-hero > .wrap::before { height: 380px; }
}
/* countdown card —— 横向条形彩票纸 */
.countdown-card {
  position: relative;
  align-self: stretch;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 26px;
  background: linear-gradient(158deg, #fdf8ec 0%, #f5ecd6 58%, #efe2c5 100%);
  color: var(--ink);
  border-radius: 16px;
  padding: 14px 24px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.75),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.countdown-card::before,
.countdown-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--jade-950);
  top: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px rgba(215, 181, 109, 0.35);
}

.countdown-card::before {
  left: -9px;
}

.countdown-card::after {
  right: -9px;
}

.cd-lead {
  flex: 0 0 auto;
  min-width: 168px;
  padding-right: 24px;
  border-right: 1px dashed rgba(18, 33, 26, 0.18);
}

.cd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 0;
  border-bottom: none;
}

.cd-eyebrow {
  font-family: var(--font-ui);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.cd-badge {
  font-family: var(--font-ui);
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(11, 51, 37, 0.08);
  color: var(--jade-700);
  letter-spacing: 0.04em;
}

.cd-date {
  font-family: var(--font-thai);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 6px;
  letter-spacing: 0.01em;
}

.cd-time {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.cd-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.cd-cell {
  background: var(--jade-900);
  border-radius: 10px;
  padding: 8px 4px 6px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(215, 181, 109, 0.2);
}

.cd-cell strong {
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.cd-cell span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(250, 245, 232, 0.5);
}

.cd-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-left: 22px;
  border-left: 1px dashed rgba(18, 33, 26, 0.18);
}

.cd-total {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.cd-note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.cd-note strong {
  color: var(--jade-700);
  font-weight: 600;
}

.countdown-card .btn {
  margin-top: 20px;
}

.cd-fine {
  margin-top: 12px;
  font-size: 11px;
  color: var(--ink-faint);
  text-align: center;
}

/* ticker */
.ticker {
  border-top: 1px solid rgba(215, 181, 109, 0.2);
  border-bottom: 1px solid rgba(215, 181, 109, 0.2);
  background: rgba(2, 14, 9, 0.72);
  height: 50px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* =========================================================
   Hero quick-check bar (inside hero, above ticker inside)
   ========================================================= */

.hero-check {
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(4, 26, 18, 0.5);
  border: 1px solid rgba(215, 181, 109, 0.28);
  backdrop-filter: blur(8px);
}

.hero-check-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(250, 245, 232, 0.72);
  text-transform: uppercase;
}

.hero-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-check-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(250, 245, 232, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.hero-check-input::placeholder {
  color: rgba(250, 245, 232, 0.4);
}

.hero-check-input:focus {
  outline: none;
  border-color: var(--gold);
}

.hero-check .btn {
  height: 36px;
  padding: 0 14px;
  flex-shrink: 0;
  font-size: 12.5px;
}

.hero-check-more {
  font-size: 12px;
  color: rgba(215, 181, 109, 0.85);
  text-decoration: none;
  white-space: nowrap;
}

.hero-check-more:hover {
  color: var(--gold-bright);
}

.hero-check-result {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(250, 245, 232, 0.06);
  border: 1px solid rgba(215, 181, 109, 0.2);
  font-size: 12.5px;
  color: var(--cream);
  line-height: 1.5;
}

.hero-check-result.is-win {
  border-color: rgba(6, 199, 85, 0.5);
  background: rgba(6, 199, 85, 0.12);
}

.hero-check-result b {
  color: var(--gold-bright);
  font-weight: 600;
}

.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 0 28px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border-right: 1px solid rgba(215, 181, 109, 0.22);
  height: 100%;
}

.ticker-window {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px;
  font-size: 13px;
  color: rgba(250, 245, 232, 0.66);
  white-space: nowrap;
}

.ticker-item b {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
}

.ticker-item::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-deep);
  margin-left: 16px;
}

/* =========================================================
   Ad slots
   ========================================================= */

.ad {
  position: relative;
  border: 1px dashed rgba(168, 135, 63, 0.42);
  border-radius: 14px;
  background:
    repeating-linear-gradient(-45deg, rgba(215, 181, 109, 0.05) 0 10px, transparent 10px 20px),
    rgba(255, 253, 247, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: var(--gold-deep);
  text-align: center;
  padding: 16px;
  min-height: 110px;
  transition: border-color 0.25s, background 0.25s;
}

.ad:hover {
  border-color: var(--gold);
  background:
    repeating-linear-gradient(-45deg, rgba(215, 181, 109, 0.1) 0 10px, transparent 10px 20px),
    rgba(255, 253, 247, 0.9);
}

.ad-tag {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 2px 6px;
  border: 1px solid rgba(168, 135, 63, 0.35);
  border-radius: 4px;
  color: rgba(168, 135, 63, 0.85);
}

.ad strong {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.ad small {
  font-size: 11px;
  opacity: 0.75;
}

.ad-billboard {
  min-height: 108px;
}

.ad-section {
  padding: 26px 0 0;
}

.ad-billboard .ad-size {
  display: none;
}

.ad-native {
  min-height: 92px;
  margin: 28px 0;
}

.ad-side {
  min-height: 520px;
  border-radius: 16px;
}

.ad-stack {
  display: grid;
  gap: 16px;
}

/* =========================================================
   Check tool
   ========================================================= */

.section-check {
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(215, 181, 109, 0.16), transparent 60%),
    var(--cream);
  border-bottom: 1px solid rgba(18, 33, 26, 0.07);
}

.check-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 40px;
  align-items: start;
}

.check-left {
  display: grid;
  gap: 16px;
}

.check-aside {
  display: grid;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.ticket {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(18, 33, 26, 0.1);
  border-radius: 20px;
  padding: 30px 30px 26px;
  box-shadow: 0 30px 70px -46px rgba(11, 51, 37, 0.6);
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(18, 33, 26, 0.1);
  top: 80px;
}

.ticket::before {
  left: -13px;
  clip-path: inset(0 0 0 50%);
}

.ticket::after {
  right: -13px;
  clip-path: inset(0 50% 0 0);
}

.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(18, 33, 26, 0.18);
}

.tabs {
  display: inline-flex;
  padding: 4px;
  background: rgba(11, 51, 37, 0.06);
  border-radius: 999px;
  gap: 2px;
}

.tab {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  line-height: 1.3;
}

.tab.is-active {
  background: var(--jade-800);
  color: var(--cream);
  box-shadow: 0 6px 14px -8px rgba(11, 51, 37, 0.9);
}

.ticket-hint {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.digit-field {
  margin: 30px 0 6px;
  display: flex;
  justify-content: center;
}

.digit-field input {
  width: 100%;
  max-width: 460px;
  border: 0;
  border-bottom: 2px solid rgba(11, 51, 37, 0.18);
  background: transparent;
  text-align: left;
  font-family: var(--font-body);
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 12px 2px 12px;
  color: var(--jade-800);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.25s;
}

.digit-field input::placeholder {
  font-size: 14.5px;
  letter-spacing: 0;
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-weight: 400;
}

.digit-field input:focus {
  outline: none;
  border-color: var(--gold-deep);
}

.ticket .btn {
  margin-top: 22px;
}

.ticket-foot {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-faint);
  text-align: center;
}

.link-demo {
  border: 0;
  background: none;
  padding: 0;
  color: var(--jade-700);
  font-family: var(--font-ui);
  font-weight: 500;
  border-bottom: 1px dotted var(--gold-deep);
  cursor: pointer;
}

.link-demo:hover {
  color: var(--gold-deep);
}

.check-result {
  margin-top: 22px;
  border-radius: 14px;
  padding: 18px 20px;
  background: rgba(11, 51, 37, 0.05);
  border: 1px solid rgba(11, 51, 37, 0.12);
  animation: resultIn 0.4s var(--ease);
}

@keyframes resultIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.check-result.is-win {
  background: linear-gradient(150deg, rgba(215, 181, 109, 0.18), rgba(232, 145, 47, 0.1));
  border-color: rgba(168, 135, 63, 0.5);
}

.check-result.is-lose {
  background: rgba(18, 33, 26, 0.04);
}

.cr-title {
  font-family: var(--font-thai);
  font-size: 19px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-result.is-win .cr-title {
  color: var(--jade-800);
}

.cr-detail {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.6;
}

.cr-detail b {
  color: var(--ink);
  font-family: var(--font-ui);
  letter-spacing: 0.08em;
}

.cr-amount {
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold-deep);
}

/* batch result list */
.cr-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.cr-item {
  display: grid;
  grid-template-columns: 5.8em minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(11, 51, 37, 0.09);
  font-size: 13.5px;
  line-height: 1.35;
}

.cr-item:first-child {
  border-top: 0;
}

.cr-item b {
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.cr-item span {
  color: var(--ink-soft);
}

.cr-item i {
  font-style: normal;
  font-family: var(--font-ui);
  color: var(--ink-faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cr-item.is-win b,
.cr-item.is-win span {
  color: var(--jade-800);
  font-weight: 600;
}

.cr-item.is-win i {
  color: var(--gold-deep);
  font-weight: 600;
}

.cr-item.is-win + .cr-item.is-win {
  border-top-color: rgba(168, 135, 63, 0.24);
}

.ticket-tip {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}

/* ============ draw select ============ */
.ticket-draw {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(18, 33, 26, 0.12);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

.ticket-draw:focus {
  outline: none;
  border-color: var(--gold);
}

/* ============ result section head (期次标题) ============ */
.result-section-head {
  margin-bottom: 10px;
}

.rsh-eyebrow {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

.rsh-title {
  margin: 6px 0 0;
  font-family: var(--font-thai);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 600;
  color: var(--jade-900);
  line-height: 1.3;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rsh-first {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--jade-700);
  background: rgba(21, 87, 63, 0.07);
  border: 1px solid rgba(21, 87, 63, 0.14);
  border-radius: 6px;
  padding: 4px 10px;
  letter-spacing: 0.04em;
}

/* ============ result cards (9类奖项紧凑卡片) ============ */
.result-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rc {
  border: 1px solid rgba(18, 33, 26, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rc.is-top {
  border-color: var(--gold);
  background: linear-gradient(145deg, #fffbf0, #fff);
}

.rc.is-adj {
  border-color: rgba(215, 181, 109, 0.45);
}

.rc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.rc-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.rc-prize {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--jade-700);
  font-weight: 600;
}

.rc-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rc-nums b {
  font-family: var(--font-ui);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--jade-800);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rc.is-top .rc-nums b {
  font-size: 22px;
  color: var(--gold-deep);
}

.rc.is-many .rc-nums {
  max-height: 44px;
  overflow: hidden;
  position: relative;
}

.rc.is-many .rc-nums::after {
  content: "…";
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: 16px;
  background: linear-gradient(to right, transparent, #fff 40%);
  color: var(--ink-faint);
}

.rc.is-many.is-expanded .rc-nums {
  max-height: none;
  overflow: visible;
}

.rc.is-many.is-expanded .rc-nums::after {
  display: none;
}

.rc-toggle {
  margin-top: 6px;
  border: 0;
  background: none;
  padding: 4px 0;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--jade-700);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  letter-spacing: 0.02em;
}

.rc-toggle:hover {
  color: var(--gold-deep);
}

.rc-note {
  font-size: 10.5px;
  color: var(--ink-faint);
  margin-top: 2px;
}

/* ============ past list ============ */
.past-list {
  border: 1px solid rgba(18, 33, 26, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}

.past-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--jade-800);
  letter-spacing: 0.02em;
}

.past-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.past-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 2px;
  border-bottom: 1px solid rgba(18, 33, 26, 0.05);
}

.past-list li:last-child {
  border-bottom: none;
}

.past-list a {
  font-size: 12.5px;
  color: var(--ink);
  text-decoration: none;
}

.past-list a:hover {
  color: var(--gold-deep);
}

.past-list b {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--jade-700);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* prize table (旧，保留兼容) */
.prize-table-wrap h3 {
  font-family: var(--font-thai);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.prize-table-wrap > p {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.prize-table {
  border-top: 1px solid rgba(18, 33, 26, 0.12);
}

.prize-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(18, 33, 26, 0.09);
  align-items: baseline;
}

.prize-row dt {
  font-size: 14px;
  color: var(--ink-soft);
}

.prize-row dt b {
  display: block;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.prize-row dd {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  color: var(--jade-700);
  white-space: nowrap;
}

.prize-row.is-top dd {
  color: var(--gold-deep);
  font-size: 19px;
}

.prize-row.is-top dt b {
  font-size: 16px;
}

.fine {
  margin-top: 16px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* =========================================================
   Hot numbers
   ========================================================= */

.section-hot {
  background:
    radial-gradient(120% 70% at 12% 0%, rgba(21, 87, 63, 0.6), transparent 55%),
    var(--jade-950);
  color: var(--cream);
  overflow: hidden;
}

.section-hot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d7b56d' stroke-opacity='.1' stroke-width='.7'%3E%3Cpath d='M60 12c8 11 18 15 18 25 0 8-8 14-18 14s-18-6-18-14c0-10 10-14 18-25z'/%3E%3Cpath d='M60 64c4 6 9 9 9 14 0 5-4 8-9 8s-9-3-9-8c0-5 5-8 9-14z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.55;
  pointer-events: none;
}

.section-hot .wrap {
  position: relative;
}

.section-hot .sec-head h2 {
  color: var(--cream);
}

.section-hot .sec-head .sec-desc {
  color: rgba(250, 245, 232, 0.6);
}

.hot-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.chip-label {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 245, 232, 0.45);
  margin-right: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(215, 181, 109, 0.34);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  background: rgba(215, 181, 109, 0.06);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.chip:hover {
  background: rgba(215, 181, 109, 0.16);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.hot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.hot-list {
  border-top: 1px solid rgba(215, 181, 109, 0.2);
}

.hot-item {
  display: grid;
  grid-template-columns: 52px 148px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(215, 181, 109, 0.14);
  transition: background 0.3s, padding-left 0.3s;
}

.hot-item:hover {
  background: linear-gradient(90deg, rgba(215, 181, 109, 0.08), transparent 70%);
  padding-left: 12px;
}

.hot-rank {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(250, 245, 232, 0.34);
  letter-spacing: 0.1em;
}

.hot-item:nth-child(-n + 3) .hot-rank {
  color: var(--gold);
}

.hot-num {
  font-family: var(--font-thai);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--cream);
  line-height: 1.1;
}

.hot-meta {
  min-width: 0;
}

.hot-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid rgba(215, 181, 109, 0.3);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 6px;
}

.hot-desc {
  font-size: 14px;
  color: rgba(250, 245, 232, 0.66);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.hot-heat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
}

.hot-heat b {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold-bright);
}

.heat-bar {
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: rgba(250, 245, 232, 0.12);
  overflow: hidden;
}

.heat-bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  background: linear-gradient(90deg, rgba(215, 181, 109, 0.5), var(--gold-bright));
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease);
}

.is-in .heat-bar i {
  transform: scaleX(1);
}

.hot-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 18px;
}

.aside-history {
  border: 1px solid rgba(215, 181, 109, 0.22);
  border-radius: 14px;
  padding: 18px 16px;
  background: linear-gradient(160deg, rgba(215, 181, 109, 0.08), rgba(4, 26, 18, 0.4));
}

.aside-history-title {
  margin: 0;
  font-family: var(--font-thai);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.aside-history-sub {
  margin: 4px 0 14px;
  font-size: 11.5px;
  color: rgba(250, 245, 232, 0.56);
  line-height: 1.6;
}

.aside-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.aside-history-list li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: baseline;
  gap: 8px;
  padding: 6px 2px;
  border-bottom: 1px solid rgba(215, 181, 109, 0.1);
  font-size: 13px;
  color: var(--cream);
}

.aside-history-list li b {
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.aside-history-list li em {
  font-style: normal;
  font-size: 11px;
  color: rgba(250, 245, 232, 0.48);
}

.aside-history-foot {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(215, 181, 109, 0.18);
  font-size: 11px;
  color: rgba(250, 245, 232, 0.48);
  line-height: 1.6;
}

.aside-note {
  border: 1px solid rgba(215, 181, 109, 0.22);
  border-radius: 14px;
  padding: 18px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(250, 245, 232, 0.64);
}

.aside-note strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 500;
}

/* =========================================================
   Stats + dream
   ========================================================= */

.section-insight {
  background: var(--cream);
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid rgba(18, 33, 26, 0.12);
}

.insight-col {
  padding: 44px 48px 0 0;
}

.insight-col + .insight-col {
  padding: 44px 0 0 48px;
  border-left: 1px solid rgba(18, 33, 26, 0.12);
}

.insight-col h2 {
  font-family: var(--font-thai);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 600;
  margin-top: 12px;
  line-height: 1.35;
}

.insight-col .sec-desc {
  margin-top: 10px;
  margin-bottom: 26px;
  font-size: 14.5px;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.chart-note {
  font-size: 11.5px;
  color: var(--ink-faint);
}

.chart {
  height: 210px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 9px;
  align-items: end;
  padding-top: 26px;
  border-bottom: 1px solid rgba(18, 33, 26, 0.14);
  margin-bottom: 10px;
}

.bar {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
}

.bar b {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.bar i {
  display: block;
  width: 100%;
  height: 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #c7213b, #7a1830);
  transition: height 0.9s var(--ease);
}

.bar.is-top i {
  background: linear-gradient(180deg, #e8c98a, #b9924a);
}

.bar.is-top b {
  color: var(--gold-deep);
}

.bar span {
  position: absolute;
  bottom: -24px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.chart-wrap {
  padding-bottom: 18px;
}

.chart-insight {
  margin-top: 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid rgba(215, 181, 109, 0.32);
  font-size: 13px;
  line-height: 1.6;
  color: var(--jade-800);
}

.dream-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(18, 33, 26, 0.16);
  border-radius: 999px;
  padding: 5px 5px 5px 18px;
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.dream-search:focus-within {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(215, 181, 109, 0.14);
}

.dream-search svg {
  width: 17px;
  height: 17px;
  color: var(--ink-faint);
  flex-shrink: 0;
}

.dream-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 0;
  font-size: 14.5px;
  min-width: 0;
}

.dream-search input:focus {
  outline: none;
}

.dream-search input::placeholder {
  color: var(--ink-faint);
}

.dream-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
}

.dream-group {
  padding: 12px 0;
  border-bottom: 1px solid rgba(18, 33, 26, 0.09);
}

.dream-group-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--jade-800);
  letter-spacing: 0.01em;
}

.dream-sub {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 3px;
}

.dream-sub li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px;
  font-size: 13px;
  color: var(--ink-soft);
}

.dream-sub li b {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--jade-700);
  background: rgba(11, 51, 37, 0.07);
  border-radius: 5px;
  padding: 2px 7px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.dream-empty {
  grid-column: 1 / -1;
  padding: 22px 0;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.insight-foot {
  margin-top: 22px;
}

/* =========================================================
   Stories
   ========================================================= */

.section-stories {
  background: var(--paper);
  border-top: 1px solid rgba(18, 33, 26, 0.08);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

.feature-story {
  display: block;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--jade-900);
  color: var(--cream);
  min-height: 460px;
  isolation: isolate;
}

.feature-story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.feature-story:hover img {
  transform: scale(1.04);
}

.feature-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 26, 18, 0.06) 30%, rgba(4, 26, 18, 0.86) 100%);
}

.feature-body {
  position: absolute;
  inset: auto 0 0;
  padding: 32px;
  z-index: 1;
}

.story-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2a1e08;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(215, 181, 109, 0.22);
  border: 1px solid rgba(215, 181, 109, 0.48);
  font-weight: 700;
}

.story-tag.is-real {
  color: #05381a;
  background: rgba(6, 199, 85, 0.14);
  border-color: rgba(6, 150, 76, 0.45);
  letter-spacing: 0.04em;
  text-transform: none;
}

.feature-story .story-tag.is-real {
  color: #e8fbf0;
  background: rgba(6, 199, 85, 0.28);
  border-color: rgba(145, 231, 170, 0.55);
}

.feature-body h3 {
  font-family: var(--font-thai);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 14px;
}

.feature-body p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(250, 245, 232, 0.7);
  max-width: 52ch;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(250, 245, 232, 0.55);
}

.story-meta span + span::before {
  content: "·";
  margin-right: 10px;
}

.story-list {
  border-top: 1px solid rgba(18, 33, 26, 0.14);
}

.story-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(18, 33, 26, 0.12);
  align-items: center;
}

.story-row figure {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--jade-800);
}

.story-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.story-row:hover img {
  transform: scale(1.06);
}

.story-row h4 {
  font-family: var(--font-thai);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.2s;
}

.story-loc {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.5;
}

.story-row:hover h4 {
  color: var(--gold-deep);
}

.story-row .story-meta {
  margin-top: 8px;
  color: var(--ink-faint);
}

.story-row .story-meta span + span::before {
  color: var(--ink-faint);
}

.story-row.is-text-only {
  grid-template-columns: minmax(0, 1fr);
}

.story-row.is-text-only h4 {
  font-size: 17px;
}

.story-row.is-text-only .story-index {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

/* =========================================================
   Categories
   ========================================================= */

.section-cats {
  background: var(--cream);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(18, 33, 26, 0.16);
}

.cat-item {
  position: relative;
  padding: 30px 28px 34px;
  border-bottom: 1px solid rgba(18, 33, 26, 0.1);
  border-right: 1px solid rgba(18, 33, 26, 0.08);
  transition: background 0.35s, transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.cat-item:last-child {
  border-right: 0;
}

.cat-item:hover {
  background: var(--white);
  transform: translateY(-3px);
}

.cat-index {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
}

.cat-item h3 {
  font-family: var(--font-thai);
  font-size: 20px;
  font-weight: 600;
  margin-top: 22px;
  line-height: 1.4;
}

.cat-item p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.65;
  flex: 1;
}

.cat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.cat-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(18, 33, 26, 0.16);
  display: grid;
  place-items: center;
  color: var(--jade-700);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.cat-item:hover .cat-arrow {
  background: var(--jade-800);
  border-color: var(--jade-800);
  color: var(--gold-bright);
}

.cat-arrow svg {
  width: 13px;
  height: 13px;
}

/* =========================================================
   Subscribe band
   ========================================================= */

.section-sub {
  background:
    radial-gradient(100% 130% at 0% 0%, rgba(21, 87, 63, 0.9), transparent 62%),
    var(--jade-950);
  color: var(--cream);
  padding: 74px 0;
  position: relative;
  overflow: hidden;
}

.section-sub::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(215, 181, 109, 0.18);
  box-shadow: 0 0 0 60px rgba(215, 181, 109, 0.04),
    0 0 0 120px rgba(215, 181, 109, 0.025);
}

.sub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  position: relative;
}

.sub-grid h2 {
  font-family: var(--font-thai);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 12px;
}

.sub-grid .sec-desc {
  color: rgba(250, 245, 232, 0.6);
  margin-top: 12px;
}

.sub-form {
  display: flex;
  gap: 8px;
  background: rgba(250, 245, 232, 0.06);
  border: 1px solid rgba(215, 181, 109, 0.3);
  border-radius: 999px;
  padding: 6px;
}

.sub-form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  color: var(--cream);
  font-size: 14px;
  min-width: 0;
}

.sub-form input::placeholder {
  color: rgba(250, 245, 232, 0.4);
}

.sub-form input:focus {
  outline: none;
}

.sub-form .btn {
  flex-shrink: 0;
}

.sub-fine {
  margin-top: 12px;
  font-size: 11.5px;
  color: rgba(250, 245, 232, 0.4);
}

/* =========================================================
   LINE OA subscription card
   ========================================================= */

.line-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 22px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(145deg, #06c755, #059e44);
  box-shadow: 0 8px 28px rgba(6, 199, 85, 0.22);
  color: #fff;
}

.line-qr-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
}

.line-qr {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.line-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #02110b;
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.line-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.line-title {
  margin: 0;
  font-family: var(--font-thai);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.line-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.line-step {
  margin: 4px 0 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.28);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.line-step.is-hint {
  border-top: 0;
  padding-top: 0;
  color: rgba(255, 255, 255, 0.7);
}

.line-cta {
  align-self: flex-start;
  margin-top: 2px;
}

.line-steps {
  margin: 8px 0 0;
  padding: 10px 0 0 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.28);
  display: grid;
  gap: 4px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.line-steps a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.line-steps b {
  color: var(--gold-bright);
  font-weight: 700;
}

.sub-mail-wrap {
  margin-top: 16px;
  border-top: 1px solid rgba(250, 245, 232, 0.12);
  padding-top: 14px;
}

.sub-mail-toggle {
  font-size: 12.5px;
  color: rgba(250, 245, 232, 0.6);
  cursor: pointer;
  user-select: none;
}

.sub-mail-toggle:hover {
  color: var(--gold-bright);
}

.sub-mail-wrap .sub-form {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.sub-mail-wrap .sub-form input {
  flex: 1;
  height: 40px;
  font-size: 13px;
  background: rgba(250, 245, 232, 0.08);
}

.sub-mail-wrap .sub-form .btn {
  height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: #02110b;
  color: rgba(250, 245, 232, 0.62);
  padding: 64px 0 26px;
  font-size: 13.5px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.7fr));
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(215, 181, 109, 0.14);
}

.footer-brand p {
  margin-top: 16px;
  max-width: 34ch;
  line-height: 1.8;
  font-size: 13px;
  color: rgba(250, 245, 232, 0.5);
}

.footer-brand .lang-switch {
  margin-top: 20px;
  justify-self: start;
  display: inline-flex;
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(250, 245, 232, 0.58);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--gold-bright);
}

.compliance {
  margin-top: 32px;
  border: 1px solid rgba(215, 181, 109, 0.24);
  border-radius: 14px;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 22px;
  background: rgba(215, 181, 109, 0.03);
}

.age-badge {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(215, 181, 109, 0.5);
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--gold);
  font-family: var(--font-ui);
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
}

.age-badge strong {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.age-badge span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 5px;
  color: rgba(215, 181, 109, 0.7);
}

.compliance-list {
  display: grid;
  gap: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(250, 245, 232, 0.5);
}

.compliance-list li {
  display: flex;
  gap: 9px;
}

.compliance-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(215, 181, 109, 0.6);
  flex-shrink: 0;
  margin-top: 8px;
}

.compliance-list a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 11.5px;
  color: rgba(250, 245, 232, 0.36);
  letter-spacing: 0.02em;
}

.footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal a:hover {
  color: var(--gold);
}

/* =========================================================
   Mobile bottom bar
   ========================================================= */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: none;
  background: rgba(250, 245, 232, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(215, 181, 109, 0.4);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}

.mobile-bar.is-visible {
  transform: translateY(0);
}

.mobile-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 2px 6px;
  font-family: var(--font-ui);
  font-size: 10.5px;
  color: var(--ink-soft);
  border-radius: 10px;
  position: relative;
}

.mobile-bar a svg {
  width: 20px;
  height: 20px;
}

.mobile-bar a.is-active {
  color: var(--jade-800);
  font-weight: 500;
}

.mobile-bar a.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-deep);
}

/* =========================================================
   Reveal motion
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-d1 {
  transition-delay: 0.08s;
}

.reveal-d2 {
  transition-delay: 0.16s;
}

.reveal-d3 {
  transition-delay: 0.24s;
}

/* =========================================================
   Today's lucky numbers (compact, inside hero)
   ========================================================= */

.lucky-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(215, 181, 109, 0.28);
  background: rgba(4, 26, 18, 0.42);
  backdrop-filter: blur(8px);
}

.lucky-strip-label {
  font-size: 11.5px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: rgba(250, 245, 232, 0.68);
  white-space: nowrap;
}

.lucky-strip-nums {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lucky-strip-nums li {
  padding: 2px 8px;
  border-radius: 7px;
  background: rgba(215, 181, 109, 0.16);
}

.lucky-strip-nums b {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.lucky-strip-save {
  padding: 0;
  border: 0;
  background: none;
  font-size: 11.5px;
  color: rgba(250, 245, 232, 0.58);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
}

.lucky-strip-save:hover {
  color: var(--gold-bright);
}

/* =========================================================
   My numbers book
   ========================================================= */

.book {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-ink);
}

.book-head h3 {
  font-family: var(--font-thai);
  font-size: 18px;
  font-weight: 600;
  color: var(--jade-800);
}

.book-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-family: var(--font-ui);
  font-size: 12px;
  vertical-align: 2px;
}

.book-head p {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.book-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  max-height: 268px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.book-list::-webkit-scrollbar {
  width: 6px;
}

.book-list::-webkit-scrollbar-thumb {
  background: rgba(18, 33, 26, 0.18);
  border-radius: 3px;
}

.book-item {
  display: grid;
  grid-template-columns: 6em auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed rgba(18, 33, 26, 0.1);
  font-size: 13.5px;
}

.book-item:first-child {
  border-top: 0;
}

.book-item b {
  font-family: var(--font-ui);
  font-size: 16px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.book-item span {
  color: var(--ink-soft);
}

.book-draw {
  font-style: normal;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(18, 33, 26, 0.06);
  color: var(--ink-faint);
  font-family: var(--font-ui);
  white-space: nowrap;
  letter-spacing: 0.02em;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-self: start;
}

.book-draw.is-current {
  background: rgba(21, 87, 63, 0.1);
  color: var(--jade-700);
  border: 1px solid rgba(21, 87, 63, 0.18);
}

.book-item.is-win b,
.book-item.is-win span {
  color: var(--jade-700);
  font-weight: 600;
}

.book-del {
  border: 0;
  background: none;
  padding: 4px 6px;
  font-size: 12px;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 0.2s;
}

.book-del:hover {
  color: var(--ruby);
}

.book-empty {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-faint);
}

.book-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

/* 号码本入口（首页侧栏） */
.book-entry {
  display: block;
  text-decoration: none;
  transition: border-color 0.16s, transform 0.16s;
}

.book-entry:hover {
  border-color: rgba(168, 135, 63, 0.5);
  transform: translateY(-2px);
}

.book-entry-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
}

.book-entry-go i {
  font-style: normal;
  transition: transform 0.16s;
}

.book-entry:hover .book-entry-go i {
  transform: translateX(3px);
}

/* 头部号码本入口 */
.header-book {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(215, 181, 109, 0.4);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}

.header-book:hover {
  background: rgba(215, 181, 109, 0.16);
  border-color: var(--gold);
  color: #fff;
}

.header-book b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #2b1a05;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .header-book {
    display: none;
  }
}

/* 号码本独立页 */
.book-page {
  padding: 34px 0 70px;
}

.book-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
}

.book-page-head h1 {
  margin: 4px 0 0;
  font-family: var(--font-thai);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--jade-900);
}

.book-page-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.book-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.book-stat {
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-ink);
  background: var(--paper);
  text-align: center;
}

.book-stat strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
  color: var(--jade-900);
  font-variant-numeric: tabular-nums;
}

.book-stat.is-win strong {
  color: var(--crimson-800);
}

.book-stat span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-faint);
}

.book-panel {
  padding: 8px 26px 22px;
  border: 1px solid var(--line-ink);
  border-radius: 16px;
  background: var(--paper);
}

.book-page .book-list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.book-page .book-item {
  padding: 14px 4px;
}

.book-page .book-item b {
  font-size: 20px;
}

.book-page .book-empty {
  padding: 46px 0;
  text-align: center;
  font-size: 13.5px;
}

.book-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-ink);
}

.book-panel-foot small {
  font-size: 11.5px;
  color: var(--ink-faint);
}

/* 号码本 · LINE 提醒 */
.book-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px 26px;
  border-radius: 16px;
  border: 1px solid rgba(6, 150, 76, 0.28);
  background: linear-gradient(135deg, rgba(6, 199, 85, 0.1), rgba(6, 199, 85, 0.02));
}

.book-line-kicker {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #05773a;
}

.book-line h2 {
  margin: 6px 0 0;
  font-family: var(--font-thai);
  font-size: 19px;
  font-weight: 600;
  color: var(--jade-900);
}

.book-line-copy p {
  margin: 6px 0 0;
  max-width: 62ch;
  font-size: 13px;
  color: var(--ink-soft);
}

.book-line-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.book-line-note {
  max-width: 260px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.book-line-note.is-error {
  color: var(--crimson-700);
}

.book-line-code {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(6, 150, 76, 0.45);
  background: rgba(255, 255, 255, 0.66);
  text-align: left;
}

.book-line-code p {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-soft);
}

.book-line-code strong {
  display: block;
  margin: 2px 0 4px;
  font-family: var(--font-ui);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #05773a;
  font-variant-numeric: tabular-nums;
}

.book-line-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.book-line-code small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-faint);
}

@media (max-width: 820px) {
  .book-line {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .book-line-action {
    align-items: flex-start;
    text-align: left;
  }
}

/* =========================================================
   Birth numerology tool
   ========================================================= */

.section-birth {
  padding-top: 10px;
}

.birth-panel {
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 26px 30px;
}

.birth-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.birth-label {
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--jade-800);
}

.birth-date {
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(18, 33, 26, 0.22);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
}

.birth-form .btn {
  height: 48px;
  padding: 0 26px;
}

.birth-result {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(18, 33, 26, 0.12);
}

.birth-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.birth-nums li {
  min-width: 92px;
  padding: 14px 18px;
  border-radius: 12px;
  text-align: center;
  background: var(--gold-soft);
  border: 1px solid rgba(215, 181, 109, 0.4);
}

.birth-nums b {
  display: block;
  font-family: var(--font-ui);
  font-size: 30px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--jade-800);
}

.birth-nums span {
  font-size: 11.5px;
  color: var(--gold-deep);
}

.birth-read {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.birth-note {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--ink-faint);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .prize-number span {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .nav {
    gap: 0;
  }

  .nav a {
    padding: 9px 10px;
    font-size: 13.5px;
  }

  .hot-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 34px;
  }

  .hot-item {
    grid-template-columns: 44px 128px minmax(0, 1fr) 100px;
    gap: 16px;
  }
}

@media (max-width: 1040px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .header-inner {
    gap: 14px;
  }

  .brand {
    margin-right: auto;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    min-height: 0;
    padding-top: 18px;
    padding-bottom: 54px;
  }

  .hero-bg img {
    object-position: 72% 30%;
  }

  .countdown-card {
    max-width: 460px;
  }

  .check-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .hot-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hot-aside {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .hot-aside .ad-side {
    min-height: 200px;
  }

  .insight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .insight-col {
    padding: 36px 0 40px;
  }

  .insight-col + .insight-col {
    padding: 36px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(18, 33, 26, 0.12);
  }

  .story-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .feature-story {
    min-height: 420px;
  }

  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cat-item:nth-child(2) {
    border-right: 0;
  }

  .cat-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(18, 33, 26, 0.1);
  }

  .sub-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 46ch;
  }

  .mobile-bar {
    display: flex;
  }

  body {
    padding-bottom: 72px;
  }

  .section {
    padding: 64px 0;
  }

  .ticker-label {
    padding-left: 20px;
    font-size: 10.5px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 66px;
  }

  .check-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .check-aside {
    position: static;
  }

  .result-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .rc.is-top .rc-nums b {
    font-size: 20px;
  }

  .lucky-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 14px;
  }

  .lucky-strip-label {
    font-size: 11px;
  }

  .lucky-strip-save {
    margin-left: auto;
  }

  .hero-check {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .hero-check-row {
    flex-wrap: wrap;
  }

  .hero-check-more {
    width: 100%;
    order: 3;
    font-size: 11.5px;
    text-align: right;
  }

  .birth-panel {
    padding: 20px 16px;
  }

  .birth-date {
    flex: 1;
    min-width: 0;
  }

  .birth-form .btn {
    width: 100%;
  }

  .line-card {
    grid-template-columns: 1fr;
    padding: 18px 16px;
    gap: 16px;
  }

  .line-qr-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }

  .line-title {
    font-size: 16px;
    text-align: center;
  }

  .line-benefits {
    font-size: 12.5px;
  }

  .line-step {
    font-size: 11.5px;
    text-align: center;
  }

  .sub-mail-wrap .sub-form {
    flex-direction: column;
  }

  .sub-mail-wrap .sub-form .btn {
    width: 100%;
    justify-content: center;
  }

  .book-item {
    grid-template-columns: 4.8em auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .wrap {
    padding: 0 18px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 21px;
    border-radius: 10px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    font-size: 8px;
    letter-spacing: 0.24em;
  }

  .header-actions .btn-gold {
    display: none;
  }

  .hero {
    padding-top: 26px;
  }

  .hero-inner {
    gap: 34px;
    padding-bottom: 42px;
  }

  .prize-number {
    font-size: clamp(3.1rem, 15vw, 4.6rem);
    letter-spacing: 0.03em;
  }

  .prize-number span:nth-child(4) {
    margin-left: 0.08em;
  }

  .prize-label {
    margin-top: 24px;
    font-size: 11px;
  }

  .prize-strip {
    display: flex;
    width: 100%;
    gap: 16px 0;
    margin-top: 26px;
    padding: 16px;
  }

  .prize-item {
    flex: 0 0 50%;
    padding: 0 16px;
  }

  .prize-item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .prize-item dd {
    font-size: 18px;
  }

  .prize-item:nth-child(n + 3) {
    margin-top: 12px;
  }

  .hero-actions {
    margin-top: 26px;
    gap: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 15px 12px;
    font-size: 13.5px;
  }

  .hero-note {
    font-size: 11.5px;
  }

  .countdown-card {
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .countdown-card::before,
  .countdown-card::after {
    top: 50%;
  }

  .cd-lead {
    flex: 1 1 100%;
    min-width: 0;
    padding-right: 0;
    border-right: none;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(18, 33, 26, 0.18);
  }

  .cd-date {
    font-size: 17px;
    margin-top: 3px;
  }

  .cd-grid {
    flex: 1 1 auto;
    gap: 6px;
  }

  .cd-cell {
    padding: 6px 3px 4px;
  }

  .cd-cell strong {
    font-size: 18px;
  }

  .cd-cell span {
    font-size: 9px;
    margin-top: 2px;
  }

  .cd-side {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    padding-left: 10px;
    border-left: 1px dashed rgba(18, 33, 26, 0.18);
  }

  .ticker {
    height: 44px;
  }

  .ticker-label {
    font-size: 9.5px;
    padding: 0 12px 0 18px;
    letter-spacing: 0.1em;
  }

  .ticker-item {
    padding: 0 16px;
    font-size: 12px;
  }

  .ticker-item b {
    font-size: 13px;
  }

  .section {
    padding: 52px 0;
  }

  .sec-head {
    margin-bottom: 28px;
  }

  .sec-head h2 {
    font-size: 1.55rem;
    margin-top: 10px;
  }

  .sec-desc {
    font-size: 14px;
    margin-top: 10px;
  }

  .sec-head-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .updated {
    padding-bottom: 0;
    font-size: 12px;
  }

  .ticket {
    padding: 22px 18px 20px;
    border-radius: 16px;
  }

  .ticket::before,
  .ticket::after {
    top: 70px;
  }

  .ticket-top {
    gap: 10px;
    padding-bottom: 14px;
  }

  .tab {
    padding: 7px 12px;
    font-size: 12px;
  }

  .ticket-hint {
    font-size: 11px;
  }

  .digit-field {
    margin: 22px 0 4px;
  }

  .digit-field input {
    font-size: 19px;
    letter-spacing: 0.03em;
    padding: 10px 2px;
  }

  .digit-field input::placeholder {
    font-size: 13.5px;
  }

  .prize-row {
    padding: 13px 0;
  }

  .hot-chips {
    gap: 8px;
    margin-bottom: 26px;
  }

  .chip {
    padding: 8px 13px;
    font-size: 13.5px;
  }

  .chip-label {
    width: 100%;
    margin-bottom: 2px;
  }

  .hot-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank num heat"
      "rank meta meta";
    gap: 4px 12px;
    padding: 16px 2px;
  }

  .hot-rank {
    grid-area: rank;
    align-self: start;
    padding-top: 10px;
    font-size: 11px;
  }

  .hot-num {
    grid-area: num;
    font-size: 28px;
  }

  .hot-meta {
    grid-area: meta;
  }

  .hot-source {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .hot-desc {
    font-size: 12.5px;
  }

  .hot-heat {
    grid-area: heat;
    width: 74px;
    align-self: center;
  }

  .hot-heat b {
    font-size: 12px;
  }

  .hot-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .insight-col h2 {
    font-size: 1.35rem;
  }

  .chart {
    height: 170px;
    gap: 5px;
  }

  .bar b {
    font-size: 9.5px;
  }

  .bar span {
    font-size: 11px;
  }

  .dream-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .dream-group-title {
    font-size: 12.5px;
  }

  .dream-sub li {
    font-size: 12.5px;
  }

  .feature-story {
    min-height: 380px;
    border-radius: 14px;
  }

  .feature-body {
    padding: 22px;
  }

  .feature-body h3 {
    font-size: 1.3rem;
  }

  .feature-body p {
    font-size: 13px;
  }

  .story-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }

  .story-row h4 {
    font-size: 15px;
  }

  .cat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cat-item {
    border-right: 0;
    min-height: 0;
    padding: 22px 4px 24px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas:
      "idx title"
      "idx desc";
    gap: 2px 12px;
    align-items: center;
  }

  .cat-index {
    grid-area: idx;
    align-self: start;
    padding-top: 4px;
  }

  .cat-item h3 {
    grid-area: title;
    margin-top: 0;
    font-size: 17px;
  }

  .cat-item p {
    grid-area: desc;
    font-size: 12.5px;
    margin-top: 2px;
  }

  .cat-foot {
    display: none;
  }

  .cat-arrow {
    grid-area: arrow;
  }

  .compliance {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .age-badge {
    width: 62px;
    height: 62px;
  }

  .age-badge strong {
    font-size: 22px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-col h4 {
    font-size: 11px;
  }

  .footer-col a {
    font-size: 12.5px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
  }

  .footer-legal {
    gap: 12px;
  }

  .sub-form {
    flex-direction: column;
    border-radius: 16px;
    padding: 8px;
  }

  .sub-form input {
    padding: 10px 12px;
  }

  .sub-form .btn {
    width: 100%;
  }

  .ad-side {
    min-height: 180px;
  }
}

@media (max-width: 380px) {
  .prize-number {
    font-size: 2.85rem;
  }

  .cd-cell strong {
    font-size: 21px;
  }

  .cd-cell span {
    font-size: 9px;
  }

  .brand-text small {
    display: none;
  }
}

/* 防止装饰元素在窄屏撑出横向滚动 */
html, body { overflow-x: clip; }

/* 移动端触摸目标：语言切换与「ลองดู」示例按钮放大到易点范围 */
@media (max-width: 720px) {
  .lang-switch a,
  .lang-switch span {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    font-size: 13px;
  }
  .link-demo {
    min-height: 26px;
    padding: 5px 2px;
  }
  .cp-past-more a {
    display: inline-block;
    padding: 6px 0;
  }
}
