/* 靈修小菜園的樣式 */
:root {
  --fs: 19px;
  --bg: #fbf7ee;
  --card: #ffffff;
  --ink: #2a2a2a;
  --muted: #6b6457;
  --green: #2f6b3a;
  --green-soft: #e4efdf;
  --soil: #8a6a4a;
  --soil-soft: #f1e6d6;
  --gold: #d98e1f;
  --line: #e5dccb;
  --font: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Heiti TC", sans-serif;
}
* { box-sizing: border-box; }
/* 捲軸的位置先留好：頁面變長出現捲軸時，畫面不會往左跳 */
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}
button { font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; }

/* 標題列固定大小，不跟著字體設定變 */
header {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 12px 8px 16px; background: var(--green); color: #fff;
}
header h1 { margin: 0; font-size: 22px; letter-spacing: 0.05em; white-space: nowrap; }
header .right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
header .date { font-size: 16px; opacity: 0.95; white-space: nowrap; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
header .date b { font-weight: 700; }
header .date small { font-size: 15px; }
.gear {
  width: 50px; height: 50px; border-radius: 14px; border: 2px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.12); color: #fff; font-size: 20px; line-height: 1; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.gear small { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.gear .gi { width: 22px; height: 22px; display: block; }
/* 玩法說明按鈕：跟設定一樣大，白色圓圈裡一個問號 */
.gear.help .q {
  width: 21px; height: 21px; border-radius: 50%; border: 2px solid #fff; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; line-height: 1;
}
/* 比較窄的手機：標題列縮小一點，才放得下 */
@media (max-width: 360px) {
  header { padding: 8px 8px 8px 12px; }
  header h1 { font-size: 19px; letter-spacing: 0; }
  header .right { gap: 6px; }
  header .date { font-size: 15px; }
  header .date small { font-size: 15px; }
  .gear { width: 46px; }
}
/* 設定面板：固定大小，不跟著字體變，避免擠在一起 */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left;
  padding: 0.7rem 0; border-top: 1px solid var(--line); font-size: 18px; }
