/* ============================================================
   PICK MYSTIC — STYLE SYSTEM
   Modern Thai tarot experience: structured · emotional · mystical
   ------------------------------------------------------------
   1. Design tokens      5. Section primitives   9. Articles
   2. Reset & base       6. Hero                 10. Benefit
   3. Navbar             7. Topic discovery      11. Footer
   4. Buttons            8. Featured banner      12. Inner pages
   ============================================================ */

/* ===== 1. DESIGN TOKENS ===== */
:root {
  /* Color — soft lavender palette */
  --c-bg:           #F7F4FC;
  --c-bg-2:         #EEE7F7;
  --c-surface:      #FFFFFF;
  --c-tint:         #ECE4F8;
  --c-ink:          #2E2147;
  --c-ink-soft:     #6B5E84;
  --c-ink-mute:     #9B8FB4;
  --c-primary:      #7E57C2;
  --c-primary-deep: #6A45B0;
  --c-primary-soft: #EDE4F7;
  --c-accent:       #E7C879;
  --c-border:       rgba(126, 87, 194, 0.14);
  --c-night-1:      #1C1033;
  --c-night-2:      #2E1A4E;

  /* Spacing scale (4px base) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

  /* Radius */
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 2px 10px rgba(46, 33, 71, 0.07);
  --sh-2: 0 10px 26px rgba(46, 33, 71, 0.11);
  --sh-3: 0 18px 42px rgba(46, 33, 71, 0.17);

  /* Layout */
  --container: 1140px;
  --section-y: clamp(52px, 8vw, 88px);

  /* Type */
  --t-display: 'Playfair Display', serif;
  --t-body: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== 2. RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--t-body);
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 100%);
  background-attachment: fixed;
  color: var(--c-ink);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.3; }

/* ===== 3. NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(126, 87, 194, 0.1);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: #5B3F8A;
}

.nav-logo img { width: 36px; height: 36px; }
.nav-brand { display: inline-flex; flex-direction: column; line-height: 1.05; }
.nav-brand-name { font-size: 14px; font-weight: 700; letter-spacing: 0.15em; }
.nav-brand-tagline { font-size: 9px; font-weight: 500; letter-spacing: 0.08em; opacity: 0.65; text-transform: none; margin-top: 2px; }
@media (max-width: 480px) {
  .nav-brand-tagline { display: none; }
}

.nav-menu { display: flex; gap: 24px; }

.nav-link {
  font-size: 14px;
  color: var(--c-ink-soft);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--c-primary); }

.nav-link.active {
  color: var(--c-primary);
  border-bottom: 2px solid var(--c-primary);
  padding-bottom: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--c-primary);
  cursor: pointer;
}

/* HOME ONLY: transparent navbar overlaying the hero, solidifies on scroll */
.home .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.home .navbar .nav-logo,
.home .navbar .nav-link,
.home .navbar .nav-toggle { transition: color 0.3s ease, border-color 0.3s ease; }
.home .navbar .nav-logo { color: #ffffff; }
.home .navbar .nav-link { color: rgba(255, 255, 255, 0.85); }
.home .navbar .nav-link:hover { color: #ffffff; }
.home .navbar .nav-link.active { color: #ffffff; border-bottom-color: #ffffff; }
.home .navbar .nav-toggle { color: #ffffff; }

.home .navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(126, 87, 194, 0.1);
  box-shadow: 0 2px 14px rgba(126, 87, 194, 0.14);
}
.home .navbar.navbar-scrolled .nav-logo { color: #5B3F8A; }
.home .navbar.navbar-scrolled .nav-link { color: var(--c-ink-soft); }
.home .navbar.navbar-scrolled .nav-link:hover { color: var(--c-primary); }
.home .navbar.navbar-scrolled .nav-link.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.home .navbar.navbar-scrolled .nav-toggle { color: var(--c-primary); }

/* ===== 4. BUTTONS (CTA Button component) ===== */
.btn,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border: none;
  padding: 13px 30px;
  box-shadow: 0 8px 20px rgba(126, 87, 194, 0.26);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(126, 87, 194, 0.34);
}

.btn-secondary {
  background: transparent;
  color: var(--c-primary);
  border: 1px solid var(--c-border);
  padding: 12px 28px;
}
.btn-secondary:hover:not([disabled]) {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
}
.btn-secondary[disabled] { cursor: not-allowed; opacity: 0.6; }

.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ===== 5. SECTION PRIMITIVES ===== */
.section { padding: var(--section-y) 0; }

/* alternating tint adds quiet depth between sections */
.section-tint {
  background: var(--c-tint);
  box-shadow: inset 0 1px 0 rgba(126, 87, 194, 0.08),
              inset 0 -1px 0 rgba(126, 87, 194, 0.08);
}

/* Section Header — centered, with a soft mystical ornament */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--sp-6);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-primary);
}
.eyebrow::before,
.eyebrow::after {
  content: "✦";
  font-size: 9px;
  color: var(--c-primary);
  opacity: 0.55;
}

