@font-face { font-family: Iansui; src: url(fonts/iansui.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Huninn; src: url(fonts/openhuninn.woff2) format('woff2'); font-display: swap; }

:root {
  --paper: #f1f1f3; --paper-2: #e5e5e8; --card: #fafafb;
  --ink: #2B2620; --ink-2: #6B6155; --line: #D9CDB6;
  --gold: #A9843F; --red: #B5432F;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); overflow-x: hidden; }
body { font-family: Huninn, "PingFang TC", "Noto Sans TC", sans-serif; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; min-width: 0; -webkit-tap-highlight-color: transparent; }
.ph { display: inline-block; }
.serif { font-family: Iansui, "Noto Serif TC", serif; }
.wrap { max-width: 520px; margin: 0 auto; padding: 0 16px; }
.page { min-height: 100svh; animation: fade .6s ease both; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

/* 頂欄 */
.top { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: rgba(241,241,243,.92); backdrop-filter: blur(6px); }
.top .brand { font-family: Iansui, serif; font-size: 19px; letter-spacing: .14em; }
.top .l { justify-self: start; font-size: 15px; color: var(--ink-2); }
.top .r { justify-self: end; font-size: 15px; color: var(--ink-2); }

/* 開場 */
.gate { position: relative; height: 100svh; overflow: hidden; background: #cfe0ee; }
.gate .bg { position: absolute; inset: -4%; background: url(img/heaven.webp) center 42% / cover no-repeat; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02) } to { transform: scale(1.1) translateY(-2%) } }
.gate .veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(241,241,243,.8) 0%, rgba(241,241,243,0) 26%, rgba(241,241,243,0) 70%, rgba(241,241,243,.9) 100%); }
.gate .title { position: absolute; top: max(36px, env(safe-area-inset-top)); left: 0; right: 0; text-align: center; }
.gate h1 { font-family: Iansui, serif; font-weight: 400; font-size: 46px; letter-spacing: .22em; padding-left: .22em; }
.gate .sub { font-family: Iansui, serif; font-size: 16px; letter-spacing: .2em; color: var(--ink-2); }
.gate .enter { position: absolute; left: 50%; bottom: max(44px, env(safe-area-inset-bottom)); transform: translateX(-50%); font-family: Iansui, serif; font-size: 20px; letter-spacing: .4em; padding: 12px 32px 12px 40px; border: 1px solid var(--gold); border-radius: 999px; background: rgba(241,241,243,.86); backdrop-filter: blur(4px); }

/* 島 */
.map { position: relative; margin: 0 -16px; }
.map img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(241,241,243,0) 82%, var(--paper)); }
.pin { position: absolute; transform: translate(-50%, -50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pin i { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(169,132,63,.55), 0 0 14px 4px rgba(255,240,200,.9); animation: glow 2.6s ease-in-out infinite; }
.pin span { font-family: Iansui, serif; font-size: 13px; letter-spacing: .08em; padding: 1px 8px; border-radius: 999px; background: rgba(250,250,251,.88); white-space: nowrap; }
@keyframes glow { 50% { box-shadow: 0 0 0 5px rgba(169,132,63,.35), 0 0 20px 6px rgba(255,240,200,1); } }
.ask { font-family: Iansui, serif; font-size: 25px; text-align: center; line-height: 1.5; margin: 6px 0 16px; }
.moods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mood { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; text-align: left; background: var(--paper-2); }
.mood img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.mood span { position: absolute; left: 0; right: 0; top: 0; padding: 12px 12px 34px; background: linear-gradient(to top, rgba(241,241,243,0), rgba(241,241,243,.9)); font-family: Iansui, serif; font-size: 18px; letter-spacing: .06em; }
.mood small { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); letter-spacing: .1em; }
.links { display: flex; justify-content: center; gap: 22px; margin: 26px 0 40px; color: var(--ink-2); font-size: 15px; }

/* 地方 */
.hero { margin: 0 -16px; aspect-ratio: 4/5; background-size: cover; background-position: center 25%; position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(241,241,243,0) 62%, var(--paper)); }
.keeper { display: flex; gap: 12px; align-items: center; margin: -54px 0 18px; position: relative; z-index: 1; }
.keeper img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; object-position: center 12%; border: 3px solid var(--card); box-shadow: 0 4px 14px rgba(0,0,0,.12); flex: none; background: var(--paper-2); }
.keeper b { display: block; font-weight: 400; font-size: 13px; color: var(--gold); letter-spacing: .2em; }
.keeper q { font-family: Iansui, serif; font-size: 19px; line-height: 1.55; quotes: none; }
.go { display: block; width: 100%; padding: 14px; margin: 8px 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: Iansui, serif; font-size: 19px; letter-spacing: .16em; }
.ghost { display: block; width: 100%; padding: 12px; margin: 8px 0; border-radius: 999px; border: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }

