*{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:390px;height:844px;position:relative;overflow:hidden;background:#a9be91;transform-origin:top center;box-shadow:0 12px 60px #0006}#game,canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:390px;height:844px}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}@media(max-width:390px),(max-height:844px){#shell{zoom:min(calc(100vw/390px),calc(100dvh/844px))}}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}
