#placement-ui{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;color:#6e5327;opacity:.999}#placement-ui *{pointer-events:none!important}.placing #ui-layer>header,.placing #ui-layer>aside,.placing #ui-layer>footer{display:none}.placing #notice{top:98px}.placement-top{height:48px;background:#38564bf5;border-bottom:3px solid #b28c4e;color:#ffedb8;display:flex;align-items:center;gap:8px;padding:8px;font-size:16px}.placement-top small{font-size:10px}#placement-ui button{position:absolute;margin:0;padding:3px;border:2px solid #b28c4e;border-radius:9px;background:linear-gradient(#b57a36,#96601f);box-shadow:0 3px #6e4513;font-size:13px;min-height:0}#placement-ui button:disabled{opacity:.42}#placement-ui button:has(img){background:radial-gradient(ellipse at 20% 0%,#fdf6e0,#eddbad);color:#6e5327;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;box-shadow:inset 0 0 7px #b28c4e66,0 2px #8c673c}#placement-ui button img{width:48px;height:48px;object-fit:contain}#placement-ui button span{background:#3c6249;color:#ffedb8;border-radius:4px;padding:1px 8px;font-size:11px}.placement-drawer,.placement-actions{position:absolute;left:0;right:0;top:578px;bottom:0;border:6px solid #7c4f27;border-radius:14px 14px 0 0;padding:9px 8px;background:radial-gradient(ellipse at 20% 0%,#fdf6e0,#f6ead0 55%,#efdfba);box-shadow:inset 0 0 0 2px #d9bd85,0 -3px #b28c4e}.placement-drawer{display:flex;gap:10px;align-items:start;font-size:13px}.placement-drawer small{font-size:10px;padding-top:3px}.placement-actions{top:700px}.placement-actions p{font-size:12px;line-height:1.4;margin:6px 0}.placement-hint{position:absolute;top:54px;left:10px;width:280px;border-radius:8px;background:#38564bf0;color:#ffedb8;padding:8px;font-size:12px}.placement-empty{position:absolute;top:640px;left:24px;right:24px}*{box-sizing:border-box}body{margin:0;background:#263f3b;color:#fff8e8;font:14px system-ui,sans-serif;display:grid;place-items:center;min-height:100dvh}#shell{width:min(390px,100vw,calc(100dvh * 390 / 844));aspect-ratio:390 / 844;position:relative;overflow:hidden;background:#a9be91;box-shadow:0 12px 60px #0006}#game{position:absolute;top:0;right:0;bottom:0;left:0}#game canvas{display:block}#ui-layer{position:absolute;top:0;left:0;width:390px;height:844px;transform:scale(var(--ui-scale,1));transform-origin:top left;pointer-events:none}#ui-layer>aside,#ui-layer>footer,#title-screen{pointer-events:auto}header{position:absolute;top:18px;left:16px;right:16px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}button,select{font:inherit;color:#fff8e8;background:#385d52;border:2px solid #e0c68b;border-radius:12px;padding:12px;cursor:pointer;min-height:44px;touch-action:manipulation}button:hover{background:#497663}button:focus-visible,select:focus-visible{outline:3px solid #fff}header>*{pointer-events:auto}#clock{font-size:24px;letter-spacing:2px}#notice{position:absolute;top:130px;left:24px;right:24px;text-align:center;background:#fff8e8e8;color:#395043;border-radius:20px;padding:8px;font-size:12px;pointer-events:none}aside{position:absolute;right:14px;bottom:142px;display:flex;gap:7px;flex-direction:column;align-items:flex-end}aside label{background:#314c43df;padding:5px;border-radius:10px;font-size:12px}select{padding:5px;min-height:32px}#sleep{background:#80543c}footer{position:absolute;bottom:0;width:100%;height:132px;padding:10px 18px;background:#344e43;border-top:3px solid #cba777}footer>div:first-child{display:flex;justify-content:space-between;font-size:12px}.inventory{display:flex;gap:8px;margin-top:8px}.inventory span{flex:1;text-align:center;background:#526958;border:1px solid #adbd8e;border-radius:8px;padding:5px;font-size:12px;height:46px}#crop-status{font-size:12px;margin:8px 0}#save-status{color:#d3dbb2}dialog{width:310px;border:3px solid #b99365;border-radius:18px;text-align:center;background:#f3ead0;color:#304b41}dialog::backdrop{background:#163c3788}.map-street{border-radius:14px;padding:24px;background:#ced8b2;line-height:2}dialog{width:360px;max-height:78vh;overflow:auto;text-align:left}dialog h2{font-size:18px}dialog button{padding:7px;font-size:12px;margin:3px}dialog p{font-size:12px}nav{display:flex;flex-wrap:wrap;position:sticky;top:0;background:#f3ead0;z-index:2}.card{border:1px solid #a2936c;border-radius:8px;padding:8px;margin:8px 0}.card h3{margin:0 0 6px;font-size:15px}dialog select{background:#385d52;max-width:170px}dialog input[type=range]{width:120px}button:disabled{opacity:.45;cursor:default}#panel-content{line-height:1.6}.inventory span{height:auto}.inventory{font-size:11px}.art-icon{width:22px;height:22px;object-fit:contain;vertical-align:middle;margin-right:3px}.inventory .art-icon{float:left;width:28px;height:28px}.preset-options{display:flex;justify-content:center}.preset-options button{flex:1}.preset-options i{display:block;width:64px;height:88px;margin:auto;background-size:256px 352px;background-position:-64px 0}#crop-status .art-icon{width:16px;height:16px}#coins .art-icon,#date .art-icon{width:18px;height:18px}[hidden]{display:none!important}body{min-height:100dvh;align-items:start}header{top:0;left:0;right:0;height:48px;padding:0 8px;align-items:center;justify-content:space-between;gap:5px;background:#38564bed;border-bottom:2px solid #cba777;color:#fff8e8;white-space:nowrap;font-size:13px}header #map-button{width:36px;min-height:36px;padding:3px;border-radius:9px;flex-shrink:0}header .art-icon{width:19px;height:19px;margin-right:2px}.date-time{display:flex;align-items:center;gap:5px}#clock{font-size:14px;letter-spacing:0}#date{font-size:12px}#coins,#prosperity{display:flex;align-items:center;font-size:12px}#notice{top:52px;margin:0;opacity:0;transform:translateY(-5px);transition:opacity .25s,transform .25s;z-index:3}#notice.visible{opacity:1;transform:translateY(0)}.preset-options{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.preset-options button{margin:0;padding:6px 2px;font-size:12px;min-width:0}.preset-options i{width:64px;height:88px;background-size:256px 352px;background-position:-64px 0}#title-screen{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;overflow:hidden;background:#ecbd89 center center/cover no-repeat;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:65px 20px 84px;text-align:center;isolation:isolate}#title-screen:before{content:"";position:absolute;top:50%;right:0;bottom:0;left:0;background:linear-gradient(transparent,#273e3899);z-index:-1;pointer-events:none}#title-screen h1{margin:0;padding:15px 20px 18px;border:4px solid #cb9d62;border-radius:12px;background:repeating-linear-gradient(2deg,#805231 0,#805231 7px,#895b36 8px,#895b36,#805231 12px,#805231 22px);box-shadow:0 5px #533824,0 12px 20px #44302040,inset 0 0 0 2px #5e3c23;color:#fff1c9;text-shadow:0 2px #593e29;letter-spacing:5px;font-size:32px}.title-actions{width:100%;max-width:290px;z-index:2}.title-actions>button{display:block;width:100%;margin:10px 0;box-shadow:0 4px #3a4534;font-size:18px;font-weight:700;background:#416953}#start-game{animation:breathe 3s ease-in-out infinite;background:#8b5034;border-color:#f2d19b}.title-actions #new-game{font-size:15px;padding:9px;min-height:44px}.title-actions nav{position:static;background:transparent;align-items:center;justify-content:center;flex-wrap:nowrap;margin-top:14px;gap:3px;color:#fff4d8;text-shadow:0 1px 3px #263d30}.title-actions nav button{padding:4px 3px;background:transparent;border:0;font-size:14px;white-space:nowrap;text-shadow:0 1px 3px #263d30}.title-actions p{font-size:11px;text-shadow:0 1px 3px #263d30;margin:6px 0}.petals,.walking-band{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:1}.petals i{position:absolute;left:var(--x);top:-20px;width:9px;height:14px;border-radius:80% 15% 65% 35%;background:#ffd7dcc9;animation:petal-fall var(--duration) linear var(--delay) infinite}.walking-band{inset:auto 0 12px;height:72px;animation:stroll 24s linear infinite}.walking-band i{display:block;width:48px;height:66px;background-size:192px 264px;background-position:0 -132px;animation:walk-frames .7s steps(4) infinite}.setting{display:flex;justify-content:space-between;align-items:center;padding:12px;border-bottom:1px solid #b99365}.setting input{width:24px;height:24px;accent-color:#385d52}@keyframes petal-fall{to{transform:translate(50px,900px) rotate(360deg)}}@keyframes stroll{0%{transform:translate(-48px)}to{transform:translate(100%)}}@keyframes walk-frames{to{background-position:-192px -132px}}@keyframes breathe{50%{box-shadow:0 4px #3a4534,0 0 18px #ffe6ab77}}@media(prefers-reduced-motion:reduce){#start-game,.petals i,.walking-band,.walking-band i{animation:none}}footer{opacity:.999}#tap-debug{position:fixed;left:4px;bottom:4px;z-index:2147483647;max-width:calc(100vw - 8px);margin:0;padding:6px;background:#10251deb;color:#fff;font:10px/1.35 monospace;white-space:pre-wrap;pointer-events:none}dialog.wood-panel{position:fixed;inset:58px 0 auto;margin:0 auto;width:374px;max-width:calc(100vw - 16px);height:min(774px,calc(100dvh - 70px));max-height:none;padding:10px;border:0;border-radius:14px;overflow:visible;color:#6e5327;background:repeating-linear-gradient(90deg,#7c4f27 0,#7c4f27 46px,#744a24 46px,#744a24 48px),#7c4f27;box-shadow:0 16px 44px #0008,inset 0 0 0 3px #5d3a17,inset 0 0 0 6px #96682f}dialog.wood-panel::backdrop{background:#163c3788}.wood-panel .rivet{position:absolute;width:11px;height:11px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffe9a8,#c9962e 60%,#7a5410);box-shadow:0 1px 2px #0009;pointer-events:none;z-index:2}.r1{top:7px;left:7px}.r2{top:7px;right:7px}.r3{bottom:7px;left:7px}.r4{bottom:7px;right:7px}.wood-panel .paper{position:relative;height:100%;min-height:0;border-radius:8px;padding:12px 12px 10px;display:flex;flex-direction:column;background:radial-gradient(ellipse at 20% 0%,#fdf6e0,#f6ead0 55%,#efdfba);box-shadow:inset 0 0 0 2px #d9bd85,inset 0 0 34px #d9bd8577}.signwrap{text-align:center;margin-top:2px;flex-shrink:0}.rope{display:flex;justify-content:space-between;padding:0 74px;height:10px}.rope i{width:2px;height:10px;background:#8a6a3b}.sign{display:inline-block;background:linear-gradient(#96682f,#7c4f27);color:#ffedb8;border:2px solid #5d3a17;border-radius:9px;padding:6px 24px;box-shadow:0 3px #4e3016,inset 0 1px #c99a55;position:relative}.wood-panel .sign h2{font-size:19px;line-height:1.4;font-weight:800;letter-spacing:5px;text-shadow:0 2px 0 #4e3016;margin:0;color:#ffedb8}.seal{position:absolute;right:-11px;top:-9px;width:26px;height:26px;border-radius:5px;background:#b8442c;color:#ffe9d9;font-size:10.5px;font-weight:800;display:grid;place-items:center;transform:rotate(9deg);box-shadow:0 1px 3px #0006;line-height:1.05;letter-spacing:1px}.wood-panel .panel-sub{text-align:center;color:#93764a;font-size:11.5px;margin:5px 0 9px;letter-spacing:1px;flex-shrink:0}#panel-nav{position:static;display:grid;grid-template-columns:repeat(20,minmax(0,1fr));gap:5px;background:none;margin:0 0 10px;flex-shrink:0}#panel-nav button{grid-column:span 4;min-width:0;min-height:34px;background:linear-gradient(#e7d3a1,#dcc48c);color:#6e5327;border:2px solid #b28c4e;border-radius:8px;padding:6px 0;font-size:13px;font-weight:700;box-shadow:0 2px #b28c4e;white-space:nowrap;margin:0}#panel-nav button:nth-child(n+6){grid-column:span 5}#panel-nav button.on{background:linear-gradient(#4c7a5e,#3c6249);color:#ffedb8;border-color:#2c4a37;box-shadow:0 2px #2c4a37}#panel-content,.wood-panel .panel-scroll,#title-panel .content{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#b28c4e #e9dcba;padding:0 2px 5px;line-height:1.6}.wood-panel p{font-size:11.8px;color:#857148;margin:5px 0 8px;overflow-wrap:anywhere}.wood-panel .card{background:#fffaf0;border:2px solid #d9bd85;border-radius:12px;padding:9px;margin:0 0 9px;box-shadow:0 2px #d9bd85,inset 0 0 0 1px #fff}.wood-panel h3{font-size:15px;color:#3c5a4a;margin:2px 0 7px}.wood-panel button{display:inline-block;border:0;border-radius:9px;padding:7px 12px;min-height:36px;font-size:13px;font-weight:800;color:#fff8e8;background:linear-gradient(#4c7a5e,#3c6249);box-shadow:0 3px #2c4a37;margin:3px 3px 6px 0}.wood-panel button.wood-button{background:linear-gradient(#b57a36,#96601f);box-shadow:0 3px #6e4513}.wood-panel button:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px #2c4a37}.wood-panel button:focus-visible,.wood-panel select:focus-visible,.wood-panel input:focus-visible{outline:3px solid #b06f1e;outline-offset:2px}.wood-panel select{background:#f1e3bd;border:2px solid #b28c4e;border-radius:8px;color:#6e5327;max-width:100%;padding:6px;font-size:12px}.panel-foot{flex-shrink:0;padding-top:10px}.wood-panel .panel-foot button{width:100%;margin:0;padding:12px;min-height:46px;font-size:15.5px;letter-spacing:3px}.shop{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-start}.photo-frame{width:88px;height:88px;flex-shrink:0;border-radius:9px;padding:4px;background:linear-gradient(#96682f,#7c4f27);box-shadow:inset 0 0 0 2px #5d3a17}.photo-frame img{width:100%;height:100%;object-fit:cover;border-radius:5px;display:block}.shop-info{flex:1;min-width:0}.wood-panel .shop-info h3{font-size:15.5px;display:flex;flex-wrap:wrap;align-items:center;gap:4px;line-height:1.35;margin:0 0 3px}.stars{color:#e8a91c;font-size:12.5px;letter-spacing:1px;white-space:nowrap}.stars .off{color:#d8c9a3}.stamp{margin-left:auto;font-size:10.5px;font-weight:800;color:#b8442c;border:2px solid #b8442c;border-radius:5px;padding:1px 5px;transform:rotate(-4deg);letter-spacing:1px;white-space:nowrap}.stamp.closed{color:#8b93a0;border-color:#8b93a0}.wood-panel .desc{font-size:11.8px;color:#857148;margin:2px 0 6px}.chips{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:4px}.chip{background:#f1e3bd;border:1.5px solid #d9bd85;border-radius:20px;padding:2px 8px;font-size:11px;color:#6e5327;font-weight:600}.chip b{color:#b06f1e}.stock-bar{height:9px;border-radius:5px;background:#e7d9b4;box-shadow:inset 0 1px 3px #b49b5e88;overflow:hidden;display:inline-block;width:65px;vertical-align:middle}.stock-bar i{display:block;height:100%;background:repeating-linear-gradient(90deg,#7fae5a 0,#7fae5a 8px,#74a352 8px,#74a352 10px)}.shop-stock{flex-basis:100%;min-width:0}.shop-stock:empty{display:none}.price-control{display:flex;align-items:center;gap:6px;margin-top:7px;font-size:12.5px;color:#6e5327;font-weight:600;white-space:nowrap}.wood-panel input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;min-width:0;width:100%;height:8px;border-radius:4px;background:#e7d9b4;box-shadow:inset 0 1px 3px #b49b5e88;flex:1;margin:8px 0}.wood-panel input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:21px;height:21px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#caa25e,#96682f 70%);border:2px solid #5d3a17;box-shadow:0 2px 3px #0005}.wood-panel input[type=range]::-moz-range-thumb{width:17px;height:17px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#caa25e,#96682f 70%);border:2px solid #5d3a17}.wood-panel .section-title,#panel-content>h3{font-size:13px;font-weight:800;color:#6e5327;letter-spacing:2px;margin:8px 0 7px;display:flex;align-items:center;gap:8px}.section-title:before,.section-title:after,#panel-content>h3:before,#panel-content>h3:after{content:"";flex:1;border-top:2px dashed #cbb27a}.goods-slots{display:flex;gap:8px}.wood-panel button.goods-slot{flex:1;min-width:0;background:#e9dcba;border-radius:11px;padding:7px 4px 6px;text-align:center;box-shadow:inset 0 2px 5px #a98f5588,inset 0 -1px #fff9;color:#4c4436;font-size:12px;margin:0;display:flex;align-items:center;flex-direction:column;gap:4px}.item-box{width:44px;height:44px;border-radius:8px;background:#fdf6e0;display:grid;place-items:center;box-shadow:inset 0 0 0 2px #d9bd85}.item-box .art-icon{width:34px;height:34px;margin:0}.price-tag{background:#b8442c;color:#ffe9d9;font-size:11px;border-radius:4px;padding:0 6px}.portrait{display:inline-block;width:32px;height:44px;background-size:128px 176px;background-position:-32px 0;vertical-align:middle;flex-shrink:0}.resident{background:#fffaf0;border:2px solid #d9bd85;border-radius:9px;padding:4px}.wood-panel .preset-options{gap:8px;padding:8px 2px}.wood-panel .preset-options button{background:linear-gradient(#e7d3a1,#dcc48c);border:2px solid #b28c4e;color:#6e5327;box-shadow:0 3px #b28c4e;padding:8px 2px;margin:0;font-size:11px}.wood-panel .preset-options i{background-color:#fdf6e0;border-radius:8px;box-shadow:inset 0 0 0 2px #d9bd85;margin-bottom:5px}.wood-panel .setting{background:#fffaf0;border:2px solid #d9bd85;border-radius:12px;margin:9px 0;color:#6e5327}.wood-panel .setting input{accent-color:#4c7a5e}@media(max-height:600px){dialog.wood-panel{top:8px;height:calc(100dvh - 16px)}}.seed-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:10px}.wood-panel .seed-catalog button{margin:0;padding:7px;font-size:11.5px;line-height:1.6;text-align:left}
