html,body{margin:0;min-height:100%;background:#eaf0e7;color:#243b32;font-family:'Malgun Gothic','Apple SD Gothic Neo',sans-serif}body{display:flex;min-height:100dvh;flex-direction:column;align-items:center;justify-content:center}.game-viewport{width:100%;overflow:auto;scrollbar-gutter:stable;scrollbar-color:#596c60 #eaf0e7}.game-screen{width:min(100vw,calc(100dvh * 16 / 9));margin:auto;min-width:760px;aspect-ratio:16/9;font-size:clamp(12px,1.35vw,26px);outline:none}.game-screen button,.game-screen select,.game-screen input{font-family:inherit}#global-status,#global-error{box-sizing:border-box;width:100%;padding:6px 16px;font-size:14px;line-height:1.7;white-space:pre-wrap}#global-status:empty{display:none}#global-error{color:#813e34;background:#fff5ef;border-top:1px solid #d7b9ae}#global-error[hidden]{display:none}.game-actions{position:absolute;bottom:1.7cqw;left:3.5cqw;right:3.5cqw;display:flex;justify-content:center;gap:.55cqw;z-index:4}.game-nav-button{min-height:3cqw;padding:.6cqw 1.3cqw;border:1px solid #d6dfd6;background:#fffefaf2;color:#244d42;border-radius:.5cqw;font-size:1.05cqw;white-space:nowrap}.game-nav-button.current{background:#244d42;color:#fffefa}.game-screen .map-panel{top:16%;bottom:17%}.game-screen .map-credit{bottom:8%}.game-screen .japan-map{top:11%;width:47%;left:7%}.screen-back{position:absolute;top:2.3cqw;right:3cqw;background:#fffefa;border:1px solid #d6dfd6;border-radius:2cqw;padding:.5cqw 1.3cqw;font-size:1.05cqw;color:#244d42;z-index:5}.runtime-detail{position:absolute;top:14%;left:3.5%;right:3.5%;bottom:15%;display:grid;grid-template-columns:1.52fr 1fr;border:1px solid #d6dfd6;border-radius:1cqw;overflow:hidden;background:#fffefa;box-shadow:0 .5cqw 2cqw #223d2e09}.runtime-photo{margin:0;min-width:0;background:#fffefa;display:flex;flex-direction:column}.runtime-photo-image{width:100%;height:auto;aspect-ratio:1672/941;object-fit:contain;display:block;background:#eaf0e7}.runtime-photo figcaption{padding:1.8cqw 2.3cqw;flex:1}.runtime-photo h2{font-size:2.6cqw}.runtime-info{min-width:0;overflow:auto;border-left:1px solid #d6dfd6;padding:1.8cqw 2.3cqw;display:flex;flex-direction:column;background:linear-gradient(#eaf0e7,#fffefa 10cqw)}.runtime-info h3{margin:0 0 1cqw;font-size:1.4cqw;font-weight:600}.runtime-info select{width:100%;font:inherit;min-height:2.8cqw;padding:.5cqw .7cqw;background:#fffefa;border:1px solid #d6dfd6;color:#243b32;border-radius:.5cqw;font-size:1.2cqw}.runtime-highlights{display:grid;grid-template-columns:1fr 1fr;gap:1.4cqw;margin:1.8cqw 0}.runtime-highlights dt{font-size:1cqw;color:#596c60}.runtime-highlights dd{margin:0;font-family:'Segoe UI','Malgun Gothic',sans-serif;font-size:2.5cqw;letter-spacing:-.04em;color:#244d42;line-height:1.4}.value-list{display:grid;grid-template-columns:1fr 1fr;gap:1.2cqw;margin:0;padding-top:1.3cqw;border-top:1px solid #d6dfd6;font-size:1.15cqw}.value-list dt{font-size:.95cqw;color:#596c60}.value-list dd{margin:.2cqw 0 0;overflow-wrap:anywhere}.runtime-confirm{margin-top:auto;padding-top:1cqw}.runtime-confirm button{width:100%;margin-top:.6cqw}.game-screen[data-screen=travel-detail] .runtime-info{background:linear-gradient(#eaf2f4,#fffefa 10cqw)}.game-screen[data-screen=lodging] .runtime-info{background:linear-gradient(#f4eee7,#fffefa 10cqw)}.game-screen[data-screen=travel-detail] .runtime-highlights dd{color:#295b70}.game-screen[data-screen=lodging] .runtime-highlights dd{color:#735549}.game-screen .job-cards{bottom:20%;height:auto;top:34%}.jobs-result-note{position:absolute;bottom:14%;left:4%;font-size:1.1cqw;color:#596c60}.job-card:focus-visible{outline:3px solid #326f86;outline-offset:3px}.game-screen .job-copy{display:flex;flex-direction:column;gap:.8cqw}.game-screen .job-copy strong{min-height:3.4cqw}.game-screen .job-detail{font-size:1cqw}.game-screen .job-pay{font-size:1.6cqw}.game-screen .job-image{height:40%;object-fit:cover}.game-screen .jobs-heading{top:15%}.list-panel{position:absolute;inset:15% 12% 16%;padding:2.4cqw 3cqw;border:1px solid #d6dfd6;border-radius:1cqw;background:#fffefa;overflow:auto}.list-panel>h2{font-size:2.5cqw;margin-bottom:1.8cqw}.empty-copy{color:#596c60;font-size:1.35cqw;line-height:1.8;margin:2cqw 0!important}.contact-row{display:flex;align-items:center;gap:1.5cqw;padding:1cqw 0;border-bottom:1px solid #d6dfd6}.contact-face{width:4.5cqw;height:4.5cqw;border-radius:50%;object-fit:cover}.contact-row h3{font-size:1.4cqw;margin:0}.contact-row p{font-size:1cqw;color:#596c60}.contact-row button{margin-left:auto}.game-screen .records-panel{bottom:7%;padding:2cqw 3cqw}.records-panel>h2{font-size:2.1cqw;margin:1cqw 0}.records-content .save-grid{margin-top:1cqw;gap:.5cqw}.records-content .save-slot{min-height:4.2cqw;font-size:.9cqw;display:flex;gap:.7cqw;text-align:left}.records-content .save-slot span:last-child{overflow-wrap:anywhere}.records-content .records-actions{margin-top:1cqw}.records-content .empty-record{min-height:22cqw}.records-tabs{display:flex;gap:2cqw}.records-tab{font-size:1.3cqw}.game-screen .settings-panel{bottom:7%}.portrait-reference{object-fit:contain!important;object-position:center!important;background:#eaf0e7}.game-screen[data-screen=hybrid-choice] .portrait-reference{width:57%}.game-screen .dialogue-panel{min-height:18%;max-height:34%;overflow:auto}.game-screen .dialogue-line{font-size:1.9cqw;min-height:3cqw}.game-screen .dialogue-next{min-width:4cqw;min-height:2.5cqw}.game-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #d6dfd6;border-radius:14px;padding:26px;background:#fffefa;color:#243b32;font:16px/1.7 'Malgun Gothic','Apple SD Gothic Neo',sans-serif;scrollbar-color:#596c60 #eaf0e7}.game-dialog::backdrop{background:#243b3266}.game-dialog h2{margin:0 0 14px;font-size:21px}.game-dialog p{margin:0 0 22px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end}.game-dialog button{min-height:44px;padding:9px 18px;border:1px solid #d6dfd6;background:#fffefa;color:#243b32;border-radius:8px;font:inherit;cursor:pointer}.game-dialog button.primary-action{background:#244d42;color:#fffefa}.game-dialog button:focus-visible{outline:3px solid #326f86;outline-offset:3px}.montage-stage{position:absolute;inset:0}.montage-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.montage-caption{position:absolute;left:3%;bottom:3%;padding:.6cqw 1.5cqw;background:#fffefae8;color:#244d42;border-radius:.5cqw;font-size:1.2cqw}.boot-panel{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5cqw;text-align:center;padding:5cqw}.boot-panel h1{font-family:Georgia,serif;font-size:4cqw;font-weight:400}.boot-panel p{font-size:1.5cqw}.settings-panel .screen-button{margin-top:2cqw}.game-screen button:disabled{opacity:.55}.game-screen :is(select,input):focus-visible{outline:3px solid #326f86;outline-offset:3px}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media(forced-colors:active){.runtime-detail,.runtime-info,.list-panel,.game-dialog,.game-nav-button{background:Canvas;color:CanvasText;border-color:ButtonBorder}.runtime-highlights dd,.screen-footnote,.empty-copy{color:CanvasText}.primary-action{background:Highlight;color:HighlightText}.game-screen button:disabled{color:GrayText}}
.game-viewport{container-type:inline-size}.game-screen{width:min(100cqw,calc(100dvh * 16 / 9))}.screen-top{padding-right:15cqw}.game-screen[data-screen^=hybrid] .screen-top{padding-right:3.5cqw}
body{height:100dvh;min-height:0;overflow:hidden;justify-content:flex-start}.game-viewport{flex:1;min-height:0;container-type:size;display:grid;justify-items:safe center;align-content:safe center}.game-screen{width:min(100cqw,calc(100cqh * 16 / 9));margin:0}#global-status,#global-error{flex:none}
.scene-media-feedback{position:absolute;top:13%;left:3cqw;max-width:47%;z-index:4;padding:.8cqw 1.2cqw;background:var(--other-paper);color:var(--other-ink);border:1px solid var(--other-border);border-radius:.5cqw;font-size:1.1cqw;line-height:1.7}
.scene-media-feedback[hidden],.scene-media-feedback button[hidden]{display:none}
.scene-media-feedback button{display:block;margin-top:.6cqw;min-height:44px}
.game-screen[data-screen^=hybrid] .wardrobe-portrait{width:57%}
.game-screen.scene-composed[data-screen^=hybrid] .composed-scene{width:100%;height:100%;object-fit:cover;object-position:center}
.game-screen.scene-composed[data-screen^=hybrid] .screen-top{width:100%;padding-right:18cqw;background:linear-gradient(var(--other-paper),transparent);z-index:1;pointer-events:none}
.game-screen.scene-composed .dialogue-panel{left:3cqw;right:3cqw;bottom:2.8cqw;min-height:18%;padding:1.4cqw 2.2cqw 1.8cqw}
.game-screen.scene-composed .speaker-name{font-size:1.35cqw;margin-bottom:.55cqw!important}
.game-screen.scene-composed .dialogue-line{font-size:1.75cqw;line-height:1.75;max-width:91%}
.game-screen.scene-composed .dialogue-next{min-height:44px;min-width:44px}
.game-screen.scene-composed .choice-panel{width:43%;padding-top:8cqw}
.game-screen.scene-composed.scene-directed[data-screen^=hybrid] .composed-scene{width:var(--scene-width);height:var(--scene-height);left:var(--scene-left);top:var(--scene-top);right:auto;bottom:auto;object-fit:cover}
.place-panel .place-current{font-size:1.1cqw;color:var(--other-muted);margin-bottom:1.5cqw}
.place-group{margin-top:1.6cqw}.place-group h3{font-size:1.3cqw;margin:0 0 .5cqw;color:var(--other-primary)}
.place-row{display:flex;align-items:center;justify-content:space-between;gap:1.2cqw;width:100%;min-height:44px;text-align:left;padding:.9cqw 1.2cqw;border:1px solid var(--other-border);background:var(--other-paper);color:var(--other-ink);font:inherit;border-radius:.5cqw;margin-bottom:.5cqw}
.place-row strong{font-size:1.25cqw;overflow-wrap:anywhere}.place-row span{font-size:1.05cqw;color:var(--other-muted);text-align:right}.place-row[aria-current=location]{border-color:var(--other-primary);background:var(--other-tint)}
.place-row:hover{border-color:var(--other-primary)}.place-row:focus-visible{outline:3px solid var(--other-focus);outline-offset:2px}
.place-panel .value-list{font-size:1.6cqw;margin-bottom:1.6cqw}.place-panel .value-list dt{font-size:1.1cqw}.place-panel .inline-actions{margin-top:1.5cqw}.place-panel .screen-button{min-height:44px}
.place-reason{font-size:1.15cqw;line-height:1.7;color:var(--other-muted)}.contact-unavailable{font-size:1cqw;color:var(--other-muted)}
.inline-actions{display:flex;gap:1cqw;flex-wrap:wrap;margin-top:1.5cqw}.appointment-offer{padding:1.5cqw;background:#eaf0e7;border:1px solid #d6dfd6;border-radius:.6cqw;margin-bottom:1.5cqw}.appointment-offer h3{font-size:1.5cqw;margin:0 0 1cqw}.appointment-summary{max-width:14cqw;font-size:1cqw}.return-form{display:grid;grid-template-columns:13cqw 1fr;gap:1.1cqw 1.5cqw;align-items:center;font-size:1.3cqw}.return-form :is(input,select){font:inherit;width:100%;box-sizing:border-box;min-height:3cqw;padding:.6cqw 1cqw;border:1px solid #d6dfd6;background:#fffefa;color:#243b32;border-radius:.5cqw}.return-form :is(p,button){grid-column:1/-1}.return-fare{color:#244d42}.return-panel .value-list{font-size:1.4cqw}.return-panel .value-list dt{font-size:1cqw}.return-panel .value-list{margin-bottom:2cqw}
#credits{flex:none;padding:4px 12px 7px;font-size:11px;line-height:1.6;color:#596c60;text-align:center}#credits a{color:#244d42}#credits a:focus-visible{outline:2px solid #326f86;outline-offset:3px}

/* test build badge (/?test=max) */
html[data-test="max"] body::after{content:'TEST · MAX';position:fixed;right:10px;top:10px;z-index:9999;padding:3px 10px;border-radius:999px;background:#e4572e;color:#fff;font:800 12px/1.4 'Malgun Gothic',sans-serif;letter-spacing:.05em;pointer-events:none;box-shadow:0 2px 6px rgba(0,0,0,.2)}
/* test build restart button (fresh test game, before any first meeting) */
.test-restart{position:fixed;right:112px;top:9px;z-index:9999;padding:3px 10px;border:0;border-radius:999px;background:#fff;color:#e4572e;box-shadow:inset 0 0 0 2px #e4572e,0 2px 6px rgba(0,0,0,.15);font:800 12px/1.4 'Malgun Gothic',sans-serif;cursor:pointer}
.test-restart:focus-visible{outline:2px solid #326f86;outline-offset:2px}

/* bottom menu as icon buttons (user 2026-11-06) */
.game-actions .game-nav-button{display:inline-flex;align-items:center;gap:.5cqw;min-height:3.1cqw;padding:.35cqw 1.05cqw .35cqw .4cqw;border:0;border-radius:2cqw;background:rgba(255,254,250,.96);color:#4a3c42;font:700 .98cqw 'Malgun Gothic',sans-serif;box-shadow:0 .25cqw 0 #ecdde3,0 .4cqw 1cqw rgba(160,90,120,.12);cursor:pointer;transition:transform .12s,box-shadow .12s}
.game-actions .game-nav-button:hover{transform:translateY(-.15cqw);box-shadow:0 .4cqw 0 #ecdde3,0 .6cqw 1.2cqw rgba(160,90,120,.16)}
.game-actions .game-nav-button:active{transform:translateY(.1cqw);box-shadow:0 .1cqw 0 #ecdde3}
.nav-ico{display:grid;place-items:center;width:2.3cqw;height:2.3cqw;border-radius:50%;background:color-mix(in srgb,var(--ico) 16%,#fff);color:var(--ico);flex:none}
.nav-ico-svg{width:1.35cqw;height:1.35cqw}
.game-actions .game-nav-button.current{background:#ff6f9f;color:#fff;box-shadow:0 .25cqw 0 #e45a8a,0 .4cqw 1cqw rgba(228,90,138,.25)}
.game-actions .game-nav-button.current .nav-ico{background:#fff;color:#ff6f9f}
.game-actions .game-nav-button:focus-visible{outline:.2cqw solid #326f86;outline-offset:.15cqw}
@media (prefers-reduced-motion:reduce){.game-actions .game-nav-button{transition:none}}
@media (forced-colors:active){.game-actions .game-nav-button{border:1px solid ButtonBorder}.nav-ico{background:Canvas;color:CanvasText}}

/* top clock → pass time (user 2026-11-07, cute & clean) */
.top-time.is-button{cursor:pointer;border:0;font:inherit;transition:transform .15s,box-shadow .15s}.top-time.is-button:hover{transform:translateY(-1px);box-shadow:0 3px 10px rgba(255,111,159,.25)}.top-time.is-button:disabled{cursor:default;opacity:.7;transform:none;box-shadow:none}
.time-pop{position:absolute;z-index:6000;translate:-50% 0;width:236px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:9px;padding:14px 16px 12px;border-radius:20px;background:linear-gradient(180deg,#fff 0,#fff8fb 100%);border:1px solid #f6d9e4;box-shadow:0 12px 30px rgba(150,80,110,.18);font-family:'Malgun Gothic',sans-serif;color:#4a3a42;animation:tp-in .22s ease-out}
.time-pop::before{content:'';position:absolute;top:-7px;left:50%;width:12px;height:12px;translate:-50% 0;rotate:45deg;background:#fff;border-left:1px solid #f6d9e4;border-top:1px solid #f6d9e4}
@keyframes tp-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.tp-title{margin:0;font-size:12px;font-weight:700;letter-spacing:.08em;color:#c98aa5}
.tp-route{display:flex;align-items:center;gap:6px}.tp-arrow{color:#e4a7bf;font-size:18px;line-height:1}
.tp-pill{padding:4px 10px;border-radius:999px;background:#f5f1f8;color:#6b5a74;font-size:13px;font-weight:700}.tp-pill.is-to{background:#ffe4ee;color:#d24c82}
.tp-day{margin-top:-4px;font-size:11px;color:#a8949e}
.tp-sky{position:relative;width:100%;height:12px;border-radius:999px;background:linear-gradient(90deg,#2f3a6b 0%,#5a5f9e 18%,#ffb38a 25%,#ffd88a 30%,#bfe3ff 38%,#9fd2ff 60%,#ffc28a 72%,#ff8fa8 78%,#6b5aa0 86%,#2f3a6b 100%);box-shadow:inset 0 1px 2px rgba(0,0,0,.15);margin:4px 0 12px}
.tp-span{position:absolute;top:0;height:100%;border-radius:999px;background:rgba(255,255,255,.45);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)}
.tp-dot{position:absolute;top:50%;width:10px;height:10px;translate:-50% -50%;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.25)}.tp-dot.is-now{background:#8a7a92}.tp-dot.is-to{background:#ff6f9f;width:12px;height:12px}
.tp-tick{position:absolute;top:15px;translate:-50% 0;font-size:9px;color:#b8a7b0}
.tp-row{display:flex;align-items:center;gap:14px}
.tp-step{width:34px;height:34px;border:0;border-radius:50%;background:#fff0f5;color:#e0578d;font:800 18px/1 'Malgun Gothic',sans-serif;cursor:pointer;box-shadow:0 2px 0 #f7cddc;transition:transform .1s}.tp-step:hover{transform:translateY(-1px)}.tp-step:active{transform:translateY(1px);box-shadow:none}.tp-step:disabled{opacity:.35;cursor:default;transform:none}
.tp-val{display:flex;align-items:baseline;gap:3px;min-width:56px;justify-content:center}.tp-n{font-size:26px;line-height:1;color:#4a3a42}.tp-val small{font-size:12px;color:#9a8790;font-weight:700}
.tp-go{width:100%;padding:9px 0;border:0;border-radius:14px;background:linear-gradient(180deg,#ff8db3,#ff6f9f);color:#fff;font:800 13px 'Malgun Gothic',sans-serif;cursor:pointer;box-shadow:0 3px 0 #e45a8a;transition:transform .1s}.tp-go:hover{transform:translateY(-1px)}.tp-go:active{transform:translateY(2px);box-shadow:0 1px 0 #e45a8a}
.tp-note{margin:0;font-size:10.5px;color:#b09da6}

/* regular build: back to the opening (2026-11-14) */
.game-restart{right:14px;color:#d4467c;box-shadow:inset 0 0 0 2px #d4467c,0 2px 6px rgba(0,0,0,.15)}
