/* Original forest / warm paper / sunlight system, shared by the entire local journey. */
:root{--ink:#244b40;--paper:#fffdf5;--gold:#efc55e;--surface-edge:#d5d9c3;--surface-shadow:0 3px 0 #d9dcc6,0 12px 28px #294b3610;--tap-ease:cubic-bezier(.2,.7,.25,1)}
body{background:radial-gradient(ellipse at 15% 4%,#fffcef 0,transparent 47%),radial-gradient(ellipse at 90% 45%,#e3ead64d,transparent 60%),#f0eedf;color:var(--ink)}
.shell{position:relative}.topbar{background:linear-gradient(110deg,#183f39,#2c5848);border-bottom:1px solid #d4e1b933;box-shadow:0 3px 14px #153b2920}.save-status{color:#d7e6c7}.brand{letter-spacing:.055em}.brand-icon{filter:drop-shadow(0 2px 2px #102f3250)}
h1,h2,h3{text-wrap:pretty;word-break:keep-all;overflow-wrap:anywhere}p{line-height:1.8}.eyebrow{color:#667455;letter-spacing:.1em}.small,.footnote{color:#586650}.panel,.companion-card,.card{background:linear-gradient(145deg,#fffef8,#fbfaed);border-color:var(--surface-edge);box-shadow:var(--surface-shadow)}
.panel h2{letter-spacing:.02em}.section-top{margin-bottom:24px}.section-top .eyebrow{font-size:13px;font-weight:700}.section-top h1{line-height:1.6}.badge{background:#dce9cc;border:1px solid #c5d7b6;color:#37533b}.notice,.operation-reason{border-left:3px solid #b2903f;background:#fff3d6;line-height:1.8}.notice{border-radius:14px}
button{background-image:linear-gradient(#fff7,transparent 55%);border-color:#657c63;box-shadow:0 3px 0 #667d61,inset 0 1px 0 #fff9;transition:transform 100ms var(--tap-ease),box-shadow 100ms var(--tap-ease),background-color 140ms}
button:not(:disabled):active{transform:translateY(2px);box-shadow:0 1px 0 #667d61,inset 0 2px 5px #244b401a}
button:disabled{background-image:none;filter:saturate(.65)}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #bd862c;outline-offset:4px}
.primary,.continue-adventure{background:linear-gradient(#f8d879,#e9ba4b);border-color:#a38439;box-shadow:0 3px 0 #947237,inset 0 1px 0 #fff5cd;color:#34452d}.primary:hover,.continue-adventure:hover{background:linear-gradient(#ffe695,#efc65f)}
.bottom-nav{background:linear-gradient(#315746,#1e483b);box-shadow:0 -1px 0 #dae4c766,0 7px 22px #19382c44}.bottom-nav button{background-image:none}.bottom-nav button[aria-current=page]{background:linear-gradient(#f5d276,#e5b74e);box-shadow:inset 0 1px 0 #fff4c5}.bottom-nav button:active{transform:translateY(1px)}
.local-preview{background:#fff7df;border-color:#d2bd85;box-shadow:none}.local-preview strong{font-size:12px;letter-spacing:.03em}.local-preview button{box-shadow:none;background:#fffdf3;border-width:1px}
.journey-next{background:linear-gradient(115deg,#1f493e,#3a654e);box-shadow:0 4px 0 #c4c7a5,0 16px 30px #2146321a}.journey-next::before{background:radial-gradient(ellipse at 86% 10%,#e2d48845,transparent 48%),radial-gradient(ellipse at 67% 120%,#85a27a66 10%,transparent 64%)}.journey-next::after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(165deg,transparent 64%,#183d3433 64.3%,transparent 80%),radial-gradient(circle at 74% 24%,#ffe8a544 0 2px,transparent 3px),radial-gradient(circle at 83% 62%,#ffe8a544 0 2px,transparent 3px)}.journey-next .journey-copy p{color:#ecf0dc}.journey-progress{border-color:#d4e1b944}
.map-wrap,.japan-map{filter:drop-shadow(0 4px 4px #20402b10)}.region-quests .next-quest{background:linear-gradient(90deg,#f9edc5,transparent);border-radius:12px}.region-quests .quest{padding-left:8px;padding-right:8px}.quest-icon{display:grid;place-items:center;border-radius:50%;background:#e6edd7;width:32px;height:32px;font-size:17px}.next-quest .quest-icon{background:#f1d17c}
.profile-hero{position:relative;isolation:isolate;overflow:hidden;border:1px solid #d5dcc6;background:radial-gradient(ellipse at 20% 34%,#fffdf3 4%,#e4edd44d 57%,transparent 73%),linear-gradient(120deg,#f3f0d9,#e6ead6);box-shadow:inset 0 1px 0 #fff9}.profile-hero>img{filter:drop-shadow(0 7px 3px #4a60341c)}.profile-hero::before{content:'';position:absolute;left:7%;right:58%;bottom:14%;height:12%;z-index:-1;background:radial-gradient(ellipse,#657c4a20,transparent 70%)}
.profile-tabs button[aria-pressed=true],.growth-subtabs button[aria-pressed=true]{border-color:#a48840;background:linear-gradient(#fae3a0,#eed078);box-shadow:0 2px 0 #af954b}.profile-body{margin-top:20px}.growth-subtabs{padding-bottom:15px;border-bottom:1px solid #dde0cd}.growth-subtabs button{border-width:1px}.growth-table>div{border-bottom:1px solid #dce1cf}.growth-table em{font-style:normal;background:#e5efd8;padding:2px 8px;border-radius:7px;color:#486635}
.companion-card.in-team{background:linear-gradient(150deg,#fffdf1,#faf0d5);box-shadow:0 3px 0 #d8c991,0 9px 18px #4863370c}.companion-profile{box-shadow:none;border:0;background:none}.companion-profile img,.departure-party img{filter:drop-shadow(0 5px 3px #3c57311c)}.companion-filters{border:1px solid #d2dbc2;box-shadow:inset 0 1px 0 #ffff}.current-team .slots button[aria-pressed=true]{box-shadow:inset 0 1px 0 #fff,0 0 0 2px #d4b76333}.menu-item{box-shadow:var(--surface-shadow)}
.gear-grid button,.board-nodes button,.training-stepper button{border-width:1px}.gear-detail,.cap-training,.exp-training,.growth-success,.hatch-result,.result-panel,.exp-reward,.profile-body{position:relative}.gear-symbol{filter:drop-shadow(0 3px 1px #41603618)}.board-node-icon{background:radial-gradient(circle at 35% 25%,#f8f9e6,#d6e4bd);box-shadow:inset 0 1px 0 #fff,0 3px 0 #bacbaa}.exp-progress{background:linear-gradient(110deg,#edf3dd,#e1eacc);border:1px solid #cfdbbc}.exp-progress meter{height:20px;accent-color:#60833d}.exp-progress meter::-webkit-meter-bar{background:#f9f8e9;border:1px solid #bfccab;border-radius:9px}.exp-progress meter::-webkit-meter-optimum-value{background:linear-gradient(#b5c779,#76944a);border-radius:8px}.cap-route .opened{background:linear-gradient(#eff4dc,#dfe9c5);border-color:#afc191}.training-stepper output{background:#fbf7e3;border-radius:12px;padding:8px 0;color:#856726}.training-stepper button{box-shadow:0 2px 0 #93a580}
.nursery-slot{background:radial-gradient(ellipse at 50% 29%,#fffcef,#f2f2df 62%);box-shadow:var(--surface-shadow)}.empty-nest{background:radial-gradient(ellipse at center,#f8f7e6,#e8edd9);box-shadow:inset 0 2px 8px #4560390a}.egg-art{background-image:radial-gradient(ellipse at 30% 24%,#fff9 0 10%,transparent 30%);box-shadow:inset -9px -9px 0 #6389601a,0 10px 6px -6px #3e542a3d}.hatch-ready{background:radial-gradient(ellipse at 50% 30%,#ffefb9,#fffae5 58%,#f3efd9);border-color:#c2a65a}.hatch-result{background:radial-gradient(ellipse at 20% 40%,#fffdf0,#fff0bf 70%);border-color:#ccb362}.hatch-result>img{filter:drop-shadow(0 6px 4px #99763122)}
.departure-enemy{background:radial-gradient(ellipse at 20% 60%,#e8edd2,transparent 55%)}.departure-party article{border:1px solid #dce0c8;background:linear-gradient(#fbfbef,#edf0db)}.draw-lobby{background:radial-gradient(ellipse at 50% 22%,#fff9d6,#f0edcf)}.result-panel{background:radial-gradient(ellipse at 50% 14%,#fff9d6 0,transparent 48%),linear-gradient(#fffdf5,#f8f6e6);overflow:hidden}.result-panel .result-art{filter:drop-shadow(0 7px 4px #88753626)}.result-steps{padding-bottom:14px;border-bottom:1px solid #dddcc1}.reward-chips span{background:linear-gradient(#fff8dc,#f5e5b0);border:1px solid #dfcb8f;border-radius:12px;box-shadow:0 2px 0 #e6d59f}.exp-reward{border:1px solid #d1ddbc;background:linear-gradient(#edf3df,#e5ebd4)}.exp-reward article{box-shadow:0 2px 0 #d4ddbe}.result-panel[data-outcome=lost]{background:radial-gradient(ellipse at 50% 14%,#eaf0df,transparent 55%),#f8f8ec}
.progression-confirm,.save-confirm{border:1px solid #8b9e78;box-shadow:0 20px 70px #142f3655,inset 0 1px 0 #fff}.progression-confirm::backdrop,.save-confirm::backdrop{background:#163b3bb8;backdrop-filter:blur(3px)}
/* Perspective and light remain behind the creature silhouettes and controls. */
body[data-view=battle]{background:radial-gradient(ellipse at 50% 0,#f4f2df,#dde6d8)}body[data-view=battle] .arena.stage-composed{box-shadow:0 4px 0 #bdcbb0,0 14px 24px #294b3620}.stage-composed .stage-space::before{background:radial-gradient(ellipse at 24% 9%,#fff3b855,transparent 52%),linear-gradient(180deg,#ecf4df35,transparent 39%,#203e2d2c)}.stage-composed .stage-space{box-shadow:inset 0 -28px 34px -30px #153c2a99}.stage-composed .battle-opponent{background:linear-gradient(#fffef5,#edf2e2)}.stage-composed .battle-forecast .motion-label{background:#f5f7eb}.stage-composed .unit-shadow{filter:blur(1.8px)}.stage-composed .unit-body>.unit-sprite{filter:drop-shadow(2px 3px 2px #29442230)}.combat-panel{box-shadow:0 4px 0 #b9c7a8,0 10px 24px #213d2920!important}.auto-status{border-left:3px solid #90a56b}.auto-toggle[aria-pressed=true]{box-shadow:0 2px 0 #a08335,inset 0 1px 0 #fff4b9}.battle-note{padding:12px 16px;border-left:3px solid #a1b780;background:#f7faed;border-radius:0 12px 12px 0}
.impact-value{position:absolute;z-index:12;left:50%;top:15%;transform:translateX(-50%);pointer-events:none;white-space:nowrap;color:#fffdf2;font-size:clamp(20px,3vw,32px);font-weight:900;line-height:1.4;text-shadow:0 2px 0 #62452c,1px 0 0 #62452c,-1px 0 0 #62452c,0 -1px 0 #62452c}.impact-value[data-kind=heal]{color:#eeffdb;text-shadow:0 2px 0 #375941,1px 0 0 #375941,-1px 0 0 #375941}.impact-value[data-kind=guard]{color:#e4f6ff;text-shadow:0 2px 0 #31566b,1px 0 0 #31566b,-1px 0 0 #31566b}
.moment-sparks{position:absolute;left:50%;top:42%;width:0;height:0;pointer-events:none;z-index:9}.moment-sparks i{position:absolute;color:#c69b32;text-shadow:0 1px #fff9d9;font-size:27px;font-style:normal;opacity:0}.moment-sparks i:nth-child(even){font-size:38px;color:#97ae64}
.preparation-links button>strong{font:inherit;line-height:1.7;min-width:0}.story-dialogue{background:linear-gradient(150deg,#fffdf5,#f8f6e5);border-color:#c5d0b5;box-shadow:var(--surface-shadow)}.story-dialogue .speaker{color:#526d43;border-bottom:1px solid #d9dfc9;padding-bottom:8px}.story-stage{box-shadow:inset 0 -30px 32px -28px #1d412d66,0 8px 18px #31573612}.story-heading{color:#55704b}.story-night+.story-dialogue{border-color:#a4b9ac}
@media(max-width:760px){.section-top{margin-bottom:18px}.section-top .eyebrow{font-size:11px}.panel h2{line-height:1.65}.local-preview{gap:6px 10px;margin-bottom:14px}.local-preview strong{font-size:11px}.local-preview p{line-height:1.6}.quest-icon{width:25px;height:25px;font-size:14px}.profile-body{margin-top:14px}.growth-subtabs{padding-bottom:12px}.impact-value{font-size:21px}.result-panel .result-art{height:175px}.result-panel .reward-chips{gap:8px}.result-panel .reward-chips span{font-size:15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.moment-sparks{display:none}}
body[data-reduced=true] *,body[data-reduced=true] *::before,body[data-reduced=true] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}body[data-reduced=true] .moment-sparks{display:none}

@media(max-width:600px){.menu-heading{flex-wrap:wrap;gap:10px}.menu-heading>div:first-child{flex-basis:100%}.menu-heading>.row{width:100%;justify-content:flex-end;gap:10px}.menu-heading button{font-size:17px;min-height:44px;padding:5px 12px}.result-panel h2{font-size:25px;line-height:1.7}}

/* Expedition and form selection continue the same paper/forest design. */
.expedition-banner{border-top:4px solid #c8a258;background:linear-gradient(135deg,#faf6e8,#e8eee0)}
.expedition-banner>div{max-width:65ch}.expedition-map{background:linear-gradient(140deg,#e5efe5,#f8f1db)}
.expedition-map .map-places{grid-template-columns:repeat(3,minmax(0,1fr))}.expedition-region{padding:14px 0;border-bottom:1px solid #cbd5c7}
.form-family{position:relative;margin-bottom:24px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.form-card{min-width:0;padding:12px;border:1px solid #c8d3c4;border-radius:16px;background:#fbf8ee;text-align:center}.form-card img{display:block;width:100%;height:140px;object-fit:contain}.form-card h3{font-size:18px;overflow-wrap:anywhere}.form-card .small{line-height:1.7}.form-current{border:2px solid #b79743;background:#f7edce}.form-card button{width:100%;white-space:normal}
@media(max-width:620px){.form-grid{grid-template-columns:1fr}.form-card{display:grid;grid-template-columns:105px 1fr;gap:4px 12px;text-align:left}.form-card img{grid-row:span 5;height:130px}.form-card h3,.form-card p{margin:4px 0}.expedition-map .map-places{grid-template-columns:1fr}.expedition-region ol{padding-left:22px}}

/* letter-v01（Codex 2026-10-11）：手紙の3段・バッジ・はなまる・額 */
.letter-stages{position:relative;width:min(60%,220px);aspect-ratio:1;margin:0 auto -40px;z-index:0}
.letter-stages img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0}
.draw-result:not(.arrival) .letter-stages .letter-closed{opacity:1}
.arrival .letter-stages .letter-closed{animation:letter-step 1.2s steps(1,end) both}
.arrival .letter-stages .letter-opening{animation:letter-step 1.2s steps(1,end) .3s both}
.arrival .letter-stages .letter-open{animation:letter-last 1.6s ease-out .6s both}
@keyframes letter-step{0%{opacity:1}25%{opacity:1}26%,100%{opacity:0}}
@keyframes letter-last{0%{opacity:0}10%{opacity:1}70%{opacity:1}100%{opacity:.55}}
.arrival .draw-creature{animation-delay:.9s}
.arrival h1,.arrival .draw-role,.arrival .draw-obtained{animation-delay:.9s}
@media(prefers-reduced-motion:reduce){.letter-stages img{animation:none!important}.letter-stages .letter-open{opacity:1!important}}
.achievement-card .region-heading{display:flex;align-items:center;gap:10px}
.badge-art{width:56px;height:56px;flex:none;filter:drop-shadow(0 2px 2px #0006)}
.achievement-card:not(.is-claimed):not(.is-complete) .badge-art{filter:grayscale(.3) opacity(.8)}
.hanamaru{display:block;width:140px;height:140px;margin:6px auto 0;object-fit:contain;animation:unfold .4s ease-out}
.album-frame{position:relative;display:block;width:100%;aspect-ratio:1;margin-bottom:6px}
.album-frame img:first-child{position:absolute;left:15%;top:15%;width:70%;height:70%;object-fit:contain}
.album-frame .frame-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.album-card{border:0;box-shadow:none;background:transparent;padding:4px}

/* faces-v01・partner-emotes-v01・fx-v02（Codex 2026-10-11） */
.face-art{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#102452;border:2px solid #ffcc45;box-shadow:0 1px 2px #0006;vertical-align:middle}
.quiz-choices .face-art{width:64px;height:64px}
.team-status{position:relative}.team-status>strong{display:block;padding-left:26px}.team-status .team-face{position:absolute;left:5px;top:6px;width:24px;height:24px;margin:0;border-width:1.5px}
.battle-banner .cutin-face{width:72px;height:72px;border-width:3px;margin-right:10px;vertical-align:middle;animation:unfold .3s ease-out}
.home-partner .emote-art{height:100%;width:auto;object-fit:contain}
.result-art.emote-art{height:220px;width:auto;object-fit:contain}
.guide-face .emote-art{width:100%;height:100%;object-fit:contain}
.fx-over{position:absolute;left:50%;top:50%;width:min(80%,320px);height:auto;pointer-events:none;z-index:5;transform:translate(-50%,-50%)}
.exp-bar{position:relative}
.hatch-result{position:relative;background-image:url('../../assets/rpg/display-v2/fx-v02/hatch_glow_v01.webp');background-repeat:no-repeat;background-position:18% 55%;background-size:200px}
