/* English edition · one stylesheet for /, /decoder and /tarot on godscheatcodes.com, destiny5d.com?lang=en and tarotmalaysia.com?lang=en.
   v44 (11-23) "Midnight Indigo": deep obsidian-purple gradient, champagne-gold accent, celestial-blue and five-element highlights.
   Loaded only by templates/en/*.html, so the Chinese and Taiwan sites are untouched.
   Contrast, measured against the lightest background each colour sits on (top glow #28235c, card #231d51, tile #2b2557, drawer #2c295d):
     text #f5f0e6 ≥ 11.7:1 · muted #d6cfec ≥ 8.8:1 · gold #f3dca0 ≥ 9.8:1 · celestial #bcd4ff ≥ 8.8:1 · green / amber / coral ≥ 8.4:1
     button ink #1a1233 on gold ≥ 9.4:1 · element badges: ink #1a1233 on solid element colour ≥ 10:1
   Every tap target is at least 44px tall. Long English words wrap (overflow-wrap:anywhere) so nothing pushes past 375px. */
:root { --bg: #0b0820; --bg-top: #140f33; --panel: #231d51; --panel-2: #1a1540; --tile: #2b2557; --line: #4a4282; --line-soft: rgba(188, 212, 255, .16);
  --text: #f5f0e6; --muted: #d6cfec; --gold: #f3dca0; --gold-1: #f8e7b8; --gold-d: #d8b96a; --celest: #bcd4ff; --ink: #1a1233;
  --grn: #a8efbd; --amber: #f7d690; --red: #ffbfb3;
  --water: #acd0ff; --wood: #a8efbd; --fire: #ffb8a6; --earth: #f6d089; --metal: #ebe3cb; }
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); min-height: 100vh;
  background:
    radial-gradient(700px 420px at 15% -8%, rgba(88, 70, 190, .22), transparent 65%),
    radial-gradient(620px 380px at 92% 4%, rgba(120, 160, 255, .06), transparent 60%),
    radial-gradient(900px 520px at 50% 110%, rgba(243, 220, 160, .05), transparent 60%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 55%) fixed;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere; word-break: normal; }
