/* Layout: Japanese editorial — wide margins, hairlines, vertical 明體 titles beside horizontal English labels, one soft 灰桜 panel colour and a small 臙脂 accent */
:root {
  --bg: #F4F4F2;
  --surface: #FFFFFF;
  --ink: #232222;
  --sub: #6D6966;
  --hair: #DAD7D3;
  --sakura: #EBDDDA;
  --enji: #983A3E;
  --on-enji: #FFFFFF;
  --mincho: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --gothic: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --latin: "Jost", "Helvetica Neue", Arial, sans-serif;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1918; --surface: #232220; --ink: #EDECE8; --sub: #A9A49F; --hair: #363431;
    --sakura: #3A2F2E; --enji: #D9888B; --on-enji: #1A1918;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1918; --surface: #232220; --ink: #EDECE8; --sub: #A9A49F; --hair: #363431;
  --sakura: #3A2F2E; --enji: #D9888B; --on-enji: #1A1918;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--gothic); font-weight: 300; font-size: 15.5px; line-height: 1.95; letter-spacing: .03em;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 20; background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--mincho); font-weight: 500; letter-spacing: .08em; line-height: 1.5; text-wrap: balance; }
:focus-visible { outline: 1.5px solid var(--enji); outline-offset: 4px; }
[hidden] { display: none !important; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.en { font-family: var(--latin); font-weight: 300; letter-spacing: .28em; text-transform: uppercase; font-size: .72rem; color: var(--sub); }

/* header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(6px);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; padding-block: 18px; }
.logo { text-decoration: none; display: grid; line-height: 1.2; }
.logo b { font-family: var(--mincho); font-weight: 500; font-size: 1.25rem; letter-spacing: .2em; }
.logo span { font-family: var(--latin); font-size: .6rem; letter-spacing: .4em; color: var(--sub); }
.gnav { margin-left: auto; display: flex; gap: 28px; align-items: center; }
.gnav a { text-decoration: none; display: grid; text-align: center; line-height: 1.3; font-size: .86rem; }
.gnav a .en { font-size: .58rem; letter-spacing: .24em; }
.gnav a[aria-current="page"] { color: var(--enji); }
.gnav a[aria-current="page"] .en { color: var(--enji); }
.line-btn {
  text-decoration: none; border: 1px solid var(--ink); padding: 8px 18px; font-size: .82rem; letter-spacing: .12em;
  white-space: nowrap;
}
.line-btn:hover { background: var(--ink); color: var(--bg); }
.menu { margin-left: auto; display: none; }
.menu summary { list-style: none; cursor: pointer; font-family: var(--latin); letter-spacing: .3em; font-size: .75rem; padding: 6px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); display: grid; }
.menu nav a { text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: baseline; }
.menu nav a:last-child { border-bottom: 0; }
@media (max-width: 860px) {
  .gnav { display: none; }
  .menu { display: block; }
  .site-head .line-btn { display: none; }
}

/* section heading: vertical 明體 + horizontal English */
.sec { padding-block: 96px; }
.sec-head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.sec-head .line { flex: 1; height: 1px; background: var(--hair); margin-bottom: 14px; min-width: 24px; }
.tate { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: .3em; }
@media (max-width: 700px) { .sec { padding-block: 64px; } .sec-head { margin-bottom: 32px; } }

/* hero */
.hero { position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; align-items: stretch; padding-block: 24px 0; }
.hero-copy { display: flex; gap: 36px; align-items: flex-start; padding-block: 48px; padding-right: 32px; }
.hero-copy h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 500; line-height: 1.6; height: 11.5em; max-height: 460px; }
.hero-copy .side { display: grid; gap: 22px; align-content: end; align-self: end; }
.hero-copy .lede { color: var(--sub); max-width: 18em; }
.hero-photo { margin: 0; position: relative; min-height: 0; }
.hero-photo img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; object-position: 50% 30%; }
.hero-photo figcaption { position: absolute; right: 0; bottom: -28px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { max-height: 520px; aspect-ratio: 4 / 5; }
  .hero-copy { padding-block: 40px 8px; padding-right: 0; gap: 24px; }
  .hero-copy h1 { height: auto; max-height: none; writing-mode: horizontal-tb; text-orientation: mixed; letter-spacing: .1em; font-size: 1.8rem; }
  .hero-copy { flex-direction: column; }
}

.btn {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-size: .9rem; letter-spacing: .14em;
  border-bottom: 1px solid currentColor; padding-bottom: 6px; width: fit-content;
}
.btn::after { content: ""; width: 36px; height: 1px; background: currentColor; transition: width .3s; }
.btn:hover::after { width: 56px; }
.btn.fill { background: var(--enji); color: var(--on-enji); border: 0; padding: 14px 26px; }
.btn.fill::after { background: var(--on-enji); }
.btns { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; }

/* intro */
.intro .wrap { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: start; }
.intro .tate { font-family: var(--mincho); font-size: 1.5rem; font-weight: 500; }
.intro .body { display: grid; gap: 20px; max-width: 36em; }
@media (max-width: 700px) { .intro .wrap { grid-template-columns: 1fr; gap: 24px; } .intro .tate { writing-mode: horizontal-tb; } }

/* concern list */
.concerns { border-top: 1px solid var(--hair); }
.concern { display: grid; grid-template-columns: 4.5rem 9rem 1fr auto; gap: 16px; align-items: baseline; padding-block: 22px; border-bottom: 1px solid var(--hair); text-decoration: none; }
.concern .no { font-family: var(--latin); font-size: .8rem; color: var(--sub); letter-spacing: .2em; }
.concern h3 { font-size: 1.15rem; }
.concern p { color: var(--sub); font-size: .92rem; min-width: 0; }
.concern .to { font-size: .82rem; color: var(--enji); white-space: nowrap; }
.concern:hover h3 { color: var(--enji); }
@media (max-width: 700px) {
  .concern { grid-template-columns: 3rem 1fr; }
  .concern p, .concern .to { grid-column: 2; }
}

/* feature (2027) */
.feature { background: var(--sakura); }
.feature .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.feature figure { margin: 0; }
.feature img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.feature .txt { display: grid; gap: 22px; }
.feature h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.ganzhi { font-family: var(--mincho); font-size: 1rem; letter-spacing: .4em; color: var(--sub); }
.price { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; }
.price b { font-family: var(--latin); font-weight: 400; font-size: 1.9rem; letter-spacing: .04em; }
.price small { color: var(--sub); }
.price s { color: var(--sub); font-size: .9rem; }
@media (max-width: 760px) { .feature .wrap { grid-template-columns: 1fr; gap: 32px; } }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 36px; }
.card { text-decoration: none; display: grid; gap: 12px; align-content: start; min-width: 0; }
.card .no { font-family: var(--latin); font-size: .75rem; letter-spacing: .25em; color: var(--sub); }
.card h3 { font-size: 1.2rem; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.card p { color: var(--sub); font-size: .92rem; }
.card .fee { font-family: var(--latin); font-size: .9rem; color: var(--ink); letter-spacing: .06em; }
.card:hover h3 { color: var(--enji); border-color: var(--enji); }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; gap: 32px; } }

/* split (photo + text) */
.split .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.rev .wrap > figure { order: 2; }
.split figure { margin: 0; }
.split img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.split .txt { display: grid; gap: 20px; max-width: 30em; }
@media (max-width: 760px) { .split .wrap { grid-template-columns: 1fr; gap: 32px; } .split.rev .wrap > figure { order: 0; } }

/* contact band */
.band { background: var(--ink); color: var(--bg); text-align: center; }
.band .wrap { display: grid; gap: 22px; justify-items: center; padding-block: 88px; }
.band .en { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.band h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.band .btn.fill { background: var(--bg); color: var(--ink); }
.band .btn.fill::after { background: var(--ink); }
.band .id { font-family: var(--latin); letter-spacing: .2em; font-size: .9rem; user-select: all; }

/* page title (sub pages) */
.page-title { padding-block: 72px 56px; border-bottom: 1px solid var(--hair); }
.page-title .wrap { display: flex; gap: 32px; align-items: flex-end; }
.page-title h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
.page-title p { color: var(--sub); max-width: 30em; margin-left: auto; font-size: .95rem; }
.crumb { font-size: .78rem; color: var(--sub); margin-bottom: 8px; display: block; }
.crumb a { text-decoration: none; }
@media (max-width: 700px) { .page-title .wrap { flex-direction: column; align-items: flex-start; gap: 16px; } .page-title p { margin-left: 0; } }

/* fee tables */
.fee-group { display: grid; grid-template-columns: 14rem 1fr; gap: 32px; padding-block: 40px; border-bottom: 1px solid var(--hair); }
.fee-group:first-of-type { border-top: 1px solid var(--hair); }
.fee-group .head { display: grid; gap: 6px; align-content: start; }
.fee-group .head h2 { font-size: 1.35rem; }
.fee-group .head p { color: var(--sub); font-size: .88rem; }
.fee-list { display: grid; gap: 0; min-width: 0; }
.fee-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding-block: 14px; border-bottom: 1px dashed var(--hair); align-items: baseline; }
.fee-row:last-child { border-bottom: 0; }
.fee-row h3 { font-size: 1.02rem; font-weight: 500; }
.fee-row p { color: var(--sub); font-size: .88rem; grid-column: 1; }
.fee-row .amt { font-family: var(--latin); font-weight: 400; letter-spacing: .04em; white-space: nowrap; font-variant-numeric: tabular-nums; grid-row: 1; grid-column: 2; }
.fee-row a.more { font-size: .82rem; color: var(--enji); text-decoration: none; grid-column: 1; }
@media (max-width: 760px) { .fee-group { grid-template-columns: 1fr; gap: 16px; } }

/* detail blocks */
.detail { display: grid; grid-template-columns: 14rem 1fr; gap: 32px; padding-block: 36px; border-bottom: 1px solid var(--hair); }
.detail h2 { font-size: 1.25rem; }
.detail ul, .detail ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.detail .body { display: grid; gap: 14px; min-width: 0; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; gap: 14px; } }
.steps { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 0 !important; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; padding-block: 14px; border-bottom: 1px dashed var(--hair); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--latin); color: var(--enji); letter-spacing: .1em; }
.steps li b { font-weight: 500; display: block; }
.steps li span { color: var(--sub); font-size: .9rem; }
details.qa { border-bottom: 1px solid var(--hair); padding-block: 14px; }
details.qa:first-of-type { border-top: 1px solid var(--hair); }
details.qa summary { cursor: pointer; font-weight: 400; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.qa summary::after { content: "+"; font-family: var(--latin); color: var(--sub); }
details.qa[open] summary::after { content: "−"; }
details.qa p { color: var(--sub); margin-top: 10px; font-size: .92rem; }

.ritual-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.ritual-list .fee-row { grid-template-columns: 1fr auto; }
@media (max-width: 760px) { .ritual-list { grid-template-columns: 1fr; } }

.facts { display: flex; flex-wrap: wrap; gap: 40px; }
.facts div { display: grid; gap: 2px; }
.facts b { font-family: var(--latin); font-weight: 300; font-size: 2.4rem; line-height: 1.1; letter-spacing: .02em; }
.facts span { color: var(--sub); font-size: .85rem; }

.slot { border: 1px dashed var(--hair); padding: 40px 24px; text-align: center; color: var(--sub); }

/* footer */
.site-foot { border-top: 1px solid var(--hair); padding-block: 48px; font-size: .85rem; color: var(--sub); }
.site-foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot nav a { text-decoration: none; }
.draft { background: var(--sakura); text-align: center; font-size: .78rem; padding: 6px 16px; color: var(--ink); }
@media (max-width: 700px) { .site-foot .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .btn::after { transition: none; } }

/* 運勢專欄文章（2026-10-29） */
.prose { max-width: 42rem; }
.prose .meta { font-family: var(--latin); font-size: .8rem; letter-spacing: .2em; color: var(--sub); margin-bottom: 28px; }
.prose .lead { font-family: var(--mincho); font-size: 1.2rem; line-height: 2; margin-bottom: 24px; }
.prose h2 { font-size: 1.3rem; margin: 56px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.prose p { margin: 0 0 16px; line-height: 2; }
.prose .tip { color: var(--enji); font-size: .95rem; }
.prose .note { margin: 56px 0 32px; padding: 20px 24px; background: var(--sakura); font-size: .92rem; line-height: 1.9; }

/* ===== v3: motion and interactive pieces (2026-11-03) ===== */
:root { --ease: cubic-bezier(.2, .7, .1, 1); }

/* hero: video or slow-drifting photo */
.hero-photo { overflow: hidden; }
.hero-photo video { width: 100%; height: 100%; max-height: 640px; object-fit: cover; object-position: 50% 30%; display: block; background: var(--sakura); }
.hero-photo img.drift { animation: drift 18s var(--ease) infinite alternate; transform-origin: 50% 35%; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateY(-1.5%); } }
@media (max-width: 860px) { .hero-photo video { max-height: 520px; aspect-ratio: 4 / 5; } }
.hero-copy h1 { animation: inkIn 1.4s var(--ease) both; }
.hero-copy .side { animation: rise 1s .5s var(--ease) both; }
@keyframes inkIn { from { opacity: .15; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: .2; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* reveal on scroll: only elements below the first screen get .pre (set by script.js) */
.pre { opacity: 0; transform: translateY(32px); }
.pre.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }

/* photo depth: the image moves slower than the page */
.plx { overflow: hidden; }
.plx img { transform: translateY(var(--py, 0px)) scale(1.14); will-change: transform; }

/* tarot: draw one card */
.tarot { background: var(--surface); }
.tarot .wrap { display: grid; gap: 36px; }
.tarot-intro { display: grid; gap: 10px; max-width: 34em; }
.tarot-intro p { color: var(--sub); }
.deck { display: flex; justify-content: center; align-items: flex-end; min-height: 250px; padding-top: 12px; }
.tcard { --r: 0deg; --x: 0px; width: 128px; aspect-ratio: 5 / 8; margin-inline: -26px; border: 0; padding: 0; background: none; cursor: pointer; perspective: 900px; transform: translateX(var(--x)) rotate(var(--r)); transform-origin: 50% 120%; transition: transform .5s var(--ease); flex: none; }
.tcard:hover, .tcard:focus-visible { transform: translateX(var(--x)) rotate(var(--r)) translateY(-18px); }
.tcard .in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.tcard .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; }
.tcard .back { background: var(--enji); border: 6px solid var(--enji); outline: 1px solid color-mix(in srgb, var(--on-enji) 45%, transparent); outline-offset: -12px;
  background-image: repeating-linear-gradient(45deg, color-mix(in srgb, var(--on-enji) 14%, transparent) 0 1px, transparent 1px 9px), repeating-linear-gradient(-45deg, color-mix(in srgb, var(--on-enji) 14%, transparent) 0 1px, transparent 1px 9px);
  place-items: center; color: var(--on-enji); font-family: var(--latin); letter-spacing: .3em; font-size: .62rem; }
.tcard .front { transform: rotateY(180deg); background: var(--bg); border: 1px solid var(--enji); outline: 1px solid var(--hair); outline-offset: -8px; grid-template-rows: auto 1fr auto; justify-items: center; padding: 14px 8px; color: var(--ink); }
.tcard .front .num { font-family: var(--latin); letter-spacing: .25em; font-size: .78rem; color: var(--enji); }
.tcard .front .zh { writing-mode: vertical-rl; font-family: var(--mincho); font-size: 1.35rem; letter-spacing: .3em; align-self: center; }
.tcard .front .enm { font-family: var(--latin); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sub); text-align: center; }
.tcard.open .in { transform: rotateY(180deg); }
.deck.done .tcard:not(.open) { opacity: .25; pointer-events: none; transform: translateX(var(--x)) rotate(var(--r)) translateY(24px); }
.deck.done .tcard.open { transform: translateY(-28px) scale(1.18); z-index: 2; }
.reading { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 32em; margin-inline: auto; min-height: 9.5em; }
.reading h3 { font-size: 1.35rem; }
.reading .kw { font-size: .85rem; color: var(--enji); letter-spacing: .2em; }
.reading p { color: var(--sub); }
.reading .btns { justify-content: center; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--sub); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (max-width: 600px) { .tcard { width: 96px; margin-inline: -30px; } .deck { min-height: 200px; } }

/* zodiac 2027 */
.zodiac-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.zbtn { background: none; border: 0; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 18px 8px 14px; cursor: pointer; display: grid; gap: 4px; justify-items: center; color: var(--ink); font: inherit; transition: background .3s, color .3s; }
.zbtn b { font-family: var(--mincho); font-weight: 500; font-size: 1.6rem; line-height: 1.2; }
.zbtn small { font-family: var(--latin); font-size: .66rem; letter-spacing: .08em; color: var(--sub); font-variant-numeric: tabular-nums; }
.zbtn .tag { font-size: .7rem; color: var(--enji); min-height: 1.4em; }
.zbtn:hover { background: var(--sakura); }
.zbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.zbtn[aria-pressed="true"] small, .zbtn[aria-pressed="true"] .tag { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.zpanel { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 12px 32px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--hair); }
.zpanel .big { font-family: var(--mincho); font-size: clamp(3rem, 8vw, 4.6rem); line-height: 1; color: var(--enji); grid-row: span 3; }
.zpanel h3 { font-size: 1.25rem; }
.zpanel p { color: var(--sub); max-width: 36em; }
.zpanel .note { font-size: .8rem; }
.zpanel.swap { animation: rise .6s var(--ease); }
@media (max-width: 700px) { .zodiac-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .zpanel { grid-template-columns: 1fr; } .zpanel .big { grid-row: auto; } }

