/* 名模雜誌風：放在 style.css 之後，覆蓋原本圓圓的卡片感。
   字：標題 思源宋體（Noto Serif TC），內文 思源黑體（Noto Sans TC）。不用英文。 */
:root {
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", sans-serif;
  --ink: #1d1a17; --ink-2: #64625e; --line: #d5d5d9; --paper: #f1f1f3; --paper-2: #e5e5e8; --card: #fafafb;
  --red: #a8322a; --gold: #8f6d33;
}
html, body { background: var(--paper); }
body { font-family: var(--sans); font-weight: 400; letter-spacing: .02em; }
.serif, .orig, .ask, .lead, .bubble p, .rit-say p, .jq-head q, .keeper q, .coin-say, .stars li .serif, .bm .orig { font-family: var(--serif); }

/* 頂欄：細線、置中刊名 */
.top { background: rgba(241,241,243,.94); border-bottom: 1px solid var(--ink); padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 10px; }
.top .brand { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .4em; padding-left: .4em; }
.top .l, .top .r { font-size: 13px; letter-spacing: .12em; color: var(--ink); }

/* 按鈕：方、黑、字距寬 */
.go { border-radius: 0; background: var(--ink); color: var(--paper); font-family: var(--serif); font-weight: 600; font-size: 16px; letter-spacing: .5em; padding: 16px 12px 16px calc(12px + .5em); }
.ghost { border-radius: 0; border: 1px solid var(--ink); color: var(--ink); font-size: 14px; letter-spacing: .3em; padding: 13px 10px; background: transparent; }
.row2 .ghost { flex: 1 1 40%; }
.note { font-size: 12px; letter-spacing: .3em; color: var(--ink-2); margin: 18px 0 8px; }

/* 標題區 */
.kick { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .5em; color: var(--red); }
.headline { padding: 26px 0 18px; border-bottom: 1px solid var(--ink); margin-bottom: 20px; }
.headline h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(28px, 8vw, 46px); line-height: 1.25; letter-spacing: .04em; margin-top: 8px; }
.headline .by { font-size: 13px; color: var(--ink-2); letter-spacing: .14em; margin-top: 12px; }

/* 開場：雜誌封面 */
.gate .title { display: none; }
.gate .veil { background: linear-gradient(to bottom, rgba(241,241,243,.55) 0%, rgba(241,241,243,0) 26%, rgba(241,241,243,0) 62%, rgba(29,26,23,.45) 100%); }
.mast { position: absolute; left: 0; right: 0; top: max(22px, env(safe-area-inset-top)); text-align: center; z-index: 2; }
.mast .kick { color: var(--ink); letter-spacing: .6em; }
.mast h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(64px, 21vw, 150px); line-height: 1; letter-spacing: .12em; padding-left: .12em; color: var(--ink); margin-top: 4px; }
.mast .sub { font-family: var(--serif); font-size: clamp(14px, 3.6vw, 18px); letter-spacing: .3em; color: var(--ink); margin-top: 6px; }
.coverlines { position: absolute; left: 20px; bottom: 104px; z-index: 2; list-style: none; max-width: 300px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.coverlines li { margin-top: 12px; font-size: 13px; line-height: 1.6; letter-spacing: .08em; }
.coverlines b { display: block; font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: .12em; }
.gate .enter { border-radius: 0; border: 0; background: var(--ink); color: var(--paper); font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .5em; padding: 15px 26px 15px calc(26px + .5em); left: auto; right: 20px; transform: none; bottom: max(28px, env(safe-area-inset-bottom)); box-shadow: none; backdrop-filter: none; }
@media (min-aspect-ratio: 5/4) {
  .coverlines { left: 48px; bottom: 120px; }
  .gate .enter { right: 48px; bottom: 48px; }
}

/* 地方頁：守護者封面 */
.cover { position: relative; height: min(132vw, 78svh); background-size: cover; background-position: center 18%; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(241,241,243,.6) 0%, rgba(241,241,243,0) 24%, rgba(241,241,243,0) 58%, rgba(20,17,14,.6) 100%); }
.cover .mast.small { top: 18px; }
.cover .mast.small h1 { font-size: clamp(44px, 14vw, 84px); letter-spacing: .14em; }
.coverline { position: absolute; left: 20px; right: 20px; bottom: 22px; z-index: 2; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.coverline b { display: block; font-size: 12px; font-weight: 500; letter-spacing: .5em; }
.coverline q { font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 5.8vw, 28px); line-height: 1.45; quotes: none; }
.hero, .keeper { display: none; }
#slot { padding-top: 4px; }

/* 目錄頁 */
.toc { list-style: none; border-top: 1px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--line); }
.toc button { width: 100%; display: grid; grid-template-columns: 52px 1fr 96px; gap: 12px; align-items: center; text-align: left; padding: 14px 0; }
.toc .no { font-family: var(--serif); font-weight: 900; font-size: 30px; color: var(--red); }
.toc .tt b { display: block; font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: .08em; }
.toc .tt small { font-size: 12px; color: var(--ink-2); letter-spacing: .14em; }
.toc img { width: 96px; height: 120px; object-fit: cover; }

/* 籤紙：像雜誌的引文頁 */
.slip { background: transparent; border: 0; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); border-radius: 0; padding: 22px 2px 18px; margin: 10px 0 18px; }
.slip .vol { font-size: 12px; letter-spacing: .3em; color: var(--red); font-weight: 500; }
.slip .orig { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 7vw, 32px); line-height: 1.7; margin: 14px 56px 10px 0; letter-spacing: .06em; }
.slip .src { text-align: right; font-size: 13px; color: var(--ink-2); letter-spacing: .1em; }

.seal { border-radius: 2px; }
.tag { border-radius: 0; border-color: var(--ink-2); }
.tcard, .yjrow img { border-radius: 2px; }
.jud { font-family: var(--serif); }

/* 解籤頁：文章 */
.lead-img { margin: 0 -16px; height: min(110vw, 62svh); background-size: cover; background-position: center 20%; }
.ex { background: transparent; border: 0; border-radius: 0; border-top: 1px solid var(--line); padding: 18px 0 8px; margin: 0; counter-increment: ex; }
.wrap { counter-reset: ex; }
.ex h3 { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: .1em; }
.ex h3::before { content: counter(ex, cjk-ideographic) "　"; color: var(--red); font-weight: 900; }
.nat { border: 0; padding: 0; font-family: var(--sans); font-size: 11px; color: var(--ink-2); letter-spacing: .2em; margin-left: auto; }
.ex p, .ex-l li, .ex-d dd { font-size: 16px; line-height: 1.9; }
.ex-l.lx b { font-family: var(--serif); font-weight: 700; }
.ex-d dt { font-size: 12px; letter-spacing: .3em; color: var(--red); }
.yiji b { font-family: var(--serif); font-weight: 900; }
.help { font-size: 12px; }

/* 島上的對話框 */
.bubble { border-radius: 0; border: 0; border-top: 3px solid var(--ink); background: rgba(250,250,251,.97); padding: 14px 18px 12px 22px; box-shadow: 0 14px 40px rgba(20,17,14,.22); }
.bubble b { font-family: var(--sans); font-weight: 500; font-size: 11px; color: var(--red); letter-spacing: .4em; }
.bubble p { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.65; }
.btns button { border-radius: 0; font-size: 13px; letter-spacing: .2em; padding: 10px 14px; }
.btns .b2 { border-color: var(--ink); color: var(--ink); }
.dock { border-radius: 0; border: 0; border-top: 3px solid var(--ink); padding: 0; background: rgba(250,250,251,.97); }
.dock button { border-radius: 0; font-size: 13px; letter-spacing: .3em; padding: 14px 18px; }
.wtop .brand { font-family: var(--serif); font-weight: 900; font-size: 26px; letter-spacing: .4em; }
.chat { border-radius: 0; font-size: 13px; letter-spacing: .14em; }
.chat::after { border-top-color: var(--ink); }
.pin span { border-radius: 0; font-family: var(--serif); font-weight: 600; font-size: 12px; letter-spacing: .14em; background: rgba(250,250,251,.92); }

