/* Town only. Home, task, payment and full-size character proportions stay intact. */
.town-living-heading{margin:3px 0 22px}.town-eyebrow{font-size:10px;letter-spacing:.12em;color:#87937c}.town-living-heading h1{font-size:25px;line-height:1.35;margin:8px 0}.town-living-heading p{font-size:12px;color:#7b8973;line-height:1.8;margin:0}
.town-living .town-map-scroll{width:100%;margin-inline:auto;height:auto;overflow:hidden;border:1px solid #cbd5bd;border-radius:20px;background:#7b9270;box-shadow:0 10px 28px #304d3912;touch-action:pan-y;container-type:inline-size}
.town-living .town-map-world{--town-sprite:clamp(28px,8cqi,38px);position:relative;min-width:0;width:100%;height:auto;aspect-ratio:1122/1402;isolation:isolate}
.town-living .town-landscape{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:contain;pointer-events:none;user-select:none}
.town-building{position:absolute;z-index:2;background:transparent;border:0;border-radius:10px;padding:0;cursor:pointer;min-width:44px;min-height:44px}
.town-building:hover{box-shadow:inset 0 0 0 2px #ffedac80;background:#ffeba71a}.town-building:focus-visible,.town-living button:focus-visible{outline:3px solid #fff2b4;outline-offset:2px}
.town-living .town-npc{position:absolute;width:44px;height:44px;min-height:44px;transform:translate(-50%,-100%);border:0;padding:0;background:transparent;z-index:5;cursor:pointer;filter:drop-shadow(0 2px 1px #243a3d33)}
.town-living .town-npc .npc-sprite{position:absolute;left:calc((44px - var(--town-sprite))/2);top:auto;bottom:-1px;width:var(--town-sprite);height:var(--town-sprite);aspect-ratio:1;image-rendering:pixelated}
.town-living .npc-map-label{position:absolute;top:100%;bottom:auto;left:50%;transform:translateX(-50%);min-width:36px;padding:2px 6px;border:1px solid #d8d0b2;border-radius:5px;background:#fff9e9;color:#304b38;box-shadow:0 2px 3px #293b4326;font-size:11px;line-height:1.5;font-weight:600;white-space:nowrap}
.town-living .town-player{position:absolute;width:var(--town-sprite);height:var(--town-sprite);transform:translate(-50%,-94%);pointer-events:none;z-index:6;animation:none}
.town-living .town-player-body{width:100%;height:100%}.town-living .town-player .map-pixel-character{width:var(--town-sprite)!important;height:var(--town-sprite)!important;aspect-ratio:1}.town-living .town-player-shadow{width:65%;left:17.5%;bottom:0;height:5px}.town-living .town-you-dot{left:calc(50% - 2.5px);top:-4px;width:5px;height:5px;box-shadow:0 0 0 2px #fff6c9}
.town-living .restored-workshop-label{left:5%;bottom:-24px;min-width:36px;padding:2px 6px;border:1px solid #d8d0b2;border-radius:5px;background:#fff9e9;color:#304b38;box-shadow:0 2px 3px #293b4326;font:600 11px/1.5 system-ui}
.town-living .town-bookshop{left:21%;top:73%;width:44px;height:44px}
.town-living .town-memory-flowers{left:35%;top:58%;gap:4px;transform:scale(.7);transform-origin:bottom left}
.town-living .town-craft-flag{left:89%;top:49%;transform:scale(.7);transform-origin:bottom left}
.town-living .town-keepsake{position:absolute;z-index:4;width:44px;height:44px;transform:translate(-50%,-50%);display:grid;place-items:center;padding:6px;border:0;border-radius:50%;background:radial-gradient(#ffe8a582,transparent 70%);cursor:pointer}
.town-keepsake .keepsake-art{width:25px;height:27px;filter:drop-shadow(0 2px 1px #473a37aa)}
.town-map-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 2px 25px;color:#839179;font-size:10px}.town-map-caption>span:first-child{display:flex;gap:5px;align-items:center}
.town-latest{display:flex;align-items:center;gap:16px;padding:18px 0;border-block:1px solid #e3e8db}.town-latest-art{display:grid;place-items:center;flex:0 0 64px;height:76px;background:#eef1e5;border-radius:14px}.town-latest-art .keepsake-art{width:41px;height:44px}.town-latest>div{min-width:0}.town-latest small{font-size:10px;color:#819078}.town-latest h2{font-size:15px;font-weight:600;margin:6px 0}.town-latest p{font-size:12px;color:#75806d;line-height:1.6;margin:0;overflow-wrap:anywhere}.town-latest .quiet-link{min-height:44px;font-size:12px;display:flex;align-items:center;gap:8px}
dialog.town-sheet{width:min(100%,480px);max-width:480px;max-height:86svh;position:fixed;inset:auto 0 0;margin:0 auto;border:1px solid #dce3d2;border-bottom:0;border-radius:25px 25px 0 0;background:#fbfcf6;color:#29483d;padding:0;box-shadow:0 -12px 65px #1c342c26;overflow:auto;overscroll-behavior:contain}
dialog.town-sheet::backdrop{background:#1f382b52;backdrop-filter:blur(1px)}
.town-sheet .modal-inner{padding:0 24px calc(22px + env(safe-area-inset-bottom));max-height:none;overflow:visible}
.town-sheet .modal-head{position:sticky;top:0;z-index:10;background:#fbfcf6f5;backdrop-filter:blur(8px);margin:0 -24px 12px;padding:14px 18px 8px 24px;border-bottom:1px solid #e6eadf}.town-sheet .modal-head h2{font-size:17px}.town-sheet .modal-head:before{content:'';position:absolute;top:5px;width:28px;height:3px;border-radius:4px;background:#cbd5c1;left:calc(50% - 14px)}
.town-scene-content{overflow-wrap:anywhere}.town-greeting{display:flex;gap:13px;align-items:center;padding:8px 0 22px}.town-greeting .npc-portrait{width:62px;height:78px;flex:0 0 62px}.town-greeting .npc-sprite{width:62px;height:78px}.town-greeting>div{flex:1;min-width:0}.town-greeting small{font-size:11px;color:#8a947d}.town-greeting p{font-size:13px;line-height:1.85;margin:6px 0 0;color:#48604c}.town-scene-content h3{font-size:16px;font-weight:600;line-height:1.7;margin:12px 0}.town-scene-content .m-field{margin-bottom:16px}.town-scene-content .m-input{background:#fff;font-size:16px}.town-scene-content textarea.m-input{min-height:94px;line-height:1.7}.town-scene-content .btn.block{margin-top:12px}.town-scene-content .quiet-link.block{min-height:44px;margin:12px auto;display:flex;align-items:center;justify-content:center;gap:8px}
.town-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:15px 0 8px}.town-section-title h3{margin:0}.town-section-title>span{font-size:11px;color:#7a866f;white-space:nowrap}.town-practice{margin-top:28px;padding-top:9px;border-top:1px solid #dfe5d7}.town-practice>.m-caption{line-height:1.85;margin-bottom:18px}.town-footnote{font-size:10px;color:#87917d;line-height:1.9;margin:22px 0 0}.town-scene-actions{display:flex;gap:10px;margin-top:18px}.town-scene-actions .btn{flex:1}
.keepsake-art{display:block;width:44px;height:47px;flex-shrink:0;image-rendering:pixelated}.keepsake-shelf{display:flex;align-items:flex-end;justify-content:center;gap:25px;min-height:130px;margin:8px 0 24px;padding:18px 10px 12px;background:linear-gradient(0deg,#a68f6838 0 10px,#d7c6a754 10px 14px,#f0eddf 14px 100%);border-radius:16px;border:1px solid #e3decc}.keepsake-shelf>button,.keepsake-shelf>span{display:flex;flex-direction:column;gap:9px;align-items:center;min-width:64px;background:none;border:0;padding:4px;cursor:pointer}.keepsake-shelf .keepsake-art{width:49px;height:53px;filter:drop-shadow(2px 4px 1px #87745625)}.keepsake-shelf small{font-size:10px;color:#7e785f}
.town-memory-row{display:flex;gap:14px;align-items:center;width:100%;text-align:left;padding:17px 0;border:0;border-bottom:1px solid #e6eade;background:transparent;cursor:pointer}.town-memory-row .keepsake-art{width:34px;height:36px}.town-memory-row>span{flex:1;min-width:0}.town-memory-row strong{display:block;font-size:13px;font-weight:500;line-height:1.7}.town-memory-row small{display:block;font-size:10px;color:#849179;margin-top:5px}.town-empty{text-align:center;padding:15px 10px}.town-empty p{font-size:13px;line-height:1.9;color:#819078;margin-bottom:18px}
.town-memory-hero{text-align:center;margin:16px 0 28px}.town-memory-hero>.keepsake-art{width:75px;height:80px;margin:0 auto 18px;filter:drop-shadow(2px 6px 0 #bcab8026)}.town-memory-hero small{font-size:11px;color:#879079}.town-memory-hero h3{font-size:19px;margin:8px 0}.town-memory-hero p{font-size:12px;color:#78866c;line-height:1.8}
.town-choices{display:flex;gap:8px;border:0;margin:18px 0;padding:0}.town-choices legend{font-size:12px;font-weight:500;margin-bottom:11px}.town-choices label{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:90px;padding:10px 5px;border:1px solid #dce2d0;border-radius:12px;background:#fff;cursor:pointer}.town-choices input{position:absolute;opacity:0;width:1px;height:1px}.town-choices label:has(:checked){border:2px solid #5b8166;background:#eef4e6;padding:9px 4px}.town-choices label:has(:focus-visible){outline:3px solid #bd9a49;outline-offset:2px}.town-choices span{font-size:11px}.town-choices .keepsake-art{width:32px;height:34px}.town-spots label{min-height:46px}.town-advice details{border-bottom:1px solid #e0e7d7;padding:6px 0 12px}.town-advice summary{min-height:48px;cursor:pointer;display:list-item;list-style:disclosure-closed inside;font-size:14px;padding:14px 0}.town-advice details[open] summary{list-style-type:disclosure-open}.town-advice p{font-size:13px;line-height:1.9;color:#718467;margin:4px 0 12px}
@media(min-width:900px){dialog.town-sheet{inset:50% auto auto 50%;margin:0;transform:translate(-50%,-50%);border-radius:24px;border-bottom:1px solid #dce3d2;max-height:85svh}}
@media(min-width:700px){.town-living .town-map-scroll{width:min(100%,max(300px,calc((100svh - 325px) * .8002853)))}}
@media(max-width:359px){.town-living-heading h1{font-size:23px}.town-map-caption{font-size:9px}.town-sheet .modal-inner{padding-inline:18px}.town-sheet .modal-head{margin-inline:-18px;padding-left:18px}.town-latest{gap:12px}.town-latest-art{flex-basis:50px}.town-latest h2{font-size:14px}.keepsake-shelf{gap:15px}}
@media(prefers-reduced-motion:reduce){.town-living *{animation:none!important;transition:none!important}}
