/* 動的迷路 v0.3.4 | 2026-10-22 */
:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,'Noto Sans JP',sans-serif;background:#f4f9f8;color:#152f3b}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:linear-gradient(90deg,#e2eeea70 1px,transparent 1px),linear-gradient(#e2eeea70 1px,transparent 1px),#f4f9f8;background-size:32px 32px}button,summary,select{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer;border:1px solid #c4d8d5;border-radius:9px;background:#fff;padding:12px 14px;font-weight:600;box-shadow:0 2px 0 #d4e4e15c}button:active{transform:translateY(1px)}button:focus-visible,summary:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid #009b82;outline-offset:3px}h1:focus,h2:focus{outline:none}.app{max-width:480px;margin:auto;padding:max(22px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom))}.eyebrow{font-size:9px;font-weight:700;letter-spacing:2.5px;color:#00836f}.heading{display:flex;align-items:center;justify-content:space-between;gap:10px}h1{font-size:32px;letter-spacing:3px;margin:9px 0 0;font-weight:800}h1 span{display:block;font-size:11px;letter-spacing:6px;color:#5c8186;margin-top:6px}.version{font-size:10px;color:#66838d;white-space:nowrap}header p{font-size:12px;color:#4f6d78;margin:15px 0 20px}.route-art{display:block;width:100%;height:auto;margin:0 0 12px;filter:drop-shadow(0 8px 14px #58847b0e)}.intro{font-size:12px;line-height:1.7;color:#4d6b77;margin:12px 0 22px}.section-label{font-size:9px;letter-spacing:2px;color:#00836f;font-weight:700;margin:0 0 9px}nav{display:grid;grid-template-columns:1fr 1fr;gap:9px}nav button{text-align:left;padding:14px 12px;font-size:14px}nav span{display:block;font-size:10px;color:#607f89;margin-top:6px;font-weight:400}nav .selected{border-color:#009c83;background:#e5f8f1;box-shadow:inset 3px 0 #009c83;color:#006b5b}.stage-picker{display:flex;align-items:center;gap:12px;margin-top:14px;font-size:12px;color:#486974}.stage-picker span{flex-shrink:0}.stage-picker select{flex:1;min-width:0;font:inherit;font-size:16px;background:#fff;color:#173d48;border:1px solid #acc9c3;border-radius:8px;padding:12px 8px}.mode-hint{font-size:11px;line-height:1.7;color:#52747d;min-height:38px;margin:12px 0 10px}.start-button{width:100%;display:flex;align-items:center;justify-content:space-between;background:#087e70;color:#fff;border-color:#087e70;padding:16px 18px;box-shadow:0 5px 14px #087e701c;font-size:14px}.start-button span{font-size:21px;font-weight:400}.start-note{font-size:10px;color:#67818a;text-align:center;line-height:1.8;margin:10px 0 0}.game-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.game-top button{font-size:11px;padding:9px 12px}.game-top h2{font-size:15px;letter-spacing:2px;margin:0;text-align:center}.game-top h2 span{display:block;letter-spacing:1.5px;font-size:9px;color:#68858b;font-weight:400;margin-top:3px}.dashboard{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#526e7c;margin:0 2px 9px}.dashboard strong{font-size:13px;color:#1a454d}#clock{font-variant-numeric:tabular-nums;min-width:54px;text-align:right}.level-info{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#557680;margin:0 3px 8px;min-height:16px}#assist{background:#dbf4e8;color:#087349;border:1px solid #a8d8bf;padding:2px 7px;font-size:9px;border-radius:4px}.arena{position:relative;aspect-ratio:1;background:#0d1726;border:1px solid #345765;border-radius:14px;overflow:hidden;box-shadow:0 10px 28px #16394b20}canvas{width:100%;height:100%;display:block;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#banner{position:absolute;inset:40% 0 auto;padding:14px 2px;text-align:center;font-size:clamp(17px,5.5vw,25px);font-weight:800;letter-spacing:3px;pointer-events:none;color:#8affd4;text-shadow:0 3px 15px #000;background:#081322b0}#message{min-height:42px;font-size:12px;line-height:1.7;color:#3e626e;margin:14px 3px 10px}.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.actions button{font-size:12px;white-space:nowrap}#next{background:#087e70;color:#fff;border-color:#087e70}#replay{color:#176a80;border-color:#a5c4cd}.route-result{margin-top:18px;border:1px solid #bfd5d0;background:#ffffffdd;border-radius:12px;padding:14px;text-align:center}.route-result h2{font-size:13px;margin:0 0 12px;color:#285965}.route-result canvas,.route-result img{display:block;width:min(100%,260px);height:auto;margin:0 auto;border-radius:7px}.route-result p{font-size:10px;color:#547880;line-height:1.7}.save-route{display:inline-block;padding:9px 14px;border:1px solid #aacbc3;border-radius:7px;color:#006b5b;font-size:12px;text-decoration:none}details{margin-top:22px;padding:12px 14px;border:1px solid #cfdfdb;border-radius:9px;background:#ffffffb5;font-size:11px;color:#4d717c}summary{cursor:pointer;color:#335d68;font-weight:600}details p{line-height:1.9}footer{text-align:center;font-size:8px;letter-spacing:3px;color:#71908e;margin:24px 0 0}dialog{background:#f9fffd;color:#183d48;border:1px solid #a2c8be;border-radius:12px;width:min(90vw,420px)}dialog::backdrop{background:#102c3b88}dialog h2{font-size:16px}textarea{width:100%;height:150px;font:inherit;font-size:16px;border:1px solid #aacbc3;border-radius:8px;padding:10px;background:#fff;color:#204853}dialog p{font-size:12px}@media(max-height:740px){.app{padding-top:max(12px,env(safe-area-inset-top))}.game-top{margin-bottom:12px}h1{font-size:28px}header p{margin-bottom:15px}.intro{margin-bottom:16px}}@media(prefers-reduced-motion:no-preference){#homeScreen,#gameScreen{animation:enter .18s ease-out}@keyframes enter{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}}