/* 一句 */
.slip { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px 20px; margin: 4px 0 14px; position: relative; animation: unfold .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes unfold { from { opacity: 0; transform: translateY(18px) scale(.98); clip-path: inset(0 0 60% 0 round 18px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 18px); } }
.seal { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 8px; border: 2px solid var(--red); color: var(--red); display: grid; place-items: center; font-family: Iansui, serif; font-size: 26px; transform: rotate(4deg); opacity: .9; }
.vol { font-size: 13px; color: var(--ink-2); letter-spacing: .14em; }
.orig { font-family: Iansui, serif; font-size: 25px; line-height: 1.75; margin: 10px 56px 10px 0; }
.src { font-size: 14px; color: var(--ink-2); }
.tag { display: inline-block; font-size: 12px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); margin-left: 6px; vertical-align: 1px; }
.slip h3 { font-weight: 400; font-size: 13px; color: var(--gold); letter-spacing: .2em; margin: 16px 0 2px; }
.slip p { font-size: 16.5px; }
.slip hr { border: 0; border-top: 1px dashed var(--line); margin: 16px 0 0; }
.help { font-size: 13px; color: var(--ink-2); text-align: center; margin: 14px 4px 0; line-height: 1.6; }
.help a { color: var(--ink); }
.note { text-align: center; font-size: 14px; color: var(--ink-2); margin: 8px 0 40px; }

/* 書籤 */
.bm { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.bm .orig { font-size: 19px; margin: 2px 0 4px; }
.bm .row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-2); }
.bm .row button { color: var(--ink-2); font-size: 13px; }
.empty { text-align: center; color: var(--ink-2); margin: 60px 0; }

@media (prefers-reduced-motion: reduce) {
  .gate .bg, .pin i { animation: none; }
  .page, .slip { animation: none; }
}