.section-title {
  font-size: clamp(24px, 4.6vw, 33px);
  font-weight: 700;
  color: var(--c-ink);
}

.section-subtitle {
  font-size: 14.5px;
  color: var(--c-ink-soft);
}

/* "view all" link below a grid */
.section-more {
  text-align: center;
  margin-top: var(--sp-6);
}
.section-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  padding: 11px 24px;
  border-radius: var(--r-pill);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.section-more a:hover {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
  transform: translateY(-2px);
}

/* ===== 6. HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 124px 0 78px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
/* video stays an ambient layer — dimmed so it never competes with content */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.52) saturate(0.82) contrast(0.95);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(20, 12, 38, 0.74) 0%,
    rgba(20, 12, 38, 0.58) 45%,
    rgba(20, 12, 38, 0.92) 100%);
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-9px) rotate(var(--rot, 0deg)); }
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-6);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 540px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-4);
}

.hero-title {
  font-family: var(--t-display);
  font-weight: 800;
  font-size: clamp(48px, 12vw, 90px);
  line-height: 1.04;
  margin-bottom: var(--sp-3);
}
.hero-title-line { display: block; color: #ffffff; }
.hero-title-accent {
  color: var(--c-accent);
  text-shadow: 0 2px 26px rgba(231, 200, 121, 0.4);
}

.hero-desc {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  max-width: 390px;
  margin-bottom: var(--sp-5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.hero .btn-primary {
  background: linear-gradient(135deg, #9B72E0 0%, #7E57C2 100%);
  box-shadow: 0 10px 26px rgba(126, 87, 194, 0.4);
}
.hero .btn-primary:hover { box-shadow: 0 14px 30px rgba(126, 87, 194, 0.5); }
.hero .btn-secondary {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.32);
}
.hero .btn-secondary[disabled] { color: rgba(255, 255, 255, 0.55); }

/* Stat Badge component */
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 7px 14px 7px 10px;
  border-radius: var(--r-pill);
}
.stat-badge-avatars { display: flex; }
.stat-badge-avatars span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  margin-left: -9px;
  background: linear-gradient(135deg, #C9A8F0, #7E57C2);
}
.stat-badge-avatars span:first-child { margin-left: 0; }
.stat-badge-avatars span:nth-child(2) { background: linear-gradient(135deg, #F0A8C9, #C2578A); }
.stat-badge-avatars span:nth-child(3) { background: linear-gradient(135deg, #A8C9F0, #5778C2); }
.stat-badge-avatars span:nth-child(4) { background: linear-gradient(135deg, #F0D9A8, #C2A157); }
.stat-badge-text { font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.stat-badge-text strong { color: #fff; font-weight: 700; }

/* Hero artwork */
.hero-art {
  width: 100%;
  max-width: 320px;
}
.hero-mascot {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.42));
  animation: heroFloat 6s ease-in-out infinite;
}

@media (min-width: 900px) {
  .hero { padding: 152px 0 116px; min-height: 86vh; }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: var(--sp-7);
  }
  .hero-content { align-items: flex-start; flex: 1; }
  .hero-actions { justify-content: flex-start; }
  .hero-art {
    flex: 0 0 auto;
    width: 40vw;
    max-width: 440px;
  }
}

/* ===== 7. TOPIC DISCOVERY (Topic Card component) ===== */
.topic-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}

.topic-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
a.topic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-3);
  border-color: rgba(126, 87, 194, 0.3);
}

.topic-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(160deg, var(--c-night-2), var(--c-night-1));
}
.topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
a.topic-card:hover .topic-media img { transform: scale(1.06); }
/* soft scrim grounds the tag and adds mystical depth */
.topic-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 16, 51, 0.05) 0%, transparent 38%, rgba(28, 16, 51, 0.5) 100%);
}

.topic-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: rgba(28, 16, 51, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
}
.topic-soon-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-primary-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: var(--r-pill);
}

