#adventureScreen .adv-top>div:first-child{display:flex;gap:6px;align-items:flex-start;flex-wrap:wrap}
.stage-clock{display:flex;gap:7px;align-items:center;padding:6px 10px;border:1px solid #856944;background:linear-gradient(150deg,#fff0c9,#e8d3a5);color:#422e1e;border-radius:11px;line-height:1.2;white-space:nowrap;box-shadow:0 3px 9px #291e0e55}
.stage-clock>span:first-child{font-size:23px;color:#855b21}
.stage-clock b,.stage-clock time{display:block;font-variant-numeric:tabular-nums}
.stage-clock time{font-size:13px}
.stage2-day-length{margin:12px 0;border:1px solid #ac9466;border-radius:10px;display:flex;flex-wrap:wrap;gap:6px;padding:7px 10px}
.stage2-day-length legend{font-size:14px;font-weight:700}
.stage2-day-length label{display:inline-flex;gap:5px;align-items:center;border-radius:8px;padding:5px 7px;min-height:38px;cursor:pointer;background:#f8edcf}
.stage2-day-length input{accent-color:#607944}
.stage2-tools{display:flex;flex-wrap:wrap;gap:7px;justify-content:space-between;align-items:center;margin:5px 0 9px;font-size:13px}
.stage2-tools span,.stage2-tools button{display:flex;gap:5px;align-items:center}
.stage2-tools button[hidden],.stage2-night[hidden],.stage2-cancel[hidden]{display:none}
.stage2-tools img{height:29px;width:29px;object-fit:contain}
.stage2-tools button:disabled{opacity:.55;cursor:default}
.stage2-tools button[aria-pressed=true]{background:#d9e2bb}
.stage2-sleep form{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
.stage2-cancel{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(112px,calc(env(safe-area-inset-bottom) + 95px));z-index:4;background:#f8eccd;color:#503b23;border:1px solid #9a8154;border-radius:12px;padding:6px 13px}
.stage2-cancel:hover{background:#e8d7ab}
.stage2-night{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;gap:10px;background:radial-gradient(ellipse,#44353a,#1b1923);color:#f8eac9;z-index:10;animation:stage2-sleep-fade .45s ease both}
.stage2-night img{width:clamp(95px,16vw,178px);height:auto}
@keyframes stage2-sleep-fade{from{opacity:0}to{opacity:1}}
@media(max-width:640px){.stage-clock{font-size:12px;padding:5px 7px;gap:4px}.stage-clock>span:first-child{font-size:18px}.stage-clock time{font-size:12px}}
@media(max-width:400px){#adventureScreen .adv-top>div:first-child{max-width:calc(100% - 128px)}}
@media(prefers-reduced-motion:reduce){.stage2-night{animation:none}}


#forestPlanting{position:fixed;z-index:10;left:50%;top:max(8px,env(safe-area-inset-top));transform:translateX(-50%);width:min(435px,calc(100vw - 16px));padding:8px 12px;border:1px solid #a88b5f;border-radius:13px;background:#fff1d6;color:#4b3822;box-shadow:0 3px 20px #402f2477}
#forestPlanting[hidden],#forestPlanting button[hidden]{display:none!important}
#forestPlanting p{margin:4px 0 7px;color:#59452d;font-size:.87rem}
#forestPlanting p[data-invalid=true]{color:#8b362e}
#forestPlanting button{min-height:40px;padding:5px 9px;border:1px solid #ad936a;border-radius:8px;background:#eee0bf;color:#483825;font:inherit;cursor:pointer}
#forestPlanting [data-confirm-plant]{background:#5b7145;color:#fff3d8}
.forest-planting .stage-dock,.forest-planting .adv-top{visibility:hidden}
.forest-planting #dungeonCanvas{cursor:crosshair}