/* v0.3.4: persistent challenge clear records */
.stage-status{font-size:10px;letter-spacing:.8px;color:#607d87;margin:9px 0 0}.stage-status.is-clear{color:#00765d}.progress-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 2px 0;padding-top:14px;border-top:1px solid #cedfdb;font-size:9px;color:#567b81;letter-spacing:1.5px}.progress-strip strong{font-size:11px;letter-spacing:.5px;color:#087e70}.progress-note{font-size:10px;color:#66878e;line-height:1.7;margin:7px 2px 0}

/* v0.3.4: compact language selector, Japanese reference copy */
.language-row{display:flex;justify-content:flex-end;margin-bottom:13px}.language-switch{display:inline-flex;gap:2px;background:#e8f0ed;border:1px solid #c3d8d0;border-radius:8px;padding:3px}.language-switch button{padding:6px 11px;min-height:32px;border:0;background:transparent;box-shadow:none;font-size:11px;color:#4d7478;border-radius:5px}.language-switch button[aria-pressed="true"]{background:#fff;color:#006d5b;box-shadow:0 1px 4px #315a4620}html[lang="en"] h1{font-size:29px;letter-spacing:2px}html[lang="en"] nav span{line-height:1.5}html[lang="en"] .dashboard strong{font-size:11px}html[lang="en"] .game-top h2{font-size:14px}html[lang="en"] .stage-picker{gap:8px}html[lang="en"] .stage-picker select{font-size:16px}html[lang="en"] #message{min-height:58px}

/* 動的迷路 v0.3.4 | 2026-10-22 | ホーム用イラスト・タイトル */
#homeScreen header{text-align:center}
#homeScreen .eyebrow{font-size:8px;letter-spacing:1.8px}
#homeScreen .heading{display:block;position:relative}
#homeScreen .heading .version{position:absolute;right:0;top:-15px;font-size:9px}
#homeTitle{font-size:40px;letter-spacing:.02em;line-height:1.2;margin:14px 0 0;font-weight:800;text-align:center}
#homeTitle span{font-size:17px;letter-spacing:.02em;font-weight:700;margin-top:7px;color:#3a676d}
html[lang="en"] #homeTitle{font-size:36px;letter-spacing:-.025em}
html[lang="en"] #homeTitle span{font-size:12px;letter-spacing:.025em;font-weight:500}
#homeScreen header>p{margin:13px 0 16px}
.game-top h2,html[lang="en"] .game-top h2{letter-spacing:.02em}
.game-top h2 span{letter-spacing:.03em}
.home-illustration{margin:0 -3px 6px;overflow:hidden;border-radius:14px}
.home-illustration img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
#homeScreen .intro{text-align:center;margin:8px 0 23px;font-size:11px}
@media(max-width:350px){#homeTitle{font-size:36px}html[lang="en"] #homeTitle{font-size:32px}}