.topic-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-5);
  flex: 1;
}
.topic-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
}
.topic-hook {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--c-ink-soft);
}
.topic-cta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-primary);
}
a.topic-card:hover .topic-cta { color: var(--c-primary-deep); }
.topic-badge {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink-mute);
}

.topic-card.is-soon .topic-media img { filter: grayscale(0.42) brightness(0.94); }

@media (min-width: 560px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 920px) {
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 8. FEATURED BANNER (Banner system) ===== */
.feature-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 90% at 12% 18%, rgba(157, 128, 214, 0.35) 0%, transparent 60%),
    linear-gradient(135deg, #2A1A4A 0%, #1C1033 58%, #2E1A4E 100%);
  border: 1px solid rgba(231, 200, 121, 0.22);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
}

.feature-banner-visual {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--sp-5) var(--sp-5) 0;
}
.feature-banner-visual img {
  width: 180px;
  max-width: 60%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.feature-banner-content {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.feature-banner-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1C1033;
  background: linear-gradient(135deg, #F0DCA0, var(--c-accent));
  padding: 5px 13px;
  border-radius: var(--r-pill);
}
.feature-banner-title {
  font-size: clamp(20px, 3.6vw, 26px);
  font-weight: 700;
  color: #fff;
}
.feature-banner-text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.74);
}
.feature-banner-content .btn-primary {
  margin-top: 6px;
  background: linear-gradient(135deg, #9B72E0 0%, #7E57C2 100%);
}

.feature-banner-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

@media (min-width: 760px) {
  .feature-banner { flex-direction: row; align-items: center; }
  .feature-banner-visual {
    padding: var(--sp-5) 0 var(--sp-5) var(--sp-6);
  }
  .feature-banner-visual img { width: 210px; max-width: none; }
  .feature-banner-content { padding: var(--sp-7) var(--sp-7); }
}

/* ===== 9a. LUCKY COLOR OF THE DAY (daily utility widget) ===== */
/* Lighter than the Pick a Card sections: one soft panel of small chips. */
.lucky-widget {
  background:
    radial-gradient(135% 80% at 0% 0%, rgba(185, 165, 255, 0.22) 0%, transparent 56%),
    linear-gradient(160deg, #F6F0FF 0%, #EFE6FF 100%);
  border: 1px solid rgba(126, 87, 194, 0.12);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: var(--sp-5);
}

.lucky-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.lucky-day-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-ink);
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.lucky-day-pill strong { color: var(--c-primary); font-weight: 700; }
.lucky-widget-note { font-size: 12.5px; color: var(--c-ink-mute); }

.lucky-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.lucky-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-3);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.lucky-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-1);
}

/* soft glowing color circle — dreamy, not flat infographic */
.lucky-swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 28%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(145deg, var(--from), var(--to));
  box-shadow:
    0 5px 16px -3px var(--glow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.lucky-cat { font-size: 12.5px; font-weight: 600; color: var(--c-ink); }
.lucky-color-name { font-size: 12px; color: var(--c-ink-soft); }

.lucky-card.is-avoid { background: rgba(255, 255, 255, 0.55); }
.lucky-card.is-avoid .lucky-swatch { opacity: 0.7; filter: saturate(0.72); }
.lucky-card.is-avoid .lucky-cat { color: var(--c-ink-soft); }

.lucky-cta {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(126, 87, 194, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
}
.lucky-cta-text { font-size: 14.5px; font-weight: 600; color: var(--c-ink); }

@media (min-width: 560px) {
  .lucky-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 760px) {
  .lucky-widget { padding: var(--sp-6); }
  .lucky-grid { grid-template-columns: repeat(6, 1fr); }
  .lucky-cta { flex-direction: row; justify-content: center; gap: var(--sp-4); }
}

/* ===== 9b. ARTICLES (Article Card component) ===== */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-3);
  border-color: rgba(126, 87, 194, 0.3);
}

.post-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(160deg, var(--c-night-2), var(--c-night-1));
}
.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.post-card:hover .post-media img { transform: scale(1.06); }

.post-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-5);
  flex: 1;
}
.post-title { font-size: 16px; font-weight: 700; color: var(--c-ink); }
.post-text { font-size: 13.5px; line-height: 1.65; color: var(--c-ink-soft); }
.post-date {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-ink-mute);
}

@media (min-width: 720px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 10. BENEFIT (centered, scannable) ===== */
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: var(--sh-1);
}
.benefit-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, var(--c-primary-soft), #E2D5F1);
  border-radius: 50%;
  margin-bottom: 4px;
}
.benefit-title { font-size: 16px; font-weight: 700; color: var(--c-ink); }
.benefit-text { font-size: 13.5px; line-height: 1.65; color: var(--c-ink-soft); }

