/* ==========================================================================
   Bigstep Tarot — WOW rewrite (2026-10-30)
   Một hệ accent duy nhất: lime #c0f25d + soft #d3f68e trên nền graphite.
   Tím/vàng/cyan cũ chỉ còn trong TRANH LÁ và viền nhận diện bộ bài.
   Mọi class JS/PHP dùng đều được giữ nguyên. File này thay thế toàn bộ
   tarot.css cũ (vốn là 5+ lớp vá chồng nhau).
   ========================================================================== */

/* ---------- 0. Tokens + page canvas + night sky ---------- */

.bst-app {
  --bg: #080b0a;
  --panel: #101512;
  --panel2: #151b18;
  --line: rgba(189, 204, 196, .2);
  --text: #f5f6f1;
  --muted: #a0aaa4;
  --faint: #87928b;
  --tarot-lime: #c0f25d;
  --tarot-lime-soft: #d3f68e;
  --tarot-lime-strong: #add854;
  --tarot-lime-dim: #86a941;
  --tarot-graphite: #0b100f;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(1240px, calc(100% - 24px));
  margin: 26px auto 40px;
  padding: clamp(30px, 5vw, 70px);
  border: 1px solid rgba(145, 123, 231, .2);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% -10%, rgba(192, 242, 93, .10), transparent 35%),
    linear-gradient(150deg, #090c18, #060812 72%);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .45);
  color: var(--text);
  font-family: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.bst-app * { box-sizing: border-box; }
.bst-app, .bst-app button, .bst-app input, .bst-app textarea, .bst-app select {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.bst-app [hidden] { display: none !important; }
.bst-app button:focus-visible {
  outline: 2px solid rgba(192, 242, 93, .8);
  outline-offset: 2px;
}

/* Full-page canvas: trang tarot tràn viền, nền đen + lưới mờ + glow lime đỉnh.
   ⚠️ THEME CŨ (night-sky navy) — KHÔNG dùng làm chuẩn nữa. Theme hiện tại là
   graphite lime (nền phẳng #080a0b, lime #c0f25d). Body đã bị ghi đè sang
   graphite bởi mu-plugin bigstep-tarot-shop-chips.php; luật dưới đây chỉ còn
   là tàn dư của theme cũ, đừng copy nó sang section khác (bài học 30/10:
   copy nền navy này sang dải sản phẩm đã tạo đường ranh sai chuẩn). */
body.bigstep-tarot-page { background: #030512; }
.bigstep-tarot-page {
  background-color: #030512 !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px),
    radial-gradient(80% 45% at 50% 0%, rgba(192, 242, 93, .07), transparent 58%) !important;
  background-size: 32px 32px, 32px 32px, auto !important;
  background-position: 0 0, 0 0, 0 0 !important;
  background-repeat: repeat !important;
  background-attachment: fixed !important;
}
.bigstep-tarot-page .entry-title,
.bigstep-tarot-page .page-title,
.bigstep-tarot-page .haru-page-title,
.bigstep-tarot-page .page-sidebar { display: none !important; }
.bigstep-tarot-page .haru-page > .h-row,
.bigstep-tarot-page .page-content,
.bigstep-tarot-page .page-content-wrap { width: 100% !important; max-width: none !important; }
.bigstep-tarot-page .page-content.has-right-sidebar { padding-right: 0 !important; }
.bigstep-tarot-page #haru-content-main,
.bigstep-tarot-page #bigstep-content-main,
.bigstep-tarot-page .clearfix,
.bigstep-tarot-page .haru-page,
.bigstep-tarot-page .haru-page > .h-row,
.bigstep-tarot-page .page-content,
.bigstep-tarot-page .page-content-wrap,
.bigstep-tarot-page .entry-content { background: transparent !important; }
/* ⚠️ THEME CŨ — nền app gradient navy + sao: đây là nền đêm RIÊNG của công cụ
   bói (giữ nguyên theo thiết kế tool), KHÔNG phải nền chuẩn của theme
   graphite lime. Khi sửa phần NGOÀI app (strip sản phẩm, section khác), lấy
   chuẩn graphite phẳng #080a0b, đừng copy gradient navy này (bài học 30/10). */
.bigstep-tarot-page .bst-app {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% -8%, rgba(192, 242, 93, .10), transparent 35%),
    radial-gradient(circle at 10% 35%, rgba(192, 242, 93, .05), transparent 28%),
    radial-gradient(circle at 88% 68%, rgba(192, 242, 93, .05), transparent 30%),
    linear-gradient(155deg, #080b1d 0%, #030614 52%, #08051a 100%);
  box-shadow: none;
}

/* Bầu trời sao: 3 lớp sao + 2 lớp nhấp nháy, trôi rất chậm. */
.bst-stars {
  position: absolute;
  z-index: -1;
  inset: -8%;
  overflow: hidden;
  opacity: 1;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .82) 0 .3px, transparent .72px),
    radial-gradient(circle, rgba(220, 245, 200, .72) 0 .36px, transparent .78px),
    radial-gradient(circle, rgba(211, 246, 142, .62) 0 .25px, transparent .65px);
  background-position: 0 0, 37px 41px, 19px 67px;
  background-size: 127px 127px, 173px 173px, 223px 223px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0, 0, 0, .35) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0, 0, 0, .35) 100%);
  animation: bst-sky-drift 85s linear infinite;
}
.bigstep-tarot-page .bst-stars:before,
.bigstep-tarot-page .bst-stars:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bigstep-tarot-page .bst-stars:before {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .95) 0 .52px, rgba(255, 255, 255, .17) .9px, transparent 1.7px),
    radial-gradient(circle, rgba(230, 250, 200, .88) 0 .44px, rgba(192, 242, 93, .15) .82px, transparent 1.75px);
  background-position: 13px 29px, 71px 11px;
  background-size: 199px 199px, 277px 277px;
  filter: drop-shadow(0 0 2px rgba(220, 245, 190, .45));
  animation: bst-star-twinkle 4.8s ease-in-out infinite alternate;
}
.bigstep-tarot-page .bst-stars:after {
  background-image:
    radial-gradient(circle, rgba(230, 250, 190, .82) 0 .38px, transparent 1.45px),
    radial-gradient(circle, rgba(211, 246, 142, .82) 0 .4px, transparent 1.55px);
  background-position: 43px 79px, 101px 17px;
  background-size: 347px 347px, 421px 421px;
  filter: drop-shadow(0 0 2px rgba(192, 242, 93, .38));
  animation: bst-star-twinkle 6.4s 1.3s ease-in-out infinite alternate-reverse;
}
@keyframes bst-sky-drift { to { transform: translate3d(-42px, 28px, 0) scale(1.02); } }
@keyframes bst-star-twinkle {
  0%, 18% { opacity: .28; transform: scale(.985); }
  48% { opacity: .92; }
  72% { opacity: .48; }
  100% { opacity: 1; transform: scale(1.018); }
}

/* Chuyển màn: fade + rise mỗi khi một màn hình hiện lên (kể cả lần đầu). */
@keyframes bst-screen-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.bst-setup:not([hidden]),
.bst-shuffle:not([hidden]),
.bst-draw:not([hidden]),
.bst-result:not([hidden]) { animation: bst-screen-in .5s cubic-bezier(.2, .75, .25, 1) both; }

/* ---------- 1. Hero + trust + quickbar ---------- */

.bst-hero { max-width: 830px; margin: 0 auto 42px; text-align: center; }
.bst-eyebrow {
  display: inline-block;
  color: var(--tarot-lime);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .18em;
}
.bst-hero h1, .bst-draw-copy h2, .bst-result-head h2 {
  margin: 14px 0 12px;
  color: #fff;
  font-weight: 850;
  letter-spacing: -.045em;
}
.bst-hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; }
.bst-hero h1 em {
  background: linear-gradient(105deg, #f5f6f1 8%, #d3f68e 48%, #c0f25d 88%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  font-style: normal;
}
.bst-hero > p { max-width: 650px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.65; }
.bst-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
  color: #909b95;
  font-size: 10px;
  font-weight: 700;
}
.bst-quickbar { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: -8px auto 24px; }
.bst-quickbar button {
  border: 1px solid rgba(192, 242, 93, .32);
  background: rgba(10, 14, 18, .78);
  color: #eef9e7;
  border-radius: 999px;
  padding: 11px 17px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}
.bst-quickbar button:hover { border-color: #c0f25d; transform: translateY(-1px); }
.bst-quickbar span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  border-radius: 50%;
  background: #c0f25d;
  color: #111;
  font-size: 12px;
}

