/* Playtest fixes (2026-10-24) */
/* 1. Current task: a clear card right under the room, with "Show me" and "How to play". */
.task{margin:4px 0 18px;padding:16px 20px 14px;background:linear-gradient(115deg,#fff6e2,#fdeed6);border:1px solid #e6c995;border-left:5px solid #d9a35b;border-radius:18px;box-shadow:0 6px 18px #a47a4214}
.task .eyebrow{color:#b27a3a;font-weight:600;letter-spacing:1.5px}
.task h2{font-size:22px;color:#6e4b2a;line-height:1.35}
.task p{color:#9a7f63;margin:6px 0 0}
.task-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.task-actions button{font-size:13px;padding:8px 14px;border-radius:999px;border:1px solid #d9b27c;background:#fffaf0;color:#7a5634;cursor:pointer}
.task-actions #taskGo{background:#866443;border-color:#866443;color:#fff4dc}
.task-actions button[hidden]{display:none}
#taskHelp:before,footer #help:before{content:'?';display:inline-grid;place-items:center;width:16px;height:16px;margin-right:6px;border-radius:50%;background:#d9a35b;color:#fff;font-size:11px;font-weight:700;line-height:1}
footer #help{font-size:13px;padding:7px 14px;border-radius:999px;border:1px solid #d9b27c;background:#fff4df;color:#7a5634;font-weight:600}
@media(max-width:750px){.task{padding:14px 15px 12px}.task h2{font-size:18px}.task-actions button{font-size:12px;padding:7px 12px}}

/* 1. Gentle pulse on the app / furniture label the task points to. */
@keyframes taskHintPulse{0%,100%{box-shadow:0 0 0 0 #e0975c00}50%{box-shadow:0 0 0 7px #e0975c55}}
#apps .app.task-hint i{animation:taskHintPulse 1.8s ease-in-out infinite;outline:2px solid #e0975c;outline-offset:2px}
#apps .app.task-hint{color:#8a5a2c;font-weight:600}
.room-controls [data-place].task-hint{animation:taskHintPulse 1.8s ease-in-out infinite;border-color:#e0975c!important;background:#fff1dc!important;color:#7a4d22!important}
.task-hint-flash,#apps .app.task-hint-flash i{animation:taskHintPulse .65s ease-in-out 4!important;outline:3px solid #e0975c;outline-offset:3px}
@media(prefers-reduced-motion:reduce){#apps .app.task-hint i,.room-controls [data-place].task-hint,.task-hint-flash,#apps .app.task-hint-flash i{animation:none!important;box-shadow:0 0 0 4px #e0975c55}}

/* 3. Window light puzzle: a clearly lit window. */
[data-light].window-lit{background:#ffd35c!important;box-shadow:0 0 0 3px #ffe9a8,0 0 28px 8px #ffc94dcc;transform:scale(1.06);transition:transform .15s ease,box-shadow .15s ease;color:#6e4b2a;font-weight:700}

/* 5. Modals: an easy-to-see close button that stays visible while scrolling. */
dialog>.close{position:sticky;top:0;float:right;z-index:6;width:38px;height:38px;margin:-16px -14px 0 10px;padding:0;display:grid;place-items:center;border-radius:50%;border:1px solid #e2cdb0;background:#fff3df;color:#7a5634;font-size:24px;line-height:1;cursor:pointer;box-shadow:0 2px 8px #6a482c1f}
dialog>.close:hover,dialog>.close:focus-visible{background:#f6e2c2}
dialog::backdrop{cursor:pointer}
body.modal-open main,body.modal-open header,body.modal-open footer{pointer-events:none}

/* 6. Weather: fixed-width header label so it doesn't jump; sky matches the weather. */
#weatherButton{min-width:6.6em;text-align:center;font-variant-numeric:tabular-nums}
.landscape.cloudy:not(.land-night){background:linear-gradient(#c3d2d4,#e9eadb)}
.landscape.rain:not(.land-night){background:linear-gradient(#9fb3b8,#d3dacb)}
.landscape.snow:not(.land-night){background:linear-gradient(#cfdbe1,#f2f2e8)}
.landscape.cloudy .skyglow{opacity:.45;box-shadow:none}
.landscape.rain .skyglow,.landscape.storm .skyglow,.landscape.snow .skyglow{display:none}

/* 9. Chapter One complete: what comes back tomorrow. */
.tomorrow-note{margin:12px 0 4px;padding:12px 14px;border:1px dashed #d9b27c;border-radius:14px;background:#fff6e5}
.tomorrow-note p{margin:0 0 6px;font-size:13px!important;line-height:1.7!important;color:#7a5634}
.tomorrow-note ul{margin:0;padding:0;list-style:none;display:grid;gap:4px}
.tomorrow-note li{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;font-size:13px}
.tomorrow-note li:before{content:'✦';color:#d9a35b}
.tomorrow-note li small{color:#a38564;font-size:11px}