.set-row:first-of-type { border-top: none; }
/* 設定裡還沒登入時：LINE 綠色登入按鈕，下面一行小字 */
/* 設定裡已登入時，前面放 LINE 官方的綠色方形圖示（跟「分享到 LINE」同一張，原圖沒改） */
.set-row .lineic { width: 1.3em; height: 1.3em; vertical-align: -0.28em; border-radius: 4px; }
/* 設定裡已登入時右邊的「登出」：白底綠框的小圓角按鈕 */
.set-row .pill { flex-shrink: 0; min-height: 44px; padding: 0 1.1rem; border-radius: 99px; border: 2px solid var(--green);
  background: #fff; color: var(--green); font-weight: 700; font-size: 17px; }
.set-row .t { white-space: nowrap; min-width: 0; font-weight: 700; }
.set-row small { display: block; color: var(--muted); font-size: 15px !important; font-weight: 400; }
.set-row .t small { white-space: normal; }
.fs-label b { font-family: inherit; font-weight: 800; margin-right: 4px; font-size: 1.3em; }
.seg {
  display: inline-flex; padding: 3px; border-radius: 999px; flex-shrink: 0;
  background: #fffaf0; border: 1px solid #dcc9a8;
}
.seg button {
  border: none; background: none; min-width: 52px; height: 48px; border-radius: 999px;
  font-size: 18px; font-weight: 700; color: #5c4a30;
}
.seg button.on { background: var(--green); color: #fff; }
/* 字體大小的「一般／大」：字本身就用那個大小，兩顆都寬一點比較好按 */
.fsseg button { min-width: 76px; }
.fsseg button:nth-child(1) { font-size: 19px; }
.fsseg button:nth-child(2) { font-size: 23px; }
/* 設定：整行都可以按 */
button.set-row { width: 100%; background: none; border: none; border-top: 1px solid var(--line); color: inherit; font-family: inherit; cursor: pointer; }
button.set-row:active { background: #f1e9da; }
button.set-row:first-of-type { border-top: 1px solid var(--line); }
.set-row .chev { font-size: 1.7em; line-height: 1; color: var(--muted); font-weight: 400; }

main { max-width: 560px; margin: 0 auto; padding: 1rem 1rem 7rem; }
.view { display: none; }
.view.on { display: block; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 1rem 1.1rem; margin-bottom: 1rem;
}
/* 字級只用這幾種：0.85（小字）、1（內文）、1.15（標題）、1.2（經文）、1.4（經文出處） */
.card h2 { margin: 0 0 0.4rem; font-size: 1.15rem; line-height: 1.4; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.ref { font-size: 1.4rem; font-weight: 700; color: var(--green); margin: 0.1rem 0 0.6rem; line-height: 1.4; }
.tag {
  display: inline-block; font-size: 0.85rem; padding: 0 0.45rem; border-radius: 6px;
  background: #fff3d6; color: #8a5a00; vertical-align: middle; margin-left: 0.3rem;
}

.big {
  display: block; width: 100%; min-height: 3.3rem; border: none; border-radius: 16px;
  background: var(--green); color: #fff; font-size: 1.15rem; font-weight: 700; line-height: 1.4; padding: 0.4rem 0.6rem;
  letter-spacing: 0.1em; text-indent: 0.1em; margin-top: 0.6rem;
  box-shadow: 0 4px 0 #1f4a27;
}
.big:active { transform: translateY(3px); box-shadow: 0 1px 0 #1f4a27; }
/* 阿們維持原本明亮的金色，字用深咖啡色（對比 6 以上）；LINE 的綠色加深一點，白字比較看得清楚 */
.big.gold { background: var(--gold); color: #33200a; box-shadow: 0 4px 0 #a86a10; }
.big.gold:active { box-shadow: 0 1px 0 #a86a10; }
.big.line { background: #047f37; box-shadow: 0 4px 0 #035c28; }
.big.line:active { box-shadow: 0 1px 0 #035c28; }
/* 外框按鈕：也有一樣的厚底，跟實心按鈕並排時底邊對齊 */
/* 用 LINE 登入：照 LINE 官方登入按鈕的排法（LINE 綠 #06C755、白色 LINE 圖示、分隔線、白字；滑過疊 10% 黑、按下疊 30% 黑、不能按是白底灰字） */
.linebtn {
  display: flex; align-items: stretch; width: 100%; min-height: 3.5rem; margin-top: 0.6rem; padding: 0; position: relative; overflow: hidden;
  border: none; border-radius: 12px; background: #06C755; color: #fff; font: inherit; font-weight: 700; font-size: 1.2rem; line-height: 1.3; cursor: pointer;
}
.linebtn .li { flex: none; min-width: 3.6rem; background: url("../icons/line/line_88.png") center / 2.2rem no-repeat; border-right: 1px solid rgba(0, 0, 0, .08); }
.linebtn .lt { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0.4rem 0.8rem; text-align: center; word-break: keep-all; text-wrap: balance; }
html[data-fs="2"] .linebtn .li { min-width: 2.8rem; background-size: 1.9rem; }
html[data-fs="2"] .linebtn .lt { padding: 0.4rem 0.5rem; }
html[data-fs="2"] .linebtn { font-size: min(1.2rem, 6.4vw); }
html[data-fs="2"] .row2 .linebtn { font-size: min(1.1rem, 6.2vw); }
html[data-fs="2"] .big { letter-spacing: 0.02em; text-indent: 0.02em; }
.linebtn::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.linebtn:hover::after { opacity: .1; }
.linebtn:active::after { opacity: .3; }
.linebtn:disabled { background: #fff; color: rgba(30, 30, 30, .2); box-shadow: inset 0 0 0 1px rgba(229, 229, 229, .6); cursor: default; }
.linebtn:disabled .li { filter: brightness(0) opacity(.2); border-right-color: rgba(229, 229, 229, .6); }
.linebtn:disabled::after { opacity: 0; }
.row2 .linebtn { margin: 0; flex: 2 1 8em; width: auto; min-height: 3.2rem; font-size: 1.1rem; }
/* 分享到 LINE：淡綠底、LINE 綠框，左邊放 LINE 的方形圖示（原圖） */
.sharebtn {
  display: flex; align-items: center; justify-content: center; gap: 0.55em; width: 100%; min-height: 3rem; margin-top: 0.6rem; padding: 0.35rem 0.8rem;
  border: 2px solid #06C755; border-radius: 14px; background: #f3fcf6; color: #047f37; font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.3; cursor: pointer;
}
.sharebtn:active { background: #e2f6ea; }
.sharebtn .si { flex: none; width: 2.1rem; height: 2.1rem; background: url("../icons/line/btn_base.png") center / contain no-repeat; }
.sharebtn:hover .si { background-image: url("../icons/line/btn_hover.png"); }
.sharebtn:active .si { background-image: url("../icons/line/btn_press.png"); }
.big.ghost {
  background: #fff; color: var(--green); border: 2px solid var(--green);
  box-shadow: 0 4px 0 #d9e3d3; font-size: 1rem;
}
.big.ghost:active { box-shadow: 0 1px 0 #d9e3d3; }

/* 菜園：草地上的一塊塊田，上面圍一排木頭籬笆 */
.garden {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px;
  border-radius: 18px; padding: 64px 8px 10px; position: relative;
  border: 2px solid #94bf6e;
  background:
    radial-gradient(circle at 30% 40%, rgba(80, 130, 50, .22) 0 2px, transparent 2.5px) 0 0 / 22px 22px,
    radial-gradient(circle at 70% 80%, rgba(80, 130, 50, .18) 0 1.5px, transparent 2px) 0 0 / 30px 30px,
    #cfe5b0;
}
.garden::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 26px; height: 14px; pointer-events: none;
  background:
    linear-gradient(#a8743f, #a8743f) 0 3px / 100% 3px no-repeat,
    linear-gradient(#a8743f, #a8743f) 0 9px / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, #7d5128 0 5px, transparent 5px 26px);
}
/* 籬笆那一排：中間掛名牌（點了可以改名字），兩頭是上一週／下一週的箭頭。沒有名牌的時候，這一排一樣高 */
html[data-fs="2"] .garden { padding-top: 70px; }
html[data-fs="2"] .fencerow { top: 5px; }
.fencerow { position: absolute; top: 4px; left: 8px; right: 8px; z-index: 2; display: flex; align-items: center; gap: 8px; min-height: 46px; pointer-events: none; }
.fencerow > * { pointer-events: auto; }
.fencerow .sp { flex: 0 1000 46px; min-width: 0; }
.fencerow .mid { margin: 0 auto; }
.garden .wkbtn {
  flex: none; width: 46px; height: 46px; padding: 0; display: flex; align-items: center; justify-content: center;
  border: 2px solid #7d5128; border-radius: 12px; background: #fffaf0; color: var(--green); box-shadow: 0 2px 0 #7d5128;
}
.garden .wkbtn svg { width: 17px; height: 21px; display: block; }
.garden .wkbtn:focus-visible { outline: 3px solid #1d4f8f; outline-offset: 2px; }
/* 翻到以前的週：菜園下面一顆「回今天」 */
.backtoday { display: block; margin: 0.4rem auto 0; min-height: 44px; padding: 0 1rem; border: 0; background: none; color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.plate {
  flex: 0 1 auto; min-width: 0; margin: 0 auto; min-height: 46px;
  display: flex; align-items: center; background: none; border: 0; padding: 0; font: inherit;
}
.plate .pt {
  display: block; max-width: 100%; background: #96673a; color: #fffaf0; border: 2px solid #7d5128; border-radius: 8px; box-shadow: 0 2px 0 #7d5128;
  font-weight: 700; font-size: 0.95rem; line-height: 1.5; padding: 0 0.8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 名牌右邊一支小筆：看得出來可以點來改 */
.plate .pen { width: 0.8em; height: 0.8em; margin-left: 0.35em; vertical-align: -0.05em; opacity: .8; }
/* 還沒取名：淡淡的空白木牌 */
.plate.blank .pt { background: #f3e6cf; color: #7d5128; border-style: dashed; box-shadow: none; }
#nameHint { margin: 0.4rem 0 0; text-align: center; }
.namein {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; box-sizing: border-box; min-height: 3rem;
  font-family: inherit; font-size: min(1.4rem, 26px); font-weight: 700; text-align: center; color: var(--ink);
  padding: 0.4rem 0.8rem; border-radius: 12px; border: 2px solid #c9b493; background: #fff;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .08);
}
.namein:focus { outline: none; border-color: var(--green); }
.namelab { display: block; text-align: left; font-weight: 700; margin: 0.3rem 0 0.25rem; }
/* 會拿掉東西的動作：放最下面的小紅字，不跟「好／取消」排在一起 */
.dangerlink { display: block; margin: 0.8rem auto 0; border: none; background: none; color: #b3261e; font-size: 0.95rem;
  text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 1rem; }
.namein.bad { border-color: #c0392b; }
.plot {
  /* 翻好的田：一壟一壟隆起的土 */
  background-color: #8d5c36;
  background-image: repeating-linear-gradient(to bottom, #a06c42 0 7px, #8d5c36 7px 10px, #6b4224 10px 12px);
  box-shadow: inset 0 3px 6px rgba(40, 20, 5, .35);
  border: 2px solid #5e3a1e; border-radius: 12px; padding: 16px 2px 8px; min-height: 7.4em;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2px;
  color: #3d2b17; position: relative; min-width: 0; line-height: 1.25; text-align: center;
}
/* 木牌：週幾、作物名稱，放在淺色的牌子上，在什麼土上都看得清楚 */
.plot .wd, .plot .nm {
  background: rgba(255, 250, 238, .95); color: #3d2b17; border-radius: 999px; padding: 0 0.45em;
  font-size: 0.85rem; font-weight: 700; line-height: 1.45; text-align: center; overflow-wrap: anywhere; max-width: 100%;
}
.plot .nm:empty { visibility: hidden; }
/* 星期牌：上面星期、下面日期 */
.plot .wd { display: flex; flex-direction: column; align-items: center; border-radius: 10px; line-height: 1.2; padding: 2px 0.4em 1px; }
.plot .wd b { font-weight: 700; }
.plot .wd small { font-size: 0.72rem; font-weight: 400; color: #6b5a45; white-space: nowrap; }
.plot.future .wd small { color: #5d6b4d; }
/* 大字也維持一排 4 格（一週剛好兩排），格子裡的字和圖示稍微收一點 */
html[data-fs="2"] .garden { gap: 18px 5px; padding-left: 6px; padding-right: 6px; }
html[data-fs="2"] .plot .wd, html[data-fs="2"] .plot .nm { font-size: 0.8rem; padding: 0 0.25em; }
html[data-fs="2"] .plot .em { font-size: 44px; min-height: 52px; }
.plot .em { font-size: 40px; line-height: 1.15; min-height: 46px; filter: drop-shadow(0 2px 1px rgba(0,0,0,.25)); }
/* 今天還沒種：土翻好了，種子在等 */
.plot.empty.today .em.seed { opacity: 1; }
/* 小芽和土堆在深色的田上加一圈淡淡的光，才看得清楚 */
.plot.empty .em.seed { filter: drop-shadow(0 0 1px #fff4d6) drop-shadow(0 0 1px #fff4d6) drop-shadow(0 0 2px #fff4d6) drop-shadow(0 2px 1px rgba(0, 0, 0, .3)); }
/* 錯過的日子：乾掉、裂開的田 */
.plot.missed {
  background-color: #c9ad86; border: 2px dashed #8c6a43;
  background-image: repeating-linear-gradient(62deg, transparent 0 15px, rgba(110, 75, 40, .25) 15px 16px),
                    repeating-linear-gradient(-48deg, transparent 0 19px, rgba(110, 75, 40, .2) 19px 20px);
}
.plot.missed .em { filter: none; }
/* 開始玩以前的日子：休耕的田，土色淡、冒出一點草 */
.plot.fallow {
  background-color: #e4d5b9; box-shadow: none; border: 2px solid #c4a982;
  background-image:
    radial-gradient(ellipse at 25% 80%, #6f9f45 0 4px, transparent 4.5px),
    radial-gradient(ellipse at 74% 62%, #7aa94f 0 3.5px, transparent 4px),
    radial-gradient(ellipse at 48% 90%, #86b35a 0 2.5px, transparent 3px),
    repeating-linear-gradient(to bottom, transparent 0 10px, rgba(150, 115, 70, .18) 10px 12px);
}
/* 還沒到的日子：還沒翻土的空地，虛線框、寫日期 */
.plot.future { background: #fbf9ef; box-shadow: none; border: 2px dashed #b9c9a0; }
.plot.future .wd { background: transparent; color: #5d6b4d; }
.plot .nm.date { background: transparent; color: #5d6b4d; font-weight: 400; }
.sheet a { text-decoration: none; }
/* 收成了：作物放在淺色的草蓆上（什麼顏色的作物都看得清楚；沒收成的日子還是土） */
.plot.got {
  background-color: #f3e2b8; border: 2px solid #c79a52; box-shadow: inset 0 2px 4px rgba(120, 80, 30, .18);
  background-image: repeating-linear-gradient(90deg, rgba(176, 134, 70, .25) 0 2px, transparent 2px 8px),
                    repeating-linear-gradient(0deg, rgba(176, 134, 70, .12) 0 1px, transparent 1px 4px);
}
.plot.got .wd, .plot.got .nm { box-shadow: 0 0 0 1.5px #dcc08a; }
/* 今天：金框直接蓋在格子的邊上，中間不留縫 */
.plot.today { outline: 4px solid var(--gold); outline-offset: -2px; }
/* 「今天」的牌子 */
.plot .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #a86207; color: #fff;
  font-size: 0.8rem; border-radius: 8px; padding: 0 6px; font-weight: 700; white-space: nowrap; z-index: 1;
  line-height: 1.35; border: 2px solid #a86207;
}
.weeknav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; margin-bottom: 0.5rem; text-align: center; }
/* 畫面矮的時候（小手機、瀏覽器的網址列佔掉一截）：菜園收緊，一打開不用滑就看得到整座菜園。
   分兩段：矮一點＝間距和作物圖收一點；更矮＝田格上的星期和日期併成一行 */
@media (max-height: 650px) {
  #v-garden { margin-top: -0.5rem; }
  .garden, html[data-fs="2"] .garden { row-gap: 14px; padding-bottom: 6px; }
  .plot, html[data-fs="2"] .plot { padding-top: 14px; padding-bottom: 5px; min-height: 0; }
  .plot .em, html[data-fs="2"] .plot .em { font-size: 34px; min-height: 38px; }
}
@media (max-height: 598px) {
  .plot .wd, html[data-fs="2"] .plot .wd { flex-direction: row; align-items: baseline; gap: 3px; padding: 1px 4px; font-size: min(0.85rem, 15px); }
  .plot .wd small { font-size: 12px; }
@media (max-height: 598px) and (max-width: 340px) {   /* 又矮又窄（最小的那種手機）：日期再小一點才放得進田格 */
  .plot .wd, html[data-fs="2"] .plot .wd { gap: 2px; padding: 1px 2px; font-size: 13px; }
  .plot .wd small { font-size: 11px; letter-spacing: -0.03em; }
  .plot .em, html[data-fs="2"] .plot .em { font-size: 26px; min-height: 29px; }
}
  .plot .em, html[data-fs="2"] .plot .em { font-size: 30px; min-height: 34px; }
}
.weeknav button svg { width: 0.95em; height: 1.15em; display: block; margin: 0 auto; }
.weeknav button { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 0.3rem 0.5rem; font-size: min(0.9rem, 18px); font-weight: 700; color: var(--green); white-space: nowrap; }
.weeknav button:disabled { opacity: 0.35; }
.weeknav b { display: block; line-height: 1.3; white-space: nowrap; }
.monthnav button { width: 48px; height: 48px; padding: 0; font-size: 1.1rem; }
.monthnav b { font-size: 1.15rem; }
.weeknav small { color: var(--muted); font-size: min(0.85rem, 17px); white-space: nowrap; }
.weeknav span > small:only-child { font-size: min(1.05rem, 21px); font-weight: 700; color: var(--ink); }
/* 月份告示牌：右下角一塊插在土裡的木牌（顏色跟籬笆、名牌同一套木頭色） */
.signboard {
  background: none; border: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.signboard .board {
  width: 100%; box-sizing: border-box; padding: 6px 2px 5px; border-radius: 8px; position: relative; z-index: 1;
  background: repeating-linear-gradient(180deg, #96673a 0 9px, #8c5d30 9px 10px), #96673a;
  border: 2px solid #7d5128; box-shadow: 0 3px 0 #7d5128; color: #fffaf0;
  display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.25; text-align: center;
}
.signboard .mo { font-size: 0.9rem; font-weight: 700; }
.signboard .pl { font-size: 0.85rem; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.signboard .got { font-size: 0.8rem; background: #fffaf0; color: #6b4520; border-radius: 99px; padding: 0 0.5em; margin-top: 2px; white-space: nowrap; font-weight: 700; }
.signboard .post { width: 12px; height: 16px; background: #8a5a2e; border: 2px solid #7d5128; border-top: 0; border-radius: 0 0 3px 3px; margin-top: -1px; }
html[data-fs="2"] .signboard .pl { font-size: 0.75rem; }
html[data-fs="2"] .signboard .mo { font-size: 0.8rem; }
/* 字放大時，名字要斷行只斷在詞中間（植樹／苗圃、康乃馨／花園），不會剩一個字；真的放不下才隨便斷 */
.dex .nm, .plot .nm, .cropname { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.plot .badge .ci { width: 1em; height: 1em; margin: 0; vertical-align: -0.12em; }
html[data-fs="2"] .plot .badge { font-size: 0.7rem; padding: 0 4px; }
html[data-fs="2"] .plot { padding-top: 20px; }
html[data-fs="2"] .plot .badge { top: -13px; }
/* 窄手機（360 寬）：格子裡的字收一點，「伯利恆｜之星」才不會斷成三行 */
@media (max-width: 380px) {
  .garden { gap: 16px 6px; padding-left: 6px; padding-right: 6px; }
  .plot .wd, .plot .nm { padding: 0 0.3em; }
  .plot .nm { font-size: 0.8rem; }
}
.makeup { display: inline-block; background: #fde7bd; color: #6b4200; font-weight: 700; border-radius: 10px; padding: 0.15rem 0.6rem; }

/* 靈修頁 */
.verse { margin: 0 0 0.55rem; font-size: 1.2rem; line-height: 1.75; padding: 0.15rem 0.4rem; border-radius: 8px; cursor: pointer; }
.verse sup { color: var(--green); font-weight: 700; font-size: 0.7em; margin-right: 0.2rem; }
/* 心得：先只顯示一個按鈕，點了才展開 */
.notecard:not(.open) h2, .notecard:not(.open) textarea { display: none; }
.notecard.open .notetoggle { display: none; }
.notetoggle { display: block; width: 100%; border: 2px dashed var(--line); background: #fffdf8; border-radius: 14px; padding: 0.7rem; font-size: 1.05rem; font-weight: 700; color: var(--green); }
.notetoggle small { font-weight: 400; color: var(--muted); }
/* 阿們：不用捲到最下面，一直停在畫面下方（底下選單的上面） */
.amenbar { position: sticky; bottom: var(--navh, 72px); z-index: 4; margin-top: 0.4rem; padding: 0.6rem 0 28px;
  background: linear-gradient(rgba(251, 247, 238, 0), var(--bg) 40%); }
.amenbar .big { margin: 0; box-shadow: 0 4px 0 #a86a10, 0 6px 16px rgba(0, 0, 0, .18); }
.verse.sel { background: #fff3d6; box-shadow: inset 4px 0 0 var(--gold); }
textarea {
  width: 100%; min-height: 6rem; font-family: inherit; font-size: 1rem;
  border: 2px solid var(--line); border-radius: 14px; padding: 0.6rem 0.7rem; resize: vertical;
  background: #fffdf8;
}
textarea:focus { outline: none; border-color: var(--green); }
.note-show { white-space: pre-wrap; overflow-wrap: anywhere; background: #fffdf8; border-radius: 12px; padding: 0.6rem 0.8rem; border: 1px dashed var(--line); }

/* 紀錄頁 */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; margin: 0 -0.45rem; }
.cal .h { font-size: 0.85rem; color: var(--muted); }
.cal .d { border-radius: 10px; padding: 2px 0; font-size: 0.85rem; line-height: 1.3; }
.cal .d.ok { background: var(--green-soft); color: var(--green); font-weight: 700; border: none; }
.cal .d.now { outline: 2px solid var(--gold); }
.cal button.d { min-height: 44px; }
.cal button.d.can { background: #fff; border: 1px dashed #c9b493; color: inherit; }
.cal button.d.can0 { background: none; border: none; color: inherit; }
.cal .d small { display: block; font-size: 15px; line-height: 1.1; min-height: 16px; }
html[data-fs="2"] .cal .d small { font-size: 17px; min-height: 19px; }
/* 小手機：月曆那張卡片往兩邊多伸一點，每一格才有 44px 寬（手指按得準） */
@media (max-width: 380px) {
  #v-rec > .card:first-of-type { margin-left: -0.7rem; margin-right: -0.7rem; }
  .cal { margin: 0 -0.95rem; gap: 2px; }
}
.dex { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
/* 收成次數放在右上角的小牌子，上面留空間，不壓到作物圖示 */
.dex button {
  background: #fffdf8; border: 1px solid var(--line); border-radius: 14px; padding: 8px 2px;
  display: flex; flex-direction: column; align-items: center; line-height: 1.3; min-width: 0; position: relative;
}
/* 作物圖示放在格子上半部正中間，上下留白一樣 */
.dex .em { font-size: 36px; display: flex; align-items: center; justify-content: center; height: 46px; margin-bottom: 4px; }
.dex .em .ci { margin: 0; }
.dex .cnt {
  position: absolute; top: 3px; right: 3px; font-size: 0.68rem; line-height: 1.35; color: #7a6a52; font-weight: 700;
  background: #f1e9da; border-radius: 8px; padding: 0 0.35em;
}
.dex .nm { font-size: 0.85rem; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
/* 還沒收成：一樣深淺的灰色剪影（黃色的不會淡到看不見） */
.dex .lock .em { filter: grayscale(1) brightness(.55); opacity: .35; }
.dex .lock .nm { color: var(--muted); }
.dex .rare { border-color: var(--gold); background: #fffaf0; }
/* 還沒收成的特別作物：一包牛皮紙種子包（上面一道折痕），等著打開 */
.pkt { display: inline-block; position: relative; width: 30px; height: 38px; margin-top: 4px; border-radius: 3px 3px 6px 6px; vertical-align: middle;
  background: linear-gradient(160deg, #dcb986, #b98d57); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .2); }
.pkt::before { content: ""; position: absolute; left: 3px; right: 3px; top: 8px; border-top: 2px dashed rgba(90, 60, 30, .45); }
.pkt::after { content: ""; position: absolute; left: 50%; width: 16px; height: 16px; margin-left: -8px; bottom: 6px; background: url(../icons/crops/seedling.svg) center / contain no-repeat; }
.pkt.big { width: 64px; height: 82px; }
.pkt.big::before { top: 16px; }
.pkt.big::after { width: 34px; height: 34px; margin-left: -17px; bottom: 14px; }
.dex .lock .em.pk { filter: none; opacity: 1; }
/* 收成畫面：作物的經文、集滿／特別收成 */
.cropverse { background: #fffaf0; border-left: 4px solid var(--gold); border-radius: 10px; padding: 0.45rem 0.7rem; text-align: left; font-size: 0.92rem; line-height: 1.55; margin: 0.5rem 0 0.3rem; }
.cropverse span { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.15rem; }
.winbox { background: #fff3d6; border: 2px solid #e0a43a; border-radius: 12px; padding: 0.5rem 0.7rem; margin: 0.5rem 0; }
.winbox.special { background: #fdf6e3; border-color: var(--gold); }
/* 圖鑑：12 個圓圈＝12 個月，集滿的蓋上印章 */
.mopick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 2px; max-width: 420px; margin: 0 auto; }
/* 窄手機：一排 4 個，圓圈才夠大（手指按得準、「12月」不會碰到邊） */
@media (max-width: 380px) { .mopick { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 300px; gap: 8px; } }
.mopick .mo {
  aspect-ratio: 1; min-width: 0; padding: 0; border-radius: 50%; border: 2px dashed #cdbfa6; background: #faf6ee;
  color: var(--muted); font-weight: 700; font-size: 0.85rem; white-space: nowrap; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
/* 大字：月份圓圈一排 4 個，「10月」才放得下 */
html[data-fs="2"] .mopick { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 340px; }
.mopick .mo.now { border: 2px solid var(--gold); color: var(--ink); }
.mopick .mo.full { border: 3px double #b8323f; background: #fff; font-size: min(1.5rem, 24px); transform: rotate(-8deg); }
/* 選到的月份：一圈綠色（這個月本來的金色圈就不另外畫，免得變兩圈） */
.mopick .mo.on { border: 3px solid var(--green); background: var(--green-soft); color: var(--green); }
.mopick .mo.full.on { border: 3px double var(--green); background: var(--green-soft); }
.dexhead { margin: 0.7rem 0 0.5rem; line-height: 1.5; }
.gotdays .sec { font-weight: 700; margin: 0.2rem 0 0.4rem; font-size: 0.9rem; }
/* 作物說明：我收成它的日子、特別作物的進度 */
.gotdays { text-align: left; margin: 0.7rem 0 0.4rem; }
.gotday {
  display: grid; gap: 0.1rem; width: 100%; text-align: left; background: #fff; border: 2px solid var(--line);
  border-radius: 12px; padding: 0.5rem 1.9rem 0.5rem 0.7rem; margin: 0.35rem 0; position: relative;
}
.gotday .nt { font-size: 0.9rem; white-space: pre-wrap; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gotday::after { content: "›"; position: absolute; right: 0.7rem; top: 50%; transform: translateY(-50%); font-size: 1.6em; color: var(--muted); }
.gotdays:not(.all) .more { display: none; }
.gotdays.all .morebtn { display: none; }
.morebtn { width: 100%; min-height: 44px; border: none; background: none; color: var(--green); font-weight: 700; padding: 0.4rem; }
.prog { height: 12px; background: #eee4d2; border-radius: 99px; overflow: hidden; margin: 0.5rem 0 0.2rem; }
.prog i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
/* 字放大時：圖鑑和分頁欄數變少，名字才不會擠在一起 */
html[data-fs="2"] .dex { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 黑色小提示：放在畫面上方（標題列下面），不會蓋到下面的「阿們」和各種按鈕；
   而且手指點得穿（pointer-events: none），點在提示上等於點它後面的東西，只有提示裡的按鈕按得到 */
#toast { position: fixed; left: 50%; top: calc(74px + env(safe-area-inset-top)); transform: translate(-50%, -20px); z-index: 20;
  background: #2f3a2f; color: #fff; border-radius: 14px; padding: 0.6rem 0.8rem; font-size: 1rem; width: max-content; max-width: 92vw;
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast button { min-height: 44px; border: none; background: #06c755; color: #fff; border-radius: 10px; padding: 0.35rem 0.7rem; font-weight: 700; font-size: 1rem; }
#toast.on button { pointer-events: auto; }
/* 電腦（寬螢幕）：標題列和底部選單的內容也跟中間那一欄對齊，不要拉到兩邊 */
@media (min-width: 700px) {
  header { padding-left: calc((100vw - 560px) / 2 + 16px); padding-right: calc((100vw - 560px) / 2 + 12px); }
}
.pick { display: grid; gap: 6px; max-height: 50vh; overflow: auto; text-align: left; margin-bottom: 0.4rem; }
.pick button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 0.5rem 0.7rem; text-align: left; line-height: 1.6; }
.pick sup { color: var(--green); font-weight: 700; margin-right: 0.2rem; }
.guide { background: #f4f9f1; border-color: #cfe3c6; }
.guide p { font-size: 1.08rem; font-weight: 700; color: var(--green); margin: 0.35rem 0 0; line-height: 1.5; }
.guide .gk { display: inline-block; font-size: 0.8rem; font-weight: 700; color: #5d6b4d; background: #e4efdf; border-radius: 999px; padding: 0 0.55em; margin-right: 0.4em; vertical-align: 0.1em; }

.cropname { font-size: 1.4rem; font-weight: 700; margin: 0.2rem 0 0.4rem; }
.festtag.quiet { background: #EEE8F0; border-color: #9C8AA8; color: #5A4868; }
.harvest.quiet .glow, .harvest.quiet .sprout { display: none; }
.harvest.quiet .crop { animation: fadein 1.2s 0.2s ease forwards; }
@keyframes fadein { to { opacity: 1; } }
.festtag { display: inline-block; background: #fff3d6; border: 1px solid #e0a43a; color: #8a5a0a; border-radius: 999px; padding: 0 0.7rem; font-weight: 700; font-size: 0.9rem; }
/* 明天的芽尖 */
.plot.future.sprout .em { font-size: 32px; min-height: 46px; display: flex; align-items: center; justify-content: center; filter: none; }
.yearnav { margin: -0.2rem 0 0.4rem; }
/* 今天讀完了：不用卡片，菜園上面一行字 */
.dextitle { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0 0 0.6rem; }
.dextitle h2 { margin: 0; }
/* 收成結果 */
.newtag { display: inline-block; background: var(--green); color: #fff; border-radius: 8px; padding: 0 0.5rem; font-size: 0.85rem; font-weight: 700; }
/* 圖示比 emoji 留白多一點，放大到 1.2 倍看起來才一樣大 */
.ci { display: inline-block; width: 1.2em; height: 1.2em; margin: -0.1em 0; vertical-align: -0.24em; object-fit: contain; }
.pop { font-size: 4rem; line-height: 1.15; animation: pop 0.6s ease-out; }
.harvest { position: relative; width: 9rem; height: 5.4rem; margin: 0.1rem auto 0; }
.harvest .crop, .harvest .sprout { position: absolute; left: 0; right: 0; bottom: 0.65rem; text-align: center; line-height: 1; }
.harvest .crop { font-size: 4rem; opacity: 0; animation: land 0.5s 0.6s cubic-bezier(.3, 1.4, .5, 1) forwards; }
.harvest .sprout { font-size: 2.6rem; transform-origin: 50% 100%; animation: grow 0.5s ease-out both, fadeout 0.15s 0.55s forwards; }
.harvest .shadow { position: absolute; left: 50%; bottom: 0.4rem; width: 3.6rem; height: 0.6rem; margin-left: -1.8rem; border-radius: 50%; background: rgba(90, 60, 30, .18); }
.harvest .glow { position: absolute; left: 50%; top: 50%; width: 9rem; height: 9rem; margin: -4.8rem 0 0 -4.5rem; border-radius: 50%;
  background: repeating-conic-gradient(rgba(224, 164, 58, .22) 0 9deg, transparent 9deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%); mask: radial-gradient(circle, #000 25%, transparent 68%);
  opacity: 0; animation: glowin 0.6s 0.6s forwards, spin 30s linear infinite; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes land { 0% { opacity: 0; transform: translateY(-26px) scale(.6); } 70% { opacity: 1; transform: translateY(2px) scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes glowin { to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
/* 回到菜園：剛收成的那格輕輕晃一下 */
.plot.wiggle .em { animation: wiggle 0.9s ease-in-out 0.25s 1; transform-origin: 50% 90%; }
@keyframes wiggle { 0%, 100% { transform: none; } 25% { transform: rotate(-9deg); } 50% { transform: rotate(7deg); } 75% { transform: rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) {
  .harvest .sprout { display: none; } .harvest .crop { opacity: 1; animation: none; } .harvest .glow { opacity: 1; animation: none; }
  .plot.wiggle .em { animation: none; }
}
.sheet .big { margin-top: 0.5rem; }
@keyframes pop { 0% { transform: scale(0.2) translateY(30px); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
.entry { border-top: 1px solid var(--line); padding: 0.6rem 0; }
.entry:first-child { border-top: none; }
.editbtn {
  flex-shrink: 0; border: 2px solid var(--green); background: #fff; color: var(--green);
  border-radius: 12px; padding: 0.15rem 0.7rem; font-size: 0.85rem; font-weight: 700;
  min-width: 2.8rem; min-height: max(44px, 2.4rem);
}
.big:disabled { opacity: 0.6; }

/* 底部選單 */
nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
/* 底部選單固定大小，不跟著字體按鈕變 */
nav button {
  border: none; background: none; padding: 6px 0 8px; font-size: 16px;
  display: flex; flex-direction: column; align-items: center; color: var(--muted);
}
/* 每個圖示都放在一樣高的框裡（跟今日讀經的綠圈一樣高），下面的字才會排在同一條線上 */
nav button .i { font-size: 28px; line-height: 1.2; height: 42px; margin-bottom: 2px; display: flex; align-items: center; justify-content: center; }
html[data-fs="2"] nav button .i { height: 47px; }
/* 字選「大」時，底部選單和設定列也跟著稍微變 */
html[data-fs="2"] nav button { font-size: 19px; }
html[data-fs="2"] nav button .i { font-size: 32px; }
html[data-fs="2"] .set-row { font-size: 20px; }
html[data-fs="2"] .set-row small { font-size: 17px !important; }
/* 說明視窗的「開始」固定在最下面，字放大也不會被擠出去 */
.sheetfoot { position: sticky; bottom: -1.2rem; margin: 0.4rem -1.2rem -1.2rem; padding: 0.3rem 1.2rem 1.2rem; background: var(--bg);
  box-shadow: 0 -12px 12px -12px rgba(60, 40, 10, .35); z-index: 1; }
/* 歡迎畫面的「用 LINE 登入／先不登入」也一直固定在最下面（以前大字時不固定，結果按鈕被擠到畫面外、看不到）；
   大字時按鈕矮一點，才不會蓋掉太多 */
nav button.on { color: var(--green); font-weight: 700; background: var(--green-soft); }
/* 今日讀經：最常用，圖示放在綠色圓圈裡；今天還沒讀，右上角有一個紅點 */
nav button.qtbtn { color: var(--green); font-weight: 700; }
/* 中間的今日讀經：比較大的綠色圓圈，往上凸出選單 */
nav button.qtbtn .i { position: relative; width: 64px; height: 64px; margin-top: -22px; display: flex; align-items: center; justify-content: center;
  background: var(--green); border-radius: 50%; font-size: 30px; border: 4px solid #fff; box-sizing: border-box; box-shadow: 0 3px 8px rgba(0, 0, 0, .28); }
html[data-fs="2"] nav button.qtbtn .i { width: 69px; height: 69px; font-size: 33px; }
/* 書用圖片（不用 emoji），才會正好在圓圈中間 */
/* 書的圖檔本身畫得偏下（上下 7～30／32），往上推 8% 才會在圓圈正中間 */
nav button.qtbtn .i .ci { width: 36px; height: 36px; margin: 0; display: block; transform: translateY(-8%); }
html[data-fs="2"] nav button.qtbtn .i .ci { width: 39px; height: 39px; }
nav button.qtbtn.on { background: none; }
nav button.qtbtn.on .i { box-shadow: 0 0 0 3px var(--green-soft), 0 3px 8px rgba(0, 0, 0, .28); }
/* 大字時，底下五個按鈕的字小一點才放得下 */
html[data-fs="2"] nav button { font-size: 17px; }
.soon { text-align: center; padding: 2rem 1rem; }
.soonic { font-size: 56px; line-height: 1.2; }
nav button.qtbtn .dot { display: none; position: absolute; top: -1px; right: -3px; width: 13px; height: 13px; border-radius: 50%; background: #e0453a; border: 2px solid #fff; }
nav button.qtbtn.todo .dot { display: block; }
/* 電腦（寬螢幕）：底部選單跟中間那一欄對齊，不要散到兩邊（要寫在上面的 nav 規則後面才有效） */
@media (min-width: 700px) {
  nav { grid-template-columns: repeat(5, 110px); justify-content: center; }
  nav button { border-radius: 12px; margin: 4px 0; }
}

/* 彈出視窗 */
.modal {
  position: fixed; inset: 0; z-index: 10; background: rgba(30, 25, 15, .55);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal.on { display: flex; }
.sheet {
  background: var(--bg); border-radius: 22px; padding: 1.2rem; width: 100%; max-width: 480px;
  max-height: 90vh; max-height: calc(100dvh - 2rem); overflow: auto; overflow-x: hidden; text-align: center; position: relative; overscroll-behavior: contain;
}
/* 斷行不要只剩一兩個字 */
.sheet h3, .sheet p, .set-row small { text-wrap: balance; }
/* 視窗打開時焦點放在視窗本身（鍵盤的 Tab 從視窗裡開始走）：視窗自己不用畫焦點框 */
.sheet:focus { outline: none; }
.nb { white-space: nowrap; }
/* 大字時，字體大小那一列放不下就換行置中 */
.set-row.fsrow { flex-wrap: wrap; justify-content: center; gap: 0.3rem 0.6rem; }
/* 長的視窗右上角有一顆「關閉」，不用捲到最下面才出得去 */
.xclose { position: sticky; top: -1.2rem; float: right; margin: -0.6rem -0.6rem 0 0.4rem; z-index: 2;
  min-width: 48px; min-height: 44px; border: 2px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 12px; font-size: 0.9rem; font-weight: 700; padding: 0 0.6rem; }
/* 很長的說明（隱私說明）：最上面一整排「標題＋關閉」固定住、有底色，內文往下捲時不會從「關閉」底下穿過去 */
.xbar { position: sticky; top: -1.2rem; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin: -1.2rem -1.2rem 0.5rem; padding: 0.6rem 0.6rem 0.5rem 1.2rem; background: var(--bg); box-shadow: 0 10px 10px -10px rgba(60, 40, 10, .3); }
.sheet .xbar h3 { margin: 0; text-align: left; flex: 1; min-width: 0; }
.xbar .xclose { position: static; float: none; margin: 0; flex-shrink: 0; width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; color: var(--ink); display: grid; place-items: center; }
.xbar .xclose svg { width: 18px; height: 18px; display: block; }
.remtime::-webkit-date-and-time-value { text-align: center; }
.sheet h3 { margin: 0.2rem 0 0.6rem; font-size: 1.15rem; }
.sheet img.shot { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
/* 邀請小卡（提醒、加到桌面） */
.nudge {
  margin-top: 1rem; background: #fff; border: 2px solid var(--green); border-radius: 18px;
  padding: 0.9rem 1rem; display: grid; gap: 0.5rem;
}
/* 一排圖：📖 ➜ 🙏 ➜ 🍎 */
.flow { display: flex; align-items: center; justify-content: center; gap: 0.3rem; margin: 0.4rem 0 0.8rem; }
.flow > div { display: flex; flex-direction: column; align-items: center; font-weight: 700; min-width: 0; flex: 1 1 0; max-width: 6em; }
.flow > div span { font-size: min(2.6rem, 44px); line-height: 1.2; }
.flow i { font-style: normal; color: var(--muted); font-size: 1.2rem; flex-shrink: 0; }
.flow i svg { display: block; width: 1.2em; height: 0.85em; }
/* 玩法說明：一條一條的重點 */
.tips { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.2rem 0.8rem; }
.sheet .tips p { margin: 0; padding: 0.5rem 0; display: grid; grid-template-columns: 1.5em 1fr; gap: 0.3em; border-top: 1px dashed var(--line); text-wrap: pretty; }
.sheet .tips p:first-child { border-top: none; }
.nudge .row2 { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nudge .row2 .big { margin: 0; min-height: 2.8rem; font-size: 1rem; flex: 1 1 6.5em; width: auto; }
.nudge .row2 .big:first-child { flex-grow: 2; }
/* 提醒時間（iPhone 的時間欄位天生比較寬，要特別壓住，不然會超出白框） */
.remtime {
  -webkit-appearance: none; appearance: none; max-width: 100%; min-width: 0; min-height: 3.2rem;
  display: block; width: 100%; font-family: inherit; font-size: min(1.6rem, 30px); font-weight: 700; text-align: center;
  padding: 0.5rem 0.8rem; border-radius: 16px; border: 2px solid var(--green); background: #fff; color: var(--ink);
  margin-bottom: 0.4rem;
}
.steps { text-align: left; margin: 0.6rem 0; padding: 0; list-style: none; counter-reset: s; }
.howto { text-align: left; border: 2px solid var(--line); border-radius: 14px; background: #fff; margin-top: 0.6rem; padding: 0 0.8rem; }
.howto summary { cursor: pointer; font-weight: 700; padding: 0.6rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: "▼"; font-size: 0.8em; color: var(--muted); }
.howto[open] summary::after { content: "▲"; }
.howto > p { margin: 0; }
.steps li {
  counter-increment: s; position: relative; padding: 0.5rem 0 0.5rem 2.6rem; border-top: 1px dashed var(--line);
}
.steps li:first-child { border-top: none; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0.5rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.warn { background: #fff3d6; border-radius: 12px; padding: 0.6rem 0.8rem; text-align: left; margin: 0.5rem 0; }
.warn .big { width: 100%; }
.linewarn { display: grid; gap: 0.35rem; margin: 0 0 0.8rem; border: 2px solid #e0a43a; }
.linewarn .row2 { display: flex; flex-wrap: wrap; flex-direction: column; gap: 0.5rem; margin-top: 0.2rem; }
.linewarn .row2 .big { margin: 0; min-height: 2.8rem; font-size: 1rem; flex: none; width: 100%; }
.linewarn .row2 .linebtn { flex: none; width: 100%; }
/* 雲端存檔：登入說明、勾選框、隱私說明 */
.set-row small .ok { color: var(--green); font-weight: 700; }
.set-row small .warn-t { color: #a25b00; font-weight: 700; }
.ver { margin: -0.3rem 0 0.2rem; text-align: center; color: var(--muted); font-size: 13px; padding: 0.3rem; }
.devtap { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.cloudbox { background: #f3f8f0; border: 1px solid #cfe1c6; border-radius: 12px; padding: 0.5rem 0.8rem; text-align: left; }
.cloudbox p { margin: 0.3rem 0; }
.linewarn .linkbtn { margin: 0 auto; }
.linkbtn { display: block; min-height: 44px; margin: 0.4rem 0 0.1rem; padding: 0.3rem 0; background: none; border: none; color: var(--green); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.chk { display: flex; align-items: flex-start; gap: 0.6rem; text-align: left; margin: 0.6rem 0; padding: 0.55rem 0.7rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; line-height: 1.45; }
.chk input { width: 1.5em; height: 1.5em; flex-shrink: 0; margin: 0.05em 0 0; accent-color: var(--green); }
.chk:has(input:checked) { border-color: var(--green); background: #f3f8f0; }
.chk.need { border-color: #c0392b; background: #fdf0ee; }
.ckhint { color: #b3261e; font-weight: 700; margin: -0.3rem 0 0.4rem; text-align: left; }
.big small { display: block; font-size: 0.8em; font-weight: 400; letter-spacing: 0; }
.big.danger { background: #b3261e; box-shadow: 0 4px 0 #7d1a15; }
.big.danger:active { box-shadow: 0 1px 0 #7d1a15; }
.big.ghost.danger { background: #fff; color: #b3261e; border-color: #b3261e; box-shadow: 0 4px 0 #f0d4d2; }
.privacy { text-align: left; line-height: 1.6; }
.privacy h4 { margin: 1.1rem 0 0.3rem; font-size: 1.05rem; color: var(--green); padding-bottom: 0.2rem; border-bottom: 1px solid var(--line); }
.privacy .ver { text-align: center; margin: -0.4rem 0 0.6rem; }
/* 關於：上面放圖示、名字、版本 */
.abouthead { text-align: center; }
.abouthead img { width: 64px; height: 64px; border-radius: 16px; display: block; margin: 0.2rem auto 0.4rem; }
.abouthead h3 { margin: 0; }
.abouthead .ver { margin: 0.1rem 0 0.4rem; color: var(--muted); font-size: 0.85rem; }
/* 關於小菜園的「常見問題」：一題一張白色小卡，問題是綠色粗體 */
.faq { margin: 0.4rem 0 0.8rem; }
.faq dt { margin-top: 0.5rem; padding: 0.55rem 0.8rem 0; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; font-weight: 700; color: var(--green); text-wrap: balance; overflow-wrap: anywhere; }
.faq dd { margin: 0; padding: 0.15rem 0.8rem 0.6rem; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; text-wrap: pretty; overflow-wrap: anywhere; }
.privacy ul.small { font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; }
/* 支持小菜園：標題列的按鈕比「玩法」「設定」淡一點（看得到、不搶眼）；[hidden] 要蓋過 .gear 的 display:flex */
.gear[hidden] { display: none; }
/* 比 360 還窄的手機，標題列放不下第三顆：只留設定裡那一行 */
@media (max-width: 345px) { .gear.support { display: none; } }
.gear.support { border-color: rgba(255,255,255,.35); background: transparent; color: rgba(255,255,255,.9); }
.privacy ul.src b { display: block; color: var(--ink); }
.hearti { width: 1.1em; height: 1.1em; vertical-align: -0.18em; color: #d9534f; }
.contact { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.5rem 0.8rem; text-align: center; font-weight: 700; }
.privacy li { margin: 0.25rem 0; }
/* 隱私說明最上面：四句重點 */
.pvsum { background: #f3f8f0; border: 1px solid #cfe1c6; border-radius: 12px; padding: 0.5rem 0.8rem; }
.pvsum p { margin: 0.3rem 0; display: grid; grid-template-columns: auto 1fr; gap: 0.4em; }
/* 長的說明文字：一般換行就好（平均分配會讓每行長短很怪） */
.sheet .privacy p, .sheet .privacy li { text-wrap: pretty; }
.privacy p, .privacy ul { margin: 0.2rem 0; }
.privacy ul { padding-left: 1.3em; }
.privacy a { color: var(--green); text-decoration: underline; }

/* 看以前的日子時，今日讀經最上面的「← 回菜園／我的紀錄／圖鑑」 */
.backlink { display: inline-flex; align-items: center; min-height: 48px; margin: 0 0 0.7rem; padding: 0 1.1rem;
  border: 2px solid var(--green); border-radius: 99px; background: #fff; color: var(--green); font-weight: 700; font-size: 1rem; }

/* ---------- 0.14.1：角色試玩後的修正 ---------- */
/* 很長的英文或網址（例如心得裡貼講道影片的網址）要能在中間斷行，不然整頁會被撐寬、下面的按鈕跑到畫面外 */
.entry, .gotday .nt, #todayCard { overflow-wrap: anywhere; }
main { overflow-x: clip; }
/* 菜園上面的週：中間只寫日期。今天在的這一週是綠色；以前的週下面多一行「回今天」，整塊可以按 */
/* 在 LINE 裡打開的提醒：菜園最下面一行小字 */
.linenote { display: block; width: 100%; min-height: 44px; margin: 1rem 0 0; padding: 0.5rem 0.8rem; border: 1px dashed #d9c9a8; border-radius: 12px;
  background: #fffaf0; color: var(--muted); font: inherit; font-size: 0.9rem; line-height: 1.5; text-align: center; cursor: pointer; }
/* 「昨天還沒按阿們」小卡：兩顆按鈕排一排，卡片矮一點 */
.leftover .row2 { flex-direction: row; flex-wrap: wrap; }
.leftover .row2 .big { flex: 1 1 auto; width: auto; min-height: 2.6rem; white-space: nowrap; }
/* 收成畫面：分享和回菜園都固定在最下面 */
.sheetfoot.two .sharebtn { margin: 0 0 0.5rem; min-height: 2.6rem; }
.sheetfoot.two .big { margin-top: 0; }
/* 大字、小手機：三個字的作物名（馬鈴薯、迷迭香、可補讀）不要斷成兩行 */
html[data-fs="2"] .plot .nm { font-size: min(0.8rem, 4.5vw); }
/* 用鍵盤選經節時，看得出現在在哪一節 */
.verse:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
/* 用鍵盤走到菜園的格子：畫一圈看得到的焦點框。「今天」那格本來就有金色框（用 outline 畫的），焦點框改用外面再一圈深色 */
.plot:focus-visible { outline: 3px solid #1d4f8f; outline-offset: 2px; }
.plot.today:focus-visible { outline: 4px solid var(--gold); outline-offset: -2px; box-shadow: 0 0 0 3px #fff, 0 0 0 7px #1d4f8f; }
/* 用鍵盤走到頁面下半部的按鈕時，不要整顆藏在下面的選單（或上面的標題列）後面 */
html { scroll-padding: 76px 0 calc(var(--navh, 72px) + 16px); }
/* 心得清空以後的「復原」 */
.undobtn { min-height: 44px; border: 2px solid var(--green); background: #fff; color: var(--green); border-radius: 10px; padding: 0.2rem 0.8rem; font-weight: 700; margin-left: 0.3rem; }
/* 「裝飾」還沒做好：圖變灰、右上角掛一個小鎖 */
nav button.locked { color: #756c5e; }
nav button.locked .i { position: relative; }
nav button.locked .i .ci { filter: grayscale(1); opacity: 0.45; }
nav button.locked .lock { position: absolute; top: 2px; left: 50%; margin-left: 6px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #8a7f70;
  box-shadow: 0 0 0 1.5px #d8cfbf; display: flex; align-items: center; justify-content: center; }
nav button.locked .lock svg { width: 12px; height: 12px; display: block; }

/* ---------- 開發者工具、模擬（只有開發者模式看得到） ---------- */
.devbox { border: 2px dashed #c9b98f; border-radius: 14px; padding: 0.7rem 0.8rem 0.9rem; margin: 0.6rem 0; background: #fffaf0; }
.devbox .big { min-height: 2.9rem; letter-spacing: 0; text-indent: 0; }
.devbox .big.ghost { font-size: 1rem; }
.devrow { display: flex; flex-wrap: wrap; gap: 0 0.5rem; }   /* 兩顆並排；小手機＋大字放不下就自動變成上下兩排 */
.devrow .big { flex: 1 1 6.2em; white-space: nowrap; padding: 0.3rem 0.2rem; }
.devlabel { margin: 0; text-align: left; font-weight: 700; }
.devstat { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.8rem; text-align: left; margin: 0.9rem 0 0.2rem; font-size: 0.95em; }
.devstat dt { color: var(--muted); white-space: nowrap; }
.devstat dd { margin: 0; }
/* 模擬中：菜園最上面一行提示 */
.simnote { display: block; width: 100%; min-height: 44px; margin: 0 0 0.8rem; padding: 0.4rem 0.8rem; border: 2px dashed #c98a00; border-radius: 12px;
  background: #fff3d6; color: #5a3d00; font-size: 0.95rem; line-height: 1.5; text-align: center; }

/* 經文出處旁邊的譯本（和合本） */
.ref .bver { font-size: 0.85rem; font-weight: 400; color: var(--muted); margin-left: 0.5em; white-space: nowrap; }
/* 詩篇的標題（「（亞薩的詩歌。）」）：另起一行、小一點的灰字，不跟第 1 節擠在一起 */
.verse .vtitle { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.15rem; }
/* 圖鑑上「補讀就收得到 ›」：可以按，跳到我的紀錄那個月 */
.linkbtn.dexmk { display: inline-block; margin: 0; font-size: 0.85rem; }
/* 關於小菜園「內容來源」裡的連結：手指按得到的高度 */
.privacy ul.src a { display: inline-block; padding: 0.65rem 0.2rem; margin: -0.3rem 0; }
/* 我的紀錄最上面：一共讀了幾天 */
.totaldays { margin: 0 0 0.7rem; text-align: center; font-weight: 700; color: var(--green); }
.totaldays b { font-size: 1.3em; }