/* Icons: chỉ SVG, không glyph unicode. */
.bst-ico { width: 1em; height: 1em; flex: none; vertical-align: -.15em; }
.bst-ico-stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bst-ico-fill { fill: currentColor; stroke: none; }
.bst-cta-icon { display: block; width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bst-shirt-link .bst-cta-icon { width: 15px; height: 15px; flex-basis: 15px; }

/* ---------- 2. Shell + panel + steps ---------- */

.bst-shell { max-width: 900px; margin: auto; }
.bst-setup, .bst-draw, .bst-result, .bst-shuffle {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 28px;
  background:
    radial-gradient(560px 200px at 50% -10px, rgba(192, 242, 93, .10), transparent 70%),
    linear-gradient(180deg, rgba(31, 34, 40, .97), rgba(19, 21, 25, .98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.bigstep-tarot-page .bst-result,
.bigstep-tarot-page .bst-setup,
.bigstep-tarot-page .bst-shuffle,
.bigstep-tarot-page .bst-draw { scroll-margin-top: 94px; }
.bst-step + .bst-step { margin-top: 34px; padding-top: 32px; border-top: 1px solid var(--line); }
.bst-step-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.bst-step-head > span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border: 1px solid rgba(192, 242, 93, .45);
  border-radius: 50%;
  background: rgba(192, 242, 93, .10);
  color: var(--tarot-lime);
  font-size: 11px;
  font-weight: 850;
}
.bst-step-head h2 { margin: 0 0 4px; color: #fff; font-size: 17px; }
.bst-step-head p { margin: 0; color: var(--muted); font-size: 11px; }

/* ---------- 3. Topics + question ---------- */

.bst-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.bst-topics button, .bst-spreads button {
  border: 1px solid var(--line);
  background: #0a1020;
  color: #dce3f5;
  cursor: pointer;
  transition: .18s;
}
.bst-app .bst-topics button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border-color: #344039 !important;
  border-radius: 14px !important;
  background: #111713 !important;
  color: #dce3df !important;
  font: 750 14px/1.25 "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  text-align: center !important;
  white-space: nowrap !important;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s !important;
}
.bst-app .bst-topics button span {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
.bst-app .bst-topics button b { flex: 0 0 auto; color: var(--tarot-lime); font-size: 17px; line-height: 1 !important; }
.bst-app .bst-topics button:hover {
  border-color: rgba(192, 242, 93, .62) !important;
  background: #172016 !important;
  color: #f5f6f1 !important;
  transform: translateY(-1px);
}
.bst-app .bst-topics button.is-active,
.bst-app .bst-topics button[aria-checked="true"] {
  border-color: var(--tarot-lime) !important;
  background: linear-gradient(145deg, rgba(192, 242, 93, .16), rgba(192, 242, 93, .055)) !important;
  box-shadow: 0 0 0 1px rgba(192, 242, 93, .16), 0 12px 28px rgba(0, 0, 0, .25) !important;
  color: #f5f6f1 !important;
}
.bst-question { position: relative; display: block; margin-top: 15px; }
.bst-question > span { display: block; margin-bottom: 7px; color: #dce3df; font-size: 11px; font-weight: 750; }
.bst-question small { color: var(--faint); font-weight: 600; }
.bst-question textarea {
  display: block;
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 13px 48px 13px 14px;
  border: 1px solid #344039;
  border-radius: 12px;
  outline: 0;
  background: #0b100e;
  color: #f5f6f1;
  font: 12px/1.5 inherit;
}
.bst-question textarea::placeholder { color: #737e77 !important; opacity: 1; }
.bst-question textarea:focus { border-color: rgba(192, 242, 93, .75) !important; box-shadow: 0 0 0 3px rgba(192, 242, 93, .1) !important; }
.bst-question i { position: absolute; right: 12px; bottom: 9px; color: var(--faint); font-size: 9px; font-style: normal; }

/* ---------- 4. Decks (editorial gallery) ---------- */

.bst-decks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bst-app .bst-decks button {
  position: relative;
  display: grid;
  grid-template-rows: 208px auto auto;
  justify-items: center;
  align-content: start;
  row-gap: 6px;
  /* Theme đặt height:48px cho mọi <button> — nút này phải height:auto để
     cao theo nội dung, nếu không overflow:hidden sẽ cắt thành dải mỏng
     (lỗi 14:28 30/10; bản thẻ ngang cũ thoát được nhờ min-height:136px). */
  height: auto;
  padding: 16px 14px 18px;
  overflow: hidden;
  border: 1px solid rgba(151, 169, 159, .28);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(24, 32, 29, .96), rgba(12, 18, 16, .96));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
  color: inherit;
  text-align: center;
  cursor: pointer;
  transform: none !important;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.bst-app .bst-decks button:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(192, 242, 93, .08), transparent 40%);
  opacity: 0;
  transition: .2s;
}
.bst-app .bst-decks button:hover,
.bst-app .bst-decks button.is-active {
  border-color: rgba(192, 242, 93, .78);
  background: linear-gradient(145deg, rgba(31, 42, 36, .98), rgba(13, 20, 17, .98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(192, 242, 93, .08);
  transform: translateY(-2px) !important;
}
.bst-app .bst-decks button:hover:before,
.bst-app .bst-decks button.is-active:before { opacity: 1; }
.bst-app .bst-decks button.is-active:after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #c0f25d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b110b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
  box-shadow: 0 5px 16px rgba(192, 242, 93, .25);
}
.bst-app .bst-decks i {
  position: relative;
  z-index: 1;
  flex: none;
  width: 122px;
  height: 200px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: #101713;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 12px 25px rgba(0, 0, 0, .48);
  transition: transform .35s ease;
}
.bst-app .bst-decks i:after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 4px rgba(8, 13, 10, .4);
  pointer-events: none;
}
.bst-app .bst-decks button:hover i { transform: scale(1.045); }
.bst-app .bst-decks strong {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -.015em;
}
.bst-app .bst-decks small {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #9aa79f;
  font-size: 11px;
  line-height: 1.5;
}
/* Ảnh thật do PHP chèn inline style. KHÔNG đặt thêm luật `background` shorthand
   nào cho .bst-decks i sau luật chính — shorthand sẽ reset background-size về
   auto và position về 0% 0%, khiến ảnh chỉ hiện góc trên-trái phóng to
   (lỗi RWS + Marseille 13:35 30/10). Ảnh lỗi thì <i> hiện nền tối #101713. */
.bst-deck-note {
  margin-top: 12px;
  padding: 12px 15px;
  border: 1px solid rgba(192, 242, 93, .1);
  border-radius: 12px;
  background: rgba(192, 242, 93, .035);
  color: #aeb9b2;
  font-size: 10px;
  line-height: 1.55;
}
.bst-deck-note b { color: #c0f25d; }

/* ---------- 5. Spreads + diagram + position guide + reversed ---------- */

.bst-spreads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bst-app .bst-spreads button {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-height: 104px;
  padding: 12px;
  border-color: #344039 !important;
  border-radius: 14px;
  background: #111713 !important;
  color: #dce3df !important;
  line-height: 1.35;
  text-align: left;
}
.bst-app .bst-spreads button:hover {
  border-color: rgba(192, 242, 93, .62) !important;
  background: #172016 !important;
  color: #f5f6f1 !important;
  transform: translateY(-1px);
}
.bst-app .bst-spreads button.is-active,
.bst-app .bst-spreads button[aria-checked="true"] {
  border-color: var(--tarot-lime) !important;
  background: linear-gradient(145deg, rgba(192, 242, 93, .16), rgba(192, 242, 93, .055)) !important;
  box-shadow: 0 0 0 1px rgba(192, 242, 93, .16), 0 12px 28px rgba(0, 0, 0, .25) !important;
  color: #f5f6f1 !important;
}
.bst-app .bst-spreads strong { display: block; align-self: end; margin: 0 0 4px; color: #fff; font-size: 14px; line-height: 1.3; text-decoration: none; }
.bst-app .bst-spreads small { display: block; align-self: start; position: static; min-height: 14px; margin: 0; padding: 0; color: #8793ad; font-size: 10px; line-height: 1.4; text-decoration: none; white-space: normal; }
.bst-spread-diagram { position: relative; display: block; grid-row: 1/3; width: 84px; height: 70px; }
.bst-spread-diagram i {
  position: absolute;
  width: 13px;
  height: 21px;
  border: 1px solid rgba(225, 245, 215, .7);
  border-radius: 3px;
  background: linear-gradient(145deg, #456122, #18251b);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .35);
}
.bst-spreads [data-spread-key="single"] .bst-spread-diagram i,
.bst-spreads [data-spread-key="yesno"] .bst-spread-diagram i { left: 35px; top: 24px; }
.bst-spreads [data-spread-key="timeline"] .bst-spread-diagram i,
.bst-spreads [data-spread-key="situation"] .bst-spread-diagram i { top: 24px; }
.bst-spreads [data-spread="3"] .bst-spread-diagram i:nth-child(1) { left: 9px; }
.bst-spreads [data-spread="3"] .bst-spread-diagram i:nth-child(2) { left: 35px; }
.bst-spreads [data-spread="3"] .bst-spread-diagram i:nth-child(3) { left: 61px; }
.bst-spreads [data-spread-key="relationship"] .bst-spread-diagram i:nth-child(1) { left: 35px; top: 0; }
.bst-spreads [data-spread-key="relationship"] .bst-spread-diagram i:nth-child(2) { left: 9px; top: 24px; }
.bst-spreads [data-spread-key="relationship"] .bst-spread-diagram i:nth-child(3) { left: 35px; top: 24px; }
.bst-spreads [data-spread-key="relationship"] .bst-spread-diagram i:nth-child(4) { left: 61px; top: 24px; }
.bst-spreads [data-spread-key="relationship"] .bst-spread-diagram i:nth-child(5) { left: 35px; top: 48px; }
.bst-spreads [data-spread-key="goal"] .bst-spread-diagram i:nth-child(1) { left: 35px; top: 0; }
.bst-spreads [data-spread-key="goal"] .bst-spread-diagram i:nth-child(2) { left: 9px; top: 24px; }
.bst-spreads [data-spread-key="goal"] .bst-spread-diagram i:nth-child(3) { left: 35px; top: 24px; }
.bst-spreads [data-spread-key="goal"] .bst-spread-diagram i:nth-child(4) { left: 61px; top: 24px; }
.bst-spreads [data-spread-key="goal"] .bst-spread-diagram i:nth-child(5) { left: 35px; top: 48px; }
.bst-spreads [data-spread-key="choices"] .bst-spread-diagram i:nth-child(1) { left: 7px; top: 4px; }
.bst-spreads [data-spread-key="choices"] .bst-spread-diagram i:nth-child(2) { left: 22px; top: 25px; }
.bst-spreads [data-spread-key="choices"] .bst-spread-diagram i:nth-child(3) { left: 32px; top: 47px; }
.bst-spreads [data-spread-key="choices"] .bst-spread-diagram i:nth-child(4) { left: 64px; top: 4px; }
.bst-spreads [data-spread-key="choices"] .bst-spread-diagram i:nth-child(5) { left: 49px; top: 25px; }
.bst-spreads [data-spread-key="choices"] .bst-spread-diagram i:nth-child(6) { left: 39px; top: 47px; }
.bst-spreads [data-spread-key="horseshoe"] .bst-spread-diagram i:nth-child(1) { left: 1px; top: 5px; }
.bst-spreads [data-spread-key="horseshoe"] .bst-spread-diagram i:nth-child(2) { left: 12px; top: 29px; }
.bst-spreads [data-spread-key="horseshoe"] .bst-spread-diagram i:nth-child(3) { left: 27px; top: 45px; }
.bst-spreads [data-spread-key="horseshoe"] .bst-spread-diagram i:nth-child(4) { left: 36px; top: 48px; }
.bst-spreads [data-spread-key="horseshoe"] .bst-spread-diagram i:nth-child(5) { left: 51px; top: 45px; }
.bst-spreads [data-spread-key="horseshoe"] .bst-spread-diagram i:nth-child(6) { left: 62px; top: 29px; }
.bst-spreads [data-spread-key="horseshoe"] .bst-spread-diagram i:nth-child(7) { left: 70px; top: 5px; }
.bst-spreads [data-spread-key="celtic"] .bst-spread-diagram i { width: 10px; height: 16px; }
.bst-spreads [data-spread-key="celtic"] .bst-spread-diagram i:nth-child(1) { left: 25px; top: 25px; }
.bst-spreads [data-spread-key="celtic"] .bst-spread-diagram i:nth-child(2) { left: 26px; top: 25px; transform: rotate(90deg); }
.bst-spreads [data-spread-key="celtic"] .bst-spread-diagram i:nth-child(3) { left: 25px; top: 2px; }
.bst-spreads [data-spread-key="celtic"] .bst-spread-diagram i:nth-child(4) { left: 25px; top: 48px; }
.bst-spreads [data-spread-key="celtic"] .bst-spread-diagram i:nth-child(5) { left: 5px; top: 25px; }
.bst-spreads [data-spread-key="celtic"] .bst-spread-diagram i:nth-child(6) { left: 45px; top: 25px; }
.bst-spreads [data-spread-key="celtic"] .bst-spread-diagram i:nth-child(7) { left: 68px; top: 52px; }
.bst-spreads [data-spread-key="celtic"] .bst-spread-diagram i:nth-child(8) { left: 68px; top: 35px; }
.bst-spreads [data-spread-key="celtic"] .bst-spread-diagram i:nth-child(9) { left: 68px; top: 18px; }
.bst-spreads [data-spread-key="celtic"] .bst-spread-diagram i:nth-child(10) { left: 68px; top: 1px; }
.bst-spreads [data-spread-key="year"] .bst-spread-diagram i { width: 8px; height: 13px; }
.bst-spreads [data-spread-key="year"] .bst-spread-diagram i:nth-child(1) { left: 38px; top: 27px; }
.bst-spreads [data-spread-key="year"] .bst-spread-diagram i:nth-child(2) { left: 38px; top: 1px; }
.bst-spreads [data-spread-key="year"] .bst-spread-diagram i:nth-child(3) { left: 52px; top: 5px; }
.bst-spreads [data-spread-key="year"] .bst-spread-diagram i:nth-child(4) { left: 64px; top: 16px; }
.bst-spreads [data-spread-key="year"] .bst-spread-diagram i:nth-child(5) { left: 68px; top: 29px; }
.bst-spreads [data-spread-key="year"] .bst-spread-diagram i:nth-child(6) { left: 64px; top: 44px; }
.bst-spreads [data-spread-key="year"] .bst-spread-diagram i:nth-child(7) { left: 52px; top: 54px; }
.bst-spreads [data-spread-key="year"] .bst-spread-diagram i:nth-child(8) { left: 38px; top: 58px; }
.bst-spreads [data-spread-key="year"] .bst-spread-diagram i:nth-child(9) { left: 23px; top: 54px; }
.bst-spreads [data-spread-key="year"] .bst-spread-diagram i:nth-child(10) { left: 11px; top: 44px; }
.bst-spreads [data-spread-key="year"] .bst-spread-diagram i:nth-child(11) { left: 7px; top: 29px; }
.bst-spreads [data-spread-key="year"] .bst-spread-diagram i:nth-child(12) { left: 11px; top: 16px; }
.bst-spreads [data-spread-key="year"] .bst-spread-diagram i:nth-child(13) { left: 23px; top: 5px; }
/* Mini-cards cũ (không còn trong HTML mới, giữ để khỏi vỡ nếu JS cũ vẽ lại). */
.bst-mini-cards { grid-row: 1/3; display: flex; align-items: center; justify-content: center; height: 58px; }
.bst-mini-cards i {
  width: 34px;
  height: 52px;
  border: 1px solid rgba(192, 242, 93, .5);
  border-radius: 6px;
  background: linear-gradient(145deg, #1a211f, #0b100f);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .35);
}
.bst-mini-cards.is-three i { width: 27px; height: 43px; margin: 0 -6px; }
.bst-mini-cards.is-three i:first-child { transform: rotate(-10deg); }
.bst-mini-cards.is-three i:last-child { transform: rotate(10deg); }
.bst-position-guide { margin-top: 14px; padding: 15px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 13px; background: #0c1210; }
.bst-position-guide > b { display: block; margin-bottom: 10px; color: #eff5f1; font-size: 11px; }
.bst-position-guide ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; margin: 0; padding: 0; list-style: none; counter-reset: bst-pos; }
.bst-position-guide li { counter-increment: bst-pos; color: #9eaaa3; font-size: 9px; line-height: 1.4; }
.bst-position-guide li:before {
  content: counter(bst-pos);
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-right: 7px;
  border-radius: 50%;
  background: rgba(192, 242, 93, .12);
  color: #c0f25d;
  font-size: 8px;
  font-weight: 800;
}
.bst-reverse-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  background: #0c1210;
  cursor: pointer;
}
.bst-reverse-option input { width: 18px; height: 18px; accent-color: #c0f25d; }
.bst-reverse-option span, .bst-reverse-option b, .bst-reverse-option small { display: block; }
.bst-reverse-option b { color: #eef4ef; font-size: 11px; }
.bst-reverse-option small { margin-top: 3px; color: #849087; font-size: 9px; }

/* ---------- 6. Primary / secondary buttons ---------- */

.bst-primary, .bst-secondary, .bst-draw-cta { border: 0; font-family: inherit; cursor: pointer; }
.bst-app .bst-primary, .bst-app a.bst-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  margin-top: 28px;
  padding: 0 24px;
  border: 1px solid var(--tarot-lime) !important;
  border-radius: 16px;
  background: var(--tarot-lime) !important;
  box-shadow: 0 12px 30px rgba(192, 242, 93, .18), inset 0 1px 0 rgba(255, 255, 255, .4) !important;
  color: #080b09 !important;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.bst-app .bst-primary:hover, .bst-app a.bst-primary:hover {
  background: #c7ff57 !important;
  color: #080b09 !important;
  box-shadow: 0 15px 34px rgba(192, 242, 93, .28), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
  transform: translateY(-2px);
}
.bst-primary b { font-size: 18px; }
.bst-app .bst-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #425048 !important;
  border-radius: 14px;
  background: #111713 !important;
  box-shadow: none !important;
  color: #dce3df !important;
  font-size: 12px;
  font-weight: 800;
  transition: border-color .2s, background .2s, transform .2s;
}
.bst-app .bst-secondary:hover {
  border-color: var(--tarot-lime) !important;
  background: #182117 !important;
  color: #f5f6f1 !important;
  transform: translateY(-1px);
}
.bst-app .bst-result-actions button.bst-secondary { border: 1px solid rgba(255, 255, 255, .14) !important; background: #111713 !important; color: #dce3df !important; }
.bst-app .bst-result-actions button.bst-secondary:hover { border-color: rgba(192, 242, 93, .62) !important; background: #182117 !important; }

/* ---------- 7. Shuffle: fan, status, actions (DỌC — nút lime chính giữa) ---------- */

.bst-shuffle { text-align: center; background: linear-gradient(180deg, rgba(31, 34, 40, .97), rgba(19, 21, 25, .98)); }
.bst-shuffle .bst-draw-copy { margin-bottom: 4px; }
.bst-draw-copy h2, .bst-result-head h2 { font-size: clamp(26px, 4vw, 38px); }
.bst-draw-copy p, .bst-result-head p { margin: 0; color: var(--muted); font-size: 12px; }
.bst-shuffle .bst-draw-copy p { color: #a9aeb8; line-height: 1.7; }
.bst-shuffle .bst-eyebrow { color: var(--tarot-lime); }
.bst-shuffle-fan {
  position: relative;
  height: 280px;
  margin: 26px auto 6px;
  perspective: 900px;
  pointer-events: none;
  /* Không quầng lime sau bộ bài — quầng lớn trên nền tối nhìn như lỗi hiển thị
     (phản hồi 14:49 30/10). Chỉ giữ viền lime + sao lime trên chính lá bài. */
}
/* Quạt v5 (15:45 30/10, tự xem mẫu kỹ): bung RẤT NHANH (<1s) rồi nhịp
   mở/chụm liên tục ~1s một nhịp, chụm lại gần như ngay sau khi xòe hết,
   KHÔNG giữ lâu ở trạng thái xòe (v4 nhịp chậm 3.1s là sai — do ảnh chụp
   cách nhau 2.5s gây aliasing). Quạt xòe hết ~96° (ngoài cùng ±48°), 9 lá,
   trục tụ đáy giữa. Lá cách đáy khung 60px để góc dưới (trục 120% + 48°)
   không tràn xuống che chữ. */
.bst-shuffle-card {
  position: absolute;
  left: 50%;
  bottom: 60px;
  width: 112px;
  height: 178px;
  transform-origin: 50% 120%;
  transition: transform .18s ease-out;
}
.bst-shuffle-fan.is-fanning .bst-shuffle-card { transition: transform .06s linear; }
.bst-shuffle-card:nth-child(1) { transform: translateX(-50%) translateX(-4px) rotate(-1deg); }
.bst-shuffle-card:nth-child(2) { transform: translateX(-50%) translateX(-3px) rotate(-1deg) translateY(-1px); }
.bst-shuffle-card:nth-child(3) { transform: translateX(-50%) translateX(-2px) translateY(-2px); }
.bst-shuffle-card:nth-child(4) { transform: translateX(-50%) translateX(-1px) translateY(-3px); }
.bst-shuffle-card:nth-child(5) { transform: translateX(-50%) translateY(-3px); }
.bst-shuffle-card:nth-child(6) { transform: translateX(-50%) translateX(1px) rotate(1deg) translateY(-2px); }
.bst-shuffle-card:nth-child(7) { transform: translateX(-50%) translateX(2px) rotate(1deg) translateY(-1px); }
.bst-shuffle-card:nth-child(8) { transform: translateX(-50%) translateX(3px) rotate(1deg); }
.bst-shuffle-card:nth-child(9) { transform: translateX(-50%) translateX(4px) rotate(1deg); }
.bst-shuffle-fan.is-fanning .bst-shuffle-card:nth-child(1) { transform: translateX(-50%) rotate(calc(-48deg * var(--spread, 1))); }
.bst-shuffle-fan.is-fanning .bst-shuffle-card:nth-child(2) { transform: translateX(-50%) rotate(calc(-36deg * var(--spread, 1))); }
.bst-shuffle-fan.is-fanning .bst-shuffle-card:nth-child(3) { transform: translateX(-50%) rotate(calc(-24deg * var(--spread, 1))); }
.bst-shuffle-fan.is-fanning .bst-shuffle-card:nth-child(4) { transform: translateX(-50%) rotate(calc(-12deg * var(--spread, 1))); }
.bst-shuffle-fan.is-fanning .bst-shuffle-card:nth-child(5) { transform: translateX(-50%); }
.bst-shuffle-fan.is-fanning .bst-shuffle-card:nth-child(6) { transform: translateX(-50%) rotate(calc(12deg * var(--spread, 1))); }
.bst-shuffle-fan.is-fanning .bst-shuffle-card:nth-child(7) { transform: translateX(-50%) rotate(calc(24deg * var(--spread, 1))); }
.bst-shuffle-fan.is-fanning .bst-shuffle-card:nth-child(8) { transform: translateX(-50%) rotate(calc(36deg * var(--spread, 1))); }
.bst-shuffle-fan.is-fanning .bst-shuffle-card:nth-child(9) { transform: translateX(-50%) rotate(calc(48deg * var(--spread, 1))); }
/* Mặt sau v6 (16:09 30/10, theo ảnh anh gửi: bóng đen xì, bài bé, mặt sau
   xấu, nút lệch): GỌN + SẠCH — bỏ hết chấm li ti và chấm góc (nhìn như bẩn
   ở cỡ nhỏ), bỏ viền vàng/xanh theo bộ bài (vàng + lime chọi nhau trên
   Marseille), chỉ giữ quầng sáng nhẹ + khung đôi + emblem sao to rõ.
   Bóng lá giảm mạnh để 9 lá chồng không thành mảng đen. */
.bst-shuffle-card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(192, 242, 93, .7);
  border-radius: 15px;
  background-color: #0b100f;
  background-image:
    radial-gradient(120% 90% at 50% 28%, rgba(220, 250, 160, .14), transparent 60%),
    linear-gradient(180deg, #14211a 0%, #0b100f 50%, #060906 100%);
  box-shadow: inset 0 0 0 5px #0b100f, inset 0 0 0 7px rgba(192, 242, 93, .5), 0 8px 20px rgba(0, 0, 0, .35);
  transition: transform .45s ease;
}
.bst-shuffle-card-inner i { display: block; width: 64px; height: 64px; color: var(--tarot-lime); font-style: normal; }
.bst-shuffle-card-inner i svg { display: block; width: 100%; height: 100%; }
.bst-shuffle-card-inner b { order: -1; margin: 0 0 12px; color: #eaffc0; font-size: 7px; letter-spacing: .14em; text-align: center; }
.bst-shuffle-card-inner small { position: static; margin: 10px 0 0; color: #eaffc0; font-size: 6px; letter-spacing: .34em; text-align: center; }
.bst-shuffle-status { max-width: 420px; margin: 16px auto 0; }
.bst-shuffle-status b { display: block; color: var(--tarot-lime); font-size: 14px; letter-spacing: .02em; }
.bst-shuffle-status small { color: #9aa0ab; font-size: 11px; }
/* Cặp nút xếp DỌC, căn giữa — nút lime không còn bị nút nhỏ đẩy lệch. */
.bst-shuffle-actions { display: flex; flex-direction: column; gap: 12px; justify-content: center; align-items: center; margin-top: 28px; }
.bst-app .bst-shuffle-actions .bst-shuffle-hold { margin: 0; }
/* Nút giữ v6: chữ căn GIỮA THẬT — icon bàn tay ghim cố định mép phải nên
   không còn đẩy chữ lệch sang trái như trước (nhóm [chữ + tay] căn giữa
   làm chữ lệch nửa icon). Nút ghost cùng bề rộng với nút lime. */
.bst-app .bst-shuffle-actions .bst-shuffle-hold > i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); flex: none; }
.bst-app .bst-shuffle-hold > span:first-child { text-align: center; }
.bst-app .bst-shuffle-actions .bst-shuffle-back { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; width: min(360px, 92%); }
/* Nút giữ v7 (16:33 30/10, theo ảnh anh gửi: nút 2 dòng sát mép — làm kiểu
   mẫu): hẹp lại, cao hơn, padding thoáng, chữ nhỏ lại cho 2 dòng thở;
   icon tay sang TRÁI như mẫu nhưng vẫn ghim cố định nên chữ căn giữa thật. */
.bst-app .bst-shuffle-hold {
  position: relative;
  overflow: hidden;
  width: min(360px, 92%);
  min-height: 68px;
  padding: 12px 28px;
  background: #c0f25d !important;
  color: #0a0f0a !important;
  box-shadow: 0 16px 36px rgba(192, 242, 93, .28), inset 0 1px 0 rgba(255, 255, 255, .4) !important;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.bst-app .bst-shuffle-hold b { font-size: 16px; }
.bst-app .bst-shuffle-hold:hover { background: #add854 !important; color: #0a0f0a !important; }
.bst-shuffle-hold i { font-size: 26px; }
.bst-shuffle-hold-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .2); }
.bst-shuffle-hold-progress i { display: block; height: 100%; width: 0; background: #86a941; transition: width .2s ease; }
.bst-shuffle-hold.is-ready .bst-shuffle-hold-progress i { background: #0a0f0a; }
.bst-shuffle-hold.is-holding { transform: scale(.98); }
.bst-shuffle-hold small { display: block; margin-top: 2px; opacity: .8; font-size: 11px; font-weight: 600; }
.bst-shuffle-hold small:empty { display: none; }
.bst-app .bst-shuffle-back {
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  color: #e8ebf1 !important;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.bst-app .bst-shuffle-back:hover { background: rgba(255, 255, 255, .09) !important; color: #fff !important; border-color: rgba(255, 255, 255, .2) !important; }
/* Deal reveal: lá bay lên + lật mặt trước khi sang luận giải. */
.bst-deal-reveal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; min-height: 232px; margin: 26px auto 6px; }
.bst-reveal-card { aspect-ratio: 10/16; perspective: 1000px; opacity: 0; transform: translateY(46px) scale(.9); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .75, .25, 1); }
.bst-reveal-card.is-up { opacity: 1; transform: translateY(-16px) scale(1); }
.bst-reveal-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .75, .25, 1); transition-delay: .1s; }
.bst-reveal-card.is-up .bst-reveal-inner { transform: rotateY(180deg); }
.bst-reveal-face { position: absolute; inset: 0; overflow: hidden; border-radius: 15px; backface-visibility: hidden; }
.bst-reveal-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid rgba(192, 242, 93, .7);
  background-color: #0b100f;
  background-image:
    radial-gradient(120% 90% at 50% 28%, rgba(220, 250, 160, .14), transparent 60%),
    linear-gradient(180deg, #14211a 0%, #0b100f 50%, #060906 100%);
  box-shadow: inset 0 0 0 5px #0b100f, inset 0 0 0 7px rgba(192, 242, 93, .5), 0 8px 20px rgba(0, 0, 0, .35);
}
.bst-reveal-back .bst-ico { width: 34px; height: 34px; color: var(--tarot-lime); }
.bst-reveal-back b { order: -1; color: #eaffc0; font-size: 7px; letter-spacing: .14em; text-align: center; }
.bst-reveal-back small { color: #9dc48a; font-size: 6px; letter-spacing: .3em; }
.bst-reveal-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  border: 1px solid rgba(192, 242, 93, .5);
  background: linear-gradient(160deg, #16172a, #0b0d19);
  transform: rotateY(180deg);
}
.bst-reveal-front img { width: 100%; min-height: 0; flex: 1; object-fit: contain; }
.bst-reveal-front strong { color: #fff; font-size: 10px; text-align: center; }
.bst-reveal-front small { color: #9aa0ab; font-size: 7px; }

/* ---------- 8. Result: head, reading, cards, meaning ---------- */

.bst-result-head { text-align: center; }
.bst-result-question {
  max-width: 620px;
  margin: 10px auto 0 !important;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(192, 242, 93, .06);
  font-style: italic;
}
.bst-reading { display: grid; grid-template-columns: repeat(var(--count, 1), minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.bst-reading[style*="--count: 5"], .bst-reading[style*="--count: 6"], .bst-reading[style*="--count: 7"],
.bst-reading[style*="--count: 10"], .bst-reading[style*="--count: 13"] {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 22px;
  gap: 18px;
}
.bst-reading[style*="--count: 5"] .bst-reading-card, .bst-reading[style*="--count: 6"] .bst-reading-card,
.bst-reading[style*="--count: 7"] .bst-reading-card, .bst-reading[style*="--count: 10"] .bst-reading-card,
.bst-reading[style*="--count: 13"] .bst-reading-card { flex-grow: 0; flex-shrink: 0; flex-basis: min(360px, 86vw); scroll-snap-align: center; }
.bst-reading-card { min-width: 0; transition: transform .3s ease; }
.bst-reading-card:hover { transform: translateY(-3px); }
.bst-card-scene { width: min(260px, 100%); aspect-ratio: 10/16; margin: auto; perspective: 1100px; }
.bst-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2, .75, .25, 1);
  transition-delay: calc(var(--i) * .22s);
}
.bst-reading-card.is-revealed .bst-card-inner { transform: rotateY(180deg); }
.bst-card-face { position: absolute; inset: 0; overflow: hidden; border-radius: 15px; backface-visibility: hidden; }
.bst-card-back {
  display: grid;
  place-items: center;
  border: 2px solid rgba(192, 242, 93, .72) !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(192, 242, 93, .13) 0 2px, transparent 3px 17px),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 14px, rgba(192, 242, 93, .08) 15px 16px),
    linear-gradient(145deg, #1a211f, #080d0c) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .46), inset 0 0 0 6px #0a0f0e, inset 0 0 0 8px rgba(192, 242, 93, .34) !important;
  color: var(--tarot-lime-soft) !important;
}
.bst-card-back span { color: var(--tarot-lime) !important; font-size: 50px; text-shadow: 0 0 12px rgba(192, 242, 93, .75), 0 0 30px rgba(192, 242, 93, .3) !important; }
.bst-card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 7px !important;
  overflow: hidden;
  border: 1px solid rgba(192, 242, 93, .7) !important;
  background: #090d0c !important;
  transform: rotateY(180deg);
  box-shadow: inset 0 0 0 4px #090d0c, inset 0 0 0 5px rgba(192, 242, 93, .28) !important;
}
.bst-card-front .bst-card-art {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 3px;
  border-radius: 9px;
  background: linear-gradient(160deg, #18201d, #080d0c);
  object-fit: contain;
  object-position: center;
}
.bst-card-front .bst-card-title { position: relative; z-index: 2; padding-top: 8px; text-align: center; }
.bst-card-number {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(192, 242, 93, .55);
  border-radius: 7px;
  background: rgba(7, 12, 11, .86);
  color: var(--tarot-lime) !important;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  backdrop-filter: blur(6px);
}
.bst-card-title, .bst-flight-title {
  position: absolute;
  z-index: 3;
  right: 7px;
  bottom: 7px;
  left: 7px;
  display: block;
  padding: 12px 8px 8px;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(180deg, transparent, rgba(5, 9, 8, .94) 42%);
  text-align: center;
}
.bst-card-title strong, .bst-flight-title b { display: block; color: #fff !important; font-size: 12px; line-height: 1.15; letter-spacing: .02em; }
.bst-card-title small, .bst-flight-title small { display: block; margin-top: 3px; color: var(--tarot-lime-soft) !important; font-size: 8px; line-height: 1.2; letter-spacing: .04em; }
.bst-card-front strong { font-size: 13px; }
.bst-card-front small { font-size: 8px; }
.bst-card-symbol { display: none !important; }
.bst-card-meaning {
  opacity: 0;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(11, 16, 14, .72);
  transform: translateY(8px);
  transition: .5s;
  transition-delay: calc(.75s + var(--i) * .22s);
}
.bst-reading-card.is-revealed .bst-card-meaning { opacity: 1; transform: none; }
.bst-card-meaning h3 { margin: 0 0 3px; color: #fff; font-size: 14px; }
.bst-card-meaning h3 span { display: block; color: #fff; }
.bst-card-meaning h3 small { display: block; margin-top: 3px; color: var(--tarot-lime-soft); font-size: 10px; font-weight: 750; letter-spacing: .035em; }
.bst-card-meaning > span { color: var(--tarot-lime); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.bst-card-meaning p { margin: 10px 0 0; color: #aeb8ce; font-size: 11px; line-height: 1.62; }
.bst-card-advice { padding-top: 9px; border-top: 1px solid var(--line); color: #d9dfed !important; }

/* ---------- 9. Shirt CTA + AI reading + result actions ---------- */

.bst-shirt-cta {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(110deg, rgba(192, 242, 93, .09), rgba(21, 31, 24, .92));
}
.bst-app .bst-result > .bst-shirt-cta {
  margin-top: 22px;
  border: 1px solid rgba(192, 242, 93, .28) !important;
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(192, 242, 93, .09), rgba(21, 31, 24, .92)) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .2);
}
.bst-shirt-swatch {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 15px;
  background: var(--shirt-color, #7c6ce7);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .08), 0 8px 22px color-mix(in srgb, var(--shirt-color, #7c6ce7) 30%, transparent);
}
.bst-shirt-swatch:after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 2l2.4 7.6L22 12l-7.6 2.4L12 22l-2.4-7.6L2 12l7.6-2.4z'/%3E%3C/svg%3E") no-repeat center/18px 18px;
}
.bst-shirt-cta small { display: block; margin-bottom: 3px; color: var(--tarot-lime); font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.bst-shirt-cta h4 { margin: 0 0 5px; color: #fff; font-size: 13px; }
.bst-shirt-cta p { max-width: 580px; margin: 0; color: #aeb9d0; font-size: 10px; line-height: 1.55; }
.bst-shirt-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(192, 242, 93, .5);
  border-radius: 11px;
  background: rgba(192, 242, 93, .18);
  color: #eef9e7 !important;
  font-size: 10px;
  font-weight: 850;
  text-decoration: none !important;
  white-space: nowrap;
  transition: .2s;
}
.bst-shirt-link:hover { transform: translateY(-2px); border-color: #c0f25d; background: rgba(192, 242, 93, .3); }
.bst-app .bst-result > .bst-shirt-cta .bst-shirt-link {
  min-height: 48px;
  border-color: var(--tarot-lime) !important;
  background: var(--tarot-lime) !important;
  color: #091008 !important;
  box-shadow: 0 10px 28px rgba(192, 242, 93, .12);
}
.bst-app .bst-result > .bst-shirt-cta .bst-shirt-link:hover { background: #c7ff57 !important; }
.bst-ai-reading {
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(192, 242, 93, .28) !important;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(22, 29, 25, .96), rgba(9, 14, 12, .96)) !important;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .26);
}
.bst-ai-reading > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(189, 204, 196, .16) !important;
  background: linear-gradient(90deg, rgba(192, 242, 93, .08), transparent);
}
.bst-ai-reading > header > div { display: flex; align-items: center; gap: 12px; }
.bst-ai-reading header b { display: block; color: #fff; font-size: 14px; }
.bst-ai-reading header small { display: block; margin-top: 2px; color: #87928b; font-size: 9px; }
.bst-ai-orbit {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(192, 242, 93, .42);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 242, 93, .24), rgba(20, 30, 20, .1));
  color: var(--tarot-lime);
  font-size: 18px;
  box-shadow: 0 0 22px rgba(192, 242, 93, .22);
  animation: bst-ai-orbit 4.5s linear infinite;
}
.bst-ai-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(192, 242, 93, .3);
  border-radius: 999px;
  background: rgba(192, 242, 93, .08);
  color: var(--tarot-lime);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.bst-ai-status.is-loading { animation: bst-ai-pulse 1.1s ease-in-out infinite; }
.bst-ai-content { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.bst-ai-content article { min-width: 0; padding: 18px 20px; border-color: rgba(189, 204, 196, .14) !important; background: rgba(255, 255, 255, .025) !important; color: #dce3df !important; }
.bst-ai-content article:first-child { grid-column: 1/-1; }
.bst-ai-content article:nth-child(even):last-child { grid-column: 1/-1; }
.bst-ai-content article.is-direct-answer {
  border-left: 3px solid var(--tarot-lime);
  background: rgba(192, 242, 93, .055) !important;
}
.bst-ai-content article.is-direct-answer h4 { color: #d3f68e; }
.bst-ai-content article.is-direct-answer p { color: #e5e9f3; font-size: 12px; }
.bst-ai-content h4 { margin: 0 0 8px; color: #d3f68e !important; font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.bst-ai-content p { margin: 0; color: #a0aaa4 !important; font-size: 11px; line-height: 1.8; white-space: pre-line; }
@keyframes bst-ai-orbit { 50% { transform: rotate(180deg) scale(1.08); } 100% { transform: rotate(360deg); } }
@keyframes bst-ai-pulse { 50% { opacity: .45; box-shadow: 0 0 18px rgba(192, 242, 93, .18); } }
/* Skeleton: khung chờ AI, không nháy fallback trước khi có kết quả thật. */
.bst-ai-loading-card { min-height: 150px; }
.bst-ai-loading-card.is-direct-answer { min-height: 164px; }
.bst-ai-skeleton { display: grid; gap: 10px; margin-top: 13px; overflow: hidden; }
.bst-ai-skeleton span {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(144, 158, 150, .08) 20%, rgba(192, 242, 93, .22) 42%, rgba(144, 158, 150, .08) 64%) !important;
  background-size: 240% 100% !important;
  animation: bst-ai-skeleton 1.35s ease-in-out infinite;
}
.bst-ai-skeleton span:nth-child(2) { width: 92%; }
.bst-ai-skeleton span.is-short { width: 64%; }
@keyframes bst-ai-skeleton { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.bst-app .bst-result-actions { display: grid; grid-template-columns: .82fr 1.18fr; gap: 10px; margin-top: 26px; }
.bst-app .bst-result-actions .bst-primary { width: 100%; max-width: none; margin: 0; text-decoration: none; }
.bst-app .bst-result-actions .bst-secondary { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; }
.bst-app .bst-result-actions .bst-secondary b { font-size: 16px; }
.bst-share-status { min-height: 18px; margin: 10px 0 0; color: var(--tarot-lime); font-size: 10px; text-align: center; }
.bst-disclaimer {
  max-width: 900px;
  margin: 22px auto 0;
  padding: 16px 19px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(31, 34, 40, .92), rgba(20, 22, 26, .92));
  color: #9aa0ab;
}
.bst-disclaimer b { display: block; margin-bottom: 4px; color: var(--tarot-lime); font-size: 11px; }
.bst-disclaimer p { margin: 0; font-size: 9px; line-height: 1.55; }
.bst-disclaimer small { display: block; margin-top: 6px; color: #7d8882; font-size: 8px; line-height: 1.5; }

/* ---------- 10. History modal ---------- */

.bst-history-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  background: rgba(3, 7, 5, .86) !important;
  backdrop-filter: blur(12px);
}
.bst-history-modal[hidden] { display: none !important; }
.bst-history-dialog {
  width: min(640px, 100%);
  max-height: min(760px, calc(100dvh - 48px));
  overflow: auto;
  margin: 0 auto;
  background: #101715 !important;
  color: #edf5ee;
  border: 1px solid rgba(192, 242, 93, .22) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .72) !important;
}
.bst-history-dialog > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  padding: 20px 22px !important;
  background: #101715 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .075) !important;
}
.bst-history-dialog header small { display: block; color: #8e9a93 !important; font-size: 9px !important; font-weight: 800; letter-spacing: .12em !important; }
.bst-history-dialog h2 { margin: 5px 0 0 !important; color: #f5f8f5 !important; font-size: 23px !important; line-height: 1.2 !important; letter-spacing: -.025em !important; }
.bst-history-dialog header button {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .09) !important;
  border-radius: 10px !important;
  background: #18201d !important;
  color: #cbd3ce !important;
  font: 700 22px/1 Arial, sans-serif !important;
  box-shadow: none !important;
  cursor: pointer;
}
.bst-history-dialog header button:hover { border-color: rgba(192, 242, 93, .45) !important; color: #c0f25d !important; background: #1d2822 !important; }
.bst-history-dialog header .bst-ico { width: 20px; height: 20px; }
.bst-history-dialog [data-history-list] { padding: 8px 22px !important; background: #101715 !important; }
.bst-history-modal.is-empty [data-history-list] { padding: 0 !important; }
.bst-history-dialog article { padding: 16px 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.bst-history-dialog article time { color: #829087 !important; font-size: 9px !important; }
.bst-history-dialog article time, .bst-history-dialog article p { opacity: .68; }
.bst-history-dialog article h3 { margin: 5px 0; color: #f2f5f3 !important; font-size: 14px !important; }
.bst-history-dialog article div { display: flex; flex-wrap: wrap; gap: 7px; }
.bst-history-dialog article span { font-size: 12px; border: 1px solid rgba(192, 242, 93, .25); border-radius: 999px; padding: 5px 9px; }
.bst-history-dialog > footer {
  position: sticky;
  bottom: 0;
  margin: 0;
  padding: 13px 22px !important;
  background: #101715 !important;
  border-top: 1px solid rgba(255, 255, 255, .075) !important;
  text-align: right;
}
.bst-history-modal.is-empty .bst-history-dialog > footer { display: none !important; }
.bst-history-dialog > footer button {
  min-height: 38px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(255, 130, 130, .22) !important;
  border-radius: 10px !important;
  background: rgba(255, 105, 105, .04) !important;
  color: #eaa3a3 !important;
  font-size: 10px !important;
  font-weight: 750 !important;
  cursor: pointer;
}
.bst-history-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 230px; margin: 0 !important; padding: 34px 28px !important; color: #c8d0cb !important; text-align: center !important; }
.bst-history-empty i {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 0 15px;
  border: 1px solid rgba(192, 242, 93, .26);
  border-radius: 50%;
  background: rgba(192, 242, 93, .055);
  color: #c0f25d;
  font: 400 24px/1 Arial, sans-serif;
}
.bst-history-empty h3 { margin: 0 0 7px !important; color: #eef3ef !important; font-size: 16px !important; line-height: 1.3 !important; }
.bst-history-empty p { max-width: 390px; margin: 0 !important; color: #849087 !important; font-size: 11px !important; line-height: 1.6 !important; }
.bst-modal-open { overflow: hidden; }

/* ---------- 11. Draw / runway (LEGACY — màn bốc lá không còn đường tới,
   giữ nguyên để JS cũ không throw, chỉ căn palette sang graphite + lime) ---------- */

.bst-app .bst-draw {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding-left: 0;
  padding-right: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(98, 143, 44, .14), transparent 52%), linear-gradient(145deg, #111816, #070b0a);
}
.bst-app .bst-draw-copy { position: relative; z-index: 5; padding: 0 24px; }
.bst-draw { text-align: center; }
.bst-runway {
  position: relative;
  height: 286px;
  margin: 26px 0 8px;
  overflow: hidden;
  perspective: 1100px;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
  mask-image: none;
  -webkit-mask-image: none;
  touch-action: pan-y;
  cursor: grab;
}
.bst-draw.is-dragging .bst-runway { cursor: grabbing; }
.bst-draw.is-dragging .bst-running-card { pointer-events: none; }
.bst-runway-glow, .bst-runway:before, .bst-runway:after { display: none; }
.bst-card-track {
  position: absolute;
  z-index: 2;
  top: 34px;
  left: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: max-content;
  padding: 0 18px;
  transform: translate3d(0, 0, 0);
  transform-style: preserve-3d;
  will-change: transform;
  user-select: none;
}
.bst-app .bst-running-card {
  position: relative !important;
  flex: 0 0 106px !important;
  display: block !important;
  width: 106px !important;
  min-width: 106px !important;
  max-width: 106px !important;
  height: 182px !important;
  min-height: 182px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 15px !important;
  outline: 0;
  appearance: none;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  cursor: pointer;
  transform: translateY(22px) rotate(-5deg) !important;
  transform-style: preserve-3d;
  transition: opacity .35s, filter .35s, transform .28s;
}
.bst-app .bst-running-card:nth-child(3n+2) { transform: translateY(4px) rotate(2deg) !important; }
.bst-app .bst-running-card:nth-child(3n) { transform: translateY(14px) rotate(5deg) !important; }
.bst-running-card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(192, 242, 93, .48) !important;
  border-radius: 15px;
  background: #0b100f !important;
  box-shadow: inset 0 0 0 5px #0b100f, inset 0 0 0 7px rgba(192, 242, 93, .24), 0 18px 34px rgba(0, 0, 0, .55) !important;
  transform: translateZ(12px);
  transform-style: preserve-3d;
  transition: .28s;
}
.bst-running-card-inner:before, .bst-running-card-inner:after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(230, 211, 255, .18); border-radius: 10px; transform: translateZ(3px); }
.bst-running-card-inner:after { inset: 22px; border-radius: 50%; background: radial-gradient(circle, rgba(192, 242, 93, .13), transparent 68%); }
.bst-running-card i { position: relative; z-index: 2; color: #c0f25d; font-size: 30px; font-style: normal; text-shadow: 0 0 22px rgba(192, 242, 93, .68); }
.bst-running-card b { position: relative; z-index: 2; margin-top: 18px; color: #eaffc0; font-size: 8px; letter-spacing: .26em; }
.bst-running-card small { position: absolute; z-index: 2; right: 0; bottom: 19px; left: 0; margin: 0; color: #b9a7d9; font-size: 6px; line-height: 1; letter-spacing: .34em; text-align: center; }
.bst-running-card:hover, .bst-running-card:focus-visible { z-index: 6; filter: brightness(1.25); transform: translateY(-4px) rotate(0) scale(1.08) !important; }
.bst-running-card.is-guided .bst-running-card-inner {
  border-color: var(--tarot-lime) !important;
  box-shadow: inset 0 0 0 5px #0a0f0e, inset 0 0 0 7px rgba(192, 242, 93, .52), 0 0 0 2px rgba(192, 242, 93, .17), 0 0 34px rgba(192, 242, 93, .4), 0 20px 40px rgba(0, 0, 0, .52) !important;
  animation: bst-guided-card 1.25s ease-in-out infinite;
}
.bst-running-card.is-guided i { animation: bst-guided-star 1.25s ease-in-out infinite; }
.bst-running-card.is-picked { pointer-events: none; opacity: .08; filter: grayscale(1); transform: scale(.72) !important; }
.bst-deck-thumb {
  position: absolute;
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border-radius: 9px;
  object-fit: cover;
  filter: saturate(.72) brightness(.42) contrast(1.08);
  opacity: .7;
}
.bst-deck-veil {
  position: absolute;
  inset: 7px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(4, 9, 7, .18), rgba(4, 9, 7, .72));
  box-shadow: inset 0 0 28px rgba(0, 0, 0, .45);
}
.bst-running-card .bst-deck-veil i { position: static; font-size: 26px; }
.bst-running-card .bst-deck-veil b { margin-top: 14px; font-size: 7px; letter-spacing: .14em; }
.bst-running-card .bst-deck-veil small { position: static; margin-top: 6px; font-size: 6px; }
.bst-app[data-deck="marseille"] .bst-running-card-inner { border-color: rgba(225, 184, 82, .65) !important; }
.bst-app[data-deck="vieville"] .bst-running-card-inner { border-color: rgba(127, 184, 225, .6) !important; }
.bst-app[data-deck=marseille] .bst-card-art, .bst-app[data-deck=marseille] .bst-flight-front img,
.bst-app[data-deck=vieville] .bst-card-art, .bst-app[data-deck=vieville] .bst-flight-front img { filter: none; }
.bst-picked-zone {
  position: relative;
  z-index: 5;
  display: grid !important;
  grid-template-columns: repeat(var(--spread-count), minmax(58px, 74px));
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 112px !important;
  margin: 4px auto 10px !important;
  padding: 8px 18px;
}
.bst-picked-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 92px;
  border: 1px dashed rgba(192, 242, 93, .35);
  border-radius: 9px;
  background: rgba(192, 242, 93, .025);
  color: #87938b;
  text-align: center;
}
.bst-picked-slot > b { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(192, 242, 93, .25); border-radius: 50%; color: #c0f25d; font-size: 10px; }
.bst-picked-slot > small { max-width: 58px; margin-top: 7px; font-size: 7px; line-height: 1.25; text-transform: none; }
.bst-picked-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 64px;
  opacity: 0;
  border: 1px solid hsla(var(--marker-hue), 70%, 74%, .55);
  border-radius: 8px;
  background: radial-gradient(circle, hsla(var(--marker-hue), 70%, 55%, .22), transparent 60%), #0d1712;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .35);
  transform: translateY(18px) rotateY(70deg);
  transition: .5s cubic-bezier(.2, .8, .2, 1);
}
.bst-picked-marker.is-visible { opacity: 1; transform: none; }
.bst-picked-marker i { color: hsl(var(--marker-hue), 80%, 78%); font-size: 22px; font-style: normal; }
.bst-picked-marker small { margin-top: 5px; color: #8e99b5; font-size: 7px; letter-spacing: .06em; text-transform: uppercase; }
.bst-draw[data-spread-key="relationship"] .bst-picked-zone { grid-template-columns: repeat(3, 74px); grid-template-rows: repeat(3, 96px); }
.bst-draw[data-spread-key="relationship"] .bst-picked-slot:nth-child(1) { grid-column: 2; grid-row: 1; }
.bst-draw[data-spread-key="relationship"] .bst-picked-slot:nth-child(2) { grid-column: 1; grid-row: 2; }
.bst-draw[data-spread-key="relationship"] .bst-picked-slot:nth-child(3) { grid-column: 2; grid-row: 2; }
.bst-draw[data-spread-key="relationship"] .bst-picked-slot:nth-child(4) { grid-column: 3; grid-row: 2; }
.bst-draw[data-spread-key="relationship"] .bst-picked-slot:nth-child(5) { grid-column: 2; grid-row: 3; }
.bst-draw[data-spread-key="choices"] .bst-picked-zone { grid-template-columns: repeat(2, 74px); grid-template-rows: repeat(3, 96px); column-gap: 40px; }
.bst-draw[data-spread-key="horseshoe"] .bst-picked-zone { grid-template-columns: repeat(7, 64px); align-items: start; }
.bst-draw[data-spread-key="horseshoe"] .bst-picked-slot:nth-child(1), .bst-draw[data-spread-key="horseshoe"] .bst-picked-slot:nth-child(7) { transform: translateY(-18px); }
.bst-draw[data-spread-key="horseshoe"] .bst-picked-slot:nth-child(2), .bst-draw[data-spread-key="horseshoe"] .bst-picked-slot:nth-child(6) { transform: translateY(8px); }
.bst-draw[data-spread-key="horseshoe"] .bst-picked-slot:nth-child(3), .bst-draw[data-spread-key="horseshoe"] .bst-picked-slot:nth-child(5) { transform: translateY(26px); }
.bst-draw[data-spread-key="horseshoe"] .bst-picked-slot:nth-child(4) { transform: translateY(34px); }
.bst-draw[data-spread-key="celtic"] .bst-picked-zone { grid-template-columns: repeat(6, 64px); grid-template-rows: repeat(4, 96px); }
.bst-draw[data-spread-key="celtic"] .bst-picked-slot:nth-child(1) { grid-column: 3; grid-row: 2; }
.bst-draw[data-spread-key="celtic"] .bst-picked-slot:nth-child(2) { grid-column: 3; grid-row: 2; transform: rotate(90deg); }
.bst-draw[data-spread-key="celtic"] .bst-picked-slot:nth-child(3) { grid-column: 3; grid-row: 1; }
.bst-draw[data-spread-key="celtic"] .bst-picked-slot:nth-child(4) { grid-column: 3; grid-row: 3; }
.bst-draw[data-spread-key="celtic"] .bst-picked-slot:nth-child(5) { grid-column: 2; grid-row: 2; }
.bst-draw[data-spread-key="celtic"] .bst-picked-slot:nth-child(6) { grid-column: 4; grid-row: 2; }
.bst-draw[data-spread-key="celtic"] .bst-picked-slot:nth-child(7) { grid-column: 6; grid-row: 4; }
.bst-draw[data-spread-key="celtic"] .bst-picked-slot:nth-child(8) { grid-column: 6; grid-row: 3; }
.bst-draw[data-spread-key="celtic"] .bst-picked-slot:nth-child(9) { grid-column: 6; grid-row: 2; }
.bst-draw[data-spread-key="celtic"] .bst-picked-slot:nth-child(10) { grid-column: 6; grid-row: 1; }
.bst-app button.bst-draw-cta {
  position: relative !important;
  z-index: 6;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  width: min(330px, calc(100% - 36px)) !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 70px !important;
  margin: 8px auto 2px !important;
  padding: 10px 24px !important;
  overflow: hidden;
  border: 1px solid rgba(192, 242, 93, .6) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #182019, #0d120f) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(192, 242, 93, .08) !important;
  color: #f5f6f1 !important;
  font-family: inherit !important;
  line-height: 1.2 !important;
  text-align: left !important;
  text-transform: none !important;
  transform: translateY(0) perspective(600px) rotateX(0);
  transition: .2s !important;
}
.bst-app button.bst-draw-cta:before {
  content: '';
  position: absolute;
  top: -70%;
  left: -28%;
  width: 34%;
  height: 240%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: rotate(24deg);
  animation: bst-button-shine 3s ease-in-out infinite;
}
.bst-app button.bst-draw-cta > span { position: relative; z-index: 2; display: block; }
.bst-app button.bst-draw-cta b { display: block; color: #fff; font-size: 13px; letter-spacing: .01em; }
.bst-app button.bst-draw-cta small { display: block; margin-top: 4px; color: #87928b; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bst-app button.bst-draw-cta > i {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(192, 242, 93, .46);
  border-radius: 50%;
  background: rgba(192, 242, 93, .1);
  color: var(--tarot-lime);
  font-size: 20px;
  font-style: normal;
  text-shadow: 0 0 16px rgba(192, 242, 93, .55);
  animation: bst-guided-star 1.5s ease-in-out infinite;
}
.bst-app button.bst-draw-cta:hover {
  transform: translateY(-3px) perspective(600px) rotateX(2deg) !important;
  border-color: var(--tarot-lime) !important;
  background: linear-gradient(145deg, #202b1e, #101610) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .46), 0 0 26px rgba(192, 242, 93, .13) !important;
}
.bst-app button.bst-draw-cta:active {
  transform: translateY(6px) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35), 0 2px 0 #17102f, 0 8px 18px rgba(192, 242, 93, .32) !important;
}
.bst-flight-card { position: fixed; z-index: 999999; pointer-events: none; perspective: 1200px; transform-style: preserve-3d; }
.bst-flight-inner { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transition: transform .62s cubic-bezier(.2, .75, .2, 1); }
.bst-flight-card.is-revealed .bst-flight-inner { transform: rotateY(180deg); }
.bst-flight-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--tarot-lime) !important;
  border-radius: 15px;
  backface-visibility: hidden;
  box-shadow: 0 0 42px rgba(192, 242, 93, .48), inset 0 0 0 6px #0a0f0e, inset 0 0 0 8px rgba(192, 242, 93, .3) !important;
}
.bst-flight-back {
  background:
    radial-gradient(circle at 50% 50%, rgba(192, 242, 93, .13) 0 2px, transparent 3px 17px),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 14px, rgba(192, 242, 93, .08) 15px 16px),
    linear-gradient(145deg, #1a211f, #080d0c) !important;
  color: var(--tarot-lime-soft) !important;
}
.bst-flight-front { padding: 10px; background: radial-gradient(circle at 50% 38%, rgba(192, 242, 93, .12), transparent 38%), linear-gradient(155deg, #1a1730, #090c17); color: #fff; text-align: center; transform: rotateY(180deg); }
.bst-flight-front > img { display: block; width: 100%; height: 100%; padding: 3px; border-radius: 9px; background: linear-gradient(160deg, #18201d, #080d0c); object-fit: contain; object-position: center; }
.bst-flight-face i { color: var(--tarot-lime); font-size: 38px; font-style: normal; text-shadow: 0 0 20px rgba(192, 242, 93, .7); }
.bst-flight-face b { margin-top: 13px; color: #fff; font-size: 9px; letter-spacing: .08em; }
@keyframes bst-runway-flow { to { transform: translate3d(calc(-50% - 9px), 0, 0); } }
@keyframes bst-guided-card { 50% { transform: translateZ(24px) scale(1.045); filter: brightness(1.25); } }
@keyframes bst-guided-star { 50% { transform: rotate(90deg) scale(1.18); text-shadow: 0 0 28px rgba(192, 242, 93, .55); } }
@keyframes bst-button-shine { 0%, 34% { left: -35%; } 65%, 100% { left: 125%; } }

/* Old 3-card deck widget (không còn trong HTML mới, giữ để khỏi vỡ). */
.bst-deck { position: relative; display: block; width: 178px; height: 282px; margin: 38px auto 24px; border: 0; background: transparent; cursor: pointer; perspective: 1000px; transform-style: preserve-3d; }
.bst-deck-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(192, 242, 93, .72) !important;
  border-radius: 17px;
  background:
    radial-gradient(circle at 50% 50%, rgba(192, 242, 93, .13) 0 2px, transparent 3px 17px),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 14px, rgba(192, 242, 93, .08) 15px 16px),
    linear-gradient(145deg, #1a211f, #080d0c) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .46), inset 0 0 0 6px #0a0f0e, inset 0 0 0 8px rgba(192, 242, 93, .34) !important;
  color: var(--tarot-lime-soft) !important;
  transform-origin: 50% 115%;
  will-change: transform, opacity;
  transition: .3s;
}
.bst-deck .c3 { transform: translate(12px, -9px) rotate(5deg); opacity: .5; }
.bst-deck .c2 { transform: translate(-10px, -5px) rotate(-4deg); opacity: .7; }
.bst-deck .c4 { transform: translate(5px, -4px) rotate(2deg); opacity: .55; }
.bst-deck .c5 { transform: translate(-6px, -3px) rotate(-2deg); opacity: .48; }
.bst-deck .c6 { transform: translate(8px, -2px) rotate(3deg); opacity: .4; }
.bst-deck .c7 { transform: translate(-8px, -1px) rotate(-3deg); opacity: .35; }
.bst-deck:hover .c3 { transform: translate(20px, -13px) rotate(8deg); }
.bst-deck:hover .c2 { transform: translate(-17px, -10px) rotate(-7deg); }
.bst-deck-card i { color: var(--tarot-lime) !important; font-size: 58px; font-style: normal; text-shadow: 0 0 12px rgba(192, 242, 93, .75), 0 0 30px rgba(192, 242, 93, .3) !important; }
.bst-deck-card b { margin-top: 20px; color: #eaffc0 !important; font-size: 12px; letter-spacing: .24em; }
.bst-deck-card small { margin-top: 5px; color: #eaffc0 !important; font-size: 8px; letter-spacing: .4em; }
.bst-draw.is-shuffling .bst-deck { animation: bst-deck-float 2.15s cubic-bezier(.4, 0, .2, 1) both; }
.bst-draw.is-shuffling .c1 { animation: bst-shuffle-center 2.15s cubic-bezier(.4, 0, .2, 1) both; }
.bst-draw.is-shuffling .c2 { animation: bst-shuffle-left 2.15s cubic-bezier(.4, 0, .2, 1) both; }
.bst-draw.is-shuffling .c3 { animation: bst-shuffle-right 2.15s cubic-bezier(.4, 0, .2, 1) both; }
.bst-draw.is-shuffling .c4 { animation: bst-shuffle-wide-left 2.15s cubic-bezier(.4, 0, .2, 1) both; }
.bst-draw.is-shuffling .c5 { animation: bst-shuffle-wide-right 2.15s cubic-bezier(.4, 0, .2, 1) both; }
.bst-draw.is-shuffling .c6 { animation: bst-shuffle-top 2.15s cubic-bezier(.4, 0, .2, 1) both; }
.bst-draw.is-shuffling .c7 { animation: bst-shuffle-bottom 2.15s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes bst-deck-shuffle { 50% { transform: translateY(-7px) rotate(2deg); } }
@keyframes bst-card-shuffle-a { 50% { transform: translateX(72px) rotate(9deg); } }
@keyframes bst-card-shuffle-b { 50% { transform: translateX(-68px) rotate(-10deg); } }
@keyframes bst-deck-float {
  0%, 100% { transform: translateY(0) rotateX(0); }
  28% { transform: translateY(-18px) rotateX(5deg); }
  60% { transform: translateY(-9px) rotateX(-3deg); }
}
@keyframes bst-shuffle-center {
  0%, 100% { transform: translate(0, 0) rotate(0) scale(1); }
  24% { transform: translate(68px, -24px) rotate(13deg) scale(.98); }
  50% { transform: translate(-54px, -8px) rotate(-10deg) scale(1.02); }
  76% { transform: translate(24px, -18px) rotate(5deg); }
}
@keyframes bst-shuffle-left {
  0%, 100% { transform: translate(-10px, -5px) rotate(-4deg); }
  25% { transform: translate(-116px, -42px) rotate(-22deg); }
  52% { transform: translate(80px, -20px) rotate(14deg); }
  78% { transform: translate(-38px, -12px) rotate(-8deg); }
}
@keyframes bst-shuffle-right {
  0%, 100% { transform: translate(12px, -9px) rotate(5deg); }
  22% { transform: translate(122px, -28px) rotate(24deg); }
  50% { transform: translate(-82px, -44px) rotate(-16deg); }
  80% { transform: translate(42px, -18px) rotate(9deg); }
}
@keyframes bst-shuffle-wide-left {
  0%, 100% { transform: translate(5px, -4px) rotate(2deg); }
  30% { transform: translate(-145px, 5px) rotate(-30deg); }
  62% { transform: translate(55px, -55px) rotate(12deg); }
}
@keyframes bst-shuffle-wide-right {
  0%, 100% { transform: translate(-6px, -3px) rotate(-2deg); }
  30% { transform: translate(146px, 4px) rotate(31deg); }
  62% { transform: translate(-48px, -58px) rotate(-13deg); }
}
@keyframes bst-shuffle-top {
  0%, 100% { transform: translate(8px, -2px) rotate(3deg); }
  35% { transform: translate(26px, -105px) rotate(16deg) scale(.93); }
  68% { transform: translate(-70px, -24px) rotate(-14deg); }
}
@keyframes bst-shuffle-bottom {
  0%, 100% { transform: translate(-8px, -1px) rotate(-3deg); }
  34% { transform: translate(-24px, 65px) rotate(-16deg) scale(.96); }
  68% { transform: translate(72px, -35px) rotate(15deg); }
}

/* ---------- 12. Responsive ---------- */

@media (max-width: 900px) {
  .bst-app .bst-decks { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bst-app .bst-decks button { padding: 14px 12px 16px; grid-template-rows: 184px auto auto; }
  .bst-app .bst-decks i { width: 108px; height: 176px; }
  .bst-app .bst-decks strong { font-size: 14px; }
}
@media (min-width: 1100px) {
  .bst-app .bst-spreads { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bst-app .bst-spreads button {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-width: 0;
    min-height: 190px;
    overflow: hidden;
    padding: 16px 14px;
  }
  .bst-app .bst-spread-diagram { flex: 0 0 76px; width: 84px; height: 70px; margin: 0 auto 12px; }
  .bst-app .bst-spread-diagram i, .bst-app .bst-spreads [data-spread-key="celtic"] .bst-spread-diagram i:nth-child(2) { transform: none; }
  .bst-app .bst-spreads [data-spread-key="celtic"] .bst-spread-diagram i:nth-child(2) { transform: rotate(90deg); }
  .bst-app .bst-spreads strong { display: block; width: 100%; margin: 0 0 5px; font-size: 13px; line-height: 1.25; }
  .bst-app .bst-spreads small { display: block; width: 100%; font-size: 10px; line-height: 1.4; }
}
@media (min-width: 721px) {
  .bst-app .bst-shell, .bst-app .bst-disclaimer { max-width: 1000px; }
  .bst-app .bst-eyebrow { font-size: 13px; }
  .bst-app .bst-hero > p { font-size: 18px; }
  .bst-app .bst-trust { font-size: 13px; }
  .bst-app .bst-step-head h2 { font-size: 23px; }
  .bst-app .bst-step-head p { font-size: 15px; line-height: 1.55; }
  .bst-app .bst-topics button { font-size: 15px !important; }
  .bst-app .bst-question > span { font-size: 14px; }
  .bst-app .bst-question textarea { min-height: 92px; font-size: 16px; }
  .bst-app .bst-spreads strong { font-size: 18px; }
  .bst-app .bst-spreads small { font-size: 13px; }
  .bst-app .bst-primary { font-size: 16px; }
  .bst-app .bst-draw-copy p, .bst-app .bst-result-head p { font-size: 15px; }
  .bst-app .bst-card-meaning h3 { font-size: 19px; }
  .bst-app .bst-card-meaning > span { font-size: 12px; }
  .bst-app .bst-card-meaning p { font-size: 15px; }
  .bst-app .bst-ai-reading header b { font-size: 17px; }
  .bst-app .bst-ai-reading header small { font-size: 12px; }
  .bst-app .bst-ai-content h4 { font-size: 13px; }
  .bst-app .bst-ai-content p { font-size: 15px; }
  .bst-app .bst-ai-content article.is-direct-answer p { font-size: 16px; }
  .bst-app .bst-shirt-cta h4 { font-size: 16px; }
  .bst-app .bst-shirt-cta p { font-size: 14px; }
  .bst-app .bst-disclaimer b { font-size: 13px; }
  .bst-app .bst-disclaimer p { font-size: 11.5px; }
}
@media (max-width: 720px) {
  .bst-app { width: calc(100% - 16px); margin: 14px auto 28px; padding: 29px 12px; border-radius: 22px; }
  .bigstep-tarot-page .bst-app { width: 100%; border-left: 0; border-right: 0; }
  .bst-hero { margin-bottom: 26px; }
  .bst-hero h1 { max-width: 330px; margin-left: auto; margin-right: auto; font-size: 34px; line-height: 1.04; }
  .bst-hero h1 br { display: none; }
  .bst-hero > p { font-size: 13px; line-height: 1.55; }
  .bst-trust { gap: 7px 12px; margin-top: 17px; font-size: 8px; }
  .bst-setup, .bst-draw, .bst-result, .bst-shuffle { padding: 18px 13px; border-radius: 18px; }
  .bigstep-tarot-page .bst-result, .bigstep-tarot-page .bst-setup,
  .bigstep-tarot-page .bst-shuffle, .bigstep-tarot-page .bst-draw { scroll-margin-top: 74px; }
  .bst-topics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bst-app .bst-topics button { min-height: 50px !important; padding: 0 8px !important; font-size: 12px !important; }
  .bst-app .bst-topics button b { font-size: 15px; }
  .bst-app .bst-question > span { font-size: 12px; }
  .bst-app .bst-question textarea { font-size: 13px; }
  .bst-app .bst-step-head h2 { font-size: 18px; line-height: 1.25; }
  .bst-app .bst-step-head p { font-size: 11.5px; line-height: 1.45; }
  .bst-app .bst-draw-copy h2, .bst-app .bst-result-head h2 { font-size: 29px; line-height: 1.08; }
  .bst-app .bst-draw-copy p, .bst-app .bst-result-head p { font-size: 12.5px; line-height: 1.5; }
  .bst-reading { grid-template-columns: 1fr; gap: 26px; }
  .bst-card-scene { width: 240px; }
  .bst-card-symbol { font-size: 55px; }
  .bst-app .bst-result-actions { display: flex; flex-direction: column; }
  .bst-app .bst-result-actions .bst-primary { order: 1; }
  .bst-app .bst-result-actions .bst-secondary { order: 2; }
  .bst-deck { width: 150px; height: 240px; }
  .bst-disclaimer { margin-top: 14px; }
  /* Decks mobile: lưới 2 cột, card dọc — ảnh cố định 92x150, chữ căn giữa bên dưới. */
  .bst-app .bst-decks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; padding: 2px; }
  .bst-app .bst-decks button { min-height: 0; padding: 12px 10px 14px; grid-template-rows: 154px auto auto; }
  .bst-app .bst-decks i { width: 92px; height: 150px; margin: 0; }
  .bst-app .bst-decks strong { display: block; margin: 0; font-size: 13px; }
  .bst-app .bst-decks small { display: block; font-size: 10px; line-height: 1.45; }
  .bst-app .bst-spreads { grid-template-columns: 1fr 1fr; }
  .bst-app .bst-spreads button { grid-template-columns: 58px minmax(0, 1fr); min-height: 92px; padding: 9px; }
  .bst-app .bst-spread-diagram { width: 54px; transform: scale(.78); transform-origin: left center; }
  .bst-position-guide ol { grid-template-columns: 1fr; }
  /* Shuffle mobile: lá to hơn (96x156), khung gọn lại (210px) cho đỡ trống. */
  .bst-shuffle-fan { height: 210px; }
  .bst-shuffle-card { width: 96px; height: 156px; bottom: 48px; }
  .bst-shuffle-card-inner i { width: 54px; height: 54px; }
  .bst-shuffle-card-inner b { font-size: 6px; }
  .bst-deal-reveal { min-height: 196px; }
  .bst-shuffle-actions { flex-direction: column; }
  .bst-shuffle-actions .bst-shuffle-hold { width: 100%; }
  /* AI + shirt mobile. */
  .bst-ai-reading { margin-top: 24px; }
  .bst-ai-reading > header { align-items: flex-start; padding: 15px; }
  .bst-ai-content { grid-template-columns: 1fr; }
  .bst-ai-content article:first-child { grid-column: auto; }
  .bst-ai-content article { padding: 16px; }
  .bst-ai-status { max-width: 105px; text-align: center; line-height: 1.3; }
  .bst-ai-content p { font-size: 12px; }
  .bst-ai-content article.is-direct-answer p { font-size: 13px; }
  .bst-ai-loading-card, .bst-ai-loading-card.is-direct-answer { min-height: 136px; }
  .bst-shirt-cta { grid-template-columns: 44px minmax(0, 1fr); padding: 15px; gap: 12px; }
  .bst-shirt-swatch { width: 42px; height: 42px; border-radius: 12px; }
  .bst-shirt-link { grid-column: 1/-1; width: 100%; }
  .bst-shirt-cta p { font-size: 10px; }
  .bst-app .bst-result > .bst-shirt-cta { margin-top: 18px; padding: 15px 14px; }
  .bst-app .bst-result > .bst-shirt-cta h4 { font-size: 14px; }
  .bst-app .bst-result > .bst-shirt-cta p { font-size: 11px; line-height: 1.5; }
  .bst-app .bst-result > .bst-shirt-cta .bst-shirt-link { min-height: 52px; font-size: 11px; }
  /* Draw legacy mobile. */
  .bst-app .bst-draw { min-height: 680px; }
  .bst-app .bst-draw-copy { padding: 0 15px; }
  .bst-runway { height: 238px; margin-top: 22px; }
  .bst-card-track { top: 38px; gap: 8px; }
  .bst-app .bst-running-card { flex-basis: 88px !important; width: 88px !important; min-width: 88px !important; max-width: 88px !important; height: 150px !important; min-height: 150px !important; border-radius: 13px !important; }
  .bst-running-card-inner { border-radius: 13px; }
  .bst-running-card-inner i { font-size: 29px; }
  .bst-running-card b { margin-top: 13px; font-size: 7px; }
  .bst-running-card small { bottom: 18px; font-size: 5.5px; }
  .bst-picked-zone { max-width: 100%; overflow-x: auto; justify-content: start; grid-template-columns: repeat(var(--spread-count), 64px); min-height: 120px !important; }
  .bst-draw[data-spread-key="relationship"] .bst-picked-zone, .bst-draw[data-spread-key="choices"] .bst-picked-zone,
  .bst-draw[data-spread-key="celtic"] .bst-picked-zone { display: flex !important; justify-content: flex-start; }
  .bst-draw[data-spread-key="horseshoe"] .bst-picked-zone { grid-template-columns: repeat(7, 60px); padding-top: 30px; padding-bottom: 40px; }
  .bst-flight-face { border-radius: 13px; }
  .bst-flight-face i { font-size: 31px; }
  .bst-flight-face b { font-size: 7px; }
  .bst-app button.bst-draw-cta { min-height: 64px !important; border-radius: 16px !important; }
  .bst-app button.bst-draw-cta b { font-size: 12px; }
  /* History mobile: bottom sheet. */
  .bst-history-modal { align-items: flex-end !important; padding: 10px !important; }
  .bst-history-dialog { max-height: calc(100dvh - 20px) !important; border-radius: 18px !important; }
  .bst-history-dialog > header { min-height: 72px; padding: 17px 16px !important; }
  .bst-history-dialog h2 { font-size: 20px !important; }
  .bst-history-dialog [data-history-list] { padding: 8px 16px !important; }
  .bst-history-dialog > footer { padding: 12px 16px !important; }
  .bst-history-empty { min-height: 220px; padding: 30px 22px !important; }
  .bst-app .bst-mini-cards { width: 56px; min-width: 56px; }
}
@media (max-width: 480px) {
  .bst-app .bst-spreads { grid-template-columns: 1fr; gap: 10px; }
  .bst-app .bst-spreads button { grid-template-columns: 96px minmax(0, 1fr); min-height: 116px; padding: 14px 16px; }
  .bst-app .bst-spread-diagram { width: 84px; height: 70px; transform: none; }
  .bst-app .bst-spreads strong { font-size: 15px; line-height: 1.25; }
  .bst-app .bst-spreads small { font-size: 11px; line-height: 1.45; }
}
/* Giảm chuyển động: tắt mọi animation/transition của app. */
@media (prefers-reduced-motion: reduce) {
  .bst-app * { animation: none !important; transition-duration: .01ms !important; }
  .bigstep-tarot-page .bst-stars, .bigstep-tarot-page .bst-stars:before, .bigstep-tarot-page .bst-stars:after { animation: none !important; }
}

/* ---------- 13. Overlay guard: modal luôn fixed trên cùng dù theme có luật lạ ---------- */
body > .bst-history-modal { position: fixed !important; inset: 0 !important; z-index: 2147483000 !important; }
