:root{color-scheme:light;--ink:#243b42;--teal:#225c59;--edge:#d4d8cf;--cream:#fcfaf4}*{box-sizing:border-box}body{margin:0;color:var(--ink);background-color:var(--cream);background-image:radial-gradient(#cfccc2 .8px,transparent .8px);background-size:16px 16px;font:17px/1.65 system-ui,-apple-system,'Hiragino Sans',sans-serif}#shell{max-width:660px;margin:auto;min-height:100vh;padding:0 clamp(16px,5vw,38px) max(24px,env(safe-area-inset-bottom))}header{padding:20px 0;display:flex;align-items:center;gap:10px;border-bottom:2px solid #254549;letter-spacing:.045em;font-size:19px}.logo{background:#285d58;color:white;border-radius:8px 11px 8px 3px;padding:0 7px;line-height:1.55}.hero{margin:36px 0 26px;font:750 clamp(33px,7vw,47px)/1.45 system-ui;letter-spacing:-.035em}.hero span{position:relative;isolation:isolate;white-space:nowrap}.hero span:after{content:'';position:absolute;z-index:-1;bottom:3px;left:-2px;right:-4px;height:10px;background:#f7c4af;transform:rotate(-2deg)}button{font:inherit;font-weight:680;min-height:48px;padding:10px 16px;background:white;color:var(--ink);border:1px solid #a8b6ad;border-radius:13px;cursor:pointer;touch-action:manipulation}button:focus-visible,summary:focus-visible{outline:3px solid #216865;outline-offset:3px}.tile{width:100%;display:flex;align-items:center;gap:16px;text-align:left;border:1.5px solid #becfc4;border-radius:16px;margin-bottom:15px;min-height:96px;box-shadow:0 3px 0 #36463b15;padding:16px 20px;font-size:clamp(18px,4.7vw,23px)}.tile:after{content:'›';margin-left:auto;color:#486459}.mint{background:#e0efe6}.peach{background:#f9e1d4}.lilac{background:#e9e4f3}.art{flex:none;display:grid;place-items:center;height:48px;width:48px;border-radius:10px;transform:rotate(-7deg);border:2px solid currentColor;background:#fff9ed;color:#355d55;box-shadow:3px 3px #9fbaab;font-size:31px;font-weight:800}.peach .art{color:#90543c;box-shadow:3px 3px #d6ac98;border-radius:13px 13px 13px 2px}.lilac .art{position:relative;color:#655579;box-shadow:3px 3px #bab1cb;border-radius:7px;height:33px;font-size:20px}.lilac .art:before{content:'';position:absolute;top:-10px;width:17px;height:8px;border:2px solid;border-radius:4px 4px 0 0}.crumb{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:16px 0;font-size:15px}.crumb button,.quiet{background:transparent;border-color:transparent;text-decoration:underline;text-underline-offset:4px}.sheet{background:#fffefa;border:1px solid var(--edge);border-radius:18px;padding:clamp(18px,5vw,30px);box-shadow:0 3px 0 #29493e0a;margin-bottom:14px;overflow-wrap:anywhere}.sheet h1{font-size:24px;line-height:1.5;margin:0 0 14px}.flag{display:inline-block;padding:2px 10px;border-radius:6px;font-size:14px;font-weight:700;color:#315954}.study{text-align:center}.big{font:650 clamp(78px,21vw,112px)/1.25 system-ui;margin:15px 0 0}.ko{font:650 clamp(26px,6vw,38px)/1.45 system-ui;word-break:keep-all;overflow-wrap:anywhere}.kana,small{color:#526464}.kana{font-size:16px}.callout{background:#f5f4ec;padding:12px;border-radius:10px;text-align:left}.primary{background:var(--teal);color:white;border-color:var(--teal)}.actions,.options{display:grid;gap:9px;margin-top:14px}.row{display:flex;flex-wrap:wrap;gap:8px}.choice{text-align:left;border:1px solid #a9bbb3}.choice b{font-size:24px;display:block}.choice small{display:block;font-weight:500}.audio{margin:12px 0;border-radius:30px}.result{background:#e4f0e7;border-radius:12px;padding:16px;margin-top:15px}.result p,.sheet p{margin:8px 0}.result .ko{margin:12px 0 2px}.reset{margin:17px 0}summary{cursor:pointer;padding:10px 0}.footerActions{margin-top:16px}.small{font-size:14px}.warn{background:#ffebc7;padding:10px;border-radius:8px}button:disabled{opacity:.65;cursor:default}main:focus{outline:0}@media(max-width:350px){.tile{padding:13px;gap:10px}.art{width:40px}.hero{font-size:30px}}@media(min-width:800px){#shell{padding-top:22px}.tile{min-height:102px}}

#phrasePicker{display:block;width:100%;max-width:100%;min-height:48px;padding:8px;font:inherit;background:white;color:var(--ink);border:1px solid var(--edge);border-radius:10px;margin:4px 0 14px}summary{min-height:48px}
:root{--ink:#172e48;--teal:#194e71;--cream:#fff8e7;--edge:#dac9a8}
body{background-color:#f7efdb;background-image:repeating-linear-gradient(0deg,transparent 0 3px,#94734c04 3px 4px),radial-gradient(ellipse at 15% 10%,#fffaf0 0,transparent 47%),radial-gradient(ellipse at 100% 55%,#ebd7ae70,transparent 55%);color:var(--ink)}
#shell{background:#fff9eab3;border-inline:1px solid #c7ae7e60}
header{border-color:#19334b;border-width:2px;font-family:ui-serif,'Hiragino Mincho ProN',serif;font-weight:800;min-height:58px;padding:12px 0}
.logo{background:#9b381f;border-radius:5px;line-height:1.5}
.travel-cover{margin:16px 0;border:1px solid #bea16b;border-radius:10px;overflow:hidden;background:#fff8e8;box-shadow:0 2px 0 #b69a6440}
.cover-heading{padding:14px 16px 12px;text-align:center;background:linear-gradient(110deg,#fbe7c5,#fff8e8 32% 70%,#f5dfbb);border-bottom:1px solid #c6ab77}
.cover-heading h1{margin:0;font:900 clamp(24px,6.4vw,37px)/1.3 ui-serif,'Hiragino Mincho ProN',serif;letter-spacing:.02em}
.cover-heading p{margin:3px 0 0;font-size:14px;font-weight:700;color:#74462a}
.travel-cover img{display:block;width:100%;height:auto}
.travel-route{position:relative;padding-left:20px}
.travel-route:before{content:'';position:absolute;top:18px;bottom:18px;left:5px;width:2px;background:#b28a5f}
.tile{--accent:#904122;position:relative;min-height:62px;padding:10px 14px;gap:12px;border:1px solid #c7a189;border-left:6px solid var(--accent);border-radius:7px 12px 12px 7px;box-shadow:0 2px 0 #9277491a;font-size:clamp(17px,4.6vw,22px);line-height:1.4;margin-bottom:11px}
.travel-route .tile:before{content:'';position:absolute;left:-25px;width:9px;height:9px;border-radius:100%;background:var(--accent);border:2px solid #fff8e7;box-shadow:0 0 0 1px var(--accent)}
.tile.mint,.flag.mint{--accent:#a13b19;background:#fff1dc;color:#7c3018}
.tile.peach,.flag.peach{--accent:#155281;background:#e6f1f4;color:#19466a}
.tile.lilac,.flag.lilac{--accent:#286348;background:#eef3df;color:#214f3b}
.tile .art{font-size:22px;width:34px;height:34px;box-shadow:none;color:#fff;border:0;transform:none;background:var(--accent);border-radius:7px}
.tile .art:before{display:none}.tile:after{color:var(--accent)}
.sheet{border-color:#d3be95;border-radius:10px;background:#fffdf6;border-top:4px solid #b5844e}
.sheet h1{color:#1b334d}.callout{background:#f5edda}.result{background:#edf2e2}.hero{font-family:ui-serif,'Hiragino Mincho ProN',serif}
@media(min-width:700px){#shell{padding-top:4px}.travel-cover img{max-height:300px;object-fit:contain;background:#fcf1d9}}