/* 小儀式 */
.rit-say > div { border: 0; border-radius: 0; border-left: 3px solid var(--ink); background: transparent; padding: 2px 0 2px 14px; }
.rit-say b { font-family: var(--sans); font-weight: 500; font-size: 11px; color: var(--red); letter-spacing: .4em; }
.rit-say p { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.lake, .fount, .garden, .drum-box, .book-box, .coins, .knot-box, .sky, .sig-card { border-radius: 0; }
.rit-in { border-radius: 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-family: var(--serif); font-size: 18px; padding: 12px 2px; }
.bar-prog { border-radius: 0; height: 3px; }
.bar-prog i { background: var(--red); }
.can { border-radius: 0; }

/* 收藏 */
.sec2 { font-family: var(--serif); font-weight: 900; font-size: 24px; letter-spacing: .2em; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.sec3 { font-size: 12px; letter-spacing: .4em; color: var(--red); font-weight: 500; }
.bm, .stars li, .seeds li { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 14px 0; }
.bm .orig { font-weight: 700; font-size: 19px; }
.sigs figure { border-radius: 0; }
.counts li { border-radius: 0; border: 0; border-left: 2px solid var(--red); background: transparent; }
.counts b { font-family: var(--serif); font-weight: 900; }

/* 封面：整張 2:3 守護者圖，刊名只放在上方留白，不蓋臉 */
.cover { height: auto; aspect-ratio: 2 / 3; max-width: 560px; margin: 0 auto; background-position: center top; }
.cover .mast.small { top: 14px; }
.cover .mast.small .kick { font-size: 11px; }
.cover .mast.small h1 { font-size: clamp(36px, 11vw, 60px); }
.cover::after { background: linear-gradient(to bottom, rgba(241,241,243,.5) 0%, rgba(241,241,243,0) 18%, rgba(241,241,243,0) 64%, rgba(20,17,14,.62) 100%); }
.lead-img { aspect-ratio: 4 / 5; height: auto; max-width: 560px; margin: 0 auto; background-position: center top; }
.mast .sub, .mast .kick { text-shadow: 0 0 10px rgba(241,241,243,.95), 0 0 22px rgba(241,241,243,.9); }
.mast h1 { text-shadow: 0 0 30px rgba(241,241,243,.6); }
@media (min-aspect-ratio: 5/4) { .mast h1 { font-size: clamp(64px, 9vw, 130px); } .mast { top: 18px; } }

/* 地方頁：刊名放在圖片上方的紙上，圖片完全不壓字，八位守護者的臉都露出來 */
.cover-head { text-align: center; padding: 22px 16px 16px; max-width: 560px; margin: 0 auto; }
.cover-head .kick { font-size: 11px; color: var(--red); }
.cover-head h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(38px, 12vw, 64px); line-height: 1.1; letter-spacing: .16em; padding-left: .16em; margin-top: 6px; }
.cover::after { background: linear-gradient(to bottom, rgba(20,17,14,0) 0%, rgba(20,17,14,0) 66%, rgba(20,17,14,.62) 100%); }

/* 去背角色：邊緣一圈暖白光暈，把去背不完整的毛邊融進光裡 */
.talk .who {
  filter: drop-shadow(0 0 1.5px #ffffff) drop-shadow(0 0 2px #fdfdfe)
          drop-shadow(0 0 7px rgba(252,252,254,.95)) drop-shadow(0 0 16px rgba(250,250,253,.85))
          drop-shadow(0 0 34px rgba(246,246,250,.6));
}
.rit-say img {
  filter: drop-shadow(0 0 1.5px #ffffff) drop-shadow(0 0 5px rgba(252,252,254,.95))
          drop-shadow(0 0 14px rgba(248,248,252,.7));
}
.walker img { filter: sepia(.12) saturate(.92) brightness(1.02) contrast(.96) drop-shadow(0 0 1px rgba(255,252,240,.95)) drop-shadow(0 0 3px rgba(255,246,222,.7)); }
/* 對話框要蓋在地名光點之上 */
.panel { z-index: 4; }
.bubble, .dock { background: var(--card); }

/* 封面圖四邊渲染進底色（不再是硬邊方框）；圖放在 .cover-img 上做遮罩，字不受影響 */
.cover { background: none; }
.cover::after { display: none; }
.cover-img { position: absolute; inset: 0; background-size: cover; background-position: center top;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 72%, transparent 97%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 72%, transparent 97%);
  mask-composite: intersect; }
.coverline { color: var(--ink); text-shadow: 0 0 6px var(--paper), 0 0 14px var(--paper), 0 0 24px var(--paper); text-align: center; bottom: 10px; }
.coverline b { color: var(--red); }
.lead-img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(to bottom, #000 0, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(to bottom, #000 0, #000 78%, transparent 100%);
  mask-composite: intersect; }

/* 邊緣淡出改成較寬、有緩衝（smoothstep）的漸層，避免看得到直線邊界 */
.cover-img {
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.043) 2.5%, rgba(0,0,0,0.156) 5.0%, rgba(0,0,0,0.316) 7.5%, rgba(0,0,0,0.500) 10.0%, rgba(0,0,0,0.684) 12.5%, rgba(0,0,0,0.844) 15.0%, rgba(0,0,0,0.957) 17.5%, rgba(0,0,0,1.000) 20.0%, rgba(0,0,0,1.000) 80.0%, rgba(0,0,0,0.957) 82.5%, rgba(0,0,0,0.844) 85.0%, rgba(0,0,0,0.684) 87.5%, rgba(0,0,0,0.500) 90.0%, rgba(0,0,0,0.316) 92.5%, rgba(0,0,0,0.156) 95.0%, rgba(0,0,0,0.043) 97.5%, rgba(0,0,0,0.000) 100.0%), linear-gradient(to bottom, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.043) 1.2%, rgba(0,0,0,0.156) 2.5%, rgba(0,0,0,0.316) 3.8%, rgba(0,0,0,0.500) 5.0%, rgba(0,0,0,0.684) 6.2%, rgba(0,0,0,0.844) 7.5%, rgba(0,0,0,0.957) 8.8%, rgba(0,0,0,1.000) 10.0%, rgba(0,0,0,1.000) 64.0%, rgba(0,0,0,0.957) 68.5%, rgba(0,0,0,0.844) 73.0%, rgba(0,0,0,0.684) 77.5%, rgba(0,0,0,0.500) 82.0%, rgba(0,0,0,0.316) 86.5%, rgba(0,0,0,0.156) 91.0%, rgba(0,0,0,0.043) 95.5%, rgba(0,0,0,0.000) 100.0%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.043) 2.5%, rgba(0,0,0,0.156) 5.0%, rgba(0,0,0,0.316) 7.5%, rgba(0,0,0,0.500) 10.0%, rgba(0,0,0,0.684) 12.5%, rgba(0,0,0,0.844) 15.0%, rgba(0,0,0,0.957) 17.5%, rgba(0,0,0,1.000) 20.0%, rgba(0,0,0,1.000) 80.0%, rgba(0,0,0,0.957) 82.5%, rgba(0,0,0,0.844) 85.0%, rgba(0,0,0,0.684) 87.5%, rgba(0,0,0,0.500) 90.0%, rgba(0,0,0,0.316) 92.5%, rgba(0,0,0,0.156) 95.0%, rgba(0,0,0,0.043) 97.5%, rgba(0,0,0,0.000) 100.0%), linear-gradient(to bottom, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.043) 1.2%, rgba(0,0,0,0.156) 2.5%, rgba(0,0,0,0.316) 3.8%, rgba(0,0,0,0.500) 5.0%, rgba(0,0,0,0.684) 6.2%, rgba(0,0,0,0.844) 7.5%, rgba(0,0,0,0.957) 8.8%, rgba(0,0,0,1.000) 10.0%, rgba(0,0,0,1.000) 64.0%, rgba(0,0,0,0.957) 68.5%, rgba(0,0,0,0.844) 73.0%, rgba(0,0,0,0.684) 77.5%, rgba(0,0,0,0.500) 82.0%, rgba(0,0,0,0.316) 86.5%, rgba(0,0,0,0.156) 91.0%, rgba(0,0,0,0.043) 95.5%, rgba(0,0,0,0.000) 100.0%);
  mask-composite: intersect; }
