/* Arcana Oracle — design system. Dark only. No frameworks, no runtime JS libs. */

/* ------------------------------------------------------------------ tokens */
:root {
  --ink: #0b0a1a;
  --ink-2: #12102a;
  --ink-3: #1a1638;
  --violet: #2a1f52;
  --violet-2: #3b2a6d;
  --gold: #d4af37;
  --gold-soft: #e8cd7a;
  --gold-dim: #8a7328;
  --text: #ece9f5;
  --muted: #a49fc0;
  --muted-2: #7e78a0;
  --line: rgba(212, 175, 55, .18);
  --line-soft: rgba(236, 233, 245, .10);
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .07);
  --ok: #6fd6a4;
  --bad: #ef8a8a;

  --display: "Cinzel", "Noto Serif SC", "Noto Serif JP", Georgia, "Songti SC", serif;
  --body: "Cormorant Garamond", "Noto Serif SC", "Noto Serif JP", Georgia, "Songti SC", serif;
  --ui: system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "Noto Sans JP", sans-serif;

  --wrap: 1120px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --card-ratio: 4 / 7;
}
html[lang^="zh"], html[lang^="ja"] { --body: "Noto Serif SC", "Noto Serif JP", Georgia, serif; }

/* ------------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--ink);
  background-image:
    radial-gradient(1200px 700px at 12% -10%, rgba(59, 42, 109, .55), transparent 60%),
    radial-gradient(900px 600px at 92% 4%, rgba(42, 31, 82, .5), transparent 60%),
    linear-gradient(180deg, #0b0a1a 0%, #100d24 45%, #0b0a1a 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
/* star-field */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 22%, rgba(255,255,255,.75), transparent),
    radial-gradient(1.2px 1.2px at 72% 12%, rgba(232,205,122,.7), transparent),
    radial-gradient(1px 1px at 42% 62%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 88% 48%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 8% 78%, rgba(232,205,122,.55), transparent),
    radial-gradient(1.2px 1.2px at 58% 88%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 32% 38%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.3px 1.3px at 96% 82%, rgba(255,255,255,.4), transparent);
  background-size: 100% 100%;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-soft); text-decoration-color: rgba(212,175,55,.4); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.22; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