/* ---------- 島：滿版地圖＋貓帶路 ---------- */
.world { position: fixed; inset: 0; overflow: hidden; touch-action: none; cursor: grab; background: #cfe0ee; animation: fade .6s ease both; }
.backdrop { position: absolute; inset: -40px; background: url(img/heaven.webp) center / cover; filter: blur(28px) saturate(1.1) brightness(1.05); transform: scale(1.1); }
.stage { position: absolute; left: 0; top: 0; width: 1000px; height: 1500px; transform-origin: 0 0; transition: transform 1.8s cubic-bezier(.45,.05,.25,1); will-change: transform; }
.stage > img:first-child { width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.pins { position: absolute; inset: 0; pointer-events: none; }
.pins .pin { pointer-events: auto; animation: fade .5s ease both; }
.wtop { position: absolute; top: 0; left: 0; right: 0; text-align: center; padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); background: linear-gradient(to bottom, rgba(241,241,243,.85), rgba(241,241,243,0)); pointer-events: none; }
.wtop .brand { font-family: Iansui, serif; font-size: 22px; letter-spacing: .24em; }

.panel { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 12px max(14px, env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; }
.panel > * { pointer-events: auto; }
.panel.in > * { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.talk { position: relative; width: 100%; max-width: 560px; display: flex; align-items: flex-end; }
.talk .who { width: 34%; max-width: 170px; max-height: 300px; object-fit: contain; object-position: bottom; margin-right: -14px; margin-bottom: 6px; position: relative; z-index: 1; filter: drop-shadow(0 8px 10px rgba(0,0,0,.22)); }
.bubble { flex: 1; min-width: 0; background: rgba(250,250,251,.96); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 12px 22px; box-shadow: 0 10px 30px rgba(43,38,32,.18); }
.bubble b { display: block; font-weight: 400; font-size: 13px; color: var(--gold); letter-spacing: .2em; }
.bubble p { font-family: Iansui, serif; font-size: 18px; line-height: 1.6; margin: 2px 0 10px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btns button { padding: 9px 16px; border-radius: 999px; font-size: 15px; letter-spacing: .06em; }
.btns .b1 { background: var(--ink); color: var(--paper); }
.btns .b2 { border: 1px solid var(--line); color: var(--ink-2); }
.dock { display: flex; gap: 8px; background: rgba(250,250,251,.94); border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgba(43,38,32,.16); }
.dock button { padding: 9px 16px; border-radius: 999px; font-size: 15px; }
.dock button:first-child { background: var(--ink); color: var(--paper); }

@media (min-width: 900px) {
  .talk .who { max-height: 380px; max-width: 220px; }
  .bubble p { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage, .walker { transition: none; }
  .panel.in > *, .world, .pins .pin { animation: none; }
}

/* 走到之後，頭上冒出的對話提示 */
.chat { position: absolute; transform: translate(-50%, -150%); pointer-events: auto; display: flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; letter-spacing: .06em; box-shadow: 0 6px 16px rgba(0,0,0,.25); animation: bob 1.6s ease-in-out infinite; }
.chat::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.chat span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1; }
@keyframes bob { 50% { transform: translate(-50%, -165%); } }
@media (prefers-reduced-motion: reduce) { .chat, .walker.moving.none { animation: none; } }

/* ---------- 小儀式 ---------- */
.rit { position: relative; }
.rit-bg { position: fixed; inset: 0; background-size: cover; background-position: center; filter: blur(14px) brightness(1.08) saturate(.9); opacity: .45; transform: scale(1.1); z-index: -1; }
.rit-body { padding-bottom: 48px; }
.rit-say { display: flex; gap: 10px; align-items: flex-end; margin: 6px 0 14px; }
.rit-say img { width: 74px; height: 110px; object-fit: contain; object-position: bottom; flex: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.rit-say > div { flex: 1; background: rgba(250,250,251,.95); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.rit-say b { display: block; font-weight: 400; font-size: 12px; color: var(--gold); letter-spacing: .2em; }
.rit-say p { font-family: Iansui, serif; font-size: 17px; line-height: 1.6; }
.rit-in { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); margin: 12px 0 4px; resize: none; }
.rit-in:disabled { opacity: .55; }
.rit-msg { min-height: 1.4em; text-align: center; color: var(--ink-2); font-size: 14px; }
.rit-end { margin-top: 18px; animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.bar-prog { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin: 12px 0; }
.bar-prog i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .15s; }

/* 願望符 */
.sig-card { background: #f2f2f0; border: 1px solid var(--line); border-radius: 18px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.sig-host { width: 92%; display: grid; place-items: center; transition: transform 1.3s cubic-bezier(.5,0,.3,1), opacity 1.3s, filter 1.3s; }
.sig-host > span { color: var(--ink-2); font-size: 14px; }
.sig-host svg { width: 100%; height: auto; }
.sig-host.fly { transform: translateY(-70%) scale(.08); opacity: 0; filter: drop-shadow(0 0 20px #ffd76a) brightness(1.6); }

/* 水燈 */
.lake { position: relative; height: 230px; border-radius: 18px; overflow: hidden; background: linear-gradient(#cfe3ee 0%, #a9cde0 42%, #7fb0c9 100%); }
.lake::before { content: ""; position: absolute; left: 0; right: 0; top: 40%; height: 1px; background: rgba(255,255,255,.7); }
.lantern { position: absolute; left: 50%; bottom: 22px; width: 120px; transform: translateX(-50%); transition: transform 4s cubic-bezier(.3,0,.4,1), opacity 4s; touch-action: none; cursor: grab; }
.lantern i { display: block; height: 70px; border-radius: 14px 14px 30px 30px / 14px 14px 40px 40px; background: radial-gradient(circle at 50% 60%, #fff6d8, #ffd98a 55%, #e9a65a); box-shadow: 0 0 30px 10px rgba(255,214,120,.55); }
.lantern span { position: absolute; left: 8px; right: 8px; top: 12px; font-family: Iansui, serif; font-size: 12px; line-height: 1.35; color: #6b4a24; text-align: center; overflow: hidden; max-height: 48px; }
.lantern.drift { transform: translate(-50%, -150px) scale(.22); opacity: .35; }
.lake .rip { position: absolute; left: 50%; bottom: 20px; width: 140px; height: 26px; margin-left: -70px; border: 1.5px solid rgba(255,255,255,.8); border-radius: 50%; animation: ripple 2.6s ease-out forwards; }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* 解結 */
.knot-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; touch-action: none; }
.knot-box svg { display: block; width: 100%; height: auto; cursor: grab; }
.knot-box path { fill: none; stroke: #c23b2f; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .6s; }
.knot-box svg.free path { stroke: #d9483a; filter: drop-shadow(0 0 6px rgba(217,72,58,.6)); }

/* 敲鼓 */
.drum-box { position: relative; display: grid; place-items: center; padding: 26px 0 10px; }
.drum { position: relative; width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #f3e4c6, #e2c99c 60%, #c9a66c); border: 10px solid #a3352a; box-shadow: 0 0 0 4px #c9a14e, 0 12px 26px rgba(0,0,0,.25); touch-action: none; }
.drum svg { position: absolute; inset: -18px; width: calc(100% + 36px); height: calc(100% + 36px); transform: rotate(-90deg); pointer-events: none; }
.drum .ring { fill: none; stroke: #e7b54a; stroke-width: 4; stroke-dasharray: 100; stroke-dashoffset: 100; }
.drum.hold { transform: scale(.97); }
.drum.hit { animation: thump .35s ease-out; }
@keyframes thump { 30% { transform: scale(.9); } 100% { transform: scale(1); } }
.drum-box .wave { position: absolute; top: 50%; left: 50%; width: 210px; height: 210px; margin: -105px 0 0 -105px; border-radius: 50%; border: 3px solid rgba(201,161,78,.8); pointer-events: none; animation: wave .9s ease-out forwards; }
@keyframes wave { to { transform: scale(var(--s, 2)); opacity: 0; } }
.hits { display: flex; gap: 10px; margin-top: 16px; }
.hits i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #a3352a; }
.hits i.on { background: #a3352a; }

/* 種子 */
.garden { position: relative; height: 230px; border-radius: 18px; overflow: hidden; background: linear-gradient(#e7f0dc, #d6e6c6 60%); }
.soil { position: absolute; left: 50%; bottom: 0; width: 220px; height: 90px; transform: translateX(-50%); border-radius: 110px 110px 0 0; background: radial-gradient(ellipse at 50% 30%, #9a7350, #6d4c31); cursor: pointer; }
.soil .hole { position: absolute; left: 50%; top: 18px; width: 0; height: 0; transform: translateX(-50%); border-radius: 50%; background: #3e2a1a; transition: all .5s; }
.dug .soil .hole { width: 40px; height: 14px; }
.soil .seed { position: absolute; left: 50%; top: -60px; width: 10px; height: 14px; margin-left: -5px; border-radius: 50%; background: #e7c88e; opacity: 0; }
.sown .soil .seed { animation: drop .6s ease-in forwards; }
@keyframes drop { 0% { opacity: 1; } 100% { top: 18px; opacity: 1; } }
.sprout { position: absolute; left: 50%; bottom: 66px; width: 60px; height: 80px; margin-left: -30px; transform: scaleY(0); transform-origin: 50% 100%; transition: transform 1.4s cubic-bezier(.2,.9,.3,1.2); }
.sprout path { fill: none; stroke: #5d8f3f; stroke-width: 3; stroke-linecap: round; }
.sprout .lf { fill: #8cc06b; stroke-width: 1.5; }
.grown .sprout { transform: scaleY(1); }
.can { position: absolute; right: 14px; top: 14px; padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; touch-action: none; }
.can.on { background: #4f7fa0; }
.drops i { position: absolute; top: 60px; width: 4px; height: 10px; border-radius: 3px; background: #7fb3d6; animation: rain .7s linear forwards; }
@keyframes rain { to { transform: translateY(80px); opacity: 0; } }

/* 星星 */
.sky { position: relative; height: 130px; border-radius: 18px; overflow: hidden; background: linear-gradient(#1d2747, #3a4775); }
.sky i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff3c4; box-shadow: 0 0 8px 2px rgba(255,236,170,.7); }
.sky i.new { width: 10px; height: 10px; margin-left: -5px; animation: rise .8s ease both; }
.strip-box { position: relative; height: 120px; display: grid; place-items: center; }
.strip { --w: 1; width: calc(90% * var(--w)); height: 34px; border-radius: 4px; background: linear-gradient(90deg, #f6d8a8, #f2c27c); display: grid; place-items: center; transition: width .35s, opacity .4s, transform .4s; overflow: hidden; }
.strip span { white-space: nowrap; font-family: Iansui, serif; font-size: 15px; color: #6b4a24; }
.strip.gone { opacity: 0; transform: scale(.3); }
.pstar { position: absolute; width: 80px; height: 80px; opacity: 0; transform: scale(.2); transition: transform .6s cubic-bezier(.2,.9,.3,1.3), opacity .4s; }
.pstar path { fill: #f2c27c; stroke: #d29a4a; stroke-width: 2; stroke-linejoin: round; }
.pstar.on { opacity: 1; transform: scale(1); }
.pstar.up { transform: translateY(-140px) scale(.2); opacity: 0; transition: transform .9s ease-in, opacity .9s; }

/* 書籤 */
.book-box { position: relative; height: 250px; display: grid; place-items: end center; perspective: 800px; }
.book { position: relative; width: 240px; height: 150px; display: flex; margin-bottom: 10px; }
.book .pg { flex: 1; background: linear-gradient(90deg, #f7f1e4, #fbf8f2); border: 1px solid var(--line); box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.book .pg.l { border-radius: 10px 2px 2px 10px; }
.book .pg.r { border-radius: 2px 10px 10px 2px; transform-origin: 0 50%; transition: transform 1s ease; }
.book-box.shut .pg.r { transform: rotateY(-178deg); }
.bmk { position: absolute; left: 50%; top: 0; width: 64px; padding: 10px 6px; transform: translateX(-50%) rotate(-3deg); background: #a3352a; color: #fff6e6; border-radius: 4px; text-align: center; writing-mode: vertical-rl; font-size: 15px; line-height: 1.5; max-height: 210px; overflow: hidden; touch-action: none; cursor: grab; transition: transform .8s ease, opacity .8s; box-shadow: 0 6px 12px rgba(0,0,0,.2); }
.bmk small { font-size: 11px; opacity: .8; margin-top: 6px; }
.book-box.in .bmk { transform: translate(-50%, 110px) rotate(0); }
.book-box.shut .bmk { opacity: 0; }

/* 銅錢 */
.coins { display: flex; justify-content: center; gap: 18px; padding: 30px 0 10px; perspective: 600px; }
.coin { position: relative; width: 74px; height: 74px; transform-style: preserve-3d; }
.coin .f { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #e9c477, #b8873c 70%, #8d6427); box-shadow: inset 0 0 0 4px #a07434, 0 6px 10px rgba(0,0,0,.25); }
.coin .f i { width: 18px; height: 18px; background: var(--paper); border: 2px solid #8d6427; }
.coin .b { transform: rotateX(180deg); background: radial-gradient(circle at 40% 35%, #d9b26a, #9c7333 70%, #74511d); }
.coin .b::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 2px dashed rgba(70,45,15,.55); }
.coin-say { text-align: center; font-size: 18px; min-height: 1.8em; margin: 6px 0; }

/* 收藏頁 */
.sec2 { font-family: Iansui, serif; font-weight: 400; font-size: 20px; letter-spacing: .14em; margin: 18px 0 10px; }
.sec3 { font-weight: 400; font-size: 14px; color: var(--gold); letter-spacing: .16em; margin: 14px 0 8px; }
.sigs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sigs figure { background: #f2f2f0; border: 1px solid var(--line); border-radius: 12px; padding: 6px; text-align: center; }
.sigs svg { width: 100%; height: auto; display: block; }
.sigs figcaption { font-size: 12px; line-height: 1.4; }
.sigs small, .stars small, .seeds small { display: block; font-size: 11px; color: var(--ink-2); }
.sigs button, .stars button { font-size: 11px; color: var(--ink-2); }
.stars, .seeds, .counts { list-style: none; }
.stars li, .seeds li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.stars li .serif { font-size: 17px; }
.counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.counts li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.counts b { font-family: Iansui, serif; font-size: 17px; margin-right: 2px; }

@media (prefers-reduced-motion: reduce) {
  .lantern, .sig-host, .pstar, .bmk, .book .pg.r, .sprout { transition: none; }
}

/* 許願池 */
.fount { position: relative; height: 300px; border-radius: 18px; overflow: hidden; background: linear-gradient(#cfe3ee 0%, #a9cde0 45%, #e9e0cc 46%, #efe6d4 100%); }
.lakeback { position: absolute; left: 0; right: 0; top: 30%; height: 16%; background: linear-gradient(#9fc6da, #7fb0c9); border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
.you { position: absolute; left: 50%; bottom: -10px; width: 120px; height: 150px; margin-left: -60px; border-radius: 60px 60px 10px 10px; background: radial-gradient(circle at 50% 28%, #5b4a3d 0 30px, transparent 31px), linear-gradient(transparent 52px, #c9b79c 52px); opacity: .85; }
.ftcoin { position: absolute; left: 62%; bottom: 120px; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f2d98e, #c9a24a 70%, #9a7428); box-shadow: inset 0 0 0 3px #b08a3a, 0 4px 8px rgba(0,0,0,.25); touch-action: none; cursor: grab; }
.ftcoin.toss { animation: toss 1.1s cubic-bezier(.3,.2,.4,1) forwards; }
@keyframes toss { 0% { transform: none; } 45% { transform: translate(-40px, -150px) rotate(540deg) scale(.8); } 100% { transform: translate(-70px, -88px) rotate(1080deg) scale(.25); opacity: .8; } }
.fount .splash { position: absolute; left: calc(62% - 70px); top: 34%; width: 60px; height: 14px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; animation: ripple 1.8s ease-out forwards; }

/* 原文籤紙：塔羅、易經 */
.slip .orig small { display: block; font-family: Huninn, sans-serif; font-size: 14px; color: var(--ink-2); }
.slip.tarot { text-align: center; }
.tcard { width: 62%; max-width: 240px; margin: 8px auto 4px; border-radius: 12px; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.tcard.rev { transform: rotate(180deg); }
.yjrow { display: flex; gap: 14px; align-items: center; margin: 8px 0; }
.yjrow img { width: 38%; border-radius: 10px; box-shadow: 0 6px 14px rgba(0,0,0,.15); }
.hex { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.hex i { position: relative; height: 10px; border-radius: 2px; background: var(--ink); }
.hex i.yin { background: linear-gradient(90deg, var(--ink) 42%, transparent 42% 58%, var(--ink) 58%); }
.hex i.mv::after { content: "✦"; position: absolute; right: -18px; top: -6px; color: var(--red); font-size: 14px; }
.jud { font-size: 17px; line-height: 1.8; margin: 6px 0; }
.jud.mvl b { font-family: Huninn, sans-serif; font-weight: 400; font-size: 13px; color: var(--red); margin-right: 8px; }
.row2 { display: flex; gap: 8px; flex-wrap: wrap; }
.row2 .ghost { flex: 1 1 40%; }

/* 解籤 */
.jq-head { display: flex; gap: 12px; align-items: flex-end; margin: 8px 0 10px; }
.jq-head img { width: 92px; height: 140px; object-fit: contain; object-position: bottom; flex: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.18)); }
.jq-head b { display: block; font-weight: 400; font-size: 13px; color: var(--gold); letter-spacing: .2em; }
.jq-head q { font-family: Iansui, serif; font-size: 18px; line-height: 1.6; quotes: none; }
.ex { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
.ex h3 { font-weight: 400; font-size: 14px; color: var(--gold); letter-spacing: .14em; margin: 4px 0 6px; display: flex; align-items: center; gap: 8px; }
.ex p { font-size: 16.5px; margin: 4px 0; }
.ex .adv, .ex .q { color: var(--ink-2); }
.nat { font-size: 11px; letter-spacing: .06em; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
.ex-l { list-style: none; }
.ex-l li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.ex-l li:last-child { border-bottom: 0; }
.ex-l.lx b { display: block; font-weight: 400; font-size: 18px; color: var(--ink); }
.ex-d dt { font-size: 13px; color: var(--gold); margin-top: 8px; }
.ex-d dd { font-size: 16px; }
.yiji { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.yiji b { font-family: Iansui, serif; font-size: 18px; color: var(--red); }


/* 走路的貓：跟地圖上的小人物一樣大，腳下有影子，色調跟畫一致 */
.walker { position: absolute; width: 26px; transform: translate(-50%, -94%); pointer-events: none; }
.walker img { width: 100%; height: auto; display: block; filter: sepia(.12) saturate(.92) brightness(1.02) contrast(.96); }
.walker.flip img { transform: scaleX(-1); }
.walker .shadow { position: absolute; left: 50%; bottom: -2px; width: 90%; height: 5px; margin-left: -45%; border-radius: 50%; background: radial-gradient(rgba(40,30,15,.45), rgba(40,30,15,0) 70%); }

/* ---------- 小儀式：Codex 畫的道具 ---------- */
.lake, .fount, .garden, .drum-box, .book-box, .coins, .knot-box { background-size: cover; background-position: center; border-radius: 18px; overflow: hidden; position: relative; }
.lake { height: 280px; background-position: center 55%; }
.lake::before { display: none; }
.lantern { position: absolute; left: 46%; bottom: 118px; width: 150px; transform: translateX(-50%); }
.lantern img { width: 100%; filter: drop-shadow(0 0 18px rgba(255,214,120,.8)); }
.lantern i { display: none; }
.lantern span { top: auto; bottom: 18px; left: 22%; right: 22%; font-size: 11px; color: #6b4a24; text-shadow: 0 0 4px #fff6d8; }
.fount { height: 300px; background-position: center 65%; }
.ftcoin { position: absolute; left: 50%; bottom: 26px; width: 64px; height: 64px; margin-left: -32px; background: none; box-shadow: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
@keyframes toss { 0% { transform: none; } 45% { transform: translate(-10px, -170px) rotate(540deg) scale(.7); } 100% { transform: translate(-20px, -150px) rotate(1080deg) scale(.18); opacity: .8; } }
.fount .splash { left: calc(50% - 50px); top: 42%; }
.knot-box { background-size: cover; }
.knot-box svg { background: rgba(250,250,251,.72); }
.drum-box { padding: 20px 0 14px; }
.drum { width: 220px; height: auto; border: 0; border-radius: 0; background: none; box-shadow: none; }
.drum img { width: 100%; display: block; filter: drop-shadow(0 10px 14px rgba(0,0,0,.3)); }
.drum svg { inset: auto; left: 13%; top: 3%; width: 74%; height: auto; aspect-ratio: 1; }
.drum-box .wave { top: 36%; width: 170px; height: 170px; margin: -85px 0 0 -85px; }
.hits i { background: rgba(250,250,251,.8); }
.garden { height: 280px; background-position: center 92%; }
.soil { position: absolute; left: 58%; bottom: 6px; width: 190px; height: 150px; border-radius: 0; background: none; transform: translateX(-50%); }
.soil .st { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transition: opacity .8s; }
.soil .s0 { opacity: 1; }
.grown .soil .s1 { opacity: 1; } .grown2 .soil .s2 { opacity: 1; } .grown3 .soil .s3 { opacity: 1; }
.grown .soil .s0 { opacity: 0; } .grown2 .soil .s1 { opacity: 0; } .grown3 .soil .s2 { opacity: 0; }
.soil .seed { position: absolute; left: 50%; top: -40px; width: 22px; height: auto; margin-left: -11px; border-radius: 0; background: none; opacity: 0; z-index: 2; }
@keyframes drop { 0% { opacity: 1; } 100% { top: 70px; opacity: 0; } }
.can { display: flex; flex-direction: column; align-items: center; gap: 2px; background: rgba(250,250,251,.9); color: var(--ink); padding: 6px 10px; border-radius: 14px; }
.can img { width: 70px; }
.can.on { background: #dcebf3; } .can.on img { transform: rotate(-24deg); }
.can span { font-size: 12px; }
.drops i { top: 90px; left: 48%; }
.strip-box { height: 140px; }
.strip { background: url(img/props/strip.webp) center / 100% 100% no-repeat; height: 48px; }
.strip span { color: #5b4024; }
.pstar { width: 96px; height: auto; }
.book-box { height: 270px; }
.book { width: 250px; height: 170px; margin-bottom: 14px; }
.book img { position: absolute; left: 0; bottom: 0; width: 100%; transition: opacity .6s; filter: drop-shadow(0 8px 12px rgba(0,0,0,.25)); }
.book .shut { width: 58%; left: 21%; opacity: 0; }
.book-box.shut .book .open { opacity: 0; } .book-box.shut .book .shut { opacity: 1; }
.coins { padding: 40px 0 26px; }
.coin { width: 80px; height: 80px; }
.coin .f { width: 100%; height: 100%; background: none; box-shadow: none; border-radius: 50%; filter: drop-shadow(0 6px 6px rgba(0,0,0,.3)); }
.coin .b::before { display: none; }

.can { position: absolute; left: 12px; top: 12px; right: auto; }
.drops { position: absolute; inset: 0; pointer-events: none; }
.drops i { top: 120px; left: 58%; }
.sky { background: linear-gradient(rgba(29,39,71,.55), rgba(58,71,117,.35)), url(img/m-self.webp) center 20% / cover; }
.book-box { place-items: end center; }
.book { margin-bottom: 18px; }

/* 開場：標題可讀、按鈕不擋畫、電腦用橫的圖 */
.gate .title { padding: 18px 0 26px; background: radial-gradient(ellipse 60% 100% at 50% 40%, rgba(241,241,243,.85), rgba(241,241,243,0) 75%); }
.gate .sub { color: #4a4036; font-size: 17px; }
.gate .veil { background: linear-gradient(to bottom, rgba(241,241,243,.35) 0%, rgba(241,241,243,0) 22%, rgba(241,241,243,0) 82%, rgba(241,241,243,.55) 100%); }
.gate .enter { bottom: max(28px, env(safe-area-inset-bottom)); background: rgba(250,250,251,.92); box-shadow: 0 8px 24px rgba(43,38,32,.18); }
.gate .bg { background-image: url(img/heaven.webp); }
@media (min-aspect-ratio: 5/4) { .gate .bg { background-image: url(img/heaven-wide.webp); background-position: center 45%; } }
.backdrop { filter: blur(30px) saturate(1.05) brightness(1.04); }