.lead-img {
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.043) 2.5%, rgba(0,0,0,0.156) 5.0%, rgba(0,0,0,0.316) 7.5%, rgba(0,0,0,0.500) 10.0%, rgba(0,0,0,0.684) 12.5%, rgba(0,0,0,0.844) 15.0%, rgba(0,0,0,0.957) 17.5%, rgba(0,0,0,1.000) 20.0%, rgba(0,0,0,1.000) 80.0%, rgba(0,0,0,0.957) 82.5%, rgba(0,0,0,0.844) 85.0%, rgba(0,0,0,0.684) 87.5%, rgba(0,0,0,0.500) 90.0%, rgba(0,0,0,0.316) 92.5%, rgba(0,0,0,0.156) 95.0%, rgba(0,0,0,0.043) 97.5%, rgba(0,0,0,0.000) 100.0%), linear-gradient(to bottom, #000 0%, rgba(0,0,0,1.000) 66.0%, rgba(0,0,0,0.957) 70.2%, rgba(0,0,0,0.844) 74.5%, rgba(0,0,0,0.684) 78.8%, rgba(0,0,0,0.500) 83.0%, rgba(0,0,0,0.316) 87.2%, rgba(0,0,0,0.156) 91.5%, rgba(0,0,0,0.043) 95.8%, rgba(0,0,0,0.000) 100.0%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.043) 2.5%, rgba(0,0,0,0.156) 5.0%, rgba(0,0,0,0.316) 7.5%, rgba(0,0,0,0.500) 10.0%, rgba(0,0,0,0.684) 12.5%, rgba(0,0,0,0.844) 15.0%, rgba(0,0,0,0.957) 17.5%, rgba(0,0,0,1.000) 20.0%, rgba(0,0,0,1.000) 80.0%, rgba(0,0,0,0.957) 82.5%, rgba(0,0,0,0.844) 85.0%, rgba(0,0,0,0.684) 87.5%, rgba(0,0,0,0.500) 90.0%, rgba(0,0,0,0.316) 92.5%, rgba(0,0,0,0.156) 95.0%, rgba(0,0,0,0.043) 97.5%, rgba(0,0,0,0.000) 100.0%), linear-gradient(to bottom, #000 0%, rgba(0,0,0,1.000) 66.0%, rgba(0,0,0,0.957) 70.2%, rgba(0,0,0,0.844) 74.5%, rgba(0,0,0,0.684) 78.8%, rgba(0,0,0,0.500) 83.0%, rgba(0,0,0,0.316) 87.2%, rgba(0,0,0,0.156) 91.5%, rgba(0,0,0,0.043) 95.8%, rgba(0,0,0,0.000) 100.0%);
  mask-composite: intersect; }

/* 去背圖一律用暖白光暈（2026-11-23 使用者：「都改成光暈，但要注意與其他物品之間的渲染」）。
   會疊在一起、交叉淡入的圖（土堆與小苗四階段、書開／合）把光暈放在外層容器，合成後只亮一圈，不會兩圈疊亮；
   會 3D 翻面的銅錢放在每一面上（容器加 filter 會把 3D 壓平）。籤、書籤、水滴不加光暈。 */