@media (min-width: 720px) {
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 11. SITE FOOTER ===== */
.site-footer {
  background: var(--c-night-1);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--sp-7) 0 var(--sp-5);
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: #fff;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
}
.footer-nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }
.footer-bottom { padding-top: var(--sp-5); }
.footer-copy { font-size: 12px; color: rgba(255, 255, 255, 0.5); }

@media (min-width: 720px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mascot { animation: none; }
}

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .home .nav-menu .nav-link { color: var(--c-ink-soft); }
  .home .nav-menu .nav-link.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(126, 87, 194, 0.1);
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ============================================================
   12. SHARED — AD SLOTS, READING PAGE, CONTENT PAGES, LEGACY FOOTER
   (used by reading/, blog/, about, how-to, faq — kept intact)
   ============================================================ */

/* ===== AD SLOTS ===== */
.ad-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 32px;
}

.ad-slot {
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(126, 87, 194, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9B8AB5;
  font-size: 12px;
  font-style: italic;
}

.ad-728x90 { height: 90px; }

/* ===== LEGACY FOOTER (inner pages) ===== */
.footer {
  text-align: center;
  padding: 32px 0 24px;
  border-top: 1px solid rgba(126, 87, 194, 0.1);
}

.footer-quote {
  font-size: 14px;
  color: #7E57C2;
  font-style: italic;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: #6B5B7A;
}

.footer-links a:hover { color: #7E57C2; }

.footer-copy { font-size: 12px; color: #9B8AB5; }
.footer .footer-copy { color: #9B8AB5; }

/* ===== READING PAGE (Pick a Card) ===== */
.reading-page {
  padding: 40px 0 60px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7E57C2;
  font-size: 13px;
  margin-bottom: 24px;
  font-weight: 500;
}

.back-link:hover { text-decoration: underline; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 640px;
  margin: 0 auto 32px;
}

.cards-grid.locked { pointer-events: none; }

/* ===== แอนิเมชันลูกเล่นไพ่ (Card Effects) ===== */

/* 1. ตอนโหลดหน้า: แอนิเมชันแจกไพ่สไลด์ลงมา */
.pile {
  cursor: pointer;
  position: relative;
  animation: dealCard 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.pile:nth-child(1) { animation-delay: 0.1s; }
.pile:nth-child(2) { animation-delay: 0.25s; }
.pile:nth-child(3) { animation-delay: 0.4s; }
.pile:nth-child(4) { animation-delay: 0.55s; }

@keyframes dealCard {
  0% {
    opacity: 0;
    transform: translateY(100px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 2. สภาวะปกติ: ไพ่ลอยตัวเบา ๆ ช้า ๆ */
.pile img {
  width: 100%;
  position: relative;
  z-index: 1;
  border-radius: 10px;
  animation: idleFloat 5.5s ease-in-out infinite;
  transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
}

.pile:nth-child(1) img { animation-delay: 0s; }
.pile:nth-child(2) img { animation-delay: 0.8s; }
.pile:nth-child(3) img { animation-delay: 1.6s; }
.pile:nth-child(4) img { animation-delay: 2.4s; }

@keyframes idleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 3. เมื่อเอาเมาส์ชี้ (Hover) — เฉพาะไพ่ที่ยังไม่ถูกเลือก */
.pile:not(.selected):not(.dimmed):hover img {
  animation: none;
  transform: translateY(-16px) scale(1.05);
}

/* 4. เมื่อใช้นิ้วแตะ (Tap) — เฉพาะไพ่ที่ยังไม่ถูกเลือก */
.pile:not(.selected):not(.dimmed):active img {
  animation: none;
  transform: scale(0.92) !important;
  transition: all 0.1s;
}

/* 5. ไพ่ที่ถูกเลือก: เด้งเบา ๆ + glow ม่วงอ่อน */
.pile.selected img {
  animation: cardSelectBounce 0.45s ease-out forwards;
  box-shadow: 0 0 22px rgba(126, 87, 194, 0.45);
}

@keyframes cardSelectBounce {
  0%   { transform: translateY(0) scale(1); }
  45%  { transform: translateY(-14px) scale(1.06); }
  100% { transform: translateY(-8px) scale(1.03); }
}

/* 6. ไพ่ใบอื่นเมื่อมีการเลือกแล้ว: จางลง + ย่อเล็กน้อย */
.pile.dimmed img {
  animation: none;
  opacity: 0.55;
  transform: scale(0.95);
}

/* เลขใต้ไพ่: mystical badge วงกลมเล็ก ชิดใต้การ์ด */
.pile-num {
  width: 32px;
  height: 32px;
  margin: 10px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EDE4F7;
  color: #5B3F8A;
  border: 1px solid rgba(126, 87, 194, 0.22);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(126, 87, 194, 0.12);
  transition: opacity 0.3s ease;
}

.pile.dimmed .pile-num { opacity: 0.55; }

/* 7. Badge บนไพ่ที่ถูกเลือก */
.pile-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%) translateY(6px);
  background: linear-gradient(135deg, #9D80D6, #7E57C2);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(126, 87, 194, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pile.selected .pile-badge {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 8. Overlay ก่อนเข้าหน้าคำทำนาย */
.reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(160deg, #2E1A47 0%, #3D2A5C 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.reveal-overlay.visible { opacity: 1; }

.reveal-overlay-icon {
  position: relative;
  font-size: 44px;
  animation: overlayPulse 1.2s ease-in-out infinite;
}

/* glow pulse เบา ๆ รอบลูกแก้ว */
.reveal-overlay-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(circle, rgba(157, 128, 214, 0.55) 0%, rgba(157, 128, 214, 0) 70%);
  animation: orbGlow 2.6s ease-in-out infinite;
}

.reveal-overlay-text {
  color: #EDE4F7;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* mascot กระต่ายสายเวทย์ — supporting visual */
.reveal-overlay-mascot {
  width: 140px;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}

@keyframes overlayPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50%      { opacity: 1; transform: scale(1); }
}

@keyframes orbGlow {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.7; }
}

/* 9. เคารพการตั้งค่าลดการเคลื่อนไหวของผู้ใช้ */
@media (prefers-reduced-motion: reduce) {
  .pile img,
  .pile.selected img,
  .reveal-overlay-icon,
  .reveal-overlay-icon::before {
    animation: none !important;
  }
  .pile.selected img {
    transform: translateY(-8px) scale(1.03);
  }
}
.hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  color: #6B5B7A;
  font-style: italic;
  margin-top: 24px;
}

/* MASCOT */
.mascot-section {
  text-align: center;
  padding: 40px 0 20px;
}
.mascot-img {
  width: 220px;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(126, 87, 194, 0.25));
}
.mascot-message {
  margin-top: 16px;
  font-size: 15px;
  color: #7E57C2;
  font-style: italic;
  font-weight: 500;
}

/* READING CONTENT */
.reading-section { padding: 40px 0 64px; animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* reveal header */
.reveal-head { text-align: center; max-width: 620px; margin: 0 auto 38px; }
.reveal-eyebrow {
  font-size: 14px; font-weight: 600; color: #7E57C2;
  letter-spacing: 0.12em; margin-bottom: 14px;
}
.reveal-title {
  font-size: 30px; line-height: 1.45; font-weight: 700;
  font-style: italic; color: #3D2A5C; margin-bottom: 12px;
}
.reveal-sub { font-size: 15px; color: #6B5B7A; }

/* reveal cards */
.reveal-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 30px;
}
.reveal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(126, 87, 194, 0.13);
  border-radius: 20px;
  padding: 30px 22px 26px;
  box-shadow: 0 12px 32px rgba(126, 87, 194, 0.1);
  animation: fadeUp 0.5s ease-out backwards;
}
.rc-media {
  position: relative;
  width: 100%;
  max-width: 200px;
  margin-bottom: 18px;
}
.rc-media img {
  width: 100%;
  border-radius: 14px;
  display: block;
}
.rc-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ECECEC, #D9D9D9);
  border: 1px dashed #BFBFBF;
  color: #8A8A8A;
  font-size: 13px;
  font-weight: 600;
}
.rc-num {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #9D80D6, #7E57C2);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(126, 87, 194, 0.45);
}
.rc-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rc-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-bottom: 10px;
}
.rc-phase { font-size: 13px; font-weight: 600; color: #7E57C2; }
.rc-name { font-size: 19px; font-weight: 700; color: #3D2A5C; }
.rc-thai { font-size: 13px; color: #8B7BA5; }
.rc-keywords {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
}
.rc-keywords li { font-size: 13px; color: #7E57C2; }
.rc-keywords li:not(:last-child)::after {
  content: "•";
  margin-left: 6px;
  color: rgba(126, 87, 194, 0.45);
}
.rc-text {
  width: 100%;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(126, 87, 194, 0.12);
  font-size: 14.5px;
  line-height: 1.85;
  color: #4A3A66;
  text-align: left;
}

/* reveal summary */
.reveal-summary {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border: 1px solid rgba(126, 87, 194, 0.13);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 12px 32px rgba(126, 87, 194, 0.1);
  margin-bottom: 18px;
  animation: fadeUp 0.5s ease-out backwards;
}
.reveal-summary-icon {
  flex-shrink: 0;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, #EDE4F7, #E2D5F1);
  border-radius: 50%;
}
.reveal-summary-title { font-size: 18px; font-weight: 700; color: #7E57C2; margin-bottom: 7px; }
.reveal-summary-body p { font-size: 15px; line-height: 1.85; color: #4A3A66; }

/* reveal disclaimer */
.reveal-disclaimer {
  text-align: center;
  font-size: 13px;
  color: #9B8AB5;
  margin: 2px 0 26px;
}

/* reveal actions */
.reveal-actions {
  display: flex; gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-reset, .btn-back-home {
  border: 1px solid rgba(126, 87, 194, 0.3);
  padding: 12px 28px;
  border-radius: 28px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}
.btn-reset { background: #7E57C2; color: #fff; border-color: #7E57C2; }
.btn-reset:hover { background: #6B47B0; border-color: #6B47B0; }
.btn-back-home { background: #fff; color: #7E57C2; }
.btn-back-home:hover { background: #F3EEFA; }

/* ===== CONTENT PAGES (about, how-to, faq) ===== */
.content-page { padding: 48px 0; max-width: 760px; margin: 0 auto; }
.content-page h1 { font-size: 32px; color: #3D2A5C; margin-bottom: 12px; text-align: center; }
.content-page .subtitle { text-align: center; color: #7E57C2; font-style: italic; margin-bottom: 40px; }
.content-page h2 { font-size: 20px; color: #3D2A5C; margin: 32px 0 12px; }
.content-page p { font-size: 15px; line-height: 1.9; color: #3D2A5C; margin-bottom: 16px; }

/* BLOG */
.blog-list { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.blog-list .article-card { display: flex; gap: 20px; align-items: center; padding: 18px; }
.blog-list .article-emoji { font-size: 40px; margin-bottom: 0; flex-shrink: 0; }
.blog-list .article-thumb { flex-shrink: 0; width: 140px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #2A1F4A, #3D2A5C); }
.blog-list .article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-list .article-info { flex: 1; min-width: 0; }
.blog-list .article-info h3 { margin-bottom: 6px; }

.article-card {
  background: white;
  border-radius: 14px;
  padding: 22px;
  display: block;
  box-shadow: 0 2px 12px rgba(126, 87, 194, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(126, 87, 194, 0.18);
}
.article-emoji { font-size: 28px; margin-bottom: 10px; }
.article-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #3D2A5C;
  margin-bottom: 8px;
  line-height: 1.5;
}
.article-card p {
  font-size: 13px;
  color: #6B5B7A;
  line-height: 1.7;
  margin-bottom: 12px;
}
.article-date { font-size: 11px; color: #9B8AB5; font-weight: 500; }

.article-content { max-width: 720px; margin: 40px auto; background: white; border-radius: 16px; padding: 36px 40px; box-shadow: 0 4px 16px rgba(126, 87, 194, 0.08); }
.article-cover { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin: 8px 0 24px; background: linear-gradient(160deg, #2A1F4A, #3D2A5C); }
.article-content h1 { font-size: 28px; color: #3D2A5C; margin-bottom: 8px; }
.article-content .meta { color: #9B8AB5; font-size: 13px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(126, 87, 194, 0.1); }
.article-content h2 { font-size: 20px; color: #3D2A5C; margin: 28px 0 12px; }
.article-content h3 { font-size: 16px; color: #5B3F8A; margin: 20px 0 10px; }
.article-content p { font-size: 15px; line-height: 1.95; color: #3D2A5C; margin-bottom: 14px; }
.article-content ul, .article-content ol { margin: 10px 0 16px 24px; }
.article-content li { font-size: 15px; line-height: 1.95; color: #3D2A5C; margin-bottom: 6px; }
.article-content strong { color: #5B3F8A; font-weight: 700; }

/* STEPS (how-to) */
.step { background: white; padding: 24px 28px; border-radius: 14px; margin-bottom: 16px; display: flex; gap: 20px; align-items: flex-start; box-shadow: 0 4px 12px rgba(126,87,194,0.08); }
.step-num { width: 48px; height: 48px; background: #7E57C2; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.step h3 { font-size: 17px; color: #3D2A5C; margin-bottom: 6px; }
.step p { font-size: 14px; color: #6B5B7A; line-height: 1.8; }

.tip-box { background: linear-gradient(135deg, #E8DEF7, #F5F0FA); padding: 24px; border-radius: 14px; margin-top: 32px; }
.tip-box h3 { color: #5B3F8A; margin-bottom: 8px; }
.tip-box p { font-size: 14px; color: #3D2A5C; line-height: 1.8; }

/* FAQ */
.faq-item { background: white; border-radius: 12px; padding: 20px 24px; margin-bottom: 12px; box-shadow: 0 4px 12px rgba(126,87,194,0.08); }
.faq-item h3 { font-size: 16px; color: #3D2A5C; margin-bottom: 8px; }
.faq-item h3::before { content: "Q: "; color: #7E57C2; font-weight: 700; }
.faq-item p { font-size: 14px; color: #6B5B7A; line-height: 1.85; }
.faq-item p::before { content: "A: "; color: #7E57C2; font-weight: 700; }

/* ===== RESPONSIVE (INNER PAGES) ===== */
@media (max-width: 768px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; max-width: 340px; }

  .reveal-head { margin-bottom: 26px; }
  .reveal-eyebrow { font-size: 13px; }
  .reveal-title { font-size: 23px; }
  .reveal-sub { font-size: 14px; }

  .reveal-cards { grid-template-columns: 1fr; gap: 16px; }
  .reveal-card {
    display: grid;
    grid-template-columns: 104px 1fr;
    grid-template-areas:
      "media info"
      "text  text";
    align-items: center;
    column-gap: 14px;
    padding: 22px 18px;
  }
  .rc-media { grid-area: media; max-width: 104px; margin-bottom: 0; }
  .rc-media img { border-radius: 11px; }
  .rc-num { width: 28px; height: 28px; font-size: 12px; top: -10px; left: -8px; transform: none; }
  .rc-info { grid-area: info; align-items: flex-start; }
  .rc-heading {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }
  .rc-phase {
    background: #E8DEF7;
    color: #5B3F8A;
    padding: 3px 11px;
    border-radius: 11px;
    font-size: 11px;
  }
  .rc-name { font-size: 17px; }
  .rc-keywords {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .rc-keywords li { display: flex; align-items: center; gap: 8px; }
  .rc-keywords li::before { content: "✦"; color: #7E57C2; font-size: 11px; }
  .rc-keywords li:not(:last-child)::after { content: none; }
  .rc-text {
    grid-area: text;
    margin-top: 16px;
    padding-top: 16px;
    font-size: 14px;
  }

  .mascot-img { width: 160px; }
  .mascot-section { padding: 24px 0 12px; }

  .reveal-summary { padding: 20px; gap: 14px; }
  .reveal-summary-icon { width: 46px; height: 46px; font-size: 21px; }
  .reveal-summary-title { font-size: 16px; }
  .reveal-summary-body p { font-size: 14px; }

  .reveal-disclaimer { font-size: 12px; }

  .footer-links { gap: 16px; }

  .article-content { padding: 24px 20px; margin: 20px 16px; }
  .article-content h1 { font-size: 22px; }

  .blog-list .article-card { flex-direction: column; text-align: center; }
  .blog-list .article-thumb { width: 100%; max-width: 320px; }
}

/* ============================================================
   13. ALL READINGS PAGE — toolbar, filters, search, featured tag
   (used by /readings.html — reuses .topic-grid / .topic-card)
   ============================================================ */
.readings-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

/* Search */
.readings-search {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.readings-search input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: 12px 18px 12px 42px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.readings-search input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}
.readings-search input::placeholder { color: var(--c-ink-mute); }
.readings-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

/* Category filter chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}
.filter-chip {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink-soft);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.filter-chip:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.filter-chip.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

/* Result count */
.readings-count {
  text-align: center;
  font-size: 13px;
  color: var(--c-ink-mute);
  margin-bottom: var(--sp-5);
  min-height: 18px;
}

/* Featured tag on a topic card */
.topic-feature-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  background: linear-gradient(135deg, #F0DCA0, var(--c-accent));
  color: var(--c-night-1);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: var(--r-pill);
}

/* Empty state */
.readings-empty {
  text-align: center;
  padding: var(--sp-7) var(--sp-4);
}
.readings-empty-icon { font-size: 40px; margin-bottom: var(--sp-3); }
.readings-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 4px;
}
.readings-empty-text { font-size: 14px; color: var(--c-ink-soft); }

@media (min-width: 760px) {
  .readings-toolbar {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
  }
  .readings-search { margin: 0; flex-shrink: 0; }
  .filter-chips { justify-content: flex-start; }
}

/* ============================================
   QUICK READING — ดูดวงจากคำถาม (3 ใบ)
   ============================================ */

/* ----- ฟอร์มถามคำถาม ----- */
.quick-ask {
  max-width: 520px;
  margin: 0 auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  padding: 30px 26px 28px;
  text-align: left;
}

.quick-deck {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.quick-deck img {
  width: 58px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(46, 33, 71, 0.18);
}
.quick-deck img:nth-child(1) { transform: rotate(-12deg) translateX(14px); }
.quick-deck img:nth-child(2) { position: relative; z-index: 2; transform: translateY(-6px); }
.quick-deck img:nth-child(3) { transform: rotate(12deg) translateX(-14px); }

.quick-field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 8px;
}

.quick-input {
  width: 100%;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quick-input::placeholder { color: var(--c-ink-mute); }
.quick-input:focus {
  outline: none;
  background: var(--c-surface);
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(126, 87, 194, 0.12);
}
.quick-input-shake { animation: quickShake 0.4s ease; }
@keyframes quickShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

.quick-error {
  margin: 10px 2px 0;
  font-size: 13px;
  color: #C0497B;
}

.quick-examples { margin: 18px 0 22px; }
.quick-examples-label {
  display: block;
  font-size: 12.5px;
  color: var(--c-ink-mute);
  margin-bottom: 9px;
}
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-chip {
  font-family: inherit;
  font-size: 13px;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
}
.quick-chip:hover { background: #E2D5F1; }
.quick-chip:active { transform: scale(0.95); }

.quick-ask .btn {
  width: 100%;
  justify-content: center;
}
.quick-ask .btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

/* ----- ขั้นตอนการใช้งาน (เนื้อหา SEO) ----- */
.quick-steps {
  max-width: 760px;
  margin: 48px auto 0;
  text-align: center;
}
.quick-steps-title {
  font-size: 20px;
  color: var(--c-ink);
  margin-bottom: 22px;
}
.quick-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.quick-step {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 24px 18px 20px;
}
.quick-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #9D80D6, #7E57C2);
}
.quick-step h3 {
  font-size: 15.5px;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.quick-step p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--c-ink-soft);
}

/* ----- meta บนหัวคำทำนาย (คำถาม + หมวด) ----- */
.quick-result-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.quick-qbubble {
  font-size: 15px;
  font-style: italic;
  color: #4A3A66;
  background: var(--c-primary-soft);
  border-radius: var(--r-md);
  padding: 10px 18px;
  max-width: 460px;
}
.quick-cat-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: 5px 14px;
}

/* ----- การ์ดโปรโมทบนหน้าแรก ----- */
.quick-promo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-night-1) 0%, var(--c-night-2) 100%);
  border-radius: var(--r-lg);
  padding: 40px 44px;
  box-shadow: var(--sh-3);
}
.quick-promo-glow {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 128, 214, 0.55) 0%, rgba(157, 128, 214, 0) 70%);
  pointer-events: none;
}
.quick-promo-body {
  position: relative;
  z-index: 1;
  flex: 1;
}
.quick-promo-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-accent);
  margin-bottom: 12px;
}
.quick-promo-title {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.quick-promo-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: #CFC3E6;
  margin-bottom: 20px;
  max-width: 460px;
}
.quick-promo-cards {
  position: relative;
  z-index: 1;
  display: flex;
  flex-shrink: 0;
}
.quick-promo-cards img {
  width: 74px;
  border-radius: 9px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
.quick-promo-cards img:nth-child(1) { transform: rotate(-14deg) translateX(20px); }
.quick-promo-cards img:nth-child(2) { z-index: 2; transform: translateY(-10px); }
.quick-promo-cards img:nth-child(3) { transform: rotate(14deg) translateX(-20px); }
.quick-promo:hover .quick-promo-cards img:nth-child(2) {
  transform: translateY(-16px);
  transition: transform 0.3s;
}

@media (max-width: 720px) {
  .quick-ask { padding: 24px 18px 24px; }
  .quick-steps-grid { grid-template-columns: 1fr; gap: 12px; }
  .quick-steps { margin-top: 36px; }
  .quick-promo {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 32px 24px;
  }
  .quick-promo-text { margin-left: auto; margin-right: auto; }
  .quick-promo-cards { order: -1; }
}