/* service cards that turn over */
.flips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.flip { perspective: 1200px; min-width: 0; }
.flip-in { display: grid; transform-style: preserve-3d; transition: transform .8s var(--ease); height: 100%; }
.flip-in > .side { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 22px; border: 1px solid var(--hair); background: var(--surface); min-width: 0; }
.flip-in > .side-b { transform: rotateY(180deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.flip .no { font-family: var(--latin); font-size: .75rem; letter-spacing: .25em; color: var(--sub); }
.flip h3 { font-size: 1.2rem; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.flip .side-a p { color: var(--sub); font-size: .92rem; }
.flip .side-a .fee { margin-top: auto; }
.flip .fee { font-family: var(--latin); font-size: .95rem; letter-spacing: .06em; }
.flip .turn { align-self: flex-start; background: none; border: 0; padding: 4px 0; font: inherit; font-size: .82rem; color: var(--enji); cursor: pointer; letter-spacing: .1em; }
.flip .side-b dl { margin: 0; display: grid; gap: 10px; font-size: .9rem; }
.flip .side-b dt { font-size: .72rem; letter-spacing: .2em; color: color-mix(in srgb, var(--bg) 65%, transparent); }
.flip .side-b dd { margin: 0; }
.flip .side-b .acts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 6px; }
.flip .side-b .acts a { color: var(--bg); font-size: .85rem; text-underline-offset: 4px; }
.flip .side-b .acts a.go { background: var(--bg); color: var(--ink); text-decoration: none; padding: 8px 16px; }
.flip .side-b .turn { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.flip.on .flip-in { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) { .flip:hover .flip-in { transform: rotateY(180deg); } }
@media (max-width: 860px) { .flips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flips { grid-template-columns: 1fr; } }

/* testimonials carousel */
.voices .wrap { display: grid; gap: 28px; }
.vtrack { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow: hidden; scroll-behavior: smooth; }
.vslide { display: grid; gap: 16px; place-content: center; text-align: center; min-height: 230px; padding: 36px 24px; border: 1px dashed var(--hair); background: var(--surface); }
.vslide .q { font-family: var(--mincho); font-size: clamp(1.1rem, 2.6vw, 1.4rem); max-width: 24em; margin-inline: auto; }
.vslide .who { font-size: .82rem; color: var(--sub); }
.vslide .ph { font-size: .78rem; color: var(--enji); letter-spacing: .1em; }
.vnav { display: flex; justify-content: center; align-items: center; gap: 18px; }
.vnav button { background: none; border: 1px solid var(--hair); width: 40px; height: 40px; cursor: pointer; color: var(--ink); font: inherit; }
.vdots { display: flex; gap: 10px; }
.vdots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid var(--sub); background: transparent; }
.vdots button[aria-current="true"] { background: var(--enji); border-color: var(--enji); }

@media (prefers-reduced-motion: reduce) {
  .hero-photo img.drift, .hero-copy h1, .hero-copy .side, .zpanel.swap { animation: none; }
  .pre { opacity: 1; transform: none; }
  .plx img { transform: none; }
  .tcard, .tcard .in, .flip-in, .pre.in { transition: none; }
  .vtrack { scroll-behavior: auto; }
}

/* ===== v3.1: buttons that look like buttons, colour blocks (Boss 11/3：按鈕不明顯、以為全部都是文章) ===== */
:root { --tile1: #EBDDDA; --tile2: #DCE3E2; --tile3: #EDE4D3; --tile-ink: #232222; --on-tile-ink: #F4F4F2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tile1: #3A2F2E; --tile2: #263231; --tile3: #363026; --tile-ink: #EDECE8; --on-tile-ink: #1A1918; } }
:root[data-theme="dark"] { --tile1: #3A2F2E; --tile2: #263231; --tile3: #363026; --tile-ink: #EDECE8; --on-tile-ink: #1A1918; }

.btn { border: 1.5px solid var(--ink); padding: 13px 24px; background: var(--surface); color: var(--ink); font-weight: 500; gap: 12px;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s; }
.btn::after { content: "→"; width: auto; height: auto; background: none; font-family: var(--latin); transition: transform .25s; }
.btn:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); box-shadow: 0 8px 18px color-mix(in srgb, var(--ink) 18%, transparent); }
.btn:hover::after { width: auto; transform: translateX(4px); }
.btn.fill { background: var(--enji); color: var(--on-enji); border: 1.5px solid var(--enji); padding: 13px 24px; }
.btn.fill::after { background: none; }
.btn.fill:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.band .btn.fill { border-color: var(--bg); }
.line-btn { background: var(--enji); color: var(--on-enji); border-color: var(--enji); font-weight: 500; }
.btns { gap: 14px 16px; }

/* concerns become five colour tiles */
.concerns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; border-top: 0; }
.concern { grid-template-columns: 1fr; gap: 10px; align-content: start; padding: 26px 20px 22px; border-bottom: 0; min-height: 250px; background: var(--tile1);
  transition: transform .3s var(--ease), box-shadow .3s; display: flex; flex-direction: column; }
.concern:nth-child(2) { background: var(--tile2); }
.concern:nth-child(3) { background: var(--tile3); }
.concern:nth-child(4) { background: var(--enji); color: var(--on-enji); }
.concern:nth-child(5) { background: var(--tile-ink); color: var(--on-tile-ink); }
.concern:nth-child(n+4) .no, .concern:nth-child(n+4) p { color: inherit; opacity: .78; }
.concern h3 { font-size: 1.35rem; }
.concern p, .concern .to { grid-column: auto; }
.concern .to { margin-top: auto; white-space: normal; align-self: flex-start; color: inherit; background: color-mix(in srgb, var(--surface) 70%, transparent); padding: 6px 12px; font-size: .78rem; }
.concern:nth-child(n+4) .to { background: color-mix(in srgb, currentColor 16%, transparent); }
.concern .to::after { content: "  →"; font-family: var(--latin); }
.concern:hover { transform: translateY(-6px); box-shadow: 0 14px 28px color-mix(in srgb, var(--ink) 14%, transparent); }
.concern:hover h3 { color: inherit; }
@media (max-width: 960px) { .concerns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .concerns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .concern { min-height: 210px; padding: 20px 16px; } .concern:nth-child(5) { grid-column: span 2; min-height: 0; } }

/* service cards: coloured fronts, the turn control is a real button */
.flip:nth-child(6n+1) .side-a { background: var(--tile1); }
.flip:nth-child(6n+2) .side-a { background: var(--tile2); }
.flip:nth-child(6n+3) .side-a { background: var(--tile3); }
.flip:nth-child(6n+4) .side-a { background: var(--tile2); }
.flip:nth-child(6n+5) .side-a { background: var(--tile3); }
.flip:nth-child(6n+6) .side-a { background: var(--tile1); }
.flip .side-a { border-color: transparent; }
.flip .side-a h3 { border-color: color-mix(in srgb, var(--ink) 18%, transparent); }
.flip .turn { border: 1.5px solid currentColor; padding: 7px 14px; font-weight: 500; }
.flip .side-a .turn { background: var(--surface); color: var(--enji); border-color: var(--enji); }

/* section colour bands */
.tarot { background: var(--tile2); }
.zodiac-sec { background: var(--tile3); }
.zbtn { background: var(--surface); }
.zbtn .tag:not(:empty) { background: var(--enji); color: var(--on-enji); padding: 0 8px; font-size: .68rem; }
.zbtn[aria-pressed="true"] { background: var(--enji); color: var(--on-enji); }
.zbtn[aria-pressed="true"] .tag:not(:empty) { background: var(--on-enji); color: var(--enji); }
.deck:not(.done) .tcard:nth-child(4) .in { animation: nudge 2.6s var(--ease) infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-14px); } 90% { transform: translateY(-4px); } }

/* phone: a LINE button that stays in reach */
.fab-line { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  background: var(--enji); color: var(--on-enji); text-decoration: none; padding: 13px 20px; font-weight: 500; letter-spacing: .12em; font-size: .9rem;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--ink) 28%, transparent); display: none; }
@media (max-width: 860px) { .fab-line { display: inline-flex; } .site-foot { padding-bottom: 72px; } }
@media (prefers-reduced-motion: reduce) { .deck:not(.done) .tcard:nth-child(4) .in { animation: none; } .btn, .concern { transition: none; } }

/* Q 版兔寶插圖（11/3）：圓形貼紙 */
.ill { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 4px 12px color-mix(in srgb, var(--ink) 12%, transparent); }
.concern .ill { margin-bottom: 4px; }
.flip .side-a .ill { width: 112px; height: 112px; }
@media (max-width: 640px) { .ill { width: 80px; height: 80px; } .flip .side-a .ill { width: 96px; height: 96px; } }

/* 11/3 漫畫版插圖（B 夢幻塔羅卡風）：整張方圖，不再裁成圓形 */
.ill { border-radius: 2px; box-shadow: 0 6px 16px color-mix(in srgb, var(--ink) 14%, transparent); }
.concern .ill { width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 8px; }
.flip .side-a .ill { width: 100%; height: auto; aspect-ratio: 1; }
@media (max-width: 640px) { .concern .ill, .flip .side-a .ill { width: 100%; height: auto; } }

/* 11/3 去背版插圖：透明底，人物直接站在色塊上 */
.ill { border-radius: 0; box-shadow: none; object-fit: contain; filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--ink) 16%, transparent)); }

/* 11/9 Boss：手機版不要一整頁的大照片 → 文字先出來，照片縮成一條 */
@media (max-width: 860px) {
  .hero-photo { order: 0; margin-top: 4px; }
  .hero-photo img, .hero-photo video { aspect-ratio: 16 / 9; max-height: 30vh; object-position: 50% 26%; }
}
@media (max-width: 860px) {
  .hero-copy .side { align-self: stretch; }   /* 原本靠右對齊，手機上會往右擠出畫面 */
}
.hero-copy .side .en { white-space: normal; }

