/* ==========================================================
   Forest OS｜Forest Wrap 手帳版（journal-2）
   搭配 forest-wrap-view.html 使用，放在 forest-wrap-2026.css 之後載入：
   <link rel="stylesheet" href="forest-wrap-journal.css?v=wrap-journal-2">
   改字體：只要改 --wrap-hand。
   ========================================================== */

.forest-wrap-view {
    --wrap-hand: "LXGW WenKai TC", "Huninn", "Noto Serif TC", serif;
    --wrap-card: #fdfbf6;
    --wrap-line: #ddd0b4;
    --wrap-dash: #d0c3a3;
    --wrap-dot: #e1d5bb;
    --wrap-bg: #f4ecdd;
    --wrap-ink: #3a3328;
    --wrap-tape: rgba(229, 217, 188, .9);
    --wrap-shadow: 0 12px 26px rgba(110, 95, 63, .13);
    background: var(--wrap-bg);
}

/* ---------- 每一頁的紙 ---------- */
.forest-wrap-view .forest-wrap-slide {
    background: radial-gradient(var(--wrap-dot) 1px, transparent 1px) 0 0 / 22px 22px, var(--wrap-bg);
}
.forest-wrap-view .forest-wrap-writing  { --wrap-bg: #f1f6ef; --wrap-dot: #d7e3d5; --wrap-tape: rgba(201, 220, 198, .92); color: #365743; }
.forest-wrap-view .forest-wrap-time     { --wrap-bg: #eff4f7; --wrap-dot: #d5e0e8; --wrap-tape: rgba(203, 217, 228, .92); color: #405d71; }
.forest-wrap-view .forest-wrap-wealth   { --wrap-bg: #fbf4e9; --wrap-dot: #ebdcc5; --wrap-tape: rgba(232, 211, 181, .92); color: #74552f; }
.forest-wrap-view .forest-wrap-learning { --wrap-bg: #f7f1f8; --wrap-dot: #e3d7e8; --wrap-tape: rgba(221, 208, 230, .92); color: #68516f; }
.forest-wrap-view .forest-wrap-cover,
.forest-wrap-view .forest-wrap-overview,
.forest-wrap-view .forest-wrap-finale { color: var(--wrap-ink); }

.forest-wrap-view .forest-wrap-slide-inner.jr-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(1080px, calc(100vw - 64px));
}
.forest-wrap-view .jr-duo.forest-wrap-slide-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-content: center;
    gap: 28px clamp(28px, 5vw, 64px);
}

/* ---------- 共用零件 ---------- */
.forest-wrap-view .forest-wrap-slide h1,
.forest-wrap-view .forest-wrap-slide h2 { font-family: var(--wrap-hand); font-weight: 400; letter-spacing: 0; line-height: 1.25; }
.forest-wrap-view .forest-wrap-slide h2 { margin: 0 0 8px; font-size: clamp(30px, 3.6vw, 46px); color: inherit; }
.forest-wrap-view .forest-wrap-eyebrow { margin: 0 0 12px; font-size: 12px; letter-spacing: .16em; color: inherit; opacity: .7; }
.forest-wrap-view .jr-sub { margin: 0; font-family: var(--wrap-hand); font-size: 16px; line-height: 1.7; color: inherit; opacity: .72; }

.forest-wrap-view .jr-tape {
    position: absolute;
    top: -13px;
    left: var(--l, 40px);
    right: var(--rt, auto);
    width: 96px;
    height: 26px;
    background: var(--wrap-tape);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    pointer-events: none;
    transform: rotate(var(--r, -3deg));
    z-index: 2;
}
.forest-wrap-view .jr-head { display: flex; align-items: flex-start; gap: 16px; }
.forest-wrap-view .jr-mark {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 2px dashed currentColor;
    border-radius: 50%;
    background: var(--wrap-card);
    opacity: .85;
    transform: rotate(-6deg);
}
.forest-wrap-view .jr-mark img { width: 34px; height: 34px; }
.forest-wrap-view .jr-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.forest-wrap-view .jr-number { padding: 18px 0 14px; border-top: 1.5px dashed currentColor; border-bottom: 1.5px dashed currentColor; }
.forest-wrap-view .jr-number > span { display: block; margin-bottom: 6px; font-size: 13px; opacity: .72; }
.forest-wrap-view .jr-number strong,
.forest-wrap-view .jr-stubcard strong { font-family: var(--wrap-hand); font-size: clamp(64px, 9vw, 112px); font-weight: 400; line-height: 1; }
.forest-wrap-view .jr-number small,
.forest-wrap-view .jr-stubcard small { margin-left: 8px; font-family: var(--wrap-hand); font-size: 20px; opacity: .75; }

.forest-wrap-view .jr-stamps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.forest-wrap-view .jr-stamps.is-two { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.forest-wrap-view .jr-stampstat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 14px 14px 12px;
    border: 2px dashed currentColor;
    border-radius: 16px;
    background: color-mix(in srgb, var(--wrap-card) 70%, transparent);
}
.forest-wrap-view .jr-stampstat:nth-child(1) { transform: rotate(-1.2deg); }
.forest-wrap-view .jr-stampstat:nth-child(2) { transform: rotate(.9deg); }
.forest-wrap-view .jr-stampstat:nth-child(3) { transform: rotate(-.6deg); }
.forest-wrap-view .jr-stampstat strong { font-family: var(--wrap-hand); font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; line-height: 1.1; overflow-wrap: anywhere; }
.forest-wrap-view .jr-stampstat.is-text strong { font-size: clamp(20px, 2.4vw, 28px); }
.forest-wrap-view .jr-stampstat span,
.forest-wrap-view .jr-stampstat small { font-size: 12px; line-height: 1.4; opacity: .75; }

/* ---------- 封面：票根 ---------- */
.forest-wrap-view .jr-ticket {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(210px, .7fr);
    border: 1px solid var(--wrap-line);
    border-radius: 18px;
    background: var(--wrap-card);
    box-shadow: var(--wrap-shadow);
    transform: rotate(-.6deg);
}
.forest-wrap-view .jr-ticket-main { padding: clamp(32px, 5vw, 60px); min-width: 0; }
.forest-wrap-view .forest-wrap-cover-copy h1,
.forest-wrap-view .jr-ticket-main h1 { margin: 0 0 20px; font-size: clamp(46px, 7vw, 88px); line-height: 1.08; color: #314638; }
.forest-wrap-view .jr-ticket-main h1 em { display: block; margin-top: 4px; font-size: .72em; font-style: normal; color: #72826d; }
.forest-wrap-view .jr-ticket-main .forest-wrap-lead { max-width: 480px; margin: 0 0 18px; font-size: clamp(16px, 1.8vw, 20px); line-height: 1.7; color: #68776d; }
.forest-wrap-view .jr-ticket-main .forest-wrap-date-range { margin: 0; font-size: 12px; letter-spacing: .14em; color: #8b968e; }
.forest-wrap-view .jr-ticket-stub {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px 22px;
    border-left: 2px dashed var(--wrap-dash);
}
.forest-wrap-view .jr-ticket-stub::before,
.forest-wrap-view .jr-ticket-stub::after {
    position: absolute;
    left: -14px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--wrap-bg);
    box-shadow: inset 0 2px 3px rgba(110, 95, 63, .12);
    content: "";
}
.forest-wrap-view .jr-ticket-stub::before { top: -13px; }
.forest-wrap-view .jr-ticket-stub::after { bottom: -13px; }
.forest-wrap-view .jr-ticket-stub .forest-wrap-orbit { width: min(190px, 100%); }
.forest-wrap-view .jr-ticket-stub .forest-wrap-orbit-year { font-family: var(--wrap-hand); font-size: 68px; letter-spacing: 0; transform: none; color: #49604f; }
.forest-wrap-view .jr-ticket-stub .forest-wrap-orbit-ring { border-style: dashed; }
.forest-wrap-view .jr-ticket-stub .forest-wrap-cover-note { flex-direction: column; align-items: center; gap: 2px; padding-top: 12px; border-top: 1.5px dashed var(--wrap-dash); text-align: center; }
.forest-wrap-view .jr-ticket-stub .forest-wrap-cover-note strong { font-family: var(--wrap-hand); font-size: 34px; }
.forest-wrap-view .jr-ticket-stub .forest-wrap-cover-note span { font-size: 12px; }
.forest-wrap-view .forest-wrap-orbit-dot { border-color: var(--wrap-card); }

/* ---------- 總覽：手帳雙頁 ---------- */
.forest-wrap-view .jr-spread {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--wrap-line);
    border-radius: 18px;
    background: var(--wrap-card);
    box-shadow: var(--wrap-shadow);
    overflow: hidden;
}
.forest-wrap-view .jr-leaf { position: relative; padding: clamp(28px, 4vw, 52px); min-width: 0; }
.forest-wrap-view .jr-leaf-left { background: linear-gradient(90deg, transparent 92%, rgba(110, 95, 63, .09)); }
.forest-wrap-view .jr-leaf-right { background: linear-gradient(270deg, transparent 94%, rgba(110, 95, 63, .06)), linear-gradient(90deg, rgba(110, 95, 63, .09), transparent 6%); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: center; }
.forest-wrap-view .jr-leaf-left h2 { color: #37493d; }
.forest-wrap-view .jr-bigstats { display: grid; gap: 4px; margin-top: 28px; }
.forest-wrap-view .jr-bigstat { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-top: 1.5px dashed var(--wrap-dash); }
.forest-wrap-view .jr-bigstat span { flex: 1; font-size: 13px; color: #758279; }
.forest-wrap-view .jr-bigstat strong { font-family: var(--wrap-hand); font-size: clamp(48px, 6vw, 72px); font-weight: 400; line-height: 1; color: #3e5948; }
.forest-wrap-view .jr-bigstat.is-soft strong { color: #6c786f; }
.forest-wrap-view .jr-bigstat small { font-family: var(--wrap-hand); font-size: 16px; color: #79857d; }
.forest-wrap-view .jr-index {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto auto auto;
    align-content: space-between;
    min-height: 150px;
    padding: 22px 16px 14px;
    border: 1px solid var(--wrap-line);
    border-radius: 6px 14px 14px 14px;
    box-shadow: 0 6px 14px rgba(110, 95, 63, .1);
    transform: rotate(var(--r, 0deg));
}
.forest-wrap-view .jr-index::before {
    position: absolute;
    top: -11px;
    left: 14px;
    width: 54px;
    height: 20px;
    border-radius: 6px 6px 0 0;
    background: var(--tab, #cdd);
    content: "";
}
.forest-wrap-view .jr-index img { width: 28px; height: 28px; grid-row: 1; }
.forest-wrap-view .jr-index span { align-self: center; font-size: 12px; letter-spacing: .08em; color: #718078; }
.forest-wrap-view .jr-index strong { grid-column: 1 / -1; align-self: end; font-family: var(--wrap-hand); font-size: clamp(40px, 5vw, 58px); font-weight: 400; line-height: 1; color: #3f5748; }
.forest-wrap-view .jr-index small { grid-column: 1 / -1; font-size: 12px; color: #89938d; }
.forest-wrap-view .jr-index.is-writing  { --tab: #b9d2bb; background: #f3f8f3; }
.forest-wrap-view .jr-index.is-time     { --tab: #b9cde0; background: #f2f6f9; }
.forest-wrap-view .jr-index.is-wealth   { --tab: #e5cfa8; background: #fcf7ee; }
.forest-wrap-view .jr-index.is-learning { --tab: #d3c3de; background: #f8f3f9; }

/* ---------- 文字森林：稿紙 ---------- */
.forest-wrap-view .jr-manuscript {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid #c4d6c4;
    border-radius: 12px;
    background-color: #fcfefb;
    background-image: linear-gradient(#d9e6d8 1px, transparent 1px), linear-gradient(90deg, #d9e6d8 1px, transparent 1px);
    background-size: 30px 30px;
    box-shadow: var(--wrap-shadow);
    transform: rotate(-.5deg);
}
.forest-wrap-view .jr-manuscript .jr-number { background: rgba(252, 254, 251, .88); padding-inline: 10px; }
.forest-wrap-view .jr-manuscript .jr-head { padding: 6px 10px; background: rgba(252, 254, 251, .88); border-radius: 8px; }
.forest-wrap-view .jr-aside { display: flex; flex-direction: column; justify-content: center; gap: 28px; min-width: 0; }
.forest-wrap-view .jr-sticky {
    position: relative;
    padding: 24px 24px 22px;
    background: linear-gradient(135deg, #f3eadc, #faf7f1);
    box-shadow: 0 10px 20px rgba(110, 95, 63, .16);
    color: #3e3626;
    transform: rotate(var(--r, 2deg));
}
.forest-wrap-view .jr-sticky span { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: .1em; opacity: .7; }
.forest-wrap-view .jr-sticky strong { font-family: var(--wrap-hand); font-size: clamp(32px, 4vw, 48px); font-weight: 400; line-height: 1.2; overflow-wrap: anywhere; }
.forest-wrap-view .jr-lined {
    padding: 4px 22px 8px;
    border: 1px solid var(--wrap-line);
    border-radius: 12px;
    background: repeating-linear-gradient(transparent 0, transparent 35px, #dfe8dc 35px, #dfe8dc 36px), var(--wrap-card);
    box-shadow: 0 8px 18px rgba(110, 95, 63, .1);
    transform: rotate(var(--r, 0deg));
}
.forest-wrap-view .jr-lined p { margin: 0; font-family: var(--wrap-hand); font-size: 17px; line-height: 36px; color: #3a4a3e; }

/* ---------- 時光森林：票根 ---------- */
.forest-wrap-view .jr-stubcard {
    position: relative;
    padding: 22px 28px 20px;
    border: 1px solid var(--wrap-line);
    border-radius: 14px;
    background: var(--wrap-card);
    box-shadow: var(--wrap-shadow);
    transform: rotate(var(--r, 0deg));
}
.forest-wrap-view .jr-stubcard::before,
.forest-wrap-view .jr-stubcard::after {
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border-radius: 50%;
    background: var(--wrap-bg);
    box-shadow: inset 0 2px 3px rgba(60, 80, 100, .14);
    content: "";
}
.forest-wrap-view .jr-stubcard::before { left: -11px; }
.forest-wrap-view .jr-stubcard::after { right: -11px; }
.forest-wrap-view .jr-stubcard > span { display: block; margin-bottom: 4px; font-size: 13px; opacity: .72; }
.forest-wrap-view .jr-ticketlist {
    position: relative;
    align-self: center;
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid var(--wrap-line);
    border-radius: 14px;
    background: var(--wrap-card);
    box-shadow: var(--wrap-shadow);
    transform: rotate(var(--r, 0deg));
}
.forest-wrap-view .jr-label { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: .12em; opacity: .7; }
.forest-wrap-view .jr-ticketlist > strong { display: block; font-family: var(--wrap-hand); font-size: clamp(26px, 3.2vw, 38px); font-weight: 400; line-height: 1.3; overflow-wrap: anywhere; }
.forest-wrap-view .forest-wrap-milestones { display: grid; gap: 10px; margin-top: 22px; }
.forest-wrap-view .forest-wrap-milestone {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 6px 14px 6px 0;
    border: 1.5px dashed var(--wrap-dash);
    border-radius: 10px;
    background: #f4f8fa;
}
.forest-wrap-view .forest-wrap-milestone span { align-self: stretch; display: grid; place-items: center; border-right: 1.5px dashed var(--wrap-dash); font-family: var(--wrap-hand); font-size: 15px; color: #405d71; }
.forest-wrap-view .forest-wrap-milestone strong { font-family: var(--wrap-hand); font-size: 17px; }
.forest-wrap-view .forest-wrap-milestone small { font-size: 12px; opacity: .7; }
.forest-wrap-view .forest-wrap-empty { margin: 16px 0 0; font-family: var(--wrap-hand); font-size: 14px; }

/* ---------- 財富森林：收據 ---------- */
.forest-wrap-view .jr-receipt-wrap { align-self: center; filter: drop-shadow(0 12px 14px rgba(110, 95, 63, .16)); transform: rotate(var(--r, 0deg)); }
.forest-wrap-view .jr-receipt {
    padding: clamp(28px, 4vw, 44px) clamp(24px, 3vw, 38px) 44px;
    background: #fffdf8;
    -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, radial-gradient(circle 7px at 10px 10px, #0000 97%, #000) bottom / 20px 10px repeat-x;
            mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, radial-gradient(circle 7px at 10px 10px, #0000 97%, #000) bottom / 20px 10px repeat-x;
}
.forest-wrap-view .jr-receipt-title { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 2px dashed var(--wrap-dash); text-align: center; font-family: var(--wrap-hand); font-size: 26px; letter-spacing: .3em; color: #74552f; }
.forest-wrap-view .jr-rrow { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; }
.forest-wrap-view .jr-rrow span { font-size: 15px; color: #8a6f50; }
.forest-wrap-view .jr-rrow i { flex: 1; min-width: 12px; border-bottom: 2px dotted #cdb998; transform: translateY(-4px); }
.forest-wrap-view .jr-rrow strong { font-family: var(--wrap-hand); font-size: clamp(24px, 3vw, 34px); font-weight: 400; white-space: nowrap; color: #5e4326; }
.forest-wrap-view .jr-rrow.is-total { margin-top: 8px; padding-top: 18px; border-top: 2px dashed var(--wrap-dash); }
.forest-wrap-view .jr-rrow.is-total strong { font-size: clamp(30px, 4vw, 44px); }
.forest-wrap-view .jr-receipt-note { margin: 18px 0 0; text-align: center; font-family: var(--wrap-hand); font-size: 14px; color: #a18b6d; }

/* ---------- 學習森林：螺旋筆記本 ---------- */
.forest-wrap-view .jr-notebook {
    position: relative;
    padding-left: 34px;
    border-radius: 18px;
    background: #d9cbe2;
    box-shadow: var(--wrap-shadow);
}
.forest-wrap-view .jr-notebook::before {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 8px;
    width: 40px;
    background: radial-gradient(circle 6px at 50% 50%, #7c6a88 96%, transparent) 0 0 / 40px 30px repeat-y;
    content: "";
    z-index: 2;
}
.forest-wrap-view .jr-notebook-body {
    padding: clamp(26px, 4vw, 44px) clamp(22px, 4vw, 48px) clamp(26px, 4vw, 40px) clamp(30px, 4vw, 52px);
    border-radius: 4px 16px 16px 4px;
    background: repeating-linear-gradient(transparent 0, transparent 33px, #e8dfed 33px, #e8dfed 34px), #fdfbfe;
}
.forest-wrap-view .jr-learn-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px clamp(24px, 4vw, 52px); margin-top: 26px; }
.forest-wrap-view .jr-learn-grid .jr-number { background: rgba(253, 251, 254, .9); }
.forest-wrap-view .jr-deep {
    position: relative;
    padding: 22px 24px 20px;
    border: 1px solid #d9cce0;
    border-radius: 14px;
    background: #f4edf7;
    box-shadow: 0 8px 18px rgba(104, 81, 111, .12);
    transform: rotate(var(--r, 0deg));
}
.forest-wrap-view .jr-deep span { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .1em; opacity: .7; }
.forest-wrap-view .jr-deep strong { font-family: var(--wrap-hand); font-size: clamp(26px, 3.4vw, 40px); font-weight: 400; line-height: 1.25; overflow-wrap: anywhere; }
.forest-wrap-view .forest-wrap-song-list { display: grid; gap: 10px; margin-top: 4px; }
.forest-wrap-view .forest-wrap-song {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 8px 16px;
    border: 1px solid #ddd0e4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(104, 81, 111, .08);
}
.forest-wrap-view .forest-wrap-song:nth-child(odd) { transform: rotate(-.6deg); }
.forest-wrap-view .forest-wrap-song:nth-child(even) { transform: rotate(.5deg); margin-left: 10px; }
.forest-wrap-view .forest-wrap-song > span:first-child { font-family: var(--wrap-hand); font-size: 15px; color: #907d95; }
.forest-wrap-view .forest-wrap-song strong { font-family: var(--wrap-hand); font-size: 17px; font-weight: 400; }
.forest-wrap-view .forest-wrap-song small { font-size: 12px; color: #8d7d91; }

/* ---------- 結尾：手帳最後一頁 ---------- */
.forest-wrap-view .jr-lastpage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(34px, 5vw, 56px) clamp(24px, 5vw, 64px) 36px;
    border: 1px solid var(--wrap-line);
    border-radius: 16px;
    background: repeating-linear-gradient(transparent 0, transparent 35px, #ebe1c9 35px, #ebe1c9 36px), var(--wrap-card);
    box-shadow: var(--wrap-shadow);
    text-align: center;
    transform: rotate(-.4deg);
}
.forest-wrap-view .jr-lastpage h2 { margin: 0 0 10px; font-size: clamp(36px, 5.5vw, 62px); color: #344b3a; }
.forest-wrap-view .jr-lastpage .forest-wrap-finale-lead { max-width: 560px; margin: 0 0 22px; font-family: var(--wrap-hand); font-size: 16px; line-height: 1.8; color: #6a766d; }
.forest-wrap-view .forest-wrap-finale-ring { width: clamp(120px, 16vw, 160px); margin: 0 0 22px; border: 3px dashed #506b57; background: var(--wrap-card); transform: rotate(-8deg); }
.forest-wrap-view .forest-wrap-finale-ring::before { border: 1px solid rgba(59, 82, 64, .18); }
.forest-wrap-view .forest-wrap-finale-ring::after { display: none; }
.forest-wrap-view .forest-wrap-finale-ring span,
.forest-wrap-view .forest-wrap-finale-ring strong { font-family: var(--wrap-hand); font-size: clamp(30px, 4vw, 42px); line-height: .9; }
.forest-wrap-view .forest-wrap-final-footprints { font-size: 13px; }
.forest-wrap-view .forest-wrap-final-footprints i { width: 9px; height: 9px; }
.forest-wrap-view .forest-wrap-final-footprints b { font-family: var(--wrap-hand); font-size: 17px; }
.forest-wrap-view .forest-wrap-final-summary {
    max-width: 560px;
    margin: 22px 0 20px;
    padding: 6px 24px 10px;
    border: 1px solid var(--wrap-line);
    border-radius: 12px;
    border-top: 1px solid var(--wrap-line);
    background: repeating-linear-gradient(transparent 0, transparent 33px, #e6dcc3 33px, #e6dcc3 34px), #fffefa;
    box-shadow: 0 8px 18px rgba(110, 95, 63, .1);
    font-family: var(--wrap-hand);
    font-size: 17px;
    line-height: 34px;
    transform: rotate(.4deg);
}
.forest-wrap-view .forest-wrap-replay { min-height: 44px; padding: 8px 22px; border: 1.5px dashed #6a8a72; background: transparent; font-family: var(--wrap-hand); font-size: 16px; }
.forest-wrap-view .jr-foot { margin-top: 18px; font-size: 12px; letter-spacing: .08em; opacity: .55; }

/* ---------- 頂欄、進度、操作 ---------- */
.forest-wrap-view .forest-wrap-brand span { font-size: 12px; letter-spacing: .14em; }
.forest-wrap-view .forest-wrap-brand strong { font-family: var(--wrap-hand); }
.forest-wrap-view .forest-wrap-back { min-width: 44px; min-height: 44px; font-family: var(--wrap-hand); font-size: 16px; }
.forest-wrap-view .forest-wrap-privacy { min-width: 96px; min-height: 44px; white-space: nowrap; border: 1.5px dashed currentColor; background: transparent; font-family: var(--wrap-hand); font-size: 15px; }
.forest-wrap-view .forest-wrap-progress { background: rgba(110, 95, 63, .12); }
.forest-wrap-view .forest-wrap-controls { border-top: 1.5px dashed var(--wrap-dash); background: rgba(244, 236, 221, .92); }
.forest-wrap-view .forest-wrap-control { min-height: 44px; font-family: var(--wrap-hand); font-size: 16px; }
.forest-wrap-view .forest-wrap-control-next { border-color: #46604c; background: #46604c; color: #fff; }

/* ---------- 矮螢幕（筆電）：收緊一點，盡量一頁看完 ---------- */
@media (min-width: 781px) and (max-height: 860px) {
    .forest-wrap-view .jr-lastpage { padding: 26px 48px 22px; }
    .forest-wrap-view .jr-lastpage h2 { font-size: 44px; margin-bottom: 6px; }
    .forest-wrap-view .jr-lastpage .forest-wrap-finale-lead { margin-bottom: 14px; }
    .forest-wrap-view .forest-wrap-finale-ring { width: 104px; margin-bottom: 14px; }
    .forest-wrap-view .forest-wrap-final-summary { margin: 14px 0 14px; }
    .forest-wrap-view .jr-manuscript { gap: 16px; padding: 24px 28px; }
    .forest-wrap-view .jr-number strong { font-size: 76px; }
    .forest-wrap-view .jr-learn-grid { margin-top: 14px; }
    .forest-wrap-view .jr-notebook-body { padding-top: 22px; padding-bottom: 22px; }
}

/* ---------- 手機 ---------- */
@media (max-width: 780px) {
    .forest-wrap-view .forest-wrap-slide-inner.jr-page { width: calc(100vw - 36px); }
    .forest-wrap-view .jr-duo.forest-wrap-slide-inner { grid-template-columns: minmax(0, 1fr); }
    .forest-wrap-view .jr-ticket { grid-template-columns: minmax(0, 1fr); transform: none; }
    .forest-wrap-view .jr-ticket-stub { flex-direction: row; flex-wrap: wrap; border-left: 0; border-top: 2px dashed var(--wrap-dash); padding: 22px; }
    .forest-wrap-view .jr-ticket-stub::before { top: -13px; left: -13px; }
    .forest-wrap-view .jr-ticket-stub::after { top: -13px; bottom: auto; left: auto; right: -13px; }
    .forest-wrap-view .jr-ticket-stub .forest-wrap-orbit { width: 130px; }
    .forest-wrap-view .jr-ticket-stub .forest-wrap-orbit-year { font-size: 48px; }
    .forest-wrap-view .jr-ticket-stub .forest-wrap-cover-note { border-top: 0; align-items: flex-start; text-align: left; }
    .forest-wrap-view .jr-spread { grid-template-columns: minmax(0, 1fr); }
    .forest-wrap-view .jr-leaf-right { grid-template-columns: 1fr 1fr; padding-top: 34px; }
    .forest-wrap-view .jr-learn-grid { grid-template-columns: minmax(0, 1fr); }
    .forest-wrap-view .jr-manuscript,
    .forest-wrap-view .jr-lastpage,
    .forest-wrap-view .jr-stubcard,
    .forest-wrap-view .jr-ticketlist { transform: none; }
    .forest-wrap-view .jr-stamps { gap: 8px; }
    .forest-wrap-view .jr-stampstat { padding: 12px 10px 10px; }
    .forest-wrap-view .jr-notebook { padding-left: 26px; }
    .forest-wrap-view .jr-notebook::before { left: 4px; width: 34px; background-size: 34px 30px; }
}
@media (max-width: 430px) {
    .forest-wrap-view .jr-index { min-height: 128px; padding: 20px 12px 12px; }
    .forest-wrap-view .forest-wrap-milestone { grid-template-columns: 64px minmax(0, 1fr) auto; }
}

/* ---------- 夜間 ---------- */
body.night-mode .forest-wrap-view {
    --wrap-card: #232b25;
    --wrap-line: #3f4a41;
    --wrap-dash: #4a574d;
    --wrap-dot: #2a342d;
    --wrap-bg: #1d2620;
    --wrap-ink: #e4eadf;
    --wrap-tape: rgba(120, 140, 120, .45);
    --wrap-shadow: 0 12px 26px rgba(0, 0, 0, .35);
}
body.night-mode .forest-wrap-view .forest-wrap-writing  { --wrap-bg: #1c2a22; --wrap-dot: #26352b; color: #bcd6c3; }
body.night-mode .forest-wrap-view .forest-wrap-time     { --wrap-bg: #1b2630; --wrap-dot: #243340; color: #b4cde0; }
body.night-mode .forest-wrap-view .forest-wrap-wealth   { --wrap-bg: #2a2418; --wrap-dot: #3a3222; color: #e0c79b; }
body.night-mode .forest-wrap-view .forest-wrap-learning { --wrap-bg: #261f2b; --wrap-dot: #382f40; color: #d6c3de; }
body.night-mode .forest-wrap-view .forest-wrap-controls { background: rgba(27, 34, 29, .92); }
body.night-mode .forest-wrap-view .jr-ticket-main h1 { color: #dfe9da; }
body.night-mode .forest-wrap-view .jr-ticket-main h1 em { color: #a9bca3; }
body.night-mode .forest-wrap-view .jr-ticket-main .forest-wrap-lead,
body.night-mode .forest-wrap-view .jr-ticket-main .forest-wrap-date-range { color: #a9b6ab; }
body.night-mode .forest-wrap-view .jr-ticket-stub .forest-wrap-orbit-year { color: #cfe0cc; }
body.night-mode .forest-wrap-view .jr-leaf-left h2,
body.night-mode .forest-wrap-view .jr-bigstat strong,
body.night-mode .forest-wrap-view .jr-index strong { color: #dfe9da; }
body.night-mode .forest-wrap-view .jr-bigstat span,
body.night-mode .forest-wrap-view .jr-index span,
body.night-mode .forest-wrap-view .jr-index small,
body.night-mode .forest-wrap-view .jr-bigstat small { color: #a9b6ab; }
body.night-mode .forest-wrap-view .jr-index.is-writing,
body.night-mode .forest-wrap-view .jr-index.is-time,
body.night-mode .forest-wrap-view .jr-index.is-wealth,
body.night-mode .forest-wrap-view .jr-index.is-learning { background: #2a332c; }
body.night-mode .forest-wrap-view .jr-manuscript { background-color: #1f2922; background-image: linear-gradient(#2b3a2f 1px, transparent 1px), linear-gradient(90deg, #2b3a2f 1px, transparent 1px); border-color: #3a4a3e; }
body.night-mode .forest-wrap-view .jr-manuscript .jr-number,
body.night-mode .forest-wrap-view .jr-manuscript .jr-head { background: rgba(31, 41, 34, .9); }
body.night-mode .forest-wrap-view .jr-sticky { background: linear-gradient(135deg, #3a3426, #2f2b21); color: #eadfc7; }
body.night-mode .forest-wrap-view .jr-lined { background: repeating-linear-gradient(transparent 0, transparent 35px, #2f3b32 35px, #2f3b32 36px), var(--wrap-card); }
body.night-mode .forest-wrap-view .jr-lined p { color: #cfdccf; }
body.night-mode .forest-wrap-view .forest-wrap-milestone { background: #222d36; }
body.night-mode .forest-wrap-view .forest-wrap-milestone span { color: #b4cde0; }
body.night-mode .forest-wrap-view .jr-receipt { background: #2b271d; }
body.night-mode .forest-wrap-view .jr-receipt-title,
body.night-mode .forest-wrap-view .jr-rrow strong { color: #ecd7ad; }
body.night-mode .forest-wrap-view .jr-rrow span,
body.night-mode .forest-wrap-view .jr-receipt-note { color: #b79f7a; }
body.night-mode .forest-wrap-view .jr-notebook { background: #3a2f44; }
body.night-mode .forest-wrap-view .jr-notebook-body { background: repeating-linear-gradient(transparent 0, transparent 33px, #342b3b 33px, #342b3b 34px), #231e28; }
body.night-mode .forest-wrap-view .jr-learn-grid .jr-number { background: rgba(35, 30, 40, .9); }
body.night-mode .forest-wrap-view .jr-deep { background: #2e2635; border-color: #4a3d54; }
body.night-mode .forest-wrap-view .forest-wrap-song { background: #2a2330; border-color: #43374d; }
body.night-mode .forest-wrap-view .jr-lastpage { background: repeating-linear-gradient(transparent 0, transparent 35px, #2d3830 35px, #2d3830 36px), var(--wrap-card); }
body.night-mode .forest-wrap-view .jr-lastpage h2 { color: #dfe9da; }
body.night-mode .forest-wrap-view .jr-lastpage .forest-wrap-finale-lead { color: #a9b6ab; }
body.night-mode .forest-wrap-view .forest-wrap-final-summary { background: repeating-linear-gradient(transparent 0, transparent 33px, #34403a 33px, #34403a 34px), #1f2721; color: #dfe6dc; }
body.night-mode .forest-wrap-view .forest-wrap-finale-ring { border-color: #8fae94; color: #cfe0cc; }