small { font-size: .82em; color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; position: relative; z-index: 1; }
.narrow { max-width: 780px; }
main { display: block; min-height: 60vh; padding-bottom: 60px; }
.muted { color: var(--muted); }
.center { text-align: center; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #1a1405; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 10, 26, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.15rem; letter-spacing: .06em; color: var(--text); text-decoration: none; flex: 0 0 auto; }
.brand svg { width: 30px; height: 30px; }
.brand span { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { font-family: var(--ui); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 7px 10px; border-radius: 8px; }
.nav a:hover { color: var(--gold-soft); background: var(--glass); }
.nav a[aria-current="page"] { color: var(--gold); background: var(--glass); }
.nav .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.langs { display: flex; gap: 2px; }
.langs a { padding: 7px 8px; font-size: .78rem; text-transform: none; }
.nav-toggle { display: none; margin-left: auto; background: var(--glass); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font-family: var(--ui); font-size: .85rem; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; margin: 0 0 12px; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; font-size: .95rem; }
  .nav .sep { display: none; }
  .langs { border-top: 1px solid var(--line); padding-top: 8px; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 44px 0 34px; background: rgba(11,10,26,.55); position: relative; z-index: 1; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { font-family: var(--ui); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .98rem; }
.site-footer a:hover { color: var(--gold-soft); }
.disclaimer { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-family: var(--ui); font-size: .8rem; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; gap: 24px; } }

/* ------------------------------------------------------------------- hero */
.hero { padding: 58px 0 34px; text-align: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: clamp(1.1rem, 2.3vw, 1.32rem); color: var(--muted); max-width: 660px; margin-inline: auto; }
.gold { color: var(--gold); }
.grad { background: linear-gradient(120deg, var(--gold-soft), var(--gold) 45%, #b98f2a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--ui); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.pill { font-family: var(--ui); font-size: .78rem; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: 6px 14px; }

.hero-figure {
  margin: 26px auto 0; max-width: 900px; aspect-ratio: 16 / 7; border-radius: var(--r-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
  background: var(--ph-hero);
  background-image: url("/img/hero.webp");
  background-size: cover; background-position: center;
}

/* ----------------------------------------------------------------- panels */
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.panel + .panel { margin-top: 22px; }
section.block { padding: 40px 0; }
section.block > .wrap > h2 { text-align: center; margin-bottom: 26px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card-link { display: block; text-decoration: none; color: inherit; background: var(--glass); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.card-link:hover { transform: translateY(-3px); border-color: var(--line); background: var(--glass-2); }
.card-link .thumb { aspect-ratio: 3 / 2; background: var(--ph) center/cover no-repeat; border-bottom: 1px solid var(--line-soft); }
.card-link .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-link .body { padding: 18px 20px 22px; }
.card-link h3 { margin-bottom: .3em; color: var(--gold-soft); }
.card-link p { margin: 0; color: var(--muted); font-size: 1rem; }

.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li { counter-increment: s; background: var(--glass); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px 20px; position: relative; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 1.5rem; color: var(--gold); display: block; margin-bottom: 8px; }
.steps b { display: block; font-family: var(--display); font-size: 1.15rem; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 1rem; }

details.faq { border-bottom: 1px solid var(--line-soft); padding: 4px 0; }
details.faq summary { cursor: pointer; padding: 14px 0; font-family: var(--display); font-size: 1.1rem; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "✦"; color: var(--gold); margin-right: 10px; font-size: .85em; }
details.faq p { color: var(--muted); margin: 0 0 14px 24px; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ui); font-size: .95rem; font-weight: 600; letter-spacing: .03em;
  padding: 13px 26px; border-radius: 999px; border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #1c1503;
  text-decoration: none; cursor: pointer; transition: filter .2s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.08); color: #1c1503; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.busy { opacity: .55; cursor: not-allowed; filter: grayscale(.3); }
.btn.ghost { background: transparent; color: var(--gold-soft); border-color: var(--line); }
.btn.ghost:hover { background: var(--glass); color: var(--gold); }
.btn.small { padding: 9px 18px; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row.center { justify-content: center; }

label.lb { display: block; font-family: var(--ui); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
input[type=text], input[type=date], input[type=number], textarea, select {
  width: 100%; font-family: var(--body); font-size: 1.05rem; color: var(--text);
  background: rgba(11,10,26,.6); border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px;
}
select { font-family: var(--ui); font-size: .95rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 92px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
.field + .field { margin-top: 16px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ui); font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.charcount { font-family: var(--ui); font-size: .78rem; color: var(--muted-2); }
.controls { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }

/* -------------------------------------------------------------- tarot cards */
.deck { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; perspective: 1400px; margin: 6px 0 4px; }
.deck.spread-celtic { max-width: 760px; margin-inline: auto; }
.tcard { width: clamp(96px, 20vw, 150px); }
.tcard .slot { position: relative; width: 100%; aspect-ratio: var(--card-ratio); transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.25,1); cursor: pointer; border-radius: 10px; }
.tcard.flipped .slot { transform: rotateY(180deg); }
.tcard .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(0,0,0,.5); background: var(--ink-2); }
.tcard .back { background: #150f33 url("/img/card-back.webp") center/cover no-repeat; }
.tcard .front { transform: rotateY(180deg); background: var(--ink-3); }
.tcard .front img { width: 100%; height: 100%; object-fit: cover; }
.tcard.rev .front img { transform: rotate(180deg); }
.tcard .cap { margin-top: 9px; text-align: center; font-family: var(--ui); font-size: .74rem; letter-spacing: .05em; color: var(--muted); }
.tcard .cap b { display: block; font-family: var(--body); font-size: .95rem; letter-spacing: 0; color: var(--text); }
.tcard .cap .or { color: var(--gold); font-size: .7rem; text-transform: uppercase; }
.tcard.dealing { animation: deal .5s cubic-bezier(.2,.8,.25,1) both; }
@keyframes deal { from { transform: translateY(-40px) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.deck.shuffling .tcard .slot { animation: shuf .55s ease-in-out infinite alternate; }
@keyframes shuf { from { transform: translateX(-8px) rotate(-3deg); } to { transform: translateX(8px) rotate(3deg); } }

.readings { display: grid; gap: 16px; margin-top: 26px; }
.reading-card { background: var(--glass); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 20px 22px; }
.reading-card h3 { color: var(--gold-soft); margin-bottom: .2em; }
.reading-card .pos { font-family: var(--ui); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.reading-card .kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.kw span, .tags span { font-family: var(--ui); font-size: .74rem; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 11px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* card detail page */
.card-detail { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 34px; align-items: start; }
.card-detail .art { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--ink-3); aspect-ratio: var(--card-ratio); }
.card-detail .art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .card-detail { grid-template-columns: 1fr; } .card-detail .art { max-width: 240px; margin-inline: auto; } }
.meta-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--ui); font-size: .85rem; }
.meta-list li span { color: var(--muted-2); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; display: block; }

.aspect-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.aspect { background: var(--glass); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 16px 18px; }
.aspect h4 { font-family: var(--ui); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.aspect p { margin: 0; font-size: 1.02rem; color: var(--text); }

.index-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.index-grid a { display: block; text-decoration: none; color: inherit; }
.index-grid .mini { aspect-ratio: var(--card-ratio); border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--ink-3); transition: transform .2s ease, border-color .2s ease; }
.index-grid a:hover .mini { transform: translateY(-3px); border-color: var(--gold-dim); }
.index-grid .mini img { width: 100%; height: 100%; object-fit: cover; }
.index-grid .nm { display: block; margin-top: 8px; font-size: .95rem; text-align: center; color: var(--muted); }
.index-grid a:hover .nm { color: var(--gold-soft); }

.list-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.list-grid a { display: flex; gap: 10px; align-items: baseline; text-decoration: none; color: var(--text); background: var(--glass); border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 14px; font-size: 1rem; }
.list-grid a:hover { border-color: var(--gold-dim); background: var(--glass-2); }
.list-grid .n { font-family: var(--ui); font-size: .78rem; color: var(--gold); min-width: 2.2em; }
.list-grid .hx { font-size: 1.3rem; line-height: 1; color: var(--gold-soft); }

/* ---------------------------------------------------------------- i ching */
.coins { display: flex; gap: 18px; justify-content: center; margin: 8px 0 20px; }
.coin { width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--gold-dim); background: #1a1633 url(/img/coin-tails.webp) center/118% no-repeat; display: grid; place-items: center; position: relative; box-shadow: 0 6px 18px rgba(0,0,0,.5); filter: saturate(.85); }
.coin.heads { background-image: url(/img/coin-heads.webp); filter: saturate(1.05) brightness(1.08); }
.coin.tossing { animation: toss .6s cubic-bezier(.35,0,.35,1) infinite; }
@keyframes toss { 0% { transform: translateY(0) rotateX(0); } 50% { transform: translateY(-38px) rotateX(540deg); } 100% { transform: translateY(0) rotateX(1080deg); } }

.hexbuild { display: flex; flex-direction: column-reverse; gap: 9px; align-items: center; margin: 8px 0 4px; }
.hexline { display: flex; gap: 10px; align-items: center; width: 100%; max-width: 320px; }
.hexline .bar { flex: 1; display: flex; gap: 10px; height: 15px; }
.hexline .bar i { background: var(--gold-soft); border-radius: 3px; flex: 1; display: block; }
.hexline.yin .bar i:first-child { flex: 1; } .hexline.yin .bar { gap: 14px; }
.hexline.yang .bar i:last-child { display: none; }
.hexline.yang .bar { gap: 0; }
.hexline.changing .bar i { background: var(--gold); box-shadow: 0 0 14px rgba(212,175,55,.8); }
.hexline .mk { font-family: var(--ui); font-size: .7rem; color: var(--gold); width: 22px; text-align: center; }
.hexline .num { font-family: var(--ui); font-size: .7rem; color: var(--muted-2); width: 18px; }
.hexline.pending .bar i { background: var(--line-soft); }
.hex-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; justify-items: center; }
.hex-pair .arrow { color: var(--gold); font-size: 1.6rem; }
@media (max-width: 620px) { .hex-pair { grid-template-columns: 1fr; } .hex-pair .arrow { transform: rotate(90deg); } }
.hex-glyph { font-size: clamp(3rem, 12vw, 5rem); line-height: 1; color: var(--gold-soft); text-align: center; }
.hex-name { text-align: center; font-family: var(--display); font-size: 1.2rem; margin-top: 8px; }

/* ----------------------------------------------------------- fortune sticks */
.cylinder-wrap { display: grid; place-items: center; margin: 10px 0 22px; }
.cylinder { width: 200px; height: 300px; position: relative; transform-origin: 50% 92%; background: url("/img/cylinder.webp") center bottom / contain no-repeat; filter: drop-shadow(0 14px 24px rgba(0,0,0,.6)); }
.cylinder .tube { display: none; }
.cylinder .stick { display: none; }
.cylinder .stick.out { display: block; position: absolute; left: 50%; margin-left: -6px; width: 12px; height: 170px !important; border-radius: 3px; background: linear-gradient(180deg, #f1e3bd, #c9b280); border: 1px solid rgba(0,0,0,.3); bottom: 140px; opacity: 0; transform: none !important; transition: bottom .6s cubic-bezier(.2,.9,.3,1), opacity .3s; z-index: -1; }
.cylinder.shaking { animation: shake .32s ease-in-out infinite; }
@keyframes shake { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.cylinder.done .out { bottom: 240px; opacity: 1; z-index: 1; }
.stick-result { text-align: center; }
.stick-no { font-family: var(--display); font-size: clamp(2.2rem, 8vw, 3.4rem); color: var(--gold); line-height: 1; }
.poem { font-family: var(--display); font-size: 1.2rem; line-height: 2.1; text-align: center; color: var(--gold-soft); margin: 16px 0; }
.poem span { display: block; }
.level { display: inline-block; font-family: var(--ui); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; padding: 5px 15px; border: 1px solid currentColor; }
.level.excellent { color: #f0cf7a; } .level.good { color: #b7dfa8; } .level.neutral { color: var(--muted); }
.level.poor { color: #e3b78a; } .level.bad { color: var(--bad); }

/* ------------------------------------------------------------- horoscope */
.sign-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); }
.sign-grid a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: inherit; background: var(--glass); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 18px 10px; transition: transform .2s ease, border-color .2s ease; }
.sign-grid a:hover { transform: translateY(-3px); border-color: var(--gold-dim); }
.sign-grid .glyph { font-size: 2rem; color: var(--gold); line-height: 1; }
.sign-grid .nm { font-family: var(--display); font-size: 1.05rem; }
.sign-grid .dt { font-family: var(--ui); font-size: .72rem; color: var(--muted-2); }
.horo-summary { font-size: 1.18rem; }
.horo-parts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 18px 0; }
.horo-part { background: var(--glass); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 15px 17px; }
.horo-part h3 { font-family: var(--ui); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }
.horo-part p { margin: 0; font-size: 1rem; }
.horo-lucky { list-style: none; padding: 0; margin: 0; display: flex; gap: 26px; flex-wrap: wrap; }
.horo-lucky li { font-family: var(--ui); font-size: .8rem; color: var(--muted); }
.horo-lucky b { display: block; font-family: var(--display); font-size: 1.4rem; color: var(--gold); }

/* --------------------------------------------------------------- numerology */
.numpad { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 22px 0; }
.numbox { text-align: center; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 14px; }
.numbox .v { font-family: var(--display); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.numbox .k { font-family: var(--ui); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ---------------------------------------------------------------- pricing */
.packs { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.pack { display: flex; flex-direction: column; text-align: center; background: var(--glass); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 30px 24px; position: relative; }
.pack.popular { border-color: var(--gold); background: var(--glass-2); }
.pack .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-family: var(--ui); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; background: var(--gold); color: #1c1503; border-radius: 999px; padding: 4px 14px; white-space: nowrap; }
.pack .cr { font-family: var(--display); font-size: 2.2rem; color: var(--gold-soft); }
.pack .pr { font-family: var(--display); font-size: 2.8rem; margin: 6px 0 2px; }
.pack .per { font-family: var(--ui); font-size: .8rem; color: var(--muted); margin-bottom: 20px; }
.pack .btn { margin-top: auto; width: 100%; }

.passbox { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(1.1rem, 4.4vw, 1.7rem); letter-spacing: .12em; text-align: center; background: rgba(11,10,26,.7); border: 1px dashed var(--gold); border-radius: var(--r); padding: 20px 14px; color: var(--gold-soft); word-break: break-all; }

/* ------------------------------------------------------------- AI reading */
.ai-panel { margin-top: 30px; }
.ai-status { display: flex; align-items: center; gap: 12px; font-family: var(--ui); font-size: .92rem; color: var(--muted); min-height: 26px; }
.ai-status.bad { color: var(--bad); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-out { margin-top: 18px; }
.ai-out:empty { display: none; }
.ai-out h3 { font-family: var(--display); color: var(--gold-soft); font-size: 1.25rem; margin: 1.4em 0 .4em; }
.ai-out h3:first-child { margin-top: 0; }
.ai-out p { margin: 0 0 1em; }
.ai-out ul, .ai-out ol { margin: 0 0 1em; color: var(--text); }
.ai-out li { margin-bottom: .35em; }
.ai-out strong { color: var(--gold-soft); }
.ai-out em { color: var(--muted); }
.ai-out hr { margin: 22px 0; }
.caret::after { content: "▍"; color: var(--gold); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.entitle { font-family: var(--ui); font-size: .85rem; color: var(--muted); margin-top: 10px; }
.entitle b { color: var(--gold-soft); }

/* ----------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 20px; background: rgba(5,4,14,.78); backdrop-filter: blur(6px); }
.modal.open { display: grid; }
.modal .box { max-width: 480px; width: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; box-shadow: var(--shadow); text-align: center; }
.modal h2 { font-size: 1.5rem; }
.modal p { color: var(--muted); }

/* --------------------------------------------------------------- notices */
.notice { border: 1px solid var(--line); background: var(--glass); border-radius: var(--r); padding: 14px 18px; font-family: var(--ui); font-size: .92rem; color: var(--muted); }
.notice.warn { border-color: rgba(239,138,138,.4); color: #f2c0c0; }
.notice.ok { border-color: rgba(111,214,164,.4); color: #bfe9d5; }
.lang-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 55; display: none; align-items: center; gap: 14px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 10px 12px 10px 20px; box-shadow: var(--shadow); font-family: var(--ui); font-size: .88rem; max-width: calc(100vw - 32px); }
.lang-banner.show { display: flex; }

/* ------------------------------------------------------------------ prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { color: var(--muted); }
.prose li { margin-bottom: .4em; }
.prose a { overflow-wrap: anywhere; }
.support-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin-block: 24px 48px; }
.support-codes figure { margin: 0; min-width: 0; text-align: center; }
.support-codes figcaption { margin-bottom: 12px; }
.support-codes img { display: block; width: 100%; max-width: 240px; height: auto; margin-inline: auto; }
@media (max-width: 480px) { .support-codes { grid-template-columns: 1fr; } }

/* ------------------------------------------------------ image placeholders */
:root {
  --ph: linear-gradient(140deg, #191338 0%, #2a1f52 45%, #120f2c 100%);
  --ph-hero: radial-gradient(120% 90% at 20% 10%, rgba(59,42,109,.9), transparent 60%), linear-gradient(160deg, #0d0b20, #241a48 55%, #0b0a1a);
  --ph-back: repeating-linear-gradient(45deg, rgba(212,175,55,.10) 0 6px, transparent 6px 12px), linear-gradient(150deg, #1d1640, #2f2260 60%, #150f33);
}
.ph { background: var(--ph); position: relative; }
.ph svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }

.breadcrumb { font-family: var(--ui); font-size: .8rem; color: var(--muted-2); margin: 26px 0 6px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-soft); }
.pagenav { display: flex; justify-content: space-between; gap: 14px; margin-top: 40px; font-family: var(--ui); font-size: .9rem; }