/* 11/9 Boss：服務項目要有分類 → 每一類一個色塊＋插圖，最上面一排分類按鈕 */
:root { --tile4: #E4DFEC; --tile5: #F3E2D8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tile4: #2E2A37; --tile5: #3B2B25; } }
:root[data-theme="dark"] { --tile4: #2E2A37; --tile5: #3B2B25; }
.c-fate { --cat: var(--tile3); } .c-love { --cat: var(--tile1); } .c-home { --cat: var(--tile2); }
.c-name { --cat: var(--tile4); } .c-ritual { --cat: var(--tile5); } .c-course { --cat: var(--surface); }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cat-nav a { text-decoration: none; background: var(--cat); color: var(--ink); padding: 9px 16px; font-size: .9rem; letter-spacing: .08em; border-radius: 999px; transition: transform .2s; }
.cat-nav a:hover { transform: translateY(-2px); }
.cat-nav a.c-course { border: 1px solid var(--hair); }
.svc .fee-group { background: var(--cat); border: 0; padding: 32px; margin-bottom: 16px; scroll-margin-top: 96px; }
.svc .fee-group:first-of-type { border-top: 0; }
.svc .fee-group.c-course { border: 1px solid var(--hair); }
.svc .fee-group .head .ill { width: 150px; height: auto; aspect-ratio: 1; margin: -10px 0 6px -8px; }
.svc .fee-group .head p { color: color-mix(in srgb, var(--ink) 72%, transparent); }
.svc .fee-row { border-bottom-color: color-mix(in srgb, var(--ink) 20%, transparent); }
.svc .fee-row p { color: color-mix(in srgb, var(--ink) 72%, transparent); }
@media (max-width: 760px) {
  .svc .fee-group { padding: 22px 18px; gap: 10px; }
  .svc .fee-group .head { grid-template-columns: 1fr auto; column-gap: 12px; }
  .svc .fee-group .head > :not(.ill) { grid-column: 1; }
  .svc .fee-group .head .ill { grid-column: 2; grid-row: 1 / span 3; width: 104px; margin: -6px -4px 0 0; }
}

/* 11/9 Boss：「今天抽一張」做漂亮、放最上面 → 夜空、金色、星星 */
.tarot { --ink: #F4ECDD; --sub: #CBBFAE; --hair: rgba(233, 199, 127, .28); --enji: #E8C47E; --on-enji: #2A1D12; --surface: transparent;
  color: var(--ink); position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, #4A2A4C 0%, #251B33 52%, #14111C 100%); }
.tarot::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9;
  background-image:
    radial-gradient(1.4px 1.4px at 8% 18%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 22% 62%, #fff 60%, transparent 61%),
    radial-gradient(1.6px 1.6px at 35% 12%, #F6DFA6 60%, transparent 61%), radial-gradient(1px 1px at 48% 40%, #fff 60%, transparent 61%),
    radial-gradient(1.2px 1.2px at 63% 22%, #fff 60%, transparent 61%), radial-gradient(1.8px 1.8px at 77% 9%, #F6DFA6 60%, transparent 61%),
    radial-gradient(1px 1px at 88% 48%, #fff 60%, transparent 61%), radial-gradient(1.3px 1.3px at 93% 78%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 14% 86%, #F6DFA6 60%, transparent 61%), radial-gradient(1.2px 1.2px at 56% 92%, #fff 60%, transparent 61%);
  animation: twinkle 4.5s ease-in-out infinite alternate; }
.tarot::after { content: ""; position: absolute; left: 50%; top: 46%; width: min(560px, 90vw); height: 260px; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(232, 196, 126, .22), transparent 68%); }
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }
.tarot .sec-head h2 { color: #F7E7C2; letter-spacing: .12em; }
.tarot .sec-head .en { color: var(--enji); }
.tarot-intro p { color: var(--sub); }
.tcard .back { color: #E8C47E; border: 1px solid #D8B06A; outline: 1px solid rgba(216, 176, 106, .6); outline-offset: -6px;
  background: radial-gradient(circle at 50% 45%, #7B2D3B 0%, #4B1A28 62%, #2E1019 100%);
  background-image: radial-gradient(circle at 50% 45%, transparent 0 34%, rgba(232,196,126,.08) 34% 35%, transparent 35%),
    repeating-linear-gradient(45deg, rgba(232,196,126,.10) 0 1px, transparent 1px 10px), repeating-linear-gradient(-45deg, rgba(232,196,126,.10) 0 1px, transparent 1px 10px),
    radial-gradient(circle at 50% 45%, #7B2D3B 0%, #4B1A28 62%, #2E1019 100%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .45); border-radius: 6px; place-items: center; }
.tcard .back .emb { width: 46%; height: auto; filter: drop-shadow(0 0 4px rgba(232, 196, 126, .45)); }
.tcard:hover .back, .tcard:focus-visible .back { box-shadow: 0 0 0 1px #E8C47E, 0 0 26px rgba(232, 196, 126, .55), 0 12px 24px rgba(0, 0, 0, .5); }
.tcard .front { background: linear-gradient(#FCF7EE, #F0E4CE); border: 1px solid #C9A45C; outline: 1px solid rgba(201, 164, 92, .6); outline-offset: -6px; border-radius: 6px; color: #3A2A1E;
  box-shadow: 0 0 30px rgba(232, 196, 126, .5); }
.tcard .front .num { color: #9A6B2E; }
.tcard .front .enm { color: #7D6A55; }
.reading .kw { color: var(--enji); }
.reading h3 { color: #F7E7C2; }
.tarot .btn:not(.fill) { color: var(--ink); border-color: rgba(244, 236, 221, .6); }
@media (prefers-reduced-motion: reduce) { .tarot::before { animation: none; } }

/* 11/9 Boss：照片不用那麼大，可以用圓形或其他形狀 → 首頁流年照片圓形、其他頁拱門形 */
.feature figure { display: grid; place-items: center; }
.feature img { width: min(100%, 380px); aspect-ratio: 1; border-radius: 50%; object-position: 50% 30%;
  box-shadow: 0 0 0 6px var(--sakura), 0 0 0 7px color-mix(in srgb, var(--enji) 55%, transparent); }
.split figure { display: grid; place-items: center; }
.split img { width: min(100%, 360px); aspect-ratio: 4 / 5; border-radius: 999px 999px 4px 4px; }
@media (max-width: 760px) {
  .feature img { width: 62vw; max-width: 260px; }
  .split img { width: 64vw; max-width: 260px; }
}
@media (max-width: 600px) { .tcard { width: 86px; margin-inline: -27px; } }

/* 11/9 見證放上真的客人回饋（花花見證圖庫裡 Boss 已確認的，名字都拿掉） */
.vslide.real { border: 0; border-top: 2px solid var(--enji); box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 8%, transparent); }
.vslide.real .q { position: relative; padding-top: 28px; line-height: 1.8; }
.vslide.real .q::before { content: "“"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-family: Georgia, serif; font-size: 3.2rem; line-height: 1; color: var(--enji); opacity: .6; }
.vslide.real .ph { background: color-mix(in srgb, var(--enji) 12%, transparent); padding: 3px 12px; justify-self: center; }
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .vgrid { grid-template-columns: 1fr; } }

/* 11/9 手機可以左右滑的問題：有東西超出畫面寬（選單、還沒浮現的區塊），整頁切齊、不能左右滑 */
html, body { overflow-x: clip; }
.vslide { grid-template-columns: minmax(0, 1fr); place-content: center stretch; }
.vslide .q { max-width: min(24em, 100%); }

/* 11/9 Boss：手機滑起來亂 → B 顏色統一：除了抽牌夜空，段落只用兩種底色交替 */
:root { --alt: #ECE9E4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --alt: #262320; } }
:root[data-theme="dark"] { --alt: #262320; }
.concerns-sec, .feature, .zodiac-sec { background: var(--alt); }
.voices { background: var(--bg); }
.band { background: var(--alt); color: var(--ink); }
.band .en { color: var(--sub); }
.band .btn.fill { background: var(--enji); color: var(--on-enji); border-color: var(--enji); }
.band .btn.fill::after { background: var(--on-enji); }
.hero .ln-link { justify-self: start; text-decoration: none; font-size: .9rem; color: var(--enji); border-bottom: 1px solid color-mix(in srgb, var(--enji) 45%, transparent); padding-bottom: 2px; }
.hero .ln-link b { font-weight: 500; }

/* C 手機上拿掉「滑到才慢慢浮出來」 */
@media (max-width: 860px) {
  .pre, .pre.in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* D 開運小物 */
.shop-nav a { background: var(--alt); }
.pgroup { padding-block: 28px; border-top: 1px solid var(--hair); scroll-margin-top: 96px; }
.pgroup h2 { font-size: 1.3rem; margin-bottom: 18px; }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pcard { display: grid; gap: 8px; align-content: start; background: var(--surface); padding: 12px 12px 16px; }
.pcard .pimg { aspect-ratio: 1; background: var(--alt); display: grid; place-items: center; overflow: hidden; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: cover; }
.pimg-empty { font-size: .8rem; color: var(--sub); letter-spacing: .15em; }
.pcard h3 { font-size: 1rem; font-weight: 500; }
.pcard p { font-size: .85rem; color: var(--sub); }
.pcard .pprice { font-family: var(--latin); font-size: 1rem; }
.pcard .btn { justify-self: start; padding: 9px 14px; font-size: .82rem; }
.pcard.empty { border: 1px dashed var(--hair); background: transparent; }
.shop-note { margin-top: 28px; font-size: .88rem; color: var(--sub); }
@media (max-width: 960px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.pcard.empty { scroll-margin-top: 96px; }
.pcard.empty .pimg { aspect-ratio: 4 / 3; }
.pcard .pimg { aspect-ratio: 4 / 5; }
.pcard .pimg img.cut { object-fit: contain; padding: 8%; }
.shop .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .shop .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pcard .ptag { font-size: .72rem; letter-spacing: .12em; color: var(--enji); }
.pcard .btn { justify-self: stretch; justify-content: center; white-space: nowrap; letter-spacing: .06em; padding: 10px 8px; }
.pcard .btn::after { display: none; }

/* ===== v4 遊戲手感＋命格角色卡（Boss 2026-11-11）===== */
:root { --pixel: "DotGothic16", var(--latin); --gold: #B89B5E; }
/* press feel */
.btn, .zbtn, .turn, .tcard, .line-btn, .fab-line, .hud button { transition: transform .08s ease, box-shadow .08s ease; }
.btn:active, .zbtn:active, .turn:active, .line-btn:active, .fab-line:active { transform: translateY(2px); }

/* EXP bar on top */
.expbar { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 40; pointer-events: none; }
.expbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--enji), var(--gold)); transition: width .15s linear; }

/* HUD bottom-left */
.hud { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 31;
  display: flex; align-items: center; gap: 6px; }
.hud button { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  height: 38px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.hud button:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.hud-rab { width: 38px; border-radius: 50%; overflow: hidden; }
.hud-rab img { width: 100%; height: 100%; object-fit: cover; }
.hud-lv { gap: 8px; padding: 0 10px !important; font-family: var(--pixel) !important; font-size: 13px; letter-spacing: .06em; }
.hud-lv b { font-weight: 400; white-space: nowrap; }
.hud-bar { width: 52px; height: 8px; border: 1px solid var(--ink); background: var(--bg); display: block; }
.hud-bar i { display: block; height: 100%; width: 0; background: var(--enji); }
.hud-snd { width: 38px; }
.hud-snd svg { width: 20px; height: 20px; }

/* toast */
.gtoast { position: fixed; left: 50%; top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 45; transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); border: 2px solid var(--gold); padding: 10px 18px; text-align: center; min-width: 200px;
  box-shadow: 3px 3px 0 var(--gold); transition: opacity .2s, transform .2s; }
.gtoast.on { opacity: 1; transform: translate(-50%, 0); }
.gtoast b { display: block; font-family: var(--pixel); font-weight: 400; font-size: 18px; letter-spacing: .1em; }
.gtoast span { display: block; font-size: 12.5px; opacity: .85; letter-spacing: .06em; }

/* 兔兔 dialogue */
.guide { position: fixed; left: 50%; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 44; width: min(560px, calc(100% - 24px));
  transform: translate(-50%, 16px); opacity: 0; transition: opacity .25s, transform .25s; display: flex; align-items: flex-end; gap: 8px; }
.guide.on { opacity: 1; transform: translate(-50%, 0); }
.guide-ava { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); flex: none; object-fit: cover; }
.guide-bub { flex: 1; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  outline: 1px solid var(--ink); outline-offset: -6px; padding: 14px 18px 22px; position: relative; cursor: pointer; min-height: 92px; }
.guide-name { position: absolute; top: -13px; left: 12px; background: var(--enji); color: var(--on-enji); font-size: 12px; letter-spacing: .15em; padding: 1px 10px; font-weight: 500; }
.guide-txt { display: block; font-size: 15px; line-height: 1.75; font-weight: 400; }
.guide-next { position: absolute; right: 14px; bottom: 6px; font-size: 12px; color: var(--enji); animation: g-blink 1s steps(2) infinite; }
.guide.last .guide-next { display: none; }
.guide-x { position: absolute; top: -12px; right: -6px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--surface);
  color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }
@keyframes g-blink { 50% { opacity: 0; } }
@media (max-width: 860px) { .guide { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } }

/* home teaser */
.game-cta .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  background: var(--surface); padding: 22px 26px; }
.game-cta img { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--ink); }
.game-cta h2 { font-size: 1.25rem; }
.game-cta p { color: var(--sub); font-size: .92rem; }
@media (max-width: 700px) { .game-cta .wrap { grid-template-columns: auto 1fr; padding: 18px; gap: 14px; } .game-cta .btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; } }

/* 命格角色卡 */
.mg-stage { font-family: var(--pixel); font-size: 13px; letter-spacing: .14em; color: var(--enji); display: block; }
.mg-form, .mg-card, .mg-soon { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: var(--surface); padding: 28px; max-width: 640px; margin-inline: auto; }
.mg-form h2 { font-size: 1.4rem; margin: 4px 0 18px; }
.mg-form label { display: block; font-size: .9rem; color: var(--sub); margin-bottom: 16px; }
.mg-form input, .mg-form select { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--ink); padding: 10px 12px; border-radius: 0; min-height: 46px; }
.mg-form .btn { width: 100%; text-align: center; font-family: var(--pixel); letter-spacing: .14em; }
.mg-err { color: var(--enji); font-size: .88rem; margin-top: 10px; }
.mg-note { font-size: .8rem; color: var(--sub); margin-top: 12px; line-height: 1.7; }
.mg-result { margin-top: 40px; scroll-margin-top: 90px; }
.mg-result.pop .mg-card { animation: mg-pop .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes mg-pop { from { transform: scale(.92); opacity: 0; } }
.mg-card { border-color: var(--c); box-shadow: 6px 6px 0 var(--c); background: linear-gradient(var(--tint), var(--surface) 60%); color: #232222; }
.mg-hero { display: flex; align-items: center; gap: 20px; margin: 14px 0 10px; }
.mg-big { font-family: var(--mincho); font-weight: 700; font-size: 104px; line-height: 1; color: var(--c); }
.mg-elem { font-size: .9rem; color: var(--c); letter-spacing: .12em; font-weight: 500; }
.mg-hero h2 { font-size: 2rem; letter-spacing: .1em; }
.mg-quote { font-family: var(--mincho); font-size: 1.05rem; margin: 6px 0 4px; }
.mg-quote small { font-size: .78rem; color: #6D6966; margin-left: 6px; }
.mg-plain { margin-bottom: 16px; }
.mg-stats { margin: 0 0 20px; border-top: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.mg-stats div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.mg-stats dt { color: var(--c); font-weight: 500; }
.mg-stats dd { margin: 0; }
.mg-stats .skill b { color: var(--c); font-weight: 500; margin-right: 4px; }
.mg-sub { display: block; font-weight: 500; margin-bottom: 8px; }
.mg-bar { display: grid; grid-template-columns: 26px 1fr 22px; align-items: center; gap: 10px; margin: 6px 0; }
.mg-bar b { color: var(--c); font-weight: 500; }
.mg-bar em { font-style: normal; font-family: var(--pixel); color: #6D6966; }
.mg-bar .segs { display: flex; gap: 4px; }
.mg-bar .segs i { flex: 1; height: 14px; background: rgba(35,34,34,.1); }
.mg-bar .segs i.on { background: var(--c); }
.mg-card .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.mg-card .btn { flex: 1 1 180px; text-align: center; }
.mg-cta { font-size: .88rem; color: #6D6966; margin-top: 16px; }
.mg-cta a { color: var(--enji); }
.mg-soon { margin-top: 40px; display: grid; gap: 14px; opacity: .9; }
.mg-soon div { border: 1.5px dashed var(--hair); padding: 14px 16px; }
.mg-soon h3 { font-size: 1.05rem; }
.mg-soon p { font-size: .88rem; color: var(--sub); }
.mg-modal { position: fixed; inset: 0; z-index: 60; background: rgba(20,19,18,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mg-modal-in { background: var(--surface); border: 2px solid var(--ink); padding: 16px; max-width: 420px; width: 100%; max-height: 100%; overflow: auto; text-align: center; }
.mg-modal-in img { width: 100%; height: auto; margin-bottom: 10px; }
.mg-modal-in p { font-size: .86rem; color: var(--sub); }
.mg-modal-in .btns { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
@media (max-width: 560px) { .mg-form, .mg-card, .mg-soon { padding: 20px; box-shadow: 4px 4px 0 var(--ink); } .mg-card { box-shadow: 4px 4px 0 var(--c); } .mg-big { font-size: 84px; } .mg-hero h2 { font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .guide, .gtoast { transition: none; } .guide-next { animation: none; } .mg-result.pop .mg-card { animation: none; } }

/* 雲淨堂地圖 */
.map-sec { padding-block: 40px 24px; }
.map-head { text-align: center; margin-bottom: 18px; }
.map-head h2 { font-size: 1.7rem; letter-spacing: .2em; }
.map-head p { color: var(--sub); font-size: .92rem; }
.map { position: relative; max-width: 520px; margin-inline: auto; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.map > img:first-child { width: 100%; height: auto; }
.spot { position: absolute; left: var(--x); top: calc(var(--y) + 3.2%); transform: translate(-50%, 0); font: inherit; cursor: pointer;
  background: color-mix(in srgb, #FFFFFF 90%, transparent); color: #232222; border: 1.5px solid #232222; box-shadow: 2px 2px 0 #232222;
  padding: 3px 9px 4px; line-height: 1.3; text-align: center; white-space: nowrap; }
.spot b { display: block; font-family: var(--mincho); font-weight: 700; font-size: 13.5px; letter-spacing: .08em; }
.spot small { display: block; font-size: 10.5px; color: #983A3E; letter-spacing: .04em; }
.spot:hover, .spot:focus-visible { background: #232222; color: #FFFFFF; }
.spot:hover small, .spot:focus-visible small { color: #F0C9CB; }
.spot:active { transform: translate(-50%, 0) translate(2px, 2px); box-shadow: 0 0 0 #232222; }
.map-rab { position: absolute; left: var(--x); top: var(--y); width: 15%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #232222; background: #fff;
  transform: translate(-50%, -100%); transition: left .7s ease-in-out, top .7s ease-in-out; pointer-events: none; z-index: 2; }
.map-rab.hop { animation: rab-hop .35s ease-in-out 2; }
@keyframes rab-hop { 50% { transform: translate(-50%, -125%); } }
@media (max-width: 400px) { .spot b { font-size: 12px; } .spot small { font-size: 9.5px; } .spot { padding: 2px 7px 3px; } }
@media (prefers-reduced-motion: reduce) { .map-rab { transition: none; } .map-rab.hop { animation: none; } }

/* 命格角色人物圖（Boss 11/11）＋性別選擇 */
.mg-art { margin: 14px -28px 6px; aspect-ratio: 4 / 5; overflow: hidden; border-block: 1.5px solid var(--c); background: var(--tint); }
.mg-art img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mg-sex { border: 0; padding: 0; margin: 0 0 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.mg-sex legend { font-size: .9rem; color: var(--sub); margin-bottom: 6px; padding: 0; width: 100%; }
.mg-sex label { margin: 0 !important; flex: 1; display: flex !important; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--ink);
  min-height: 46px; color: var(--ink) !important; cursor: pointer; background: var(--bg); }
.mg-sex label:has(input:checked) { background: var(--ink); color: var(--bg) !important; }
.mg-sex input { width: auto !important; min-height: 0 !important; margin: 0 !important; accent-color: var(--enji); }
@media (max-width: 560px) { .mg-art { margin-inline: -20px; } }

/* ===== 分頁像素電動風 .rpg（Boss 2026-11-11 晚：「每一個的分頁內容也像這樣電動感」）=====
   顏色取自像素地圖：夜空藍框、奶油底、金邊、朱紅按鈕。 */
.rpg { --r-ink: #2B2D52; --r-win: #FFFBF0; --r-gold: #E9B949; --r-red: #C8463D; --r-sub: #5E5A78; --r-bg: #EEE8F8; --r-line: #D9CFEE;
  background: linear-gradient(#E6DDF6, var(--r-bg) 420px); color: var(--r-ink);
  --coin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%237A5A12' d='M2 0h4v1h1v1h1v4H7v1H6v1H2V7H1V6H0V2h1V1h1z'/%3E%3Cpath fill='%23F5C542' d='M2 1h4v1h1v4H6v1H2V6H1V2h1z'/%3E%3Cpath fill='%23FFF1A8' d='M2 2h1v3H2zM3 1h2v1H3z'/%3E%3Cpath fill='%23B8860B' d='M4 3h1v2H4z'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rpg { --r-ink: #F3EEDC; --r-win: #24263F; --r-sub: #BDB6D8; --r-bg: #1B1C30; --r-line: #3B3D5E; background: linear-gradient(#232440, var(--r-bg) 420px); } }
:root[data-theme="dark"] .rpg { --r-ink: #F3EEDC; --r-win: #24263F; --r-sub: #BDB6D8; --r-bg: #1B1C30; --r-line: #3B3D5E; background: linear-gradient(#232440, var(--r-bg) 420px); }

/* the window: navy frame, gold inner line, notched pixel corners */
.rpg .fee-group, .rpg .detail, .rpg .split .txt, .rpg .feature .txt, .rpg .pcard, .rpg .card, .rpg .prose, .rpg .ritual-list .fee-row,
.rpg .vslide, .rpg .loc-txt, .rpg .shop-note {
  background: var(--r-win); color: var(--r-ink); border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px var(--r-gold), 5px 5px 0 rgba(43,45,82,.28);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.rpg p, .rpg li, .rpg dd { color: var(--r-ink); }
.rpg .fee-row p, .rpg .card p, .rpg .fee-group .head p, .rpg .steps li span, .rpg .page-title p, .rpg .shop-note, .rpg .prose .meta { color: var(--r-sub); }
.rpg h1, .rpg h2, .rpg h3 { color: var(--r-ink); }

/* location banner */
.rpg .loc { padding-block: 36px 28px; }
.rpg .loc .wrap { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
.rpg .loc-pic { margin: 0; border: 3px solid #2B2D52; box-shadow: 5px 5px 0 rgba(43,45,82,.28); background: #CDBDEB; aspect-ratio: 1; overflow: hidden; }
.rpg .loc-pic img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.rpg .loc-txt { padding: 20px 24px 22px; display: grid; gap: 6px; position: relative; }
.rpg .loc-kicker { font-family: var(--pixel); color: var(--r-red); font-size: 14px; letter-spacing: .12em; }
.rpg .loc-kicker::before { content: "▶ "; animation: g-blink 1s steps(2) infinite; }
.rpg .loc h1 { font-size: clamp(1.6rem, 4.4vw, 2.4rem); letter-spacing: .1em; }
.rpg .loc p { color: var(--r-sub); font-size: .95rem; }
.rpg .loc .crumb { margin: 0; color: var(--r-sub); }
.rpg .loc-back { justify-self: start; margin-top: 6px; font-family: var(--pixel); font-size: 13px; color: var(--r-ink); text-decoration: none; border: 2px solid #2B2D52; padding: 3px 10px; background: var(--r-bg); }
.rpg .loc-back:hover { background: #2B2D52; color: #FFFBF0; }
@media (max-width: 640px) { .rpg .loc .wrap { grid-template-columns: 1fr; gap: 0; } .rpg .loc-pic { width: 58%; justify-self: center; margin-bottom: -14px; position: relative; z-index: 1; } .rpg .loc-txt { padding-top: 28px; text-align: center; justify-items: center; } .rpg .loc-back { justify-self: center; } }

/* section headings: pixel font with a cursor */
.rpg .sec-head { margin-bottom: 28px; align-items: center; }
.rpg .sec-head .en { font-family: var(--pixel); color: var(--r-red); letter-spacing: .14em; }
.rpg .sec-head h2::before { content: "▶ "; color: var(--r-red); font-size: .8em; }
.rpg .sec-head .line { height: 4px; margin-bottom: 0; background: repeating-linear-gradient(90deg, #2B2D52 0 8px, transparent 8px 14px); opacity: .5; }
.rpg .sec { padding-block: 48px; }

/* service lists = item menus */
.rpg .svc .wrap > .fee-group { padding: 26px 24px; margin-bottom: 24px; border-top: 3px solid #2B2D52; }
.rpg .fee-group .head h2 { font-size: 1.3rem; }
.rpg .fee-row { padding: 12px 10px 12px 26px; border-bottom: 2px dotted var(--r-line); position: relative; }
.rpg .fee-row h3 { font-weight: 500; }
.rpg .fee-row::before { content: "▶"; position: absolute; left: 6px; top: 13px; font-size: 12px; color: var(--r-red); opacity: 0; }
.rpg .fee-row:hover::before { opacity: 1; animation: g-blink 1s steps(2) infinite; }
.rpg .fee-row:hover { background: color-mix(in srgb, var(--r-gold) 14%, transparent); }
.rpg .amt, .rpg .pprice, .rpg .price b, .rpg .card .fee { font-family: var(--pixel) !important; color: #B07A0B; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rpg .amt, :root:not([data-theme="light"]) .rpg .pprice, :root:not([data-theme="light"]) .rpg .price b { color: var(--r-gold); } }
.rpg .amt::before, .rpg .pprice::before, .rpg .price b::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--coin) center / contain no-repeat; image-rendering: pixelated; }
.rpg .fee-row a.more { color: var(--r-red); font-family: var(--pixel); }
.rpg .cat-nav a { font-family: var(--pixel); border: 2px solid #2B2D52 !important; background: var(--r-win) !important; color: var(--r-ink) !important; box-shadow: 3px 3px 0 #2B2D52; border-radius: 0 !important; }
.rpg .cat-nav a:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #2B2D52; }
.rpg .ritual-list { gap: 16px !important; }
.rpg .ritual-list .fee-row { padding: 16px 16px 16px 30px; border-bottom: 0; }

/* detail blocks (流年 etc.) */
.rpg .detail { padding: 22px 24px; margin-bottom: 18px; border-bottom: 3px solid #2B2D52; }
.rpg .detail h2 { font-size: 1.15rem; }
.rpg .detail h2::before { content: "◆ "; color: var(--r-gold); }
.rpg .steps li { border-bottom: 2px dotted var(--r-line); }
.rpg .steps li::before { content: "Q" counter(s); font-family: var(--pixel); color: var(--r-red); }
.rpg .qa summary { font-weight: 500; cursor: pointer; }
.rpg .qa summary::marker { content: "？ "; color: var(--r-red); }

/* photo + text blocks: framed portrait + status window */
.rpg .split .wrap, .rpg .feature .wrap { gap: 32px; }
.rpg .feature { background: transparent; }
.rpg .split figure, .rpg .feature figure { border: 3px solid #2B2D52; box-shadow: 5px 5px 0 rgba(43,45,82,.28); background: var(--r-win); padding: 6px; }
.rpg .split .txt, .rpg .feature .txt { padding: 24px 26px; max-width: none; }
.rpg .split .txt .en, .rpg .feature .txt .en { font-family: var(--pixel); color: var(--r-red); letter-spacing: .14em; }
.rpg .facts { display: grid !important; gap: 10px; }
.rpg .facts div { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: 10px; border: 2px solid #2B2D52; padding: 8px 12px; background: var(--r-bg); }
.rpg .facts b { font-family: var(--pixel); color: var(--r-red); font-size: 1.4rem; font-weight: 400; }

/* shop = item slots */
.rpg .pgrid { gap: 22px !important; }
.rpg .pcard { padding: 14px 14px 18px; }
.rpg .pcard .pimg { border: 2px solid #2B2D52; background: var(--r-bg); }
.rpg .pcard .ptag { font-family: var(--pixel); color: var(--r-red); }
.rpg .shop-note { padding: 14px 18px; margin-top: 24px; }

/* column cards + articles = notice board */
.rpg .cards { gap: 22px !important; }
.rpg .card { padding: 18px 20px; }
.rpg .card .no { font-family: var(--pixel); color: var(--r-red); }
.rpg .card h3 { border-bottom: 2px dotted var(--r-line); }
.rpg .card:hover { transform: translateY(-3px); }
.rpg .prose { padding: 26px clamp(18px, 4vw, 40px); }
.rpg .prose h2 { border-left: 6px solid var(--r-gold); padding-left: 12px; }
.rpg .prose .tip, .rpg .prose .note { border: 2px dashed var(--r-line); background: var(--r-bg); padding: 10px 14px; }
.rpg .vslide { padding: 18px 20px; }

/* pixel buttons */
.rpg .btn { font-family: var(--pixel); letter-spacing: .1em; border: 3px solid #2B2D52 !important; border-radius: 0; background: var(--r-win); color: var(--r-ink); box-shadow: 4px 4px 0 #2B2D52; padding: 11px 20px; }
.rpg .btn::after { content: "▶"; font-family: var(--pixel); }
.rpg .btn:hover { background: var(--r-gold); color: #2B2D52; transform: none; box-shadow: 4px 4px 0 #2B2D52; }
.rpg .btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #2B2D52; }
.rpg .btn.fill { background: var(--r-red); color: #FFFBF0; }
.rpg .btn.fill:hover { background: #A8352E; color: #FFFBF0; }
@media (prefers-reduced-motion: reduce) { .rpg .loc-kicker::before, .rpg .fee-row:hover::before { animation: none; } .rpg .card:hover { transform: none; } }
@media (max-width: 560px) { .rpg .fee-row { grid-template-columns: 1fr; } .rpg .fee-row .amt { grid-row: auto; grid-column: 1; } .rpg .svc .wrap > .fee-group { padding: 20px 16px; } }
.band .btn.fill::after { background: none; }

/* ===== 11/11 晚 Boss：首頁＝地圖＋地點入口（不直接放內容），塔羅／影片／卡在哪／見證搬進分頁 ===== */
.nw { white-space: nowrap; }
.rpg.home .map-sec { padding-block: 32px 8px; }
.rpg .map-head h2 { color: var(--r-ink); }
.rpg .map-head p { color: var(--r-sub); }

/* the entrances: one window per place, a gold path runs between them like on the map */
.entries { position: relative; isolation: isolate; display: grid; gap: 26px; max-width: 720px; margin-inline: auto; }
.entries::before { content: ""; position: absolute; z-index: -1; left: calc(21% - 3px); top: 30px; bottom: 30px; width: 6px;
  background: repeating-linear-gradient(#E9B949 0 10px, transparent 10px 16px); }
.entry { position: relative; display: grid; grid-template-columns: 42% 1fr; gap: 0; align-items: stretch;
  background: var(--r-win); color: var(--r-ink); border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px var(--r-gold);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  transition: transform .2s steps(2); }
.entry-pic { margin: 0; position: relative; overflow: hidden; background: #CDBDEB; border-right: 3px solid #2B2D52; }
.entry-pic img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; image-rendering: pixelated; display: block; transition: transform .35s steps(3); }
.entry-txt { padding: 14px 16px 16px; display: grid; gap: 4px; align-content: center; min-width: 0; }
.entry-kick { font-family: var(--pixel); font-size: 12px; letter-spacing: .12em; color: var(--r-red); }
.entry h3 { font-size: 1.2rem; letter-spacing: .1em; color: var(--r-ink); }
.entry p { font-size: .86rem; line-height: 1.6; color: var(--r-sub); }
.entry-acts { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 8px; }
.rpg .entry .go { padding: 7px 14px; font-size: .85rem; box-shadow: 3px 3px 0 #2B2D52; }
.entry .go::before { content: ""; position: absolute; inset: 0; }          /* the whole window is the door */
.entry-sub { position: relative; z-index: 1; font-family: var(--pixel); font-size: 12px; letter-spacing: .06em; color: var(--r-ink); text-decoration: none;
  border: 2px solid #2B2D52; padding: 3px 8px; background: var(--r-bg); }
.entry-sub:hover { background: #2B2D52; color: #FFFBF0; }
.entry:hover { transform: translateY(-3px); }
.entry:hover .entry-pic img { transform: scale(1.08); }
.entry:hover .entry-kick::before { content: "▶ "; animation: g-blink 1s steps(2) infinite; }
.entry.locked .entry-pic img { filter: grayscale(.85) brightness(.9); }
.entry.locked .entry-pic::after { content: "整修中"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg);
  font-family: var(--mincho); font-weight: 700; letter-spacing: .2em; font-size: 15px; color: #FFFBF0; background: var(--r-red); border: 2px solid #2B2D52; padding: 3px 10px; white-space: nowrap; }
.rpg .entry.locked .go { background: var(--r-line); color: var(--r-sub); cursor: pointer; }
.rpg .entry.locked .go::after { content: none; }
@media (max-width: 400px) { .entry { grid-template-columns: 38% 1fr; } .entries::before { left: calc(19% - 3px); } .entry-txt { padding: 12px 12px 14px; } .entry p { font-size: .82rem; } }
@media (prefers-reduced-motion: reduce) { .entry, .entry-pic img { transition: none; } .entry:hover { transform: none; } .entry:hover .entry-pic img { transform: none; } }

/* about: the video + 「傘要不要帶」 is now the first window after the gate */
.rpg .hero .wrap { padding-block: 8px 24px; gap: 28px; align-items: center; }
.rpg .hero-copy { background: var(--r-win); border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px var(--r-gold); padding: 28px 26px;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.rpg .hero-copy .en { font-family: var(--pixel); color: var(--r-red); letter-spacing: .1em; }
.rpg .hero-photo { border: 3px solid #2B2D52; background: var(--r-win); padding: 6px; box-shadow: 5px 5px 0 rgba(43,45,82,.28); }
.rpg .hero .ln-link { color: var(--r-red); font-family: var(--pixel); }
@media (max-width: 860px) { .rpg .hero-copy { padding: 22px 20px; } }

/* services: 你現在卡在哪 = quest board */
.rpg .concerns-sec { background: transparent; padding-block: 8px 24px; }
.rpg .concern { background: var(--r-win) !important; color: var(--r-ink) !important; border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px var(--r-gold);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); transition: transform .2s steps(2); }
.rpg .concern:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 3px var(--r-gold); }
.rpg .concern .no { font-family: var(--pixel); color: var(--r-red); opacity: 1; letter-spacing: .1em; }
.rpg .concern .no::before { content: "QUEST "; }
.rpg .concern p { color: var(--r-sub); opacity: 1; }
.rpg .concern .to { font-family: var(--pixel); font-size: 12px; background: var(--r-bg) !important; color: var(--r-ink); border: 2px solid #2B2D52; }
.rpg .concern .to::after { content: " ▶"; font-family: var(--pixel); }

/* contact: 客人怎麼說 = NPC talk boxes */
.rpg .voices { background: transparent; padding-top: 8px; }
.rpg .vslide.real { border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px var(--r-gold); position: relative; }
.rpg .vslide.real .q::before { content: none; }
.rpg .vslide.real .q { padding-top: 4px; }
.rpg .vslide .ph { font-family: var(--pixel); background: #2B2D52; color: #FFFBF0; letter-spacing: .1em; }
.rpg .vslide::after { content: "▼"; position: absolute; right: 16px; bottom: 10px; font-size: 12px; color: var(--r-red); animation: g-blink 1s steps(2) infinite; }
.rpg .vnav button { border: 2px solid #2B2D52; background: var(--r-win); color: var(--r-ink); box-shadow: 3px 3px 0 #2B2D52; font-family: var(--pixel); border-radius: 0; }
.rpg .vnav button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #2B2D52; }
.rpg .vdots button { border-radius: 0; border: 2px solid #2B2D52; width: 11px; height: 11px; }
.rpg .vdots button[aria-current="true"] { background: var(--r-red); border-color: #2B2D52; }

/* tarot pavilion page: night sky stays, cards and the reading go pixel */
.rpg .tarot { padding-block: 40px 56px; }
.rpg .tarot p { color: var(--sub); }
.rpg .tarot h3 { color: #F7E7C2; }
.rpg .tarot::before { opacity: 1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' shape-rendering='crispEdges'%3E%3Cg fill='%23F6DFA6'%3E%3Crect x='8' y='9' width='1' height='3'/%3E%3Crect x='7' y='10' width='3' height='1'/%3E%3Crect x='44' y='48' width='1' height='1'/%3E%3Crect x='52' y='37' width='1' height='3'/%3E%3Crect x='51' y='38' width='3' height='1'/%3E%3C/g%3E%3Cg fill='%23FFFFFF'%3E%3Crect x='30' y='6' width='1' height='1'/%3E%3Crect x='50' y='20' width='1' height='1'/%3E%3Crect x='20' y='40' width='1' height='1'/%3E%3Crect x='5' y='52' width='1' height='1'/%3E%3Crect x='38' y='28' width='1' height='1'/%3E%3Crect x='24' y='19' width='1' height='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px; image-rendering: pixelated; }
.rpg .tcard .back { border-radius: 0; border: 3px solid #E9B949; outline: 2px solid #2B2D52; outline-offset: -8px; box-shadow: 4px 4px 0 #0B0A12; }
.rpg .tcard:hover .back, .rpg .tcard:focus-visible .back { box-shadow: 0 0 0 3px #FFFBF0, 4px 4px 0 3px #0B0A12; }
.rpg .tcard .front { border-radius: 0; border: 3px solid #2B2D52; outline: 2px solid #E9B949; outline-offset: -7px; background: #FFFBF0; box-shadow: 4px 4px 0 #0B0A12, 0 0 30px rgba(232,196,126,.5); }
.rpg .tcard .front .num, .rpg .tcard .front .enm { font-family: var(--pixel); }
.rpg .tarot .reading { background: #1E1B3A; border: 3px solid #F3EEDC; box-shadow: inset 0 0 0 3px #2B2D52, 4px 4px 0 #0B0A12; padding: 20px 22px 26px;
  width: min(100%, 34em); min-height: 0; position: relative; }
.rpg .tarot .reading::after { content: "▼"; position: absolute; right: 14px; bottom: 6px; font-size: 12px; color: #E9B949; animation: g-blink 1s steps(2) infinite; }
.rpg .tarot .reading .kw { font-family: var(--pixel); letter-spacing: .14em; }
.rpg .tarot .reading .linkish { color: #CBBFAE; }
@media (prefers-reduced-motion: reduce) { .rpg .vslide::after, .rpg .tarot .reading::after, .entry:hover .entry-kick::before { animation: none; } }

/* reservation band at the bottom of every page: night-blue pixel sign */
.band { background: #2B2D52; color: #FFFBF0; position: relative; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .8; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' shape-rendering='crispEdges'%3E%3Cg fill='%23F6DFA6'%3E%3Crect x='8' y='9' width='1' height='3'/%3E%3Crect x='7' y='10' width='3' height='1'/%3E%3C/g%3E%3Cg fill='%23FFFFFF'%3E%3Crect x='30' y='6' width='1' height='1'/%3E%3Crect x='50' y='30' width='1' height='1'/%3E%3Crect x='18' y='44' width='1' height='1'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 240px 240px; image-rendering: pixelated; }
.band .en { font-family: var(--pixel); color: #E9B949; letter-spacing: .16em; }
.band h2 { color: #FFFBF0; }
.band p { color: #D9D3EE; }
.band .btn.fill { font-family: var(--pixel); letter-spacing: .1em; background: #C8463D; color: #FFFBF0; border: 3px solid #FFFBF0; box-shadow: 4px 4px 0 #0B0A12; border-radius: 0; padding: 12px 22px; }
.band .btn.fill::after { content: "▶"; width: auto; height: auto; background: none; }
.band .btn.fill:hover { background: #A8352E; }
.band .btn.fill:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #0B0A12; }
.band .id { font-family: var(--pixel); color: #E9B949; }
/* pressing a .btn moves it (transform), which would shrink the window-sized click area mid-click → press the whole window instead */
.rpg .entry .go:active { transform: none; box-shadow: 3px 3px 0 #2B2D52; }
.entry:active { transform: translate(2px, 2px); }

/* 11/11 晚 Boss：拿掉左下角 LV 等級條和右下角 LINE 浮動鈕（太擠）；音效開關改成右上角小喇叭 */
.hud, .expbar, .fab-line { display: none !important; }
@media (max-width: 860px) { .site-foot { padding-bottom: 24px; } .guide { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } }
.snd-btn { flex: none; width: 34px; height: 34px; padding: 6px; border: 0; background: none; color: var(--sub); cursor: pointer; display: inline-grid; place-items: center; }
.snd-btn svg { width: 100%; height: 100%; }
.snd-btn[aria-pressed="false"] { opacity: .55; }
.snd-btn:hover { color: var(--ink); }
.menu + .snd-btn { margin-left: 4px; }
.rpg .loc-pic img[src*="/role/"] { object-position: 50% 8%; }
.rpg .loc-pic video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== NPC 對話橫幅（11/11 晚 Boss：「我想要有漂亮的框，然後有一點像 NPC 對話的那種互動動畫」）===== */
.rpg .npc { padding-block: 40px 30px; }
.rpg .npc .wrap { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 48px; align-items: center; max-width: 920px; }
.npc-frame { position: relative; margin: 0; padding: 8px; background: #2B2D52; aspect-ratio: 1;
  box-shadow: 0 0 0 3px #E9B949, 0 0 0 5px #FFF1B8, 0 0 0 9px #B07A0B, 0 0 0 12px #2B2D52, 10px 10px 0 12px rgba(43,45,82,.25); }
.npc-frame::before { content: ""; position: absolute; inset: 3px; border: 2px solid #E9B949; z-index: 1; pointer-events: none; }
.npc-frame img, .npc-frame video { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }
.npc-frame img[src*="/role/"] { object-position: 50% 8%; }
.npc-frame .gem { position: absolute; z-index: 2; width: 20px; height: 20px; background: #C8463D; border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px #E9B949; transform: rotate(45deg); }
.npc-frame .gem::after { content: ""; position: absolute; left: 4px; top: 4px; width: 3px; height: 3px; background: #FFFBF0; animation: g-blink 1.6s steps(2) infinite; }
.npc-frame .g0 { top: -18px; left: -18px; } .npc-frame .g1 { top: -18px; right: -18px; } .npc-frame .g2 { bottom: -18px; left: -18px; } .npc-frame .g3 { bottom: -18px; right: -18px; }
.npc-frame .g1::after { animation-delay: .4s; } .npc-frame .g2::after { animation-delay: .8s; } .npc-frame .g3::after { animation-delay: 1.2s; }
.npc-plate { position: absolute; z-index: 3; left: 50%; bottom: -26px; transform: translateX(-50%); white-space: nowrap; font-family: var(--mincho); font-weight: 700; font-size: 15px; letter-spacing: .18em;
  color: #FFFBF0; background: #C8463D; border: 3px solid #2B2D52; padding: 4px 14px 4px 17px; box-shadow: 3px 3px 0 #2B2D52; }
.npc-plate::before { content: "◆ "; color: #E9B949; font-size: 11px; } .npc-plate::after { content: " ◆"; color: #E9B949; font-size: 11px; }
.npc-side { display: grid; gap: 6px; min-width: 0; }
.npc-side .crumb { color: var(--r-sub); font-size: .82rem; }
.npc-side h1 { font-size: clamp(1.5rem, 4.2vw, 2.2rem); letter-spacing: .1em; color: var(--r-ink); }
.npc-box { position: relative; display: block; width: 100%; margin-top: 18px; text-align: left; font: inherit; cursor: pointer; min-height: 7.4em;
  background: #1E1B3A; color: #F3EEDC; border: 3px solid #F3EEDC; padding: 22px 20px 28px;
  box-shadow: inset 0 0 0 3px #2B2D52, 0 0 0 3px #2B2D52, 7px 7px 0 3px rgba(43,45,82,.28); }
.npc-name { position: absolute; top: -16px; left: 14px; background: #E9B949; color: #2B2D52; border: 2px solid #2B2D52; padding: 2px 12px;
  font-family: var(--mincho); font-weight: 700; font-size: 13px; letter-spacing: .14em; }
.npc-txt { display: block; font-size: 1rem; line-height: 1.85; min-height: 3.7em; }
.npc-next { position: absolute; right: 14px; bottom: 7px; color: #E9B949; font-size: 12px; animation: g-blink 1s steps(2) infinite; }
.npc-box.last .npc-next { display: none; }
.npc-choices { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; transition: opacity .25s, transform .25s; }
.npc-choices.wait:not(.on) { opacity: 0; visibility: hidden; transform: translateY(6px); }
.npc-opt { font-family: var(--pixel); font-size: 15px; letter-spacing: .08em; text-decoration: none; color: var(--r-ink); background: var(--r-win);
  border: 3px solid #2B2D52; box-shadow: 3px 3px 0 #2B2D52; padding: 8px 16px; }
.npc-opt:first-child { background: var(--r-red); color: #FFFBF0; }
.npc-opt:hover, .npc-opt:focus-visible { background: var(--r-gold); color: #2B2D52; }
.npc-opt:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #2B2D52; }
#mgForm { scroll-margin-top: 90px; }
@media (max-width: 700px) {
  .rpg .npc .wrap { grid-template-columns: 1fr; gap: 44px; }
  .npc-frame { width: min(70%, 270px); justify-self: center; }
  .npc-side .crumb, .npc-side .loc-kicker, .npc-side h1 { text-align: center; }
  .npc-choices { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .npc-frame .gem::after, .npc-next { animation: none; } .npc-choices { transition: none; } }
/* the header speaker made the 10-item menu wrap on computers → keep each item on one line */
.gnav a { white-space: nowrap; }
@media (max-width: 1240px) { .gnav { gap: 18px; } .site-head .wrap { gap: 16px; } }
.logo { flex: none; white-space: nowrap; }
@media (max-width: 1180px) { .gnav, .line-btn { display: none; } .menu { display: block; } }
/* every place has its own NPC (11/11 晚)：寶石顏色＝角色的五行色、圖往下對齊到臉 */
.npc-frame .gem { background: var(--gem, #C8463D); }
.npc-frame img[src*="/role/"] { object-position: 50% var(--pos, 8%); }
.loc-mini { display: inline-block; width: 24px; height: 24px; object-fit: cover; image-rendering: pixelated; border: 2px solid #2B2D52; vertical-align: -6px; margin-right: 6px; }

/* ===== 捏角色試玩版（11/11 晚 Boss：「讓他們創造自己的角色，十天干的基本樣貌在，換髮型、眼睛、眉毛」）===== */
.rpg .av { padding-top: 12px; }
.av .wrap { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 44px; align-items: start; max-width: 920px; }
.av-stage { display: grid; gap: 26px; justify-items: center; }
.av-frame { margin: 12px 0 0; padding: 14px; background: linear-gradient(#CDBDEB, #FFF6E4);
  box-shadow: 0 0 0 3px #E9B949, 0 0 0 5px #FFF1B8, 0 0 0 9px #B07A0B, 0 0 0 12px #2B2D52, 10px 10px 0 12px rgba(43,45,82,.25); }
.av-frame canvas { display: block; width: 224px; height: 280px; image-rendering: pixelated; animation: av-bob 1.2s steps(2) infinite; }
@keyframes av-bob { 50% { transform: translateY(-4px); } }
.av-name { display: grid; gap: 6px; justify-items: center; font-family: var(--pixel); color: var(--r-red); font-size: 13px; letter-spacing: .1em; }
.av-name input { font-family: var(--mincho); font-weight: 700; font-size: 18px; letter-spacing: .12em; text-align: center; width: 220px; padding: 8px 10px;
  background: #C8463D; color: #FFFBF0; border: 3px solid #2B2D52; box-shadow: 3px 3px 0 #2B2D52; border-radius: 0; }
.av-name input::placeholder { color: rgba(255, 251, 240, .72); }
.av-panel { background: var(--r-win); color: var(--r-ink); border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px var(--r-gold); padding: 18px 18px 20px;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.av-opts { display: grid; gap: 10px; }
.av-row { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 2px dotted var(--r-line); }
.av-lab { font-family: var(--pixel); color: var(--r-red); font-size: 14px; letter-spacing: .06em; }
.av-pick { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 6px; }
.av-arr { width: 40px; height: 40px; padding: 0; border: 3px solid #2B2D52; background: var(--r-bg); color: var(--r-ink); box-shadow: 2px 2px 0 #2B2D52; cursor: pointer; font-size: 13px; }
.av-arr:active { transform: translate(2px, 2px); box-shadow: none; }
.av-val { text-align: center; font-weight: 500; color: var(--r-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-sw { display: flex; flex-wrap: wrap; gap: 9px; }
.av-sw button { width: 34px; height: 34px; padding: 0; background: var(--c); border: 3px solid #2B2D52; box-shadow: 2px 2px 0 #2B2D52; cursor: pointer; }
.av-sw button[aria-checked="true"] { outline: 3px solid var(--r-red); outline-offset: 2px; }
.av-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.rpg .av-acts .btn { padding: 10px 16px; }
.av .mg-note { margin-top: 14px; font-size: .82rem; color: var(--r-sub); }
@media (max-width: 760px) { .av .wrap { grid-template-columns: 1fr; gap: 26px; } .av-acts { justify-content: center; } .av-panel { padding: 16px 14px 18px; } }
@media (prefers-reduced-motion: reduce) { .av-frame canvas { animation: none; } }
/* the player's own character walks on the map instead of the rabbit */
.map-rab.me { border: 0; border-radius: 0; background: none; width: 10%; aspect-ratio: 32 / 40; image-rendering: pixelated; filter: drop-shadow(2px 3px 0 rgba(43, 45, 82, .35)); }
/* phones: keep the character in view while you change things below it */
.av-panel .av-name { margin-bottom: 14px; }
@media (max-width: 760px) {
  .av-stage { position: sticky; top: 72px; z-index: 3; padding-block: 8px 18px; margin-inline: -16px; background: var(--r-bg); box-shadow: 0 6px 10px -6px rgba(43,45,82,.25); }
  .av-frame { margin-top: 10px; padding: 8px; }
  .av-frame canvas { width: 128px; height: 160px; }
}
.av-tg { display: flex; gap: 10px; }
.av-tg button { flex: 1; min-height: 40px; font: inherit; font-weight: 500; color: var(--r-ink); background: var(--r-bg); border: 3px solid #2B2D52; box-shadow: 2px 2px 0 #2B2D52; cursor: pointer; }
.av-tg button[aria-checked="true"] { background: var(--r-red); color: #FFFBF0; }

/* ===== 背包（11/11 晚：完成任務拿衣服、裝備）===== */
.av-tg button.locked { color: var(--r-sub); background: repeating-linear-gradient(45deg, var(--r-bg) 0 6px, var(--r-line) 6px 8px); }
.av-bagbox { margin-top: 20px; padding-top: 14px; border-top: 3px solid #2B2D52; display: grid; gap: 8px; }
.av-bag { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.av-bag li { display: grid; gap: 2px; padding: 8px 10px; border: 2px solid #2B2D52; background: var(--r-bg); color: var(--r-sub); }
.av-bag li b { font-weight: 500; color: var(--r-ink); }
.av-bag li span { font-size: .82rem; }
.av-bag li.got { background: color-mix(in srgb, var(--r-gold) 22%, var(--r-win)); }
.av-bag li.got b { color: #8A5A0B; }

/* ===== 八字修行之路：答題戰鬥（11/11 晚）===== */
.qb-sec { padding-top: 8px; }
.qb-stages { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.qb-stages li { display: grid; gap: 2px; padding: 8px 6px; text-align: center; border: 2px solid #2B2D52; background: var(--r-bg); color: var(--r-sub); font-size: .8rem; }
.qb-stages b { font-family: var(--pixel); font-weight: 400; font-size: 11px; letter-spacing: .06em; color: var(--r-sub); }
.qb-stages span { font-weight: 500; color: var(--r-ink); line-height: 1.35; }
.qb-stages small { font-size: 11px; }
.qb-stages li.open { background: var(--r-red); border-color: #2B2D52; box-shadow: 3px 3px 0 #2B2D52; }
.qb-stages li.open b, .qb-stages li.open span, .qb-stages li.open small { color: #FFFBF0; }
.qb { max-width: 640px; margin-inline: auto; scroll-margin-top: 84px; }
.qb-start, .qb-end, .qb-box { background: var(--r-win); color: var(--r-ink); border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px var(--r-gold); padding: 22px 20px; display: grid; gap: 10px; justify-items: center; text-align: center;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.qb-start p, .qb-end p { color: var(--r-sub); font-size: .92rem; }
.qb-arena { position: relative; height: 300px; border: 3px solid #2B2D52; overflow: hidden; margin-bottom: 14px;
  background: linear-gradient(#BFD9F2 0 52%, #8BC46A 52% 56%, #7AB65C 56% 100%); }
.qb-arena::before { content: ""; position: absolute; right: 8%; top: 46%; width: 44%; height: 16%; background: #6AA64E; border-radius: 50%; }
.qb-arena::after { content: ""; position: absolute; left: 4%; bottom: 6%; width: 46%; height: 14%; background: #6AA64E; border-radius: 50%; }
.qb-enemy { position: absolute; right: 6%; top: 10px; z-index: 1; display: grid; justify-items: center; gap: 4px; }
.qb-eart canvas { display: block; image-rendering: pixelated; width: 120px; height: auto; }
.qb-enemy.is-boss .qb-eart canvas { width: 140px; }
.qb-etag, .qb-mtag { display: flex; gap: 8px; align-items: center; background: #FFFBF0; border: 2px solid #2B2D52; padding: 2px 8px; font-size: .82rem; color: #2B2D52; font-weight: 500; white-space: nowrap; }
.qb-hp { display: inline-flex; gap: 2px; }
.qb-hp i { width: 10px; height: 8px; background: #D9CFEE; border: 1px solid #2B2D52; }
.qb-hp i.on { background: #C8463D; }
.qb-me { position: absolute; left: 8%; bottom: 8px; z-index: 1; display: grid; justify-items: center; gap: 4px; }
.qb-mart canvas, .qb-mart img { display: block; image-rendering: pixelated; width: 84px; height: auto; }
.qb-hearts i { font-style: normal; color: #C9C3D8; font-size: 15px; }
.qb-hearts i.on { color: #E04B5A; }
.qb-q { font-size: 1.15rem; font-weight: 500; line-height: 1.6; min-height: 1.6em; }
.qb-ans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
/* 11/12 Boss：選項太黑（深色模式底色變深、字也是深色）→ 選項固定用亮的奶油色，深淺模式都一樣 */
.qb-a { font: inherit; font-weight: 500; font-size: 1rem; line-height: 1.35; text-wrap: balance; padding: 12px 8px; color: #2B2D52; background: #FFF8E4; border: 3px solid #2B2D52; box-shadow: 3px 3px 0 #2B2D52; cursor: pointer; }
.qb-a:hover:not(:disabled) { background: #FFEFC4; }
.qb-a:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #2B2D52; }
.qb-a:disabled { cursor: default; opacity: .6; }
.qb-a.right { background: #8BC46A; color: #12301A; opacity: 1; }
.qb-a.wrong { background: #E9867E; color: #3A0E0E; opacity: 1; }
.qb-msg { color: var(--r-sub); font-size: .92rem; line-height: 1.7; }
.qb-msg b { color: var(--r-ink); margin-right: 6px; }
.qb-next::after { content: "▶"; }
.qb-loot { border: 2px dashed var(--r-gold); padding: 10px 16px; display: grid; gap: 4px; }
.qb-loot ul { list-style: none; margin: 0; padding: 0; color: #8A5A0B; font-weight: 500; }
.qb-cta { font-size: .88rem; }
.qb-cta a { color: var(--r-red); }
.qb-enemy.enter { animation: qb-enter .45s steps(4) both; }
.qb-enemy.hit .qb-eart { animation: qb-hit .4s steps(2) 2; }
.qb-enemy.die .qb-eart { animation: qb-die .6s steps(4) forwards; }
.qb-me.hurt { animation: qb-shake .35s steps(3) 2; }
@keyframes qb-enter { from { transform: translateX(60px); opacity: 0; } }
@keyframes qb-hit { 50% { filter: brightness(2.2); transform: translateX(6px); } }
@keyframes qb-die { to { transform: translateY(20px); opacity: 0; } }
@keyframes qb-shake { 33% { transform: translateX(-6px); filter: hue-rotate(-30deg) saturate(2); } 66% { transform: translateX(6px); } }
@media (max-width: 420px) { .qb-arena { height: 260px; } .qb-eart canvas { width: 100px; } .qb-enemy.is-boss .qb-eart canvas { width: 120px; } .qb-stages li { font-size: .74rem; padding: 6px 4px; } }
.qb-left { font-family: var(--pixel); font-size: 13px; letter-spacing: .06em; color: var(--r-red) !important; }

/* ===== 遊戲結尾接服務＋首頁熱門服務（11/11 晚 Boss：「很多人會卡在玩遊戲不會來找我諮詢」）===== */
.offer { width: 100%; margin-top: 16px; padding: 16px 16px 18px; text-align: left; display: grid; gap: 6px;
  background: #2B2D52; color: #F3EEDC; border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px var(--r-gold, #E9B949), 4px 4px 0 rgba(43,45,82,.3); }
.offer-kick { font-family: var(--pixel); font-size: 12px; letter-spacing: .12em; color: #E9B949; }
.offer h3 { font-size: 1.15rem; color: #FFFBF0; }
.offer p { color: #D9D3EE !important; font-size: .9rem; line-height: 1.7; }
.offer .offer-price { font-family: var(--pixel); color: #E9B949 !important; font-size: 15px; letter-spacing: .04em; }
.offer-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.offer-acts .btn:not(.fill) { background: #FFFBF0; color: #2B2D52; }
.mg-result .offer { margin-top: 22px; }
.tarot-offer { font-size: .88rem; }
.tarot-offer a { color: #E8C47E; }
.rpg .hot-sec, .hot-sec { padding-block: 8px 24px; }
.hot { max-width: 720px; margin-inline: auto; display: grid; gap: 12px; padding: 22px 20px; background: #2B2D52; color: #F3EEDC;
  border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px #E9B949, 6px 6px 0 rgba(43,45,82,.28); }
.hot .mg-stage { color: #E9B949; }
.hot h2 { color: #FFFBF0 !important; font-size: 1.45rem; letter-spacing: .1em; }
.hot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hot-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; text-decoration: none; background: #3A3C66; border: 2px solid #E9B949; color: #F3EEDC; }
.hot-list b { font-weight: 500; color: #FFFBF0; }
.hot-list span { grid-column: 1; font-size: .82rem; color: #CFC8E8; }
.hot-list em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-family: var(--pixel); color: #E9B949; white-space: nowrap; }
.hot-list a:hover { background: #4A4C7A; }
.hot .btn:not(.fill) { background: #FFFBF0; color: #2B2D52; }
.qb-timer { width: 100%; height: 10px; border: 2px solid #2B2D52; background: var(--r-bg); }
.qb-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #C8463D, #E9B949); }

/* 11/12：命格遊戲算完直接捏角色；換裝屋沒算過日主先擋 */
.mg-me { display: flex !important; align-items: center; gap: 8px; font-size: .9rem; color: var(--r-ink) !important; margin: 4px 0 14px !important; }
.mg-me input { width: 18px !important; height: 18px; min-height: 0 !important; margin: 0 !important; accent-color: var(--r-red, #C8463D); }
.av-in-play { padding-top: 8px; scroll-margin-top: 80px; }
.av .av-head { grid-column: 1 / -1; text-align: center; display: grid; gap: 4px; }
.av .av-head h2 { color: var(--r-ink); }
.av .av-head p { color: var(--r-sub); font-size: .92rem; }
.av-fixed { font-weight: 500; color: var(--r-ink); padding: 8px 10px; border: 2px dashed var(--r-line); background: var(--r-bg); text-align: center; }
.av-gate { grid-column: 1 / -1; max-width: 520px; justify-self: center; display: grid; gap: 10px; justify-items: center; text-align: center; padding: 24px 20px;
  background: var(--r-win); border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px var(--r-gold); }
.av-gate p { color: var(--r-sub); }
.av-fixed { white-space: normal; line-height: 1.5; font-size: .95rem; }

/* ===== 月老姻緣廟・緣分指數（11/12）===== */
.mt-pair { display: grid; gap: 10px; }
.mt-pair fieldset { border: 2px solid var(--r-line); padding: 10px 14px 4px; margin: 0; }
.mt-pair legend { font-family: var(--pixel); color: var(--r-red); font-size: 13px; padding: 0 6px; }
.mt-heart { justify-self: center; color: #E04B5A; font-size: 22px; line-height: 1; }
.mt-card { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 22px 18px; background: var(--r-win); border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px var(--r-gold); }
.mt-label { color: var(--r-sub); }
.mt-score { font-family: var(--pixel); color: #E04B5A; line-height: 1; }
.mt-score b { font-size: 4.2rem; font-weight: 400; }
.mt-score small { font-size: 1.2rem; margin-left: 4px; }
.mt-tier { font-family: var(--mincho); font-weight: 700; font-size: 1.3rem; letter-spacing: .14em; color: var(--r-ink); }
.mt-notes { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; text-align: left; width: 100%; }
.mt-notes li { padding: 10px 12px; border: 2px solid var(--r-line); background: var(--r-bg); color: var(--r-ink); font-size: .92rem; line-height: 1.7; }
.mt-notes b { display: inline-block; margin-right: 8px; padding: 0 8px; background: #E04B5A; color: #FFFBF0; font-weight: 500; font-size: .8rem; }
/* 紅線動畫（11/12）：兩個人走近 → 紅線慢慢牽起來 → 打結成愛心、月老出現 → 跳分數 */
.mt-scene { position: relative; width: 100%; max-width: 380px; height: 200px; margin: 0 auto 4px; overflow: hidden;
  background: linear-gradient(#E9DDF6, #FFF3E6); border: 2px solid var(--r-line); }
.mt-p { position: absolute; bottom: 10px; }
.mt-p canvas { display: block; width: 72px; height: auto; image-rendering: pixelated; }
.mt-a { left: 10%; animation: mt-in-l .5s steps(4) both; }
.mt-b { right: 10%; animation: mt-in-r .5s steps(4) both; }
.mt-b canvas { transform: scaleX(-1); }
.mt-thread { position: absolute; inset: 0; width: 100%; height: 100%; }
.mt-thread path { fill: none; stroke: #E04B5A; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: mt-draw 1.2s .5s ease-in-out forwards; }
.mt-knot { position: absolute; left: 50%; top: 54px; transform: translate(-50%, 0) scale(0); color: #E04B5A; font-size: 30px; line-height: 1; animation: mt-pop .4s 1.6s steps(3) forwards; }
.mt-yl { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); width: 64px; opacity: 0; animation: mt-fade .5s 1.3s forwards; }
.mt-yl img { width: 100%; display: block; image-rendering: pixelated; }
.mt-tag { position: absolute; bottom: 2px; font-family: var(--pixel); font-size: 11px; color: var(--r-sub); }
.mt-ta { left: calc(10% + 28px); } .mt-tb { right: calc(10% + 28px); }
.mt-score, .mt-tier { animation: mt-fade .3s 1.8s both; }
@keyframes mt-in-l { from { transform: translateX(-60px); opacity: 0; } }
@keyframes mt-in-r { from { transform: translateX(60px); opacity: 0; } }
@keyframes mt-draw { to { stroke-dashoffset: 0; } }
@keyframes mt-pop { 60% { transform: translate(-50%, 0) scale(1.4); } to { transform: translate(-50%, 0) scale(1); } }
@keyframes mt-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mt-a, .mt-b, .mt-thread path, .mt-knot, .mt-yl, .mt-score, .mt-tier { animation: none; } .mt-thread path { stroke-dashoffset: 0; } .mt-knot { transform: translate(-50%, 0) scale(1); } .mt-yl { opacity: 1; } }

/* 像素版兔寶老師（11/12）：主殿門口的頭像、遊戲裡的恭喜 */
.map-tb { position: absolute; left: var(--x); top: var(--y); width: 12%; aspect-ratio: 1; border-radius: 50%; border: 3px solid #E9B949; box-shadow: 0 0 0 2px #2B2D52;
  transform: translate(-50%, 0); pointer-events: none; z-index: 2; animation: tb-bob 1.6s steps(2) infinite; }
@keyframes tb-bob { 50% { transform: translate(-50%, -4px); } }
.tb-say { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; text-align: left; width: 100%; margin: 6px 0; padding: 10px 12px;
  background: #FFF4F2; border: 2px solid #E04B5A; }
.tb-say img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid #E9B949; }
.tb-say p { color: #4A2A35 !important; font-size: .9rem; line-height: 1.6; margin: 0; }
.tb-say b { display: block; color: #C8463D; font-size: .82rem; letter-spacing: .1em; }
.mt-yl img { border-radius: 50%; border: 2px solid #E9B949; }
@media (prefers-reduced-motion: reduce) { .map-tb { animation: none; } }

/* 11/12 Boss：每頁最下面「返回地圖」 */
.back-map { display: flex; justify-content: center; padding: 36px 16px 52px; }
.back-map .btn { min-width: 240px; text-align: center; }

/* ===== 11/12 塔羅星象亭・電動版（tarot.js） ===== */
.tgame { position: relative; max-width: 720px; margin: 0 auto; border: 4px solid #E9B949; box-shadow: 0 0 0 4px #2B2D52, 8px 8px 0 4px #0B0A12; background: radial-gradient(circle at 50% 20%, #3A2D5E 0, #1B1C30 70%); padding: 14px 14px 18px; image-rendering: pixelated; }
.tgame::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#FFF6 1px, transparent 1.2px); background-size: 26px 26px; opacity: .35; pointer-events: none; }
.tg-hud { position: relative; display: flex; justify-content: space-between; font-family: var(--pixel); color: #E9B949; font-size: 14px; letter-spacing: .12em; }
.tg-table { position: relative; height: 210px; margin-top: 30px; display: flex; justify-content: center; align-items: center; }
.tg-card { --w: 82px; position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: 5 / 8; margin: calc(var(--w) * -0.8) 0 0 calc(var(--w) * -0.5); padding: 0; border: 0; background: none; cursor: pointer; perspective: 600px; transition: transform .45s steps(6), opacity .3s; }
.pile .tg-card { transform: translate(calc(var(--k) * 1px), calc(var(--k) * -2px)); }
.shuffling .tg-card { animation: tgShuf .34s steps(3) infinite; }
.shuffling .tg-card:nth-child(odd) { animation-direction: reverse; }
@keyframes tgShuf { 0% { transform: translateX(0); } 50% { transform: translateX(46px) rotate(4deg); } 100% { transform: translateX(-46px) rotate(-4deg); } }
.dealt .tg-card { transform: translate(0, 0) scale(.6); opacity: 0; }
.dealt .tg-card.in { --gap: calc(var(--w) * .78); transform: translateX(calc((var(--k) - 3) * var(--gap))); opacity: 1; }
.dealt .tg-card.in.sel { transform: translateX(calc((var(--k) - 3) * var(--gap))) translateY(-16px); z-index: 3; }
.tg-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s steps(5); }
.tg-back, .tg-front { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.tg-back { background: repeating-linear-gradient(45deg, #8E2F3B 0 6px, #7A2632 6px 12px); border: 4px solid #E9B949; box-shadow: inset 0 0 0 3px #2B2D52, 4px 4px 0 #0B0A12; color: #F3D27A; }
.tg-emb { width: 56%; fill: currentColor; }
.tg-card.sel .tg-back { border-color: #FFFBF0; box-shadow: inset 0 0 0 3px #2B2D52, 0 0 0 3px #E9B949, 4px 4px 0 3px #0B0A12; }
.tg-front { transform: rotateY(180deg); background: #FFFBF0; border: 4px solid #E9B949; box-shadow: inset 0 0 0 3px #2B2D52, 4px 4px 0 #0B0A12; grid-template-rows: auto 1fr auto; padding: 8px 4px; color: #2B2D52; }
.tg-num { font-family: var(--pixel); font-style: normal; font-size: 13px; color: #C8463D; }
.tg-zh { font-family: var(--mincho); writing-mode: vertical-rl; font-size: 20px; letter-spacing: .25em; }
.tg-en { font-family: var(--pixel); font-style: normal; font-size: 8px; letter-spacing: .05em; color: #5E5A78; text-transform: uppercase; }
.tg-card.open .tg-in { transform: rotateY(180deg); }
.done .tg-card:not(.open) { opacity: .18; transform: translateX(calc((var(--k) - 3) * var(--gap, 60px))) translateY(26px); pointer-events: none; }
.done .tg-card.open { transform: translateY(-6px) scale(1.55); z-index: 4; }
.tg-cursor { position: absolute; z-index: 5; transform: translateX(-50%); font-family: var(--pixel); color: #FFFBF0; font-size: 20px; text-shadow: 2px 2px 0 #0B0A12; animation: tgBob .6s steps(2) infinite; pointer-events: none; }
@keyframes tgBob { 50% { margin-top: -6px; } }
.tg-dialog { position: relative; margin-top: 26px; background: #141428; border: 3px solid #FFFBF0; box-shadow: 0 0 0 3px #2B2D52; padding: 12px 14px 22px; min-height: 96px; }
.tg-dialog .tg-name { position: absolute; top: -14px; left: 12px; background: #C8463D; color: #FFFBF0; font-family: var(--pixel); font-size: 13px; padding: 2px 10px; border: 2px solid #FFFBF0; }
.tg-dialog p { color: #F6F0DE; font-size: 15px; line-height: 1.8; margin: 6px 0 0; }
.tg-next { position: absolute; right: 12px; bottom: 6px; color: #E9B949; font-size: 12px; animation: tgBob .6s steps(2) infinite; }
.tg-cmd { position: relative; display: flex; justify-content: center; gap: 10px; margin-top: 14px; min-height: 48px; }
.tg-cmd .tg-arrow { min-width: 52px; }
.tg-res { margin-top: 18px; text-align: center; }
.tgame.flash::after { content: ""; position: absolute; inset: 0; background: #FFFBF0; animation: tgFlash .5s steps(3) forwards; pointer-events: none; }
@keyframes tgFlash { 0% { opacity: .9; } 100% { opacity: 0; } }
@media (max-width: 600px) { .tg-card { --w: 58px; } .tg-table { height: 180px; } .tg-zh { font-size: 15px; } .done .tg-card.open { transform: translateY(-4px) scale(1.7); } }
@media (prefers-reduced-motion: reduce) { .tg-card, .tg-in { transition: none; } .shuffling .tg-card, .tg-cursor, .tg-next { animation: none; } }
.tg-cmd .btn { white-space: nowrap; }
.tg-cmd .btn::after, .tg-cmd .btn::before { content: none !important; }
.tg-cmd .tg-arrow { background: #24263F; color: #FFFBF0; border-color: #FFFBF0; font-size: 18px; min-width: 56px; }
@media (max-width: 600px) { .dealt .tg-card.in { --gap: calc(var(--w) * .74); } }
.tg-front { grid-template-rows: auto 1fr auto; gap: 2px; }
.tg-zh { writing-mode: horizontal-tb; font-size: 16px; letter-spacing: .08em; line-height: 1.25; align-self: center; text-align: center; padding: 0 2px; }
.tg-en { font-size: 7px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
@media (max-width: 600px) { .tg-zh { font-size: 12px; } .tg-num { font-size: 10px; } .tg-en { font-size: 5.5px; } }
/* 11/12 科儀每一項的像素插圖 */
.ritual-list .fee-row.has-icon { display: grid; grid-template-columns: 88px 1fr; column-gap: 16px; align-items: center; }
.ritual-list .fee-row.has-icon .r-icon { grid-row: 1 / span 3; width: 88px; height: 88px; image-rendering: pixelated; border: 3px solid #E9B949; box-shadow: 3px 3px 0 #0B0A12; }
.ritual-list .fee-row.has-icon h3, .ritual-list .fee-row.has-icon .amt, .ritual-list .fee-row.has-icon p { grid-column: 2; }
@media (max-width: 560px) { .ritual-list .fee-row.has-icon { grid-template-columns: 72px 1fr; column-gap: 12px; } .ritual-list .fee-row.has-icon .r-icon { width: 72px; height: 72px; } }
/* 11/12 開運小物頁最上面的商品短片 */
.shop-reel { max-width: 360px; margin: 0 auto 36px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.shop-reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; border: 4px solid #E9B949; box-shadow: 0 0 0 3px #2B2D52, 6px 6px 0 3px #0B0A12; background: #1B1C30; }
.shop-reel figcaption { font-size: .82rem; color: var(--sub); line-height: 1.6; }
/* 11/12 首頁「新手任務」＋地圖 START */
.newbie-sec { padding-bottom: 0; }
.newbie { max-width: 720px; margin: 0 auto; border: 4px solid #E9B949; box-shadow: 0 0 0 3px #2B2D52, 6px 6px 0 3px #0B0A12; background: var(--r-win, #FFFBF0); padding: 16px 16px 12px; }
.nb-head h2 { margin: 4px 0 12px; font-size: 1.35rem; }
.nb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nb-steps a { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; text-decoration: none; color: inherit; border: 3px solid var(--r-line, #D9CFEE); background: rgba(255,255,255,.4); padding: 8px 10px; }
.nb-steps img { width: 64px; height: 64px; object-fit: cover; image-rendering: pixelated; border: 2px solid #2B2D52; }
.nb-steps b { display: block; font-family: var(--pixel); font-weight: 400; font-size: 15px; letter-spacing: .04em; }
.nb-steps small { display: block; font-size: 13px; color: var(--r-sub, #5E5A78); line-height: 1.5; margin-top: 2px; }
.nb-go { font-style: normal; font-family: var(--pixel); font-size: 14px; white-space: nowrap; background: #2B2D52; color: #FFFBF0; padding: 6px 10px; }
.nb-steps li.next a { border-color: #C8463D; box-shadow: 4px 4px 0 #C8463D; animation: nbPulse 1.2s steps(2) infinite; }
.nb-steps li.next .nb-go { background: #C8463D; }
.nb-steps li.ok a { opacity: .6; } .nb-steps li.ok .nb-go { background: #4E9A5B; }
.newbie.all .nb-steps { display: none; }
.nb-done { margin: 4px 0 2px; font-weight: 700; color: #4E9A5B; }
@keyframes nbPulse { 50% { box-shadow: 4px 4px 0 #E9B949; } }
.spot.is-start { z-index: 6; }
.spot.is-start::before { content: "▼ START"; position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); font-family: var(--pixel); font-size: 12px; color: #FFFBF0; background: #C8463D; padding: 2px 8px; border: 2px solid #FFFBF0; white-space: nowrap; animation: nbBob .6s steps(2) infinite; }
@keyframes nbBob { 50% { margin-bottom: 5px; } }
@media (prefers-reduced-motion: reduce) { .nb-steps li.next a, .spot.is-start::before { animation: none; } }
/* 11/12 雲淨堂集章卡＋蓋章彈窗＋金框 */
.stampcard { max-width: 720px; margin: 0 auto; border: 4px solid #E9B949; box-shadow: 0 0 0 3px #2B2D52, 6px 6px 0 3px #0B0A12; background: var(--r-win, #FFFBF0); padding: 16px 16px 18px; text-align: center; }
.sc-head { display: flex; justify-content: space-between; align-items: center; }
.sc-count { font-family: var(--pixel); color: #C8463D; font-size: 15px; }
.stampcard h2 { margin: 6px 0 4px; font-size: 1.35rem; }
.sc-sub { font-size: 13.5px; color: var(--r-sub, #5E5A78); line-height: 1.6; margin: 0 0 12px; }
.sc-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.sc-slot { display: grid; justify-items: center; gap: 4px; text-decoration: none; color: inherit; }
.sc-ring { position: relative; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; border: 3px dashed #B8AFD6; background: #EEE8F8; }
.sc-ring img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; filter: grayscale(1) opacity(.55); }
.sc-slot small { font-size: 11.5px; line-height: 1.3; color: var(--r-sub, #5E5A78); }
.sc-slot.done .sc-ring { border: 3px solid #C8463D; }
.sc-slot.done .sc-ring img { filter: none; }
.sc-seal { position: absolute; inset: 6px; border-radius: 50%; border: 3px solid #C8463D; color: #C8463D; background: rgba(255,251,240,.72); display: grid; place-items: center; font-family: var(--mincho); font-size: 22px; transform: rotate(-12deg); }
.sc-slot.next .sc-ring { border: 3px solid #E9B949; animation: scPulse 1s steps(2) infinite; }
.sc-slot.next small { color: #C8463D; font-weight: 700; }
@keyframes scPulse { 50% { box-shadow: 0 0 0 4px rgba(233,185,73,.55); } }
.sc-next { display: inline-block; white-space: normal; }
.gstamp { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(11,10,18,.55); opacity: 0; transition: opacity .2s; padding: 16px; }
.gstamp.on { opacity: 1; } .gstamp.out { opacity: 0; }
.gs-card { width: min(360px, 100%); background: #FFFBF0; border: 4px solid #E9B949; box-shadow: 0 0 0 3px #2B2D52, 8px 8px 0 3px #0B0A12; padding: 18px 16px 16px; text-align: center; color: #2B2D52; }
.gs-kick { font-family: var(--pixel); font-size: 13px; color: #C8463D; }
.gs-seal { width: 128px; height: 128px; margin: 14px auto 10px; border-radius: 50%; border: 6px solid #C8463D; color: #C8463D; display: grid; place-items: center; align-content: center; transform: rotate(-12deg) scale(2.4); opacity: 0; }
.gstamp.on .gs-seal { animation: gsStamp .45s steps(4) forwards .15s; }
.gs-seal b { font-family: var(--mincho); font-size: 54px; line-height: 1; }
.gs-seal small { font-size: 12px; letter-spacing: .1em; margin-top: 4px; }
@keyframes gsStamp { to { transform: rotate(-12deg) scale(1); opacity: 1; } }
.gs-msg { font-weight: 700; margin: 6px 0 12px; line-height: 1.6; }
.gs-btns { display: grid; gap: 8px; } .gs-btns .btn { white-space: normal; }
.av-frame.gold { border-color: #E9B949 !important; box-shadow: 0 0 0 4px #E9B949, 0 0 22px 6px rgba(233,185,73,.75), 6px 6px 0 4px #0B0A12 !important; }
@media (prefers-reduced-motion: reduce) { .gstamp.on .gs-seal { animation: none; transform: rotate(-12deg); opacity: 1; } .sc-slot.next .sc-ring { animation: none; } }
.gs-x::after, .gs-x::before { content: none !important; }
/* 11/12 晚 第 2 關開放：目前挑戰的關卡、可點的關卡 */
.qb-stages li.open { background: var(--r-win, #FFFBF0); border-color: #E9B949; box-shadow: 3px 3px 0 #2B2D52; }
.qb-stages li.open b, .qb-stages li.open span { color: var(--r-ink, #2B2D52); }
.qb-stages li.open small { color: #4E9A5B; font-weight: 700; }
.qb-stages li.cur { background: var(--r-red); border-color: #2B2D52; }
.qb-stages li.cur b, .qb-stages li.cur span, .qb-stages li.cur small { color: #FFFBF0; }
.back-map .btn::after { content: none !important; }

/* ===== 月老許願牆＋月老聯誼（11/13）===== */
.yl-jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 18px; }
.yl-jump a { font-family: var(--pixel); font-size: 13px; letter-spacing: .1em; padding: 7px 12px; border: 2px solid #2B2D52; background: var(--r-win); color: var(--r-ink); text-decoration: none; box-shadow: 3px 3px 0 #2B2D52; }
.yl-jump a:hover { background: var(--r-gold); color: #2B2D52; }
.yl-lead { color: var(--r-sub); max-width: 640px; margin: -10px 0 18px; line-height: 1.8; }
.yl-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.yl-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.yl-tabs button { font: 13px var(--pixel); letter-spacing: .08em; padding: 7px 12px; border: 2px solid var(--r-line); background: var(--r-win); color: var(--r-ink); cursor: pointer; }
.yl-tabs button[aria-pressed="true"] { border-color: #2B2D52; background: #E04B5A; color: #FFFBF0; }
.yl-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.yl-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 16px; padding-top: 14px;
  background: linear-gradient(#E04B5A, #E04B5A) 0 4px / 100% 2px no-repeat; }
.yl-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 16px 14px 12px; background: var(--r-win); border: 3px solid #2B2D52; box-shadow: 4px 4px 0 #2B2D52; }
.yl-card::before { content: ""; position: absolute; top: -18px; left: 50%; width: 2px; height: 16px; background: #E04B5A; }
.yl-card::after { content: ""; position: absolute; top: -6px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: #E04B5A; }
.yl-card.me { box-shadow: 4px 4px 0 #2B2D52, inset 0 0 0 3px var(--r-gold); }
.yl-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.yl-reg, .yl-dm, .yl-host, .yl-badge { font-size: .74rem; padding: 1px 8px; border: 2px solid currentColor; line-height: 1.6; }
.yl-reg { color: #E04B5A; } .yl-dm { color: var(--r-sub); } .yl-host { color: #B8860B; } .yl-badge { color: #2E8B57; }
.yl-id { margin-left: auto; font: 11px var(--pixel); color: var(--r-sub); opacity: .8; }
.yl-text { font-family: var(--mincho); font-size: 1.05rem; line-height: 1.75; color: var(--r-ink); word-break: break-word; margin: 0; }
.yl-by { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--r-sub); font-size: .85rem; }
.yl-by b { font-weight: 500; color: var(--r-ink); }
.yl-cacts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.yl-mini { font: 13px var(--pixel); letter-spacing: .06em; padding: 6px 10px; border: 2px solid #2B2D52; background: var(--r-win); color: var(--r-ink); cursor: pointer; }
.yl-mini.love { background: #E04B5A; color: #FFFBF0; }
.yl-mini.ghost { border-color: var(--r-line); color: var(--r-sub); background: transparent; }
.yl-mini:active { transform: translate(2px, 2px); }
.yl-empty { grid-column: 1 / -1; color: var(--r-sub); text-align: center; padding: 26px 10px; border: 2px dashed var(--r-line); }
.yl .mg-note a, .priv a { color: #E04B5A; }
/* 聯誼 */
.yl-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.yl-ev { display: grid; gap: 8px; align-content: start; padding: 16px; background: var(--r-win); border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px var(--r-gold); }
.yl-ev.full { opacity: .85; }
.yl-ev h4 { margin: 2px 0 0; font-family: var(--mincho); font-size: 1.2rem; color: var(--r-ink); }
.yl-ev dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: .9rem; }
.yl-ev dt { color: var(--r-sub); } .yl-ev dd { margin: 0; color: var(--r-ink); }
.yl-desc { margin: 0; font-size: .9rem; color: var(--r-ink); line-height: 1.7; word-break: break-word; }
.yl-hearts { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.yl-hearts i { aspect-ratio: 1; border: 2px solid #E04B5A; background: transparent; }
.yl-hearts i.on { background: #E04B5A; }
.yl-count { margin: 0; font-size: .88rem; color: var(--r-sub); }
.yl-propose { margin-top: 22px; padding: 18px; border: 2px dashed var(--r-line); display: grid; gap: 8px; justify-items: start; }
.yl-propose h3 { margin: 0; font-size: 1.1rem; color: var(--r-ink); } .yl-propose p { margin: 0; color: var(--r-sub); }
/* 彈出視窗 */
html.yl-lock { overflow: hidden; }
.yl-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(20, 18, 40, .55); }
.yl-modal[hidden] { display: none; }
.yl-sheet { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px 18px 18px;
  background: var(--r-win); color: var(--r-ink); border: 3px solid #2B2D52; box-shadow: 6px 6px 0 #2B2D52, inset 0 0 0 3px var(--r-gold); display: grid; gap: 10px; }
.yl-x { position: absolute; top: 6px; right: 8px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; color: var(--r-sub); cursor: pointer; }
.yl-mt { margin: 0 34px 0 0; font-family: var(--mincho); font-size: 1.2rem; }
.yl-body { display: grid; gap: 10px; }
.yl-form { display: grid; gap: 12px; }
.yl-form label { display: grid; gap: 6px; font-size: .88rem; color: var(--r-sub); }
.yl-lab { display: flex; justify-content: space-between; gap: 8px; }
.yl-cnt { font-size: .75rem; }
.yl-form input[type="text"], .yl-form select, .yl-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--r-ink); background: var(--r-bg); border: 2px solid var(--r-line); padding: 9px 10px; border-radius: 0; }
.yl-form textarea { resize: vertical; line-height: 1.6; }
.yl-form input:focus, .yl-form select:focus, .yl-form textarea:focus { outline: none; border-color: #E04B5A; }
.yl-form .yl-check { display: flex; gap: 8px; align-items: center; color: var(--r-ink); font-size: .92rem; }
.yl-check input { width: 20px; height: 20px; accent-color: #E04B5A; flex: none; }
.yl-check a { color: #E04B5A; }
.yl-form .btn, .yl-done .btn { width: 100%; justify-content: center; text-align: center; }
.yl-hint { margin: 0; font-size: .82rem; color: var(--r-sub); line-height: 1.7; }
.yl-q { margin: 0; padding: 10px 12px; border-left: 4px solid #E04B5A; background: var(--r-bg); font-family: var(--mincho); line-height: 1.7; word-break: break-word; }
.yl-done { display: grid; gap: 10px; text-align: center; }
.yl-done p { margin: 0; line-height: 1.7; }
.yl-ok { font-family: var(--mincho); font-size: 1.3rem; color: #E04B5A; }
.yl-code { display: grid; gap: 2px; padding: 12px; border: 3px dashed #E04B5A; background: var(--r-bg); }
.yl-code small { color: var(--r-sub); } .yl-code b { font: 28px var(--pixel); letter-spacing: .16em; color: var(--r-ink); }
.yl-letter { display: grid; gap: 6px; padding: 12px; border: 2px solid var(--r-line); background: var(--r-bg); }
.yl-ltext { margin: 0; white-space: pre-wrap; line-height: 1.75; word-break: break-word; }
.yl-body hr { border: 0; border-top: 2px dashed var(--r-line); width: 100%; margin: 6px 0 0; }
.yl-body > .btn { width: 100%; }
/* 隱私說明 */
.priv { max-width: 720px; }
.priv h2 { font-size: 1.15rem; margin: 26px 0 8px; color: var(--r-ink); }
.priv h2:first-child { margin-top: 0; }
.priv ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--r-ink); line-height: 1.8; }
@media (max-width: 560px) { .yl-bar { align-items: stretch; } .yl-acts { width: 100%; } .yl-acts .btn { flex: 1; text-align: center; } .yl-wall { grid-template-columns: 1fr; } }
/* 背景音樂按鈕（11/13）*/
.snd-btn + .bgm-btn { margin-left: 0; }
.bgm-btn[aria-pressed="true"] { color: #E04B5A; opacity: 1; }

/* ===== 11/20 動畫 8 項（Boss：全部都是文字會疲乏；fx.js）===== */
.rpg { --fx-sky1: #E9DDF6; --fx-sky2: #FFF3E6; --fx-dark: #1E1B3A; --fx-cream: #F3EEDC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rpg { --fx-sky1: #2A2850; --fx-sky2: #3A2F45; } }
:root[data-theme="dark"] .rpg { --fx-sky1: #2A2850; --fx-sky2: #3A2F45; }

/* 共用：兔寶對話框 */
.fx-talk { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: end; }
.fx-face { width: 72px; height: 72px; object-fit: cover; object-position: 50% 12%; image-rendering: pixelated; background: var(--r-win); border: 3px solid #E9B949; box-shadow: 0 0 0 2px #2B2D52; }
.fx-box { position: relative; display: block; width: 100%; text-align: left; font: inherit; margin: 0; min-height: 5.6em;
  background: var(--fx-dark); color: var(--fx-cream); border: 3px solid var(--fx-cream); padding: 20px 18px 24px;
  box-shadow: inset 0 0 0 3px #2B2D52, 0 0 0 3px #2B2D52, 6px 6px 0 3px rgba(43,45,82,.28); }
button.fx-box { cursor: pointer; }
.fx-who { position: absolute; top: -15px; left: 12px; background: #E9B949; color: #2B2D52; border: 2px solid #2B2D52; padding: 1px 10px;
  font-family: var(--mincho); font-weight: 700; font-size: 13px; letter-spacing: .14em; }
.fx-say { display: block; margin: 0; color: var(--fx-cream) !important; line-height: 1.85; min-height: 3.7em; }
.fx-next { position: absolute; right: 12px; bottom: 6px; color: #E9B949; font-size: 12px; animation: g-blink 1s steps(2) infinite; }
.fx-count { position: absolute; left: 14px; bottom: 5px; font-family: var(--pixel); font-size: 11px; color: #BDB6D8; }
.fx-box.last .fx-next { display: none; }
.fx-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .85rem; color: var(--r-red); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ③ 服務問診 */
.fx-ask { padding-block: 34px 10px; }
.fx-opts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px 86px; }
.fx-opts button { font-family: var(--pixel); font-size: 15px; letter-spacing: .06em; color: var(--r-ink); background: var(--r-win); border: 3px solid #2B2D52; box-shadow: 3px 3px 0 #2B2D52; padding: 8px 14px; cursor: pointer; }
.fx-opts button:hover, .fx-opts button:focus-visible { background: var(--r-gold); color: #2B2D52; }
.fx-opts button[aria-pressed="true"] { background: var(--r-red); color: #FFFBF0; }
.fx-opts button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #2B2D52; }
.fx-deal { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 20px; }
.fx-deal .flip { opacity: 0; transform: translateY(26px) rotate(-5deg); }
.fx-deal.dealt .flip { animation: fx-deal .5s steps(5) forwards; }
.fx-deal.dealt .flip:nth-child(2) { animation-delay: .18s; }
@keyframes fx-deal { to { opacity: 1; transform: none; } }
.fx-all { display: inline-block; margin-top: 18px; font-family: var(--pixel); font-size: 14px; color: var(--r-sub); text-underline-offset: 4px; }
.rpg .flip-in > .side { background: var(--r-win); color: var(--r-ink); border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px var(--r-gold); }
.rpg .flip-in > .side-b { background: var(--fx-dark); color: var(--fx-cream); border-color: #2B2D52; }
.rpg .flip-in > .side-b dd, .rpg .flip-in > .side-b h3 { color: var(--fx-cream); }
.rpg .flip-in > .side-b dt { color: #BDB6D8; }
.rpg .flip-in > .side-b .acts a { color: var(--fx-cream); }
.rpg .flip-in > .side-b .acts a.go { background: var(--r-red); color: #FFFBF0; border: 2px solid var(--fx-cream); }
.rpg .flip .side-a .ill { width: 96px; height: auto; }
.rpg .flip .turn { color: var(--r-red); font-family: var(--pixel); }
.rpg .flip .side-b .turn { color: #E9B949; }
@media (max-width: 700px) { .fx-opts { margin-left: 0; } }

/* ⑦ 預約闖關 */
.fx-quest { position: relative; }
.fx-path { list-style: none; margin: 0; padding: 0 0 0 70px; display: grid; gap: 16px; position: relative; }
.fx-path::before { content: ""; position: absolute; left: 30px; top: 18px; bottom: 18px; border-left: 4px dotted var(--r-line); }
.fx-node { position: relative; display: grid; gap: 0; padding: 10px 14px; background: var(--r-win); border: 3px solid #2B2D52; box-shadow: 3px 3px 0 rgba(43,45,82,.28); }
.fx-node::before { content: ""; position: absolute; left: -48px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--r-line); border: 3px solid #2B2D52; }
.fx-node b { font-family: var(--pixel); font-weight: 400; font-size: 12px; letter-spacing: .14em; color: var(--r-sub); }
.fx-node span { font-family: var(--mincho); font-weight: 600; font-size: 1.05rem; color: var(--r-ink); }
.fx-node small { color: var(--r-sub); font-size: .85rem; }
.fx-quest.js .fx-node { opacity: .55; transition: opacity .2s; }
.fx-quest.js .fx-node.on, .fx-quest:not(.js) .fx-node { opacity: 1; }
.fx-node.on::before { background: #E9B949; }
.fx-node.on::after { content: "★"; position: absolute; right: 10px; top: 8px; color: #E9B949; font-size: 16px; animation: fx-pop .35s steps(3); }
.fx-goal.on { background: #FFF1D6; }
.fx-goal.on b { color: var(--r-red); }
.fx-goal.on span { color: #2B2D52; } .fx-goal.on small { color: #6B5E4A; }
.fx-hop, .split .fx-hop { position: absolute; left: 13px; top: 0; width: 40px; height: 40px; aspect-ratio: auto; border-radius: 0; object-fit: contain; image-rendering: pixelated; cursor: pointer; transition: top .38s steps(4); }
.fx-quest:not(.js) .fx-hop { display: none; }
.fx-hop.jump { animation: fx-jump .38s steps(4); }
@keyframes fx-jump { 50% { transform: translateY(-14px); } }
.fx-quest.done + .btns .btn.fill { animation: fx-pulse 1.2s steps(2) 3; }
@keyframes fx-pulse { 50% { box-shadow: 0 0 0 4px #E9B949; } }

/* ⑦ 好評泡泡 */
.fx-chat { max-width: 560px; display: grid; gap: 14px; padding: 16px 14px 20px; background: var(--r-bg); border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px var(--r-gold); }
.fx-chat-top { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 2px dashed var(--r-line); }
.fx-chat-top b { font-family: var(--mincho); color: var(--r-ink); } .fx-chat-top small { color: var(--r-sub); font-size: .8rem; }
.fx-msg { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.fx-av { width: 36px; height: 36px; display: grid; place-items: center; background: #4E9A5B; color: #FFFBF0; font-family: var(--mincho); font-weight: 700; border: 2px solid #2B2D52; }
.fx-bub { position: relative; justify-self: start; max-width: 100%; padding: 10px 14px; background: var(--r-win); border: 2px solid #2B2D52; }
.fx-bub::before { content: ""; position: absolute; left: -8px; top: 12px; width: 8px; height: 8px; background: var(--r-win); border-left: 2px solid #2B2D52; border-bottom: 2px solid #2B2D52; transform: skewY(-35deg); }
.fx-bub small { display: block; font-family: var(--pixel); font-size: 11px; letter-spacing: .1em; color: var(--r-red); }
.fx-bub p { margin: 2px 0 4px; line-height: 1.75; }
.fx-bub em { font-style: normal; font-size: .78rem; color: var(--r-sub); }
.fx-msg.pre { display: none; }
.fx-msg.in { animation: fx-pop .3s steps(3); }
@keyframes fx-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.fx-typing { display: inline-flex; gap: 5px; margin-left: 46px; padding: 10px 14px; background: var(--r-win); border: 2px solid #2B2D52; justify-self: start; }
.fx-typing i { width: 6px; height: 6px; background: var(--r-sub); animation: g-blink .6s steps(2) infinite; }
.fx-typing i:nth-child(2) { animation-delay: .2s; } .fx-typing i:nth-child(3) { animation-delay: .4s; }

/* ① 月老許願樹 */
.yl-tree { margin: 20px 0 6px; }
.yl-tree-in { position: relative; aspect-ratio: 4 / 3; max-width: 560px; margin: 0 auto; overflow: hidden;
  background: linear-gradient(var(--fx-sky1), var(--fx-sky2)); border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px var(--r-gold), 5px 5px 0 rgba(43,45,82,.28); }
.yt-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.yl-tree-cap { text-align: center; color: var(--r-sub); font-size: .85rem; margin-top: 10px; }
.yt-tag { position: absolute; width: 22px; height: 34px; margin-left: -11px; padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 0; animation: yt-sway 3s ease-in-out infinite alternate; }
.yt-tag::before { content: ""; position: absolute; left: 10px; top: 0; width: 2px; height: 10px; background: #E04B5A; }
.yt-tag span { position: absolute; left: 0; top: 10px; width: 22px; height: 24px; display: grid; place-items: center;
  background: #C8463D; color: #FFE7A8; border: 2px solid #6B1F1B; font-family: var(--mincho); font-weight: 700; font-size: 12px; line-height: 1; }
.yt-tag.me span { background: #E9B949; color: #6B1F1B; }
.yt-tag:hover span, .yt-tag:focus-visible span { outline: 2px solid #FFFBF0; }
@keyframes yt-sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.yt-tag.wait { visibility: hidden; }
.yt-tag.fly { visibility: visible; animation: yt-fly 1.1s steps(8) both, yt-sway 3s 1.1s ease-in-out infinite alternate; }
.yt-tag.fly::after { content: "✦"; position: absolute; left: 50%; top: 14px; transform: translateX(-50%); color: #FFE7A8; font-size: 26px; opacity: 0; animation: yt-spark .6s 1.05s steps(3); }
@keyframes yt-fly { from { transform: translateY(260px) scale(.5); opacity: 0; } 70% { opacity: 1; } }
@keyframes yt-spark { 40% { opacity: 1; transform: translateX(-50%) scale(1.5); } }
.yt-petal { position: absolute; top: -8px; width: 5px; height: 5px; background: #F4A9BC; animation: yt-fall 7s linear infinite; pointer-events: none; }
@keyframes yt-fall { to { transform: translate(-30px, 460px) rotate(200deg); } }
.yl-card.yt-flash { animation: yt-flash 1.4s steps(4); }
@keyframes yt-flash { 0%, 50% { box-shadow: 0 0 0 5px #E9B949, 4px 4px 0 #2B2D52; } }

/* ② 合盤愛心 10 格（match.js）＋走慢一點 */
.mt-a { animation: mt-in-l 1.1s steps(8) both, fx-walk .14s steps(2) 8; }
.mt-b { animation: mt-in-r 1.1s steps(8) both, fx-walk .14s steps(2) 8; }
@keyframes mt-in-l { from { transform: translateX(-130px); opacity: 0; } 10% { opacity: 1; } }
@keyframes mt-in-r { from { transform: translateX(130px); opacity: 0; } 10% { opacity: 1; } }
@keyframes fx-walk { 50% { margin-bottom: 4px; } }
.mt-thread path { animation-delay: 1.1s; }
.mt-yl { animation-delay: 1.9s; }
.mt-knot { animation-delay: 2.2s; }
.mt-score, .mt-tier, .mt-hearts { animation: mt-fade .3s 2.4s both; }
.mt-hearts { display: flex; gap: 4px; justify-content: center; margin: 2px 0 0; opacity: 0; }
.mt-hearts i { width: 20px; height: 18px; background: var(--r-line);
  clip-path: polygon(20% 0, 40% 0, 50% 15%, 60% 0, 80% 0, 100% 20%, 100% 45%, 50% 100%, 0 45%, 0 20%); transition: background .1s steps(1); }
.mt-hearts i.half { background: linear-gradient(90deg, #E04B5A 50%, var(--r-line) 50%); }
.mt-hearts i.on { background: #E04B5A; }
@media (prefers-reduced-motion: reduce) { .mt-hearts { animation: none; opacity: 1; } }

/* ④ 流年籤筒 */
.fx-hint { color: var(--r-sub); margin: 4px 0 14px; }
.fx-draw { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: end; margin-top: 18px; }
.fx-draw .zpanel { margin-top: 0; transition: opacity .2s; }
.zpanel.fx-wait { opacity: 0; }
.fx-cup { position: relative; height: 170px; }
.fx-tube { position: absolute; left: 18px; bottom: 0; width: 74px; height: 96px; background: #A0522D; border: 3px solid #4A2412;
  box-shadow: inset 6px 0 0 #C46A3A, inset -6px 0 0 #7A3A1C; display: grid; place-items: center; z-index: 2; }
.fx-tube em { font-style: normal; font-family: var(--mincho); font-weight: 700; font-size: 1.6rem; color: #FFE7A8; }
.fx-tube i { position: absolute; bottom: 88px; width: 7px; height: 30px; background: #E8C27A; border: 2px solid #4A2412; border-bottom: 0; }
.fx-tube i:nth-child(1) { left: 6px; height: 22px; } .fx-tube i:nth-child(2) { left: 18px; height: 34px; } .fx-tube i:nth-child(3) { left: 30px; height: 26px; }
.fx-tube i:nth-child(4) { left: 42px; height: 38px; } .fx-tube i:nth-child(5) { left: 54px; height: 24px; }
.fx-stick { position: absolute; left: 34px; bottom: 100px; width: 42px; padding: 6px 0; display: grid; justify-items: center; gap: 2px; z-index: 3;
  background: #F6DFA8; border: 3px solid #4A2412; transition: transform .45s steps(5), opacity .2s; transform: translateY(40px); opacity: 0; }
.fx-stick b { font-family: var(--mincho); font-size: 1.4rem; color: #8A2A22; line-height: 1.1; }
.fx-stick small { font-family: var(--pixel); font-size: 10px; color: #8A2A22; writing-mode: vertical-rl; letter-spacing: .1em; }
.fx-cup.up .fx-stick { transform: none; opacity: 1; }
.fx-cup.shake .fx-tube { animation: fx-shake .76s steps(2); }
@keyframes fx-shake { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-14deg); } 35% { transform: rotate(12deg); } 55% { transform: rotate(-10deg); } 75% { transform: rotate(8deg); } }
.fx-cup:not(.up):not(.shake) .fx-stick { transform: none; opacity: 1; }
@media (max-width: 560px) { .fx-draw { grid-template-columns: 1fr; } .fx-cup { width: 110px; margin: 0 auto; } }

/* ⑤ 生肖圓盤＋收合 */
.fx-wheel { margin: 18px 0 26px; }
.fx-wheel-hint { text-align: center; color: var(--r-sub); font-size: .9rem; margin: 0 0 8px; }
.fx-wheel-stage { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 0 auto; }
.fx-wheel-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-ring { fill: none; stroke: var(--r-line); stroke-width: 1.4; stroke-dasharray: 2 2; }
.fx-ln { stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 120; stroke-dashoffset: 120; animation: fx-ln .6s steps(6) forwards; }
.fx-ln[stroke-dasharray="3 2"] { stroke-dashoffset: 0; animation: mt-fade .4s both; opacity: 0; }
circle.fx-ln { stroke-dasharray: none; stroke-dashoffset: 0; stroke-width: 2.2; animation: fx-ring .9s steps(3) infinite alternate; }
@keyframes fx-ln { to { stroke-dashoffset: 0; } }
@keyframes fx-ring { to { stroke-width: 3.6; } }
.fx-z { position: absolute; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; padding: 0;
  font-family: var(--mincho); font-weight: 700; font-size: clamp(.95rem, 4.4vw, 1.25rem); color: var(--r-ink); background: var(--r-win);
  border: 3px solid #2B2D52; box-shadow: 2px 2px 0 #2B2D52; cursor: pointer; transition: opacity .2s, background .2s; }
.fx-z.month { background: #FFF1D6; border-color: #B8860B; color: #6B1F1B; }
.fx-z.lit { background: var(--c, #E9B949); color: #FFFBF0; }
.fx-z.dim { opacity: .4; }
.fx-z:focus-visible { outline: 3px solid var(--r-gold); }
.fx-wcenter { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; text-align: center; pointer-events: none; }
.fx-wcenter b { font-family: var(--mincho); font-size: 1.5rem; color: var(--r-ink); }
.fx-wcenter small { font-family: var(--pixel); font-size: 11px; color: var(--r-sub); }
.fx-wcard:empty { display: none; }
.fx-wcard { margin: 14px auto 0; max-width: 520px; padding: 14px 16px; background: var(--r-win); border: 3px solid #2B2D52; border-left: 8px solid var(--c, #E9B949); }
.fx-wcard.in { animation: fx-pop .3s steps(3); }
.fx-wcard h3 { font-size: 1.05rem; margin: 4px 0; }
.fx-wcard p { margin: 4px 0; }
.fx-rel { display: inline-block; padding: 0 8px; background: var(--c, #E9B949); color: #FFFBF0; font-family: var(--pixel); font-size: 12px; letter-spacing: .1em; }
.prose .fx-folded { display: none; }
.prose .fx-unfold { animation: fx-pop .35s var(--d, 0s) steps(3) both; }
.fx-more { display: block; margin: 8px auto 26px; font-family: var(--pixel); }

/* ⑥ 兔寶講故事 */
.fx-story .fx-talk { margin-top: 8px; }
.fx-story-tools { text-align: right; margin: 8px 0 0; }
.fx-story-all p { margin: 0 0 12px; }
.fx-story.js:not(.all) .fx-story-all { display: none; }
.fx-story.js .fx-story-all { margin-top: 16px; padding: 18px 20px; background: var(--r-win); border: 3px solid #2B2D52; }
.fx-story.js:not(.end) .fx-story-end { display: none; }
.fx-story-end { margin-top: 18px; animation: fx-pop .35s steps(3); }
.fx-story:not(.js) .fx-story-tools { display: none; }

/* ⑧ 科儀小測驗＋上香 */
.fx-rq { max-width: 640px; margin: 0 auto; display: grid; gap: 12px; padding: 24px 20px; background: var(--r-win); border: 3px solid #2B2D52; box-shadow: inset 0 0 0 3px var(--r-gold), 5px 5px 0 rgba(43,45,82,.28); }
.fx-rq.in { animation: fx-pop .3s steps(3); }
.fx-rq > .btn.fill { justify-self: start; font-family: var(--pixel); }
.fx-rq-alt { color: var(--r-sub); font-size: .88rem; }
.fx-qbar { height: 10px; background: var(--r-line); border: 2px solid #2B2D52; }
.fx-qbar i { display: block; height: 100%; background: var(--r-red); transition: width .3s steps(3); }
.fx-q { font-size: 1.15rem; margin: 6px 0 2px; }
.fx-qopts { display: grid; gap: 10px; }
.fx-qopts button { text-align: left; font: inherit; color: var(--r-ink); background: var(--r-bg); border: 3px solid #2B2D52; box-shadow: 3px 3px 0 #2B2D52; padding: 10px 14px; cursor: pointer; }
.fx-qopts button::before { content: "▶ "; color: var(--r-red); font-size: .8em; }
.fx-qopts button:hover, .fx-qopts button:focus-visible, .fx-qopts button.hit { background: var(--r-gold); color: #2B2D52; }
.fx-qopts button.hit { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #2B2D52; }
.fx-rq [data-back] { justify-self: start; }
.fx-ris { display: grid; gap: 10px; }
.fx-ri { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--r-bg); border: 2px solid #2B2D52; }
.fx-ri img { width: 64px; height: 64px; image-rendering: pixelated; }
.fx-ri b { display: block; font-family: var(--mincho); font-size: 1.05rem; color: var(--r-ink); }
.fx-ri small { color: var(--r-sub); font-size: .85rem; }
.fx-ri > span { font-family: var(--pixel); color: var(--r-red); white-space: nowrap; }
.fx-ri-dot { width: 56px; height: 56px; display: grid; place-items: center; justify-self: center; background: #E9B949; color: #6B1F1B; font-family: var(--mincho); font-weight: 700; font-size: 1.4rem; border: 3px solid #2B2D52; }
.fx-sum { font-family: var(--pixel); text-align: right; color: var(--r-ink); margin: 0; }
.fx-rq-say { text-align: center; font-family: var(--mincho); color: var(--r-ink); margin: 0; }
.fx-incense { position: relative; height: 150px; margin: 4px auto 0; width: 220px; }
.fx-burner { position: absolute; left: 34px; bottom: 0; width: 80px; height: 38px; background: #B8860B; border: 3px solid #4A3200; box-shadow: inset 0 6px 0 #E9B949; }
.fx-sticks i { position: absolute; bottom: 36px; width: 4px; height: 60px; background: #7A3A1C; }
.fx-sticks i:nth-child(1) { left: 56px; transform: rotate(-6deg); } .fx-sticks i:nth-child(2) { left: 72px; height: 66px; } .fx-sticks i:nth-child(3) { left: 88px; transform: rotate(6deg); }
.fx-sticks i::after { content: ""; position: absolute; top: -4px; left: -1px; width: 6px; height: 6px; background: #FF6B3D; box-shadow: 0 0 6px #FF6B3D; animation: g-blink .8s steps(2) infinite; }
.fx-smoke i { position: absolute; bottom: 100px; width: 6px; height: 6px; background: rgba(200,190,220,.8); animation: fx-smoke 2.4s linear infinite; }
.fx-smoke i:nth-child(1) { left: 54px; } .fx-smoke i:nth-child(2) { left: 72px; animation-delay: .8s; } .fx-smoke i:nth-child(3) { left: 90px; animation-delay: 1.6s; }
@keyframes fx-smoke { from { transform: translate(0, 0); opacity: .9; } 50% { transform: translate(6px, -24px); } to { transform: translate(-4px, -48px) scale(2); opacity: 0; } }
.fx-paper { position: absolute; right: 8px; bottom: 0; width: 70px; height: 80px; }
.fx-gold { position: absolute; left: 0; bottom: 0; width: 70px; height: 26px; background: repeating-linear-gradient(0deg, #E9B949 0 5px, #C8A03A 5px 7px); border: 3px solid #4A3200; }
.fx-flame i { position: absolute; bottom: 24px; width: 18px; height: 34px; background: #FF8A3D; clip-path: polygon(50% 0, 80% 40%, 100% 75%, 70% 100%, 30% 100%, 0 75%, 20% 40%); animation: fx-flick .5s steps(2) infinite alternate; }
.fx-flame i:nth-child(1) { left: 4px; } .fx-flame i:nth-child(2) { left: 24px; height: 44px; background: #FFB347; animation-delay: .15s; } .fx-flame i:nth-child(3) { left: 46px; animation-delay: .3s; }
@keyframes fx-flick { to { transform: scaleY(.78) translateY(4px); } }

@media (prefers-reduced-motion: reduce) {
  .fx-deal .flip, .fx-deal.dealt .flip { opacity: 1; transform: none; animation: none; }
  .fx-hop, .fx-hop.jump, .yt-tag, .yt-tag.fly, .yt-tag.fly::after, .yt-petal, .fx-cup.shake .fx-tube, .fx-stick, .fx-ln, circle.fx-ln, .fx-smoke i, .fx-flame i, .fx-sticks i::after,
  .fx-msg.in, .fx-wcard.in, .fx-rq.in, .prose .fx-unfold, .fx-story-end, .fx-next, .fx-typing i, .fx-node.on::after, .fx-quest.done + .btns .btn.fill { animation: none; transition: none; }
  .fx-ln { stroke-dashoffset: 0; } .fx-ln[stroke-dasharray="3 2"] { opacity: 1; } .yt-tag.wait { visibility: visible; }
  .mt-a, .mt-b { animation: none; }
}