.rit-say img, .jq-head img, .can img, .drum img, .ftcoin, .pstar, .prop-img, .coin .f, .rc .f {
  filter: drop-shadow(0 0 1.5px #ffffff) drop-shadow(0 0 5px rgba(252,252,254,.9)) drop-shadow(0 0 13px rgba(248,248,252,.55)) drop-shadow(0 6px 8px rgba(20,17,14,.14));
}
.soil, .book, .book-stage { filter: drop-shadow(0 0 1.5px #ffffff) drop-shadow(0 0 5px rgba(252,252,254,.9)) drop-shadow(0 0 13px rgba(248,248,252,.55)); }
.soil .st, .soil .seed, .book img, .book-stage .bk { filter: none; }

/* 種種子：水壺不再放在白色方框裡；按住時移到土堆上方傾斜，水從壺嘴落進土堆 */
.can { left: 14px; top: 14px; right: auto; padding: 0; background: none !important; border: 0; border-radius: 0; z-index: 3; cursor: grab;
  transition: transform .55s cubic-bezier(.3,.7,.3,1); transform: translate(0, 0) rotate(0); }
.can img { width: 92px; transform: none !important; }
.can.on { transform: translate(var(--mx, 0), var(--my, 0)) rotate(var(--tilt, -30deg)); cursor: grabbing; }
.can .spout { position: absolute; left: 7%; top: 30%; width: 1px; height: 1px; }
.can-tip { position: absolute; left: 14px; top: 104px; z-index: 2; margin: 0; font-size: 12px; letter-spacing: .2em; color: var(--ink);
  background: rgba(250,250,251,.88); padding: 3px 8px; }
.drops { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.drops i { position: absolute; width: 3.5px; height: 14px; margin-left: -1.75px; border-radius: 3px; background: linear-gradient(rgba(120,180,220,.35), #4f93c4); box-shadow: 0 0 3px rgba(255,255,255,.9);
  animation: pourdrop .6s cubic-bezier(.5,0,1,1) forwards; }
@keyframes pourdrop { from { transform: translateY(0); opacity: .95; } 85% { opacity: .9; } to { transform: translateY(var(--fall, 80px)); opacity: 0; } }

/* 夾書籤：米色紙箋、紅色細框、穿孔與流蘇，原文直書 */
.bmk { top: 40px; width: auto; min-width: 82px; max-height: none; padding: 34px 14px 14px; border-radius: 2px; overflow: visible;
  background: linear-gradient(170deg, #fdf9f0 0%, #f6eedc 55%, #efe4cb 100%); color: var(--ink); border: 1px solid #d8c7a3;
  box-shadow: inset 0 0 0 5px #fbf6ea, inset 0 0 0 6px rgba(168,50,42,.6), inset 0 0 0 8px #fbf6ea, inset 0 0 0 8.6px rgba(168,50,42,.35), 0 12px 24px rgba(20,17,14,.24);
  writing-mode: vertical-rl; text-align: start; }
.bmk .bm-txt span { display: block; font-family: var(--serif); font-weight: 700; font-size: 15px; line-height: 1.75; letter-spacing: .14em; }
.bmk .bm-src { margin-right: 8px; font-size: 10px; letter-spacing: .24em; color: var(--red); text-align: end; }
.bmk .hole { position: absolute; left: 50%; top: 12px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: #d9cdb4; box-shadow: inset 0 1px 2px rgba(20,17,14,.45); }
.bmk .tassel { position: absolute; left: 50%; top: -38px; width: 2px; height: 55px; margin-left: -1px; background: linear-gradient(#a8322a, #c0473a); transform-origin: 50% 100%; transform: rotate(14deg); }
.bmk .tassel b { position: absolute; left: 50%; top: 4px; width: 10px; height: 26px; margin-left: -5px;
  background: repeating-linear-gradient(90deg, #a8322a 0 1.5px, #c4493b 1.5px 3px); border-radius: 0 0 3px 3px; }
.bmk .tassel b::before { content: ""; position: absolute; left: 50%; top: -7px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d8655a, #8d2620); }

/* 摺星星（2026-11-26 重做）：背景就是天文台那張圖；下半部鋪一層淡淡的米白讓摺紙看得清楚；摺好的星星飛上圓頂，以前摺的浮在圓頂上方 */
.sky { position: relative; height: auto; aspect-ratio: 720 / 800; overflow: hidden; border-radius: 0; border: 1px solid var(--line); background: none center top / 100% auto no-repeat; }
.sky::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; pointer-events: none;
  background: linear-gradient(rgba(250,246,238,0) 0%, rgba(250,246,238,.72) 38%, rgba(250,246,238,.86) 100%); }
.sky .ps { position: absolute; width: 26px; height: auto; margin-left: -13px; transform: rotate(-8deg); animation: bob 4.5s ease-in-out infinite; animation-delay: calc(var(--d, 0s) * -1);
  filter: drop-shadow(0 0 1.5px #ffffff) drop-shadow(0 0 7px rgba(255,236,180,.95)) drop-shadow(0 2px 3px rgba(120,80,20,.35)); }
.sky .ps.new { animation: none; z-index: 2; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-6px) rotate(6deg); } }
.fold-stage { position: absolute; left: 0; right: 0; bottom: 5%; }
.fold-stage svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.fold-stage .paper { stroke: #c79a4e; stroke-width: .9; stroke-linejoin: round; filter: drop-shadow(0 0 1.5px #ffffff) drop-shadow(0 0 6px rgba(250,250,253,.9)) drop-shadow(0 4px 5px rgba(90,60,20,.22)); }
.fold-stage #tail .paper { filter: none; }
.fold-stage #tail { filter: drop-shadow(0 3px 4px rgba(90,60,20,.2)); }
.fold-stage text { font-family: Iansui, serif; font-size: 17px; letter-spacing: .08em; fill: #5b4024; }
.fold-stage .wrapc { stroke: rgba(150,105,40,.5); stroke-width: 1; }
.fold-stage .ridge { stroke: rgba(255,250,228,.95); stroke-width: 1.3; stroke-linecap: round; }
.fold-stage .valley { stroke: rgba(150,105,40,.6); stroke-width: 1; stroke-linecap: round; }
.fold-stage svg.pinch { cursor: pointer; }
.fold-stage svg.pinch #body { animation: pinchme 1.6s ease-in-out infinite; }
@keyframes pinchme { 0%, 100% { filter: drop-shadow(0 0 1.5px #ffffff) drop-shadow(0 0 6px rgba(250,250,253,.9)) drop-shadow(0 4px 5px rgba(90,60,20,.22)); } 50% { filter: drop-shadow(0 0 2px #ffffff) drop-shadow(0 0 14px rgba(255,226,150,1)) drop-shadow(0 4px 5px rgba(90,60,20,.22)); } }
.fold-stage #done { filter: drop-shadow(0 0 1.5px #ffffff) drop-shadow(0 0 9px rgba(255,236,180,.95)); }
@media (prefers-reduced-motion: reduce) { .sky .ps, .fold-stage svg.pinch #body { animation: none; } }

/* 全站檢查（2026-11-23）修正 */
.wtop .brand { font-size: 40px; letter-spacing: 0; line-height: 1; }
.wtop .brand img { display: block; height: 1.21em; width: auto; }   /* 刊名沿用封面海報的字圖 */
/* 願望符：不再是空白灰框；淡淡的許願樹背景、中央一圈米白光與兩道細金環 */
/* 解結：背景不要洗得那麼白 */
.knot-box svg { background: rgba(250,250,251,.45); }

/* 電腦：地方頁與解籤頁改成雜誌跨頁——左半邊大圖（捲動時固定），右半邊文字 */
@media (min-aspect-ratio: 5/4) and (min-width: 900px) {
  .page.place, .page.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "bar bar" "img head" "img body"; grid-template-rows: auto auto 1fr; min-height: 100svh; }
  .page.article { grid-template-areas: "bar bar" "img body" "img body"; }
  .page.place > .top, .page.article > .top { grid-area: bar; }
  .page.place .cover, .page.article .lead-img { grid-area: img; position: sticky; top: 50px; align-self: start; height: calc(100svh - 50px); width: 100%; max-width: none; aspect-ratio: auto; margin: 0; }
  .page.place .cover-head { grid-area: head; padding-top: 10vh; }
  .page.place .wrap, .page.article .wrap { grid-area: body; width: 100%; max-width: 560px; padding: 0 4vw 6vh; }
  .page.article .wrap { padding-top: 4vh; }
}

/* 立體島圖（island3d.js）：canvas 鋪滿畫面、畫在模糊底圖之上；啟用時把 stage 裡原本那張平面圖藏起來（貓還在 stage 裡） */
.isle3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.world.has3d .stage > img:first-child { visibility: hidden; }
.isle-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.isle-fx i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(circle, #fffdf2 0%, rgba(255,240,190,.85) 28%, rgba(255,226,150,.28) 55%, rgba(255,226,150,0) 72%); }
.tiltask { position: absolute; right: 14px; top: calc(max(16px, env(safe-area-inset-top)) + 6px); z-index: 3; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 0; background: rgba(250,250,251,.92); color: var(--ink); font-size: 12.5px; letter-spacing: .06em; padding: 9px 12px;
  box-shadow: 0 6px 18px rgba(20,17,14,.12); animation: fade .6s ease 1.2s both; transition: opacity .6s ease; }
.tiltask.out { opacity: 0; }
.tiltask i { width: 11px; height: 17px; border: 1.5px solid currentColor; border-radius: 2.5px; animation: tiltph 2.4s ease-in-out infinite; }
@keyframes tiltph { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(16deg); } }
/* 易經籤紙只放卦牌（牌上已經有六爻），不再另外畫黑色的卦；沒有牌圖時才畫 */
.yjrow { justify-content: center; }
.yjrow img { width: min(64%, 270px); }

/* 撥花瓣（2026-11-25，取代解結）：一朵花 9–14 片，點一片撥一片 */
.petal-pairs { justify-content: center; margin: 2px 0 10px; }
.petal-box { position: relative; max-width: 440px; margin: 0 auto; overflow: hidden; background-size: cover; background-position: center; border: 1px solid var(--line); touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.petal-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(255,252,246,.92) 0%, rgba(255,250,244,.74) 60%, rgba(250,244,238,.55) 100%); }
.petal-box svg { position: relative; display: block; width: 100%; height: auto; cursor: pointer; overflow: visible; }
.petal-box .stem { fill: none; stroke: #7fa06a; stroke-width: 4; stroke-linecap: round; }
.petal-box .leaf { fill: #9dbb84; stroke: #6f935c; stroke-width: 1; }
.petal-box .pt { transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 1px 1.5px rgba(150,80,95,.28)); }
.petal-box .pt path { fill: url(#pg); stroke: rgba(205,125,145,.55); stroke-width: .9; }
.petal-box .heart { fill: url(#cg); stroke: #c48a2c; stroke-width: 1; filter: drop-shadow(0 0 5px rgba(255,236,180,.9)); transition: r .8s ease, filter .8s ease; }
.petal-box svg.bare { cursor: default; }
.petal-box svg.bare .heart { r: 23px; filter: drop-shadow(0 0 10px rgba(255,226,150,1)) drop-shadow(0 0 22px rgba(255,236,190,.9)); }
.petal-say { position: absolute; left: 0; right: 0; top: 16px; text-align: center; pointer-events: none; min-height: 40px; }
.petal-say .hint { font-size: 13px; letter-spacing: .12em; color: var(--ink-2); }
.petal-say b { display: inline-block; font-family: var(--serif); font-weight: 700; font-size: 30px; letter-spacing: .14em; padding-left: .14em; animation: petalword .5s cubic-bezier(.2,.9,.3,1.3) both;
  text-shadow: 0 0 6px #fffdf4, 0 0 14px rgba(255,248,226,.95); }
.petal-say b.yes { color: #b23a2e; } .petal-say b.no { color: var(--ink); }
@keyframes petalword { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .petal-say b { animation: none; } }
.petal-pairs { display: flex; flex-wrap: wrap; gap: 8px; max-width: 440px; margin-left: auto; margin-right: auto; }
.petal-pairs .chip { margin: 0; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 0; background: var(--card); font-size: 13px; letter-spacing: .06em; color: var(--ink); }
.petal-pairs .chip.on { background: var(--ink); color: var(--paper); }

/* ===== 小儀式加強（2026-11-25） ===== */
/* 放水燈、許願池：框的比例固定，圖寬度貼齊，這樣水平線與棧道在框裡的位置（百分比）手機電腦都一樣，程式才算得準 */
.lake { height: auto; aspect-ratio: 720 / 560; background-size: 100% auto; background-position: center 55%; }
.lantern { left: 44%; bottom: 28%; width: 34%; transform: translateX(-50%); transform-origin: 50% 100%; transition: none; }
.lantern.drift { transform: translateX(-50%); opacity: 1; }
.lantern span { font-size: clamp(9px, 2.9vw, 12px); }
.lake .rip { left: 44%; top: 72%; bottom: auto; width: 110px; height: 18px; margin: -9px 0 0 -55px; }
.fount { height: auto; aspect-ratio: 720 / 600; background-size: 100% auto; background-position: center 65%; touch-action: none; }
.ftcoin { bottom: auto; top: 88%; margin-top: -32px; touch-action: none; cursor: grab; animation: none; }
.ftcoin.toss { animation: none; }
.fount .splash { position: absolute; border: 2px solid rgba(255,255,255,.95); border-radius: 50%; animation: ripple 1.9s ease-out forwards; pointer-events: none; }
.fount .drop { position: absolute; width: 5px; height: 8px; margin: -4px 0 0 -2.5px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: rgba(255,255,255,.95); transform: scale(var(--s, 1));
  animation: fdrop .7s cubic-bezier(.2,.7,.5,1) forwards; pointer-events: none; }
@keyframes fdrop { 0% { transform: translate(0,0) scale(var(--s,1)); opacity: 1; } 55% { transform: translate(var(--x), var(--y)) scale(var(--s,1)); opacity: 1; } 100% { transform: translate(calc(var(--x) * 1.4), 4px) scale(calc(var(--s,1) * .6)); opacity: 0; } }

/* 敲鼓：金圈轉滿才算；一下比一下震得重 */
.drum.full .ring { stroke: #ffd76a; filter: drop-shadow(0 0 6px rgba(255,215,106,.95)); animation: ringfull .5s ease-in-out infinite alternate; }
@keyframes ringfull { to { stroke-width: 6.5; } }
.drum-box .wave.soft { border-color: rgba(201,161,78,.4); border-width: 2px; }
.drum-box.shake1 { animation: dshake .28s ease-out; --a: 2px; } .drum-box.shake2 { animation: dshake .36s ease-out; --a: 4px; } .drum-box.shake3 { animation: dshake .5s ease-out; --a: 7px; }
@keyframes dshake { 0%, 100% { transform: translate(0,0); } 20% { transform: translate(calc(var(--a) * -1), var(--a)); } 45% { transform: translate(var(--a), calc(var(--a) * -.6)); } 70% { transform: translate(calc(var(--a) * -.5), calc(var(--a) * .4)); } }

/* 夾書籤：書裡夾過的每一張，可以一頁一頁翻 */
.leafhead { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 8px; padding-top: 14px; border-top: 1px solid var(--ink); }
.leafhead .cnt { font-size: 12px; letter-spacing: .12em; color: var(--ink-2); }
.leafpage { position: relative; padding: 22px 20px 14px; background: linear-gradient(90deg, #f3ecda 0, #fbf7ec 7%, #fdfaf1 100%); border: 1px solid #d9cfb6; box-shadow: 0 6px 16px rgba(20,17,14,.1), inset 8px 0 10px -8px rgba(120,95,50,.25);
  touch-action: pan-y; transition: transform .19s ease, opacity .19s ease; }
.leafpage::before { content: ""; position: absolute; left: 22px; top: -9px; width: 14px; height: 26px; background: linear-gradient(#b23a2e, #c0473a); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.leafpage .lp-txt span { display: block; font-weight: 700; font-size: 19px; line-height: 1.9; letter-spacing: .08em; color: #2a2520; }
.leafpage .lp-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 8px; border-top: 1px solid #e3d9c2; font-size: 11.5px; letter-spacing: .1em; color: #8a7a5c; }
.leafpage .lp-foot span:first-child { color: var(--red); }
.leafpage.out-l { transform: translateX(-18px) rotateY(18deg); opacity: 0; } .leafpage.out-r { transform: translateX(18px) rotateY(-18deg); opacity: 0; }
.leafpage.in-r { animation: leafin-r .26s ease both; } .leafpage.in-l { animation: leafin-l .26s ease both; }
@keyframes leafin-r { from { transform: translateX(18px); opacity: 0; } } @keyframes leafin-l { from { transform: translateX(-18px); opacity: 0; } }
.leafnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.leafnav .ghost { width: auto; margin: 0; padding: 9px 12px; font-size: 13px; }
.leafnav .ghost:disabled { opacity: .3; }
@media (prefers-reduced-motion: reduce) { .drum-box.shake1, .drum-box.shake2, .drum-box.shake3, .drum.full .ring, .leafpage.in-r, .leafpage.in-l { animation: none; } .leafpage { transition: none; } }
.petal-box .heart-img { filter: drop-shadow(0 0 5px rgba(255,236,180,.9)); transition: filter .8s ease; }
.petal-box svg.bare .heart-img { filter: drop-shadow(0 0 10px rgba(255,226,150,1)) drop-shadow(0 0 22px rgba(255,236,190,.9)); }
.petal-box .pt image { pointer-events: none; }

/* 「跟○○說話」的字卡不要一直上下跳（使用者覺得煩）：停著就好 */
.chat { animation: none; }

/* 水燈貼著水面漂（2026-11-26）：燈底下一片倒影；水紋的位置與大小由程式給 */
.lantern .lan-glow { position: absolute; left: -8%; right: -8%; bottom: -9%; height: 26%; border-radius: 50%; opacity: 0; transition: opacity .8s ease;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,236,170,.85) 0%, rgba(255,222,140,.45) 40%, rgba(255,222,140,0) 72%); filter: blur(2px); }
.lantern.afloat .lan-glow { opacity: 1; animation: languide 2.4s ease-in-out infinite; }
@keyframes languide { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(1.12); } }
.lake .rip { left: 0; top: 0; bottom: auto; margin: 0; border-width: 1.2px; border-color: rgba(255,255,255,.85); animation: ripple 2.6s ease-out forwards; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .lantern.afloat .lan-glow { animation: none; } }

/* 易先生的數獨（2026-11-26，取代擲銅錢）：題目數字墨色、自己填的紅線色；選到的格淡金、同行列宮淡灰、同數字淡紅、重複標紅 */
.sdk-pick { display: grid; gap: 10px; max-width: 440px; margin: 6px auto 0; }
.sdk-pick button { display: block; width: 100%; margin: 0; padding: 16px 14px; }
.sdk-pick small { display: block; margin-top: 4px; font-size: 12.5px; letter-spacing: .04em; opacity: .75; font-family: var(--sans); font-weight: 400; }
.sdk { display: grid; grid-template-columns: repeat(var(--n), 1fr); max-width: 440px; margin: 4px auto 0; background: var(--card); border: 2px solid var(--ink);
  box-shadow: 0 0 0 1px #fffdf4, 0 0 14px rgba(255,238,200,.7), 0 8px 18px rgba(20,17,14,.12); touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.sc { position: relative; aspect-ratio: 1; margin: 0; padding: 0; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent;
  font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 6.2vw, 28px); line-height: 1; color: #b23a2e; cursor: pointer; }
.sdk.n9 .sc { font-size: clamp(15px, 4.6vw, 23px); }
.sc:nth-child(6n) { border-right: 0; } .sdk.n9 .sc:nth-child(6n) { border-right: 1px solid var(--line); } .sdk.n9 .sc:nth-child(9n) { border-right: 0; }
.sdk.n6 .sc:nth-last-child(-n+6), .sdk.n9 .sc:nth-last-child(-n+9) { border-bottom: 0; }
.sc.bt { border-top: 2px solid var(--ink); } .sc.bl { border-left: 2px solid var(--ink); }
.sc.giv { color: var(--ink); font-weight: 700; cursor: default; }
.sc.hinted { color: #9a7a2c; }
.sc.peer { background: rgba(40,36,30,.055); }
.sc.same { background: rgba(194,59,47,.14); }
.sc.sel { background: #f6e7b8; box-shadow: inset 0 0 0 2px #b8863e; }
.sc.bad { background: rgba(194,59,47,.2); color: #8e1f15; text-decoration: underline wavy rgba(142,31,21,.7) 1.5px; text-underline-offset: 4px; }
.sc.bad.sel { background: #f3cbb8; }
.sc .nt { position: absolute; inset: 2px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; justify-items: center; font-family: var(--sans); font-weight: 400; font-size: clamp(7px, 2.1vw, 10.5px); color: var(--ink-2); }
.sc .nt i { font-style: normal; }
.sdk.done .sc { animation: sdkdone 1s ease var(--d, 0ms) both; cursor: default; }
@keyframes sdkdone { 0% { background: transparent; } 40% { background: #f6e3a4; } 100% { background: rgba(246,231,184,.35); } }
.sdk-pad { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 6px; max-width: 440px; margin: 12px auto 0; }
.sdk-pad button { margin: 0; padding: 0; height: 46px; border: 1px solid var(--ink); border-radius: 0; background: var(--card); font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink); }
.sdk-pad button:active { background: var(--ink); color: var(--paper); }
.sdk-pad button.full { opacity: .28; }
.sdk-tools { display: grid; grid-template-columns: 1fr 1fr 1.7fr; gap: 6px; max-width: 440px; margin: 8px auto 0; }
.sdk-tools .ghost { width: auto; margin: 0; padding: 10px 6px; font-size: 13px; letter-spacing: .06em; }
.sdk-tools .ghost.on { background: var(--ink); color: var(--paper); }
.sdk-st { max-width: 440px; margin: 10px auto 0; min-height: 1.5em; text-align: center; font-family: var(--serif); font-size: 15px; color: var(--ink); }
.linkbtn { display: block; margin: 6px auto 0; padding: 6px 10px; font-size: 12.5px; letter-spacing: .08em; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .sdk.done .sc { animation: none; background: rgba(246,231,184,.35); } }

/* 願望符的底（2026-11-26 重做）：許願樹的圖保持清楚，中間是一張用紅線掛著的圓形符紙（不透明的米白紙、金邊、有影子），符畫在紙上。
   之前是整張圖蒙一層白霧＋半透明圓，使用者說融合得不好。 */
.sig-card { position: relative; border: 1px solid var(--line); background: url(img/m-explore.webp) center / cover; }
.sig-card::before { content: ""; position: absolute; inset: auto auto auto 50%; top: 0; width: 14px; height: 11.5%; margin-left: -7px; z-index: 1;
  background: radial-gradient(circle at 50% calc(100% - 5px), #c8483b 0 4.5px, rgba(200,72,59,0) 5px), linear-gradient(#b23a2e, #b23a2e) center top / 2px calc(100% - 4px) no-repeat; }
.sig-card::after { content: ""; position: absolute; left: 50%; top: 50%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 42% 34%, #fffefa 0%, #fbf5e6 55%, #f1e6cb 100%); border: 1px solid #c9a55c;
  box-shadow: inset 0 0 0 7px #fbf6e8, inset 0 0 0 8px rgba(201,165,92,.75), 0 0 0 1px rgba(255,253,244,.9), 0 16px 30px rgba(40,30,10,.3), 0 0 36px rgba(255,244,210,.55); }
.sig-host { position: relative; z-index: 1; width: 68%; }
.sig-host > span { font-family: var(--serif); font-size: 15px; letter-spacing: .3em; color: #8a7a5c; }
.sig-card .sig-host svg > rect:first-child { fill: transparent; }   /* 符自己那塊方形底色在這裡不要，直接畫在圓形符紙上 */
.sig-host { width: 76%; }

/* 數獨：選盤面與難度 */
.sdk-opt { display: flex; align-items: center; gap: 14px; max-width: 440px; margin: 12px auto 0; }
.sdk-opt .kick { flex: none; white-space: nowrap; }
.segs { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--ink); background: var(--card); }
.segs button { margin: 0; padding: 12px 6px; border: 0; border-left: 1px solid var(--ink); border-radius: 0; font-family: var(--serif); font-weight: 700; font-size: 16px; letter-spacing: .12em; color: var(--ink); }
.segs button:first-child { border-left: 0; }
.segs button small { display: block; margin-top: 3px; font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .04em; opacity: .7; }
.segs button.on { background: var(--ink); color: var(--paper); }
#sdkTip { max-width: 440px; margin: 14px auto 12px; min-height: 3em; }
.sdk-head { display: flex; align-items: baseline; justify-content: space-between; max-width: 440px; margin: 2px auto 6px; }
.sdk-head .linkbtn { margin: 0; padding: 4px 0 4px 10px; }
.sdk-tools { grid-template-columns: 1fr 1fr 1.25fr 1.25fr; }

/* 撥花瓣：用原畫的花瓣圖層（2026-11-26）。每片花瓣底下一點點陰影，疊起來才有前後；花莖被擋住的那段用一條同色的線接到花心 */
.petal-box .neck { fill: none; stroke-linecap: round; }
.petal-box .pt { filter: drop-shadow(0 1.5px 2px rgba(120,60,50,.22)); }
.petal-box .pt image, .petal-box .fbase { pointer-events: none; }
.petal-box .fbase { transition: filter .9s ease; }
.petal-box svg.bare .fbase { filter: drop-shadow(0 0 6px rgba(255,226,150,.95)) drop-shadow(0 0 16px rgba(255,236,190,.8)); }

/* ───────── 立體島（isle/isle.js）：沿用 .world .pins .pin .chat .panel 的樣式，這裡只補它自己要的 ───────── */
.w3d { background: linear-gradient(#9fd3f5 0%, #cfeafa 38%, #eef3f7 72%, #f1f1f3 100%); animation: none; }
.w3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: 0; touch-action: none; }
.w3d .pins.off { display: none; }
.w3d .pin, .w3d .chat { left: 0; top: 0; will-change: transform; animation: none; }      /* 位置由程式用 transform 擺 */
.w3d .pin i { animation: none; }                                                              /* 光點不閃：一閃一閃要每格重畫，是手機上最吃力的一項，而且地名本來就不該自己動 */
.w3d .pin[hidden], .w3d .chat[hidden] { display: none; }
.w3d .pin.dim { opacity: .38; }
.w3d .whole { position: absolute; right: 12px; top: max(14px, env(safe-area-inset-top)); z-index: 3; font-family: var(--serif); font-weight: 600; font-size: 12px; letter-spacing: .2em; padding: 8px 9px 8px 12px; background: rgba(250,250,251,.92); border: 1px solid var(--ink); color: var(--ink); }
.w3d .whole[hidden], .w3d .ihint[hidden] { display: none; }
.w3d .ihint { position: absolute; left: 0; right: 0; top: calc(max(14px, env(safe-area-inset-top)) + 70px); margin: 0; text-align: center; font-size: 12px; letter-spacing: .14em; color: var(--ink); opacity: .7; pointer-events: none; }
.w3d[data-time=night] .ihint { color: #f4efe6; opacity: .85; }
.w3d .pin.islet i { box-shadow: 0 0 0 3px rgba(196,74,58,.55), 0 0 14px 4px rgba(255,232,214,.9); }      /* 小島（放小儀式）的光點用紅圈，跟八個地點分開 */

/* ───────── 塔羅牌陣：選牌陣、照真正的擺法排出來 ───────── */
.spreads { margin: 6px 0 18px; border-top: 3px solid var(--ink); }
.spreads h3 { margin: 12px 0 6px; font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .3em; display: flex; justify-content: space-between; align-items: baseline; }
.spreads h3 small { font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .12em; color: var(--ink-2); }
.spr { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; text-align: left; padding: 12px 10px 12px 14px; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); cursor: pointer; }
.spr b { font-family: var(--serif); font-weight: 700; font-size: 16px; letter-spacing: .1em; }
.spr i { font-style: normal; font-size: 11px; letter-spacing: .14em; color: var(--red); align-self: center; grid-row: 1 / span 2; grid-column: 2; }
.spr q { quotes: none; font-family: var(--serif); font-weight: 600; font-size: 13.5px; color: var(--ink); grid-column: 1; }
.spr small { grid-column: 1 / -1; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.spr::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: transparent; }
.spr.on { background: var(--card); } .spr.on::before { background: var(--red); }
.slip.spread { text-align: center; }
.spboard { display: grid; grid-template-columns: repeat(calc(var(--cols) * 2), 1fr); gap: 6px 4px; max-width: 520px; margin: 10px auto 4px; }
.spboard.c1 { max-width: 220px; } .spboard.c3 { max-width: 420px; }
.spc { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 3px; color: var(--ink); text-decoration: none; min-width: 0; }
.spc .pic { display: block; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 2px; box-shadow: 0 5px 12px rgba(20,17,14,.2); background: #fff; }
.spc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spc img.rev { transform: rotate(180deg); }
.spc small { margin-top: 4px; font-size: 10.5px; letter-spacing: .1em; color: var(--red); white-space: nowrap; }
.spc b { font-family: var(--serif); font-weight: 600; font-size: 12px; letter-spacing: .04em; line-height: 1.3; }
.spc em { font-style: normal; font-size: 10px; color: var(--red); margin-left: 2px; }
.spboard.celtic .spc.over { z-index: 2; pointer-events: none; }                 /* 第 2 張橫壓在核心上：牌轉 90 度，名字移到核心那張的下面 */
.spboard.celtic .spc.over .pic { transform: rotate(90deg) scale(.86); box-shadow: 0 6px 16px rgba(20,17,14,.35); }
.spboard.celtic .spc.over small, .spboard.celtic .spc.over b { transform: translateY(3.3em); }
.spboard.celtic .spc:first-child { margin-bottom: 3.3em; }
.spq { font-size: 12.5px; letter-spacing: .06em; color: var(--red); margin: 0 0 6px; }
.spmore { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.spmore summary { cursor: pointer; font-size: 12px; letter-spacing: .16em; color: var(--ink-2); }

/* ───────── 小儀式頁的版面（2026-11-27 重整：使用者說可以再漂亮一點） ───────── */
/* 背景：原本整頁鋪一層模糊的圖，顏色東一塊西一塊。改成只在頁首留一抹很淡的色，往下收成乾淨的底色 */
.rit-bg { opacity: .34; filter: blur(30px) brightness(1.1) saturate(.85);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.5) 20%, transparent 44%); mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.5) 20%, transparent 44%); }
/* 守護者說的話：跟島上的對話框同一種卡片（上緣一條墨線），人像大一點、微微壓在卡片上 */
.rit-say { align-items: flex-end; gap: 0; margin: 10px 0 18px; }
.rit-say img { width: 92px; height: 138px; margin-right: -10px; position: relative; z-index: 1; }
.rit-say > div { border-left: 0; border-top: 3px solid var(--ink); background: var(--card); padding: 12px 16px 13px 22px; box-shadow: 0 10px 28px rgba(20,17,14,.09); }
.rit-say p { font-size: 16.5px; line-height: 1.75; }
/* 數獨的選項：收進一張卡片，上面一小塊示意的盤面 */
.sdk-setup { max-width: 440px; margin: 0 auto; padding: 20px 18px 16px; background: var(--card); border-top: 3px solid var(--ink); box-shadow: 0 10px 28px rgba(20,17,14,.08); }
.sdk-prev { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); width: 138px; margin: 0 auto 18px; border: 1.5px solid var(--ink); background: #fff; box-shadow: 0 6px 16px rgba(20,17,14,.1); }
.sdk-prev.n9 { width: 162px; }
.sdk-prev i { aspect-ratio: 1; display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sdk-prev i.r { border-right: 1.5px solid var(--ink); } .sdk-prev i.b { border-bottom: 1.5px solid var(--ink); }
.sdk-prev i.lc { border-right: 0; } .sdk-prev i.lr { border-bottom: 0; }
.sdk-prev i.g::after { content: ""; width: 32%; height: 32%; border-radius: 50%; background: var(--ink); opacity: .72; }
.sdk-setup .sdk-opt { flex-direction: column; align-items: stretch; gap: 7px; margin: 14px 0 0; max-width: none; }
.sdk-setup .sdk-opt .kick { font-size: 11px; }
.sdk-setup .segs { background: transparent; }
.sdk-setup .segs button { padding: 11px 6px; font-weight: 600; font-size: 15px; background: transparent; transition: background .2s, color .2s; }
.sdk-setup .segs button.on { background: var(--ink); color: var(--paper); }
.sdk-setup .note { margin: 14px 0 0; }
.sdk-setup + .go { display: block; width: 100%; max-width: 440px; margin: 16px auto 0; }

/* ───────── 立體島上的介面：跟島一樣柔（圓角、暖白、墨藍），不沿用內頁的雜誌硬邊 ─────────
   原則：站在島上看到的東西（地名、對話框、底部入口）用這一套；一進到內頁（求籤、解籤、小儀式）才是雜誌風。 */
.w3d { --isle-ink: #26375f; --isle-cream: #fafafb; --isle-gold: #b8892f; }
.w3d .wtop { background: none; }
.w3d .bubble { border: 0; border-radius: 22px; background: rgba(250,250,251,.97); padding: 15px 18px 15px 24px; box-shadow: 0 10px 30px rgba(38,55,95,.2); }
.w3d .bubble b { font-family: Huninn, var(--sans); font-weight: 400; font-size: 12.5px; letter-spacing: .22em; color: var(--isle-gold); }
.w3d .bubble p { font-family: Iansui, var(--serif); font-weight: 400; font-size: 19px; line-height: 1.65; color: var(--isle-ink); margin: 3px 0 12px; }
.w3d .btns { gap: 8px; }
.w3d .btns button { border-radius: 999px; font-family: Huninn, var(--sans); font-size: 14.5px; letter-spacing: .08em; padding: 10px 18px; }
.w3d .btns .b1 { background: var(--isle-ink); color: var(--isle-cream); border: 1px solid var(--isle-ink); }
.w3d .btns .b2 { background: transparent; color: var(--isle-ink); border: 1px solid rgba(38,55,95,.32); }
.w3d .dock { border: 0; border-radius: 999px; padding: 6px; gap: 4px; background: rgba(250,250,251,.94); box-shadow: 0 8px 26px rgba(38,55,95,.18); }
.w3d .dock button { border-radius: 999px; font-family: Huninn, var(--sans); font-size: 14.5px; letter-spacing: .1em; padding: 10px 18px; color: var(--isle-ink); }
.w3d .dock button:first-child { background: var(--isle-ink); color: var(--isle-cream); }
.w3d .pin span { border-radius: 999px; font-family: Iansui, var(--serif); font-weight: 400; font-size: 13.5px; letter-spacing: .1em; padding: 2px 10px 3px; background: rgba(250,250,251,.93); color: var(--isle-ink); box-shadow: 0 1px 5px rgba(38,55,95,.16); }
.w3d .chat { border-radius: 999px; background: var(--isle-ink); color: var(--isle-cream); font-family: Huninn, var(--sans); font-size: 14px; letter-spacing: .08em; box-shadow: 0 6px 16px rgba(38,55,95,.3); }
.w3d .chat::after { border-top-color: var(--isle-ink); }
.w3d .chat span { background: var(--isle-cream); color: var(--isle-ink); }
.w3d .whole { border-radius: 999px; border: 1px solid rgba(38,55,95,.28); background: rgba(250,250,251,.9); color: var(--isle-ink); font-family: Huninn, var(--sans); font-weight: 400; letter-spacing: .12em; padding: 7px 12px; }

/* ───────── 內頁的對話框也不要硬邊（2026-11-27，使用者：「內頁裡的對話框也是不要這麼僵硬」） ─────────
   守護者說的話、選項、小儀式頁的按鈕，改用跟島上同一套：圓角、灰白、墨藍、芫荽與粉圓。
   籤紙、解籤的內文、標題列仍是雜誌版面。 */
.page { --isle-ink: #26375f; --isle-gold: #b8892f; }
.rit-say > div { border-top: 0; border-radius: 22px; background: rgba(250,250,251,.97); padding: 14px 18px 15px 24px; box-shadow: 0 10px 28px rgba(38,55,95,.13); }
.rit-say b, .rite-ask b { font-family: Huninn, var(--sans); font-weight: 400; font-size: 12.5px; letter-spacing: .22em; color: var(--isle-gold); }
.rit-say p { font-family: Iansui, var(--serif); font-weight: 400; font-size: 18.5px; line-height: 1.7; color: var(--isle-ink); }
.rite-ask { font-family: Iansui, var(--serif); font-weight: 400; font-size: 19px; color: var(--isle-ink); }
.rite-st, .sdk-st { font-family: Iansui, var(--serif); font-weight: 400; color: var(--isle-ink); }
/* 選項 */
.petal-pairs .chip { border-radius: 999px; border: 1px solid rgba(38,55,95,.3); background: rgba(250,250,251,.7); font-family: Huninn, var(--sans); font-size: 14px; letter-spacing: .06em; padding: 9px 16px; color: var(--isle-ink); transition: background .2s, color .2s; }
.petal-pairs .chip.on { background: var(--isle-ink); border-color: var(--isle-ink); color: #fafafb; }
.sdk-setup { border-top: 0; border-radius: 24px; padding: 22px 18px 18px; box-shadow: 0 10px 28px rgba(38,55,95,.1); }
.sdk-setup .sdk-opt .kick { color: var(--isle-gold); letter-spacing: .3em; }
.segs, .sdk-setup .segs { border-radius: 16px; overflow: hidden; border-color: rgba(38,55,95,.3); }
.segs button, .sdk-setup .segs button { font-family: Iansui, var(--serif); font-weight: 400; font-size: 17px; letter-spacing: .1em; color: var(--isle-ink); border-left-color: rgba(38,55,95,.18); }
.segs button small { font-family: Huninn, var(--sans); }
.segs button.on, .sdk-setup .segs button.on { background: var(--isle-ink); color: #fafafb; }
.sdk-prev { border-radius: 8px; overflow: hidden; border-color: var(--isle-ink); }
.sdk-prev i.r { border-right-color: var(--isle-ink); } .sdk-prev i.b { border-bottom-color: var(--isle-ink); }
.sdk-prev i.g::after { background: var(--isle-ink); }
/* 小儀式頁與抽籤儀式的按鈕 */
.rit .go, .rite .go { border-radius: 999px; background: var(--isle-ink); color: #fafafb; font-family: Huninn, var(--sans); font-weight: 400; font-size: 16px; letter-spacing: .3em; padding: 15px 12px 15px calc(12px + .3em); box-shadow: 0 8px 20px rgba(38,55,95,.18); }
.rit .ghost { border-radius: 999px; border-color: rgba(38,55,95,.32); color: var(--isle-ink); font-family: Huninn, var(--sans); letter-spacing: .16em; }
.rit .go:disabled { opacity: .45; box-shadow: none; }
.sdk-pad button { border-radius: 12px; border-color: rgba(38,55,95,.3); color: var(--isle-ink); font-weight: 600; }
.sdk-pad button:active { background: var(--isle-ink); color: #fafafb; }
.sdk-tools .ghost { border-radius: 999px; }
.sdk-tools .ghost.on { background: var(--isle-ink); color: #fafafb; border-color: var(--isle-ink); }
/* 小儀式的畫面框也收圓角，跟卡片一致 */
.rit .petal-box, .rit .sky, .rit .lake, .rit .fount, .rit .garden, .rit .drum-box, .rit .book-box, .rit .sig-card { border-radius: 22px; border: 0; overflow: hidden; box-shadow: 0 10px 28px rgba(38,55,95,.12); }
.rit input[type=text], .rit textarea { font-family: Iansui, var(--serif); color: var(--isle-ink); }
/* 內頁所有的按鈕統一成同一套（封面那顆「翻開這一期」是雜誌封面的一部分，不在 .page 裡，維持原樣） */
.page:not(.mag) .go { border-radius: 999px; background: var(--isle-ink); color: #fafafb; font-family: Huninn, var(--sans); font-weight: 400; font-size: 16px; letter-spacing: .3em; padding: 15px 12px 15px calc(12px + .3em); box-shadow: 0 8px 20px rgba(38,55,95,.18); }
.page:not(.mag) .ghost { border-radius: 999px; border-color: rgba(38,55,95,.32); color: var(--isle-ink); font-family: Huninn, var(--sans); letter-spacing: .16em; }
.page:not(.mag) .go:disabled { opacity: .45; box-shadow: none; }
.spreads { border-top: 0; }
.spreads h3 { color: var(--isle-ink); }
.spr { border-radius: 14px; border-bottom: 0; margin-bottom: 4px; }
.spr.on { background: rgba(38,55,95,.07); } .spr.on::before { background: var(--isle-ink); border-radius: 3px; left: 4px; }
.spr i { color: var(--isle-gold); }

/* ───────── 島上的訪客：小財神（貼近股市的小精靈） ───────── */
.w3d .pin.visitor i { display: none; }
.w3d .pin.visitor { padding: 16px 18px 30px; }      /* 沒有地名，只有頭上一點金光；可以點的範圍留大一點 */
.w3d .pin.visitor span { display: block; width: auto; height: auto; padding: 0; background: none; box-shadow: none; color: #e9b84a; font-size: 15px; line-height: 1; text-shadow: 0 0 6px rgba(255,236,170,.95), 0 0 14px rgba(255,220,130,.7); }
.w3d .lk { display: flex; gap: 12px; align-items: center; margin: 0 0 8px; padding: 10px 12px; border-radius: 16px; background: rgba(38,55,95,.055); }
.w3d .lk img { flex: none; width: 78px; height: 78px; object-fit: contain; }
.w3d .lk b { display: inline; font-family: Iansui, var(--serif); font-size: 16.5px; letter-spacing: .08em; color: var(--isle-ink); }
.w3d .lk small { margin-left: 8px; font-family: Huninn, var(--sans); font-size: 11.5px; letter-spacing: .08em; color: var(--isle-gold); }
.w3d .lk span { display: block; margin-top: 4px; font-family: Huninn, var(--sans); font-size: 13px; line-height: 1.7; color: #46536f; }
.w3d .lk-foot { margin: 0 0 10px !important; font-family: Huninn, var(--sans) !important; font-size: 11.5px !important; line-height: 1.5 !important; color: #7a849b !important; }

/* 收藏頁的招財圖鑑 */
.sec2 .cnt { margin-left: 10px; font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: .1em; color: var(--isle-gold); }
.lkbook { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 10px 0 12px; }
.lkb { background: var(--card); border-radius: 18px; padding: 12px 10px 10px; box-shadow: 0 6px 18px rgba(38,55,95,.08); }
.lkb summary { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; text-align: center; }
.lkb summary::-webkit-details-marker { display: none; }
.lkb img { width: 68px; height: 68px; object-fit: contain; }
.lkb b { font-family: Iansui, var(--serif); font-weight: 400; font-size: 15px; letter-spacing: .06em; color: var(--isle-ink); }
.lkb small { font-size: 11px; color: var(--isle-gold); letter-spacing: .04em; }
.lkb[open] { grid-column: 1 / -1; }
.lkb p { margin: 8px 4px 0; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); text-align: left; }
.lkb p.serif { font-family: Iansui, var(--serif); font-size: 16px; color: var(--isle-ink); }