a { color: var(--gold); }
img, svg, table { max-width: 100%; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 64px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; }
.brand { color: var(--gold); font-size: 13px; letter-spacing: .12em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.langcap { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; background: rgba(26, 21, 64, .7); }
.langcap a { min-height: 44px; min-width: 56px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px;
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.langcap a[aria-current="true"] { background: var(--gold); color: var(--ink); }
h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.15; margin: 18px 0 8px; letter-spacing: -.01em; }
h2 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
h3 { font-size: 17px; margin: 0 0 6px; color: var(--gold); }
.lead { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: linear-gradient(180deg, rgba(35, 29, 81, .94), rgba(26, 21, 64, .94)); border: 1px solid rgba(243, 220, 160, .22); border-radius: 18px;
  padding: 18px; margin: 14px 0; box-shadow: 0 10px 30px rgba(5, 3, 20, .35), inset 0 1px 0 rgba(188, 212, 255, .06); }
.card.lock { border-style: dashed; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.entry { display: block; text-decoration: none; color: var(--text); }
.entry .card { height: 100%; transition: border-color .15s; }
.entry:hover .card, .entry:focus-visible .card { border-color: var(--gold); }
.kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0;
  background: linear-gradient(180deg, var(--gold-1), var(--gold) 55%, var(--gold-d)); color: var(--ink); font-weight: 800; font-size: 16px;
  cursor: pointer; text-decoration: none; text-align: center; font-family: inherit; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.ghost { background: rgba(26, 21, 64, .6); color: var(--gold); border: 1px solid rgba(243, 220, 160, .6); font-weight: 700; }
.btn.block { display: flex; width: 100%; }
label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 6px; }
input, select, textarea { width: 100%; min-height: 48px; background: #120e2c; color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; }
input::placeholder, textarea::placeholder { color: #c9c1e3; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.row3 { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg { display: grid; grid-template-columns: 1fr; gap: 8px; }
.seg label.opt { display: flex; gap: 10px; align-items: flex-start; margin: 0; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); cursor: pointer; background: rgba(18, 14, 44, .5); }
.seg label.opt input { width: 20px; min-height: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--gold); }
.seg label.opt small { display: block; color: var(--muted); }
.err { color: var(--red); min-height: 22px; margin-top: 8px; font-size: 14px; }
.verdict { border-left: 4px solid var(--gold); padding-left: 14px; }
.tone-grn { border-color: var(--grn); } .tone-gold { border-color: var(--gold); } .tone-amber { border-color: var(--amber); } .tone-red { border-color: var(--red); }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 13px; color: var(--muted); }
.meter { display: flex; gap: 4px; margin: 8px 0; } .meter i { flex: 1; height: 8px; border-radius: 4px; background: #3a3370; } .meter i.on { background: var(--gold); }
.locked-txt { color: var(--muted); }
/* v56: the inline unlock is a real link (the old ::after text could not be tapped); 44px tall, scrolls to #en-offers and pulses it */
.unlock-inline { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; margin: 4px 0 2px; border: 1px solid rgba(243, 220, 160, .55);
  border-radius: 999px; color: var(--gold); font-size: 14px; font-weight: 700; text-decoration: none; background: rgba(243, 220, 160, .08); cursor: pointer; }
.unlock-inline:hover, .unlock-inline:focus-visible { background: rgba(243, 220, 160, .18); outline: 2px solid var(--gold); outline-offset: 2px; }
.unlock-inline.block { display: flex; justify-content: center; width: 100%; margin-top: 10px; }
#en-offers.pulse { animation: offerPulse 1.2s ease-out 2; }
@keyframes offerPulse { 0% { box-shadow: 0 0 0 0 rgba(243, 220, 160, .75); border-color: var(--gold); } 100% { box-shadow: 0 0 0 18px rgba(243, 220, 160, 0); } }
@media (prefers-reduced-motion: reduce) { #en-offers.pulse { animation: none; outline: 3px solid var(--gold); outline-offset: 3px; } }
/* v56: tarot first block answers the question itself */
.answer, .answer.live { margin-top: 12px; border: 1px solid rgba(243, 220, 160, .5); border-radius: 14px; padding: 12px 14px; background: rgba(243, 220, 160, .07); }
.answer .ans, .answer #live-body p { margin: 6px 0 0; font-size: 17px; line-height: 1.55; }
.answer .lv-wait { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
/* v56: focus deep read */
.card.deep { border-color: rgba(243, 220, 160, .5); }
.dsec { border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: 12px; }
.dsec h3 { margin-bottom: 4px; }
.dsec.locked h3 { color: var(--muted); }
.dsec .dlab { margin: 2px 0 4px; color: var(--gold-1); }
.dsec .yrs { margin-top: 8px; }
.yr.watch { border-style: dashed; }
.stars-free { margin-top: 10px; }

/* v44 · drawers look clickable: card frame, lighter fill, guide text on the left, ▾ on the right that turns to ▴ when open */
details.math { margin-top: 16px; border: 1px solid rgba(188, 212, 255, .38); border-radius: 14px; background: rgba(169, 200, 255, .07); overflow: hidden; }
details.math > summary { list-style: none; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; cursor: pointer; color: var(--celest); font-size: 15px; font-weight: 700; }
details.math > summary::-webkit-details-marker { display: none; }
details.math > summary::marker { content: ""; }
details.math > summary .chev { flex: none; width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(188, 212, 255, .45); font-size: 16px; line-height: 1; transition: transform .2s ease; }
details.math[open] > summary .chev { transform: rotate(180deg); }
details.math > summary:hover, details.math > summary:focus-visible { background: rgba(169, 200, 255, .07); outline: none; }
details.math[open] > summary { border-bottom: 1px solid var(--line-soft); }
details.math > :not(summary) { margin-left: 14px; margin-right: 14px; }
details.math > :last-child { margin-bottom: 14px; }

.kv { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 4px 12px; font-size: 14px; margin-top: 10px; }
.kv div:nth-child(odd) { color: var(--muted); }
.tbl { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 13px; }
.tbl td, .tbl th { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; }
.yrs { display: grid; grid-template-columns: 1fr; gap: 10px; }
.yr { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: rgba(255, 255, 255, .035); }
.yr .h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.yr p { margin: 8px 0 0; }
.mv-attack, .mv-steady { color: var(--grn); } .mv-probe, .mv-hard, .mv-roller { color: var(--amber); } .mv-hold, .mv-defend, .mv-turn { color: var(--red); }
.tag { display: inline-block; border: 1px solid rgba(188, 212, 255, .5); color: var(--celest); border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 600; }
.legend { border-left: 3px solid var(--celest); padding: 2px 0 2px 12px; color: var(--text); }
.tagkey { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 8px; }
.tagkey li { font-size: 14px; color: var(--muted); }
.tagkey li .tag { margin-right: 6px; }

/* v44 · checkout: one full-width gold CTA per product, Alipay / GrabPay as a quiet text link under it */
.offer { padding: 14px 0; border-bottom: 1px solid var(--line); }
.offer:last-of-type { border-bottom: 0; }
.offer .t { margin-bottom: 10px; }
.offer .t s { color: var(--muted); font-size: 13px; margin-left: 6px; }
.btn.cta { width: 100%; min-height: 54px; padding: 8px 16px; flex-wrap: wrap; column-gap: 6px; row-gap: 0; line-height: 1.25; font-size: 17px;
  box-shadow: 0 6px 18px rgba(243, 220, 160, .18); }
.btn.cta .pm { font-size: 13px; font-weight: 700; }
.altpay { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; margin-top: 4px; padding: 6px 8px;
  background: transparent; border: 0; color: var(--celest); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }
.altpay:hover, .altpay:focus-visible { color: var(--text); }
.altpay[disabled] { opacity: .6; cursor: wait; }
.redeem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; background: #241d55; border: 1px solid var(--gold); color: var(--text);
  border-radius: 12px; padding: 12px 14px; max-width: 560px; margin: 0 auto; }
.foot { color: var(--muted); font-size: 13px; text-align: center; margin-top: 32px; }
.wxtip { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(247, 214, 144, .5); background: rgba(247, 214, 144, .08); color: var(--amber); font-size: 14px; }

/* v44 · 4-Pillar Blueprint Chart */
.bp h2 { margin-top: 4px; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 12px 0 14px; }
.pl { min-width: 0; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; background: rgba(255, 255, 255, .035);
  display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pl.dm { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(243, 220, 160, .35) inset; }
.pl .pos { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pl .pol { font-size: 12px; color: var(--muted); }
.pl .an { font-weight: 700; font-size: 15px; margin-top: 4px; }
.pl .dmtag { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pl.off .unk { font-weight: 700; color: var(--muted); margin-top: 6px; font-size: 13px; }
.pl .pos, .pl .an, .pl .unk, .el { overflow-wrap: normal; word-break: keep-all; }
.el { display: inline-block; max-width: 100%; border-radius: 999px; padding: 2px 9px; font-size: 13px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.el.sm { font-size: 12px; padding: 1px 7px; font-weight: 700; }
.el-water { background: var(--water); } .el-wood { background: var(--wood); } .el-fire { background: var(--fire); }
.el-earth { background: var(--earth); } .el-metal { background: linear-gradient(135deg, #f4efe0, var(--metal) 50%, #e2d3a4); }
.bpcards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .bpcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bpc { border: 1px solid rgba(243, 220, 160, .3); border-radius: 14px; padding: 12px 14px; background: linear-gradient(160deg, rgba(243, 220, 160, .07), rgba(169, 200, 255, .04)); }
.bpc .kicker { font-size: 12px; }
.bpc .nm { font-size: 18px; font-weight: 800; color: var(--text); margin: 4px 0; line-height: 1.3; }
.bpc p { margin: 4px 0 0; font-size: 14px; }
.bpc.locked .nm { color: var(--muted); font-size: 15px; }

/* tarot ritual */
.fan { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; margin: 12px 0; }
.fan button { min-height: 44px; min-width: 44px; border-radius: 6px; border: 1px solid rgba(243, 220, 160, .45); padding: 0;
  background: repeating-linear-gradient(45deg, #2e2662 0 6px, #1d1747 6px 12px); cursor: pointer; }
.fan button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 800; font-size: 12px; }
.fan button:disabled { opacity: .35; cursor: default; }
.cards4 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tcard { border: 1px solid rgba(243, 220, 160, .35); border-radius: 14px; padding: 14px; background: rgba(18, 14, 44, .55); }
.tcard .pos { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.tcard .nm { font-weight: 800; color: var(--gold); margin: 2px 0 6px; }
.tip { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(243, 220, 160, .08); font-size: 15px; }
.weeks { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .weeks { grid-template-columns: repeat(3, 1fr); } }
/* v45 tarot: Rider-Waite-Smith card art (public domain, 1909) · ten-card strip · reversed badge */
.sit { margin: 8px 0 0; color: var(--text); font-size: 15px; } .sit .kicker { margin-right: 6px; }
.spread { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 8px; margin: 10px 0 4px; }
.sc { margin: 0; min-width: 0; }
.sc figcaption { margin-top: 4px; font-size: 12px; line-height: 1.3; color: var(--muted); overflow-wrap: normal; word-break: normal; hyphens: auto; }
.sc figcaption b { color: var(--gold); }
.art, .tart { position: relative; aspect-ratio: 240 / 416; border-radius: 7px; overflow: hidden; background: #120e2c;
  border: 2px solid var(--gold-d); box-shadow: 0 0 0 1px rgba(243, 220, 160, .3), 0 4px 14px rgba(0, 0, 0, .35); }
.art img, .tart img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rv img { transform: rotate(180deg); }
.rb { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); background: var(--red); color: var(--ink); font-size: 12px; font-weight: 800;
  line-height: 1.2; padding: 1px 6px; border-radius: 999px; white-space: nowrap; letter-spacing: .02em; }
.back { display: flex; align-items: center; justify-content: center; border-color: var(--line);
  background: repeating-linear-gradient(45deg, rgba(243, 220, 160, .14) 0 2px, transparent 2px 9px), linear-gradient(180deg, #2b2557, #1a1540); }
.back .lk { color: var(--gold); background: var(--panel-2); border-radius: 999px; padding: 5px; width: 32px; height: 32px; box-sizing: border-box; }
.tcard.has-art { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; }
.tart { width: 76px; }
.tart .rb { bottom: 6px; }
.gridtab { display: grid; grid-template-columns: repeat(9, minmax(64px, 1fr)); gap: 2px; font-size: 12px; min-width: 600px; }
.gridtab div { border: 1px solid var(--line); border-radius: 4px; padding: 3px 2px; text-align: center; line-height: 1.2; min-width: 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg.two { grid-template-columns: 1fr 1fr; }
.seg.four { grid-template-columns: 1fr; }
@media (min-width: 560px) { .seg.four { grid-template-columns: 1fr 1fr; } }
.verdict h2 { font-size: 20px; line-height: 1.35; }

/* ==================================================================== v46 (11-24) · ☰ menu, help pages, guided form, charts, swipe deck
   New colours reuse the palette above (text / muted / gold / celestial on panel #1a1540 or card #231d51, all ≥ 8.8:1).
   Every new tap target is at least 44 × 44. Horizontal scrollers (year chips, swipe deck) scroll inside their own box. */
:root { --ic2: #bcd4ff; }
[hidden] { display: none !important; }      /* v46.1: author display rules (.wz-nav grid) must never beat the hidden attribute */
.top { position: relative; }
.top .tr { display: flex; align-items: center; gap: 8px; flex: none; }
.langcap a { min-width: 46px; padding: 0 10px; }
.brand { min-width: 0; }

/* ☰ menu */
.menu { position: relative; flex: none; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::marker { content: ""; }
.menu-btn { width: 46px; height: 46px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; cursor: pointer;
  color: var(--gold); border: 1px solid rgba(243, 220, 160, .6); background: rgba(26, 21, 64, .8); }
.menu-btn:hover, .menu-btn:focus-visible { background: rgba(243, 220, 160, .12); outline: 2px solid var(--gold); outline-offset: 1px; }
.menu[open] > .menu-btn { background: var(--gold); color: var(--ink); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: min(300px, calc(100vw - 32px)); padding: 8px; border-radius: 16px;
  background: #1a1540; border: 1px solid rgba(243, 220, 160, .45); box-shadow: 0 18px 40px rgba(5, 3, 20, .6); }
.menu-panel > a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 10px; color: var(--text);
  text-decoration: none; font-weight: 700; font-size: 16px; }
.menu-panel > a:hover, .menu-panel > a:focus-visible { background: rgba(243, 220, 160, .1); outline: none; }
.menu-panel > a[aria-current="page"] { background: rgba(243, 220, 160, .14); color: var(--gold); }
.menu-legal { display: flex; flex-wrap: wrap; gap: 0 4px; margin-top: 6px; padding: 6px 4px 2px; border-top: 1px solid var(--line-soft); }
.menu-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 13px; color: var(--muted); }
.menu-legal a[aria-current="page"] { color: var(--gold); }

/* line badges (sprite static/en/icons.svg) */
.ic { width: 100%; height: 100%; display: block; color: var(--gold); overflow: visible; }
.ib, .mi { display: inline-flex; flex: none; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(243, 220, 160, .45);
  background: radial-gradient(circle at 30% 25%, rgba(188, 212, 255, .16), rgba(26, 21, 64, .9) 70%); }
.ib { width: 34px; height: 34px; padding: 6px; }
.mi { width: 30px; height: 30px; padding: 5px; }
.ib.lg { width: 44px; height: 44px; padding: 8px; }
.ih { display: flex; align-items: center; gap: 10px; }
h2 > .ib, h3 > .ib { vertical-align: middle; margin-right: 8px; }
.ih > .ib { margin: 0; }

/* help and policy pages */
.doc h1 { margin-top: 10px; }
.doc .card h2 { font-size: 19px; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.doc .card h2 > .ib { margin: 0; }
.doc .card p { margin: 8px 0 0; }
.ptabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.ptabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  text-decoration: none; font-size: 14px; font-weight: 600; }
.ptabs a[aria-current="page"] { border-color: var(--gold); color: var(--gold); }
details.faq { margin: 10px 0; background: rgba(35, 29, 81, .9); border-color: rgba(243, 220, 160, .28); }
details.faq > summary { color: var(--text); }
details.faq > p { margin-top: 10px; margin-bottom: 14px; }
.rlist { display: grid; gap: 8px; }
.rrow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); }
.rrow > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.rrow:hover, .rrow:focus-visible { border-color: var(--gold); outline: none; }

/* guided form: progress bar, privacy note, step cards, quick mode */
.wz-top { margin: -2px 0 14px; }
.wz-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--muted); }
.wz-meta #wz-count { color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.wz-safe { display: inline-flex; align-items: center; gap: 6px; color: var(--celest); }
.wz-safe svg { width: 16px; height: 16px; }
.wz-bar { height: 6px; border-radius: 999px; background: #3a3370; margin-top: 8px; overflow: hidden; }
.wz-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-d), var(--gold-1)); transition: width .3s ease; }
fieldset.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.wiz:not(.quick) fieldset.step:not(.on) { display: none; }
.wiz.quick .wz-top, .wiz.quick .wz-nav { display: none; }
.wiz.quick fieldset.step + fieldset.step { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.wiz:not(.quick) .step:not([data-step="4"]) ~ .gohint { display: none; }
legend.sh { font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--text); padding: 0; margin: 0 0 4px; }
legend.sh { float: left; width: 100%; }            /* a floated legend sits in the flow, not on the quick-mode divider */
legend.sh + * { clear: both; }
.step .sub { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.focus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.fopt { margin: 0; position: relative; cursor: pointer; color: var(--text); }
.fopt input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.fopt > span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; min-height: 120px; padding: 14px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(243, 220, 160, .06), rgba(18, 14, 44, .6)); transition: border-color .15s, box-shadow .15s; }
.fopt b { font-size: 16px; line-height: 1.25; }
.fopt small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.fopt input:checked + span { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 6px 18px rgba(243, 220, 160, .14); }
.fopt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.seg.cards label.opt { padding: 14px 12px; border-radius: 14px; }
.seg.cards label.opt b { display: block; font-size: 16px; }
.seg label.opt:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.wz-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; margin-top: 16px; }
.wz-nav .btn { width: 100%; }
.wz-nav.first { grid-template-columns: 1fr; }
.wz-nav.first #wz-back { display: none; }
.linkbtn { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; margin-top: 8px; background: none; border: 0;
  color: var(--celest); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover, .linkbtn:focus-visible { color: var(--text); }
.row3 select { padding-left: 10px; padding-right: 6px; }

/* birth city type-ahead */
.combo { position: relative; }
.combo input[role="combobox"] { padding-left: 40px; background: #120e2c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='%23f3dca0' stroke-width='2'/%3E%3Cpath d='M15.5 15.5L21 21' stroke='%23f3dca0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 12px 50% / 18px 18px; }
.combo .clr { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 22px; cursor: pointer; border-radius: 10px; }
.combo .clr:hover, .combo .clr:focus-visible { color: var(--text); outline: 2px solid var(--gold); }
.clist { list-style: none; margin: 6px 0 0; padding: 6px; border: 1px solid rgba(243, 220, 160, .45); border-radius: 12px; background: #1a1540;
  max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.clist .grp { padding: 8px 10px 4px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.clist [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 6px 10px; border-radius: 9px; cursor: pointer; color: var(--text); }
.clist [role="option"] .cc { color: var(--muted); font-size: 14px; text-align: right; }
.clist [role="option"][aria-selected="true"], .clist [role="option"]:hover { background: rgba(243, 220, 160, .14); }
.clist mark { background: none; color: var(--gold); font-weight: 800; }
.clist .none { padding: 10px; color: var(--muted); font-size: 14px; }
.picked { margin: 6px 0 0; font-size: 14px; color: var(--grn); }

/* generating screen (honest: the last step finishes only when the report has arrived) */
.prog { text-align: center; padding: 26px 18px; }
.prog .orb { width: 92px; height: 92px; margin: 4px auto 12px; }
.prog .orb .r1 { transform-origin: 50% 50%; animation: spin 6s linear infinite; }
.prog .orb .r2 { transform-origin: 50% 50%; animation: spin 3.6s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.psteps { list-style: none; padding: 0; margin: 14px auto 0; max-width: 420px; text-align: left; display: grid; gap: 10px; }
.psteps li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.psteps li i { flex: none; width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--line); margin-top: 1px; position: relative; }
.psteps li.on { color: var(--text); }
.psteps li.on i { border-color: var(--gold); border-top-color: transparent; animation: spin 1s linear infinite; }
.psteps li.done { color: var(--text); }
.psteps li.done i { border-color: var(--grn); background: var(--grn); }
.psteps li.done i::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .prog .orb .r1, .prog .orb .r2, .psteps li.on i { animation: none; } }

/* focus band at the top of the report */
.focusband { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 12px; border-radius: 14px;
  border: 1px solid rgba(188, 212, 255, .4); background: rgba(169, 200, 255, .07); }
.focusband p { margin: 4px 0 0; font-size: 15px; }

/* charts */
.chart { width: 100%; height: auto; display: block; margin: 10px 0 4px; overflow: visible; }
.chart text { fill: var(--text); font-family: inherit; }
.chart .lab { font-size: 13px; font-weight: 700; }
.chart .val { font-size: 13px; font-weight: 800; }
.chart .dim { fill: var(--muted); font-size: 12px; }
.chart .grid { stroke: rgba(188, 212, 255, .18); stroke-width: 1; }
.chart .even { stroke: var(--celest); stroke-width: 1.2; stroke-dasharray: 4 4; }
.chart .trk { fill: #2e2864; }
.chart .tagt { font-size: 12px; font-weight: 800; fill: var(--ink); }
.chart .lock { fill: none; stroke: rgba(188, 212, 255, .45); stroke-dasharray: 3 3; }
.chart .yr-l { font-size: 12px; fill: var(--muted); }
.chart .yr-l.on { fill: var(--text); font-weight: 700; }
.chart .tier { font-size: 12px; font-weight: 800; }
.chart .line { fill: none; stroke: var(--gold-1); stroke-width: 2; stroke-linejoin: round; }
.chart .dot { fill: var(--bg); stroke: var(--gold-1); stroke-width: 2; }
.chart a, .chart .hit { cursor: pointer; }
.chart .hit:focus-visible { outline: 2px solid var(--gold); }
.f-wood { fill: var(--wood); } .f-fire { fill: var(--fire); } .f-earth { fill: var(--earth); } .f-metal { fill: var(--metal); } .f-water { fill: var(--water); }
.t-peak { fill: var(--gold); } .t-rise { fill: var(--grn); } .t-test { fill: var(--red); } .t-base { fill: var(--celest); }
.c-peak { fill: var(--gold); } .c-rise { fill: var(--grn); } .c-test { fill: var(--red); } .c-base { fill: var(--celest); }
.keyrow { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.keyrow span { display: inline-flex; align-items: center; gap: 6px; }
.keyrow i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.keyrow .k-peak { background: var(--gold); } .keyrow .k-rise { background: var(--grn); } .keyrow .k-test { background: var(--red); } .keyrow .k-base { background: var(--celest); }
.keyrow .k-lock { border: 1px dashed rgba(188, 212, 255, .7); }
.chartline { margin: 8px 0 0; }

/* 10-Year Forward Map: swipe deck */
.deckhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 8px; }
.ychips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; margin: 0 -2px; max-width: 100%; }
.ychips::-webkit-scrollbar { display: none; }
.ychips button { flex: none; min-height: 44px; min-width: 64px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(18, 14, 44, .6);
  color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ychips button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.dctl { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.dctl button { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(243, 220, 160, .6); background: rgba(26, 21, 64, .7); color: var(--gold);
  font-size: 24px; line-height: 1; cursor: pointer; }
.dctl button:disabled { opacity: .4; cursor: default; }
.dctl .pos { min-width: 58px; text-align: center; font-weight: 800; color: var(--text); font-size: 15px; }
.deck { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
.deck::-webkit-scrollbar { display: none; }
.deck > .yr { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.deck > .yr .big { font-size: 26px; font-weight: 800; color: var(--text); }
.deck.all { display: grid; grid-template-columns: 1fr; overflow: visible; }
.deckwrap.all .dctl, .deckwrap.all .ychips { display: none; }
.tgl { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 10px 0 0; color: var(--muted); font-size: 14px; cursor: pointer; }
.tgl input { width: 20px; height: 20px; min-height: 20px; margin: 0; accent-color: var(--gold); flex: none; }
@media print { .deck { display: grid !important; overflow: visible !important; } .dctl, .ychips, .tgl, .menu { display: none !important; } }

/* home · Visual Topic Constellation */
.constel { padding: 16px 12px 12px; }
.constel h2 { padding: 0 6px; }
.constel .lead { padding: 0 6px; font-size: 15px; margin: 0; }
.cmap text { font-family: inherit; }
.cmap .edge { stroke: rgba(188, 212, 255, .35); stroke-width: 1.2; stroke-dasharray: 2 5; }
.cmap .core { fill: rgba(243, 220, 160, .12); stroke: var(--gold); stroke-width: 1.5; }
.cmap .core-t { fill: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.cmap .node circle.hal { fill: rgba(188, 212, 255, .08); stroke: rgba(243, 220, 160, .55); stroke-width: 1.4; }
.cmap .node:hover circle.hal, .cmap .node:focus-visible circle.hal { fill: rgba(243, 220, 160, .2); stroke: var(--gold); }
.cmap .node:focus-visible { outline: none; }
.cmap .node .nt { fill: var(--text); font-size: 13px; font-weight: 700; }
.cmap .node .ns { fill: var(--muted); font-size: 12px; }
.cmap .node use { color: var(--gold); }
.cmap .twk { fill: var(--gold-1); opacity: .7; }
.entry .ih { margin-bottom: 6px; }

/* ==================================================================== v47 (11-24) · calibration, celestial wheel, life quadrants, PDF
   Same palette and contrast floors as v44 / v46; new tap targets ≥ 44 × 44; nothing wider than its card. */

/* calibration milestone */
.milestone { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px; border-radius: 14px; border: 1px solid rgba(168, 239, 189, .55);
  background: rgba(168, 239, 189, .08); }
.milestone svg { width: 44px; height: 44px; flex: none; }
.milestone .mc { fill: none; stroke: var(--grn); stroke-width: 3; stroke-dasharray: 145; stroke-dashoffset: 145; animation: draw .5s ease-out forwards; }
.milestone .mt { fill: none; stroke: var(--grn); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: draw .35s .4s ease-out forwards; }
.milestone b { display: block; color: var(--grn); font-size: 16px; }
.milestone small { color: var(--muted); font-size: 13px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .milestone .mc, .milestone .mt { animation: none; stroke-dashoffset: 0; } }
#mbti { margin-bottom: 2px; }

/* cross-calibrated next moves */
.xtags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; }
.xbadge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--gold); color: var(--ink);
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.xt { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(188, 212, 255, .5);
  color: var(--celest); font-size: 13px; font-weight: 600; }
.xx { color: var(--gold); font-weight: 800; }
.xg { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.moves { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.moves li::marker { color: var(--gold); font-weight: 800; }

/* life quadrants */
.quads { padding-top: 14px; }
.quad + .quad { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.quad h3 { margin-bottom: 8px; }
details.qrow { border: 1px solid var(--line); border-radius: 12px; background: rgba(18, 14, 44, .45); margin: 8px 0 0; }
details.qrow > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; cursor: pointer; }
details.qrow > summary::-webkit-details-marker { display: none; }
details.qrow > summary::marker { content: ""; }
details.qrow > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-radius: 12px; }
.qh { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.qt { font-weight: 800; color: var(--text); font-size: 15px; }
.ql { color: var(--gold); font-size: 14px; font-weight: 700; }
.qs { color: var(--muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
details.qrow[open] .qs { display: none; }
details.qrow .chev { flex: none; width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(188, 212, 255, .45); color: var(--celest); transition: transform .2s ease; }
details.qrow[open] .chev { transform: rotate(180deg); }
details.qrow > :not(summary) { margin: 0 12px; }
details.qrow > :last-child { margin-bottom: 12px; }
details.qrow.lock { border-style: dashed; }

/* 12-Sector Celestial Geometry Wheel */
.wheelbox { margin: 4px 0 14px; padding: 12px 10px 4px; border: 1px solid rgba(243, 220, 160, .28); border-radius: 16px;
  background: radial-gradient(circle at 50% 45%, rgba(88, 70, 190, .22), rgba(18, 14, 44, .55) 70%); }
.wheelbox .kicker { padding: 0 4px; }
.wheel { max-width: 360px; margin: 6px auto 0; }
.wheel .rim { fill: none; stroke: rgba(243, 220, 160, .55); stroke-width: 1.4; }
.wheel .rim2 { fill: rgba(188, 212, 255, .04); stroke: rgba(188, 212, 255, .25); stroke-width: 1; stroke-dasharray: 2 4; }
.wheel .tick { stroke: rgba(243, 220, 160, .5); stroke-width: 1.2; }
.wheel .rimt { fill: var(--muted); font-size: 12px; font-weight: 600; }
.wheel .lk { stroke-width: 1.6; fill: none; }
.wheel .lk-trine { stroke: var(--gold); }
.wheel .lk-clash { stroke: var(--celest); stroke-dasharray: 5 4; }
.wheel .lk-pair { stroke: var(--gold); stroke-dasharray: 1.5 4; stroke-linecap: round; stroke-width: 2.2; }
.wheel .lk-same { stroke: var(--gold-1); stroke-width: 3; }
.wheel .lk-plain { stroke: rgba(188, 212, 255, .35); }
.wheel .wn { cursor: pointer; outline: none; }
.wheel .wn .hit { fill: transparent; }
.wheel .wn .nd { stroke: var(--bg); stroke-width: 2; }
.wheel .wn.on .nd, .wheel .wn:focus-visible .nd { stroke: var(--gold-1); stroke-width: 3; }
.wheel .wn.on .hit { fill: rgba(243, 220, 160, .14); }
.wheel .wl { fill: var(--ink); font-size: 12px; font-weight: 800; pointer-events: none; }
.wkey { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.wkey span::before { content: ""; display: inline-block; width: 18px; height: 0; vertical-align: middle; margin-right: 6px; border-top: 2px solid var(--gold); }
.wkey .k-ten::before { border-top: 2px dashed var(--celest); }
.wkey .k-all::before { border-top: 3px dotted var(--gold); }
.wkey .k-dbl::before { border-top: 4px solid var(--gold-1); }
.wcard { border: 1px solid rgba(243, 220, 160, .35); border-radius: 12px; padding: 12px; background: rgba(26, 21, 64, .85); min-height: 96px; }
.wcard h3 { margin: 4px 0 6px; }
.wcard p { margin: 0; }
.rels { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.rels .tag { margin-right: 4px; }
.rel-trine, .rel-pair, .rel-same { border-color: rgba(243, 220, 160, .6); color: var(--gold); }

/* Download Full PDF Report (unlocked reports only) */
.pdfbar { margin: 14px 0; }
.pdfbtn { gap: 10px; min-height: 54px; font-size: 17px; box-shadow: 0 6px 18px rgba(243, 220, 160, .18); }
.pdfbtn svg { width: 22px; height: 22px; flex: none; }
.pdfbar p { margin: 6px 0 0; text-align: center; }
.print-head, .print-foot { display: none; }

/* ---------------------------------------------------------------- A4 print / Save as PDF
   Light paper theme (ink-friendly), every drawer open, menus / payment / share / buttons hidden, brand header and backup footer. */
@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
  :root { --text: #1a1233; --muted: #3e3866; --gold: #7a5a12; --gold-1: #8a6a1c; --gold-d: #7a5a12; --celest: #23407a; --grn: #1d6a38;
    --red: #9a3324; --amber: #7a5a12; --line: #c9c3dd; --line-soft: #ddd8ea; --bg: #ffffff; --ic2: #23407a; }
  html, body { background: #fff !important; color: var(--text); }
  body { font-size: 11.5pt; }
  .wrap { max-width: none; padding: 0; }
  .top, .menu, .langcap, #f, #intro, #prog, #rect, #ritual, #en-offers, .card.lock, .sharebox, .pdfbar, .btn, .altpay, .linkbtn, .redeem,
  nav.yafu-legal, .foot, .toast, .tgl, .dctl, .ychips, .clr { display: none !important; }
  .card, .wheelbox, .wcard, details.qrow, details.math, .yr, .tcard, .bpc, .pl { background: #fff !important; box-shadow: none !important; border-color: #c9c3dd !important;
    break-inside: avoid; page-break-inside: avoid; }
  .card { border-radius: 8px; margin: 8px 0; padding: 12px 14px; }
  .quads, .deck.all { break-inside: auto; page-break-inside: auto; }
  h1, h2, h3, .kicker { break-after: avoid; page-break-after: avoid; }
  .el, .xbadge, .chart rect, .chart circle, .wheel .nd, .art img, .tart img, .meter i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .chart .trk { fill: #ebe8f3; } .chart .dot { fill: #fff; }
  .wheel .rim2 { fill: #f6f4fb; }
  .qs { display: none !important; }
  details > summary .chev { display: none !important; }
  a { color: var(--text); text-decoration: none; }
  .print-head { display: flex !important; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 0 0 8px; margin: 0 0 10px;
    border-bottom: 2px solid #7a5a12; font-size: 10pt; color: #3e3866; }
  .print-head b { color: #7a5a12; letter-spacing: .14em; font-size: 11pt; }
  .print-foot { display: flex !important; flex-direction: column; gap: 2px; margin-top: 16px; padding-top: 8px; border-top: 1px solid #c9c3dd;
    font-size: 9pt; color: #3e3866; break-inside: avoid; overflow-wrap: anywhere; }
  .print-foot b { color: #7a5a12; }
}
@page { @bottom-center { content: "God's Cheat Codes \00b7  Official Hub & Backup Entry: 5dlibrary.com \00b7  page " counter(page); font-size: 8pt; color: #555; } }

/* v49 · "Your Unfair Edge" leads the first screen of the English report */
.edgebox { margin: 12px 0 0; padding: 14px 14px 12px; border-radius: 14px; border: 1px solid var(--gold-d);
  background: linear-gradient(180deg, rgba(243, 220, 160, .12), rgba(243, 220, 160, .04)); }
.edgebox .kicker { display: flex; align-items: center; gap: 6px; }
.edge-line { margin: 8px 0 0; color: var(--text); font-size: 16px; line-height: 1.55; font-weight: 600; }
.edgebox .edge-k { margin-top: 12px; color: var(--celest); }
.levers { margin: 6px 0 0; padding-left: 20px; color: var(--text); font-size: 15px; line-height: 1.6; }
.levers li { margin: 4px 0; } .levers b { color: var(--gold-1); }

/* ==================================================================== v52 (11-26) · stars, Try Another Life Area, live read, narrow-screen drawers
   Colours from the palette above; every new tap target is at least 44 x 44; nothing in a drawer is wider than its card. */
.stars-key { margin: 6px 0 12px; }
.srows { display: grid; gap: 4px; margin-top: 8px; }
.srow { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.srow .sl { width: 64px; flex: none; color: var(--muted); font-weight: 600; }
.stars { letter-spacing: 2px; font-size: 18px; line-height: 1; white-space: nowrap; }
.stars b { color: var(--gold); font-weight: 400; }
.stars i { color: #4a4282; font-style: normal; }

.rebuy h2 { margin-top: 4px; }
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.area { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(18, 14, 44, .55); color: var(--text); font: inherit; font-size: 15px; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.area:hover, .area:focus-visible { border-color: var(--gold); outline: none; }
.area.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; cursor: default; }
.area span { display: flex; flex-direction: column; min-width: 0; }
.area small { color: var(--gold); font-size: 12px; font-weight: 700; }
.area[disabled] { opacity: .6; cursor: wait; }
.tarot-jump { gap: 10px; }
.tarot-jump .ib { width: 30px; height: 30px; padding: 5px; }

.live { border-color: rgba(188, 212, 255, .45); background: linear-gradient(180deg, rgba(40, 35, 92, .95), rgba(26, 21, 64, .95)); }
.live p { margin: 8px 0 0; }
.lv-wait { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.lv-wait .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--gold); animation: lvb 1.2s ease-in-out infinite; }
.lv-wait .dot:nth-child(2) { animation-delay: .15s; } .lv-wait .dot:nth-child(3) { animation-delay: .3s; }
@keyframes lvb { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lv-wait .dot { animation: none; opacity: .8; } }
.foryou { margin-top: 8px; padding: 8px 10px; border-radius: 10px; border-left: 3px solid var(--celest); background: rgba(169, 200, 255, .08); font-size: 15px; }
.l2-close { margin: 12px 0 0; font-weight: 700; color: var(--gold); }

/* 9 x 4 Grand Tableau: swipe canvas inside the drawer */
.gtwrap { position: relative; margin: 10px 0 4px; }
.gthint { margin: 0 0 6px; font-size: 13px; color: var(--celest); font-weight: 600; }
.gt { display: grid; grid-template-columns: repeat(9, 92px); grid-auto-rows: minmax(64px, auto); gap: 6px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding: 2px 2px 8px; max-width: 100%;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent); }
.gt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gtc { scroll-snap-align: start; display: flex; flex-direction: column; gap: 2px; padding: 6px 7px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(18, 14, 44, .7); font-size: 13px; line-height: 1.25; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.gtc b { color: var(--gold); font-size: 12px; }
.gtc.me { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.gtc i { font-style: normal; color: var(--ink); background: var(--gold); border-radius: 999px; padding: 0 6px; font-size: 12px; font-weight: 800; align-self: flex-start; }

/* drawer tables: on a phone every row becomes a small card (cells carry their column name) */
@media (max-width: 560px) {
  .tbl.stack { overflow: visible; }
  .tbl.stack table, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; width: 100%; }
  .tbl.stack thead { display: none; }
  .tbl.stack tr { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin: 8px 0; }
  .tbl.stack td { border: 0; padding: 3px 0; display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: 8px; overflow-wrap: anywhere; }
  .tbl.stack td::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
  .tbl.stack td.empty { display: none; }
}

/* tree drawer: plain sticking point + energy bars, raw maths one level down */
.knot { margin: 12px 0 4px; }
.knot-h { margin: 0; font-size: 17px; font-weight: 800; color: var(--gold); }
.ebars { display: grid; gap: 6px; margin: 8px 0 10px; }
.eb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 30px; align-items: center; gap: 8px; font-size: 14px; }
.ebn { color: var(--muted); overflow-wrap: anywhere; }
.eb.on .ebn { color: var(--text); font-weight: 700; }
.ebn em { font-style: normal; color: var(--ink); background: var(--gold); border-radius: 999px; padding: 0 6px; font-size: 12px; font-weight: 800; }
.ebt { height: 10px; border-radius: 999px; background: #2e2864; overflow: hidden; }
.ebt i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-d), var(--gold-1)); }
.eb:not(.on) .ebt i { background: linear-gradient(90deg, #5b6fa8, var(--celest)); }
.ebv { text-align: right; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
details.math.raw { margin-top: 10px; }
details.math > .tbl, details.math > .gtwrap, details.math > .knot { width: auto; max-width: calc(100% - 28px); }   /* margins 14 + 14: never wider than the drawer */
.minifan { display: flex; gap: 6px; margin: 6px 0 10px; }
.minifan img { width: 48px; height: 83px; border-radius: 5px; border: 1.5px solid var(--gold-d); object-fit: cover; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.minifan img:nth-child(2) { transform: translateY(-4px); }
.minipil { display: block; margin: 4px 0 8px; }
