.watch-interior{position:fixed;inset:0;z-index:810;display:grid;place-items:center;overflow:hidden;pointer-events:auto;background:#364845}
.watch-interior canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.watch-interior canvas.room-fill{object-fit:fill}
.watch-interior canvas:not(.room-fill){z-index:1}
.watch-interior .watch-machines-frame{z-index:2}
.watch-bar {
 position:fixed;z-index:1150;left:max(14px,env(safe-area-inset-left));
 bottom:max(14px,env(safe-area-inset-bottom));width:min(25rem,calc(100% - 28px));
 box-sizing:border-box;padding:.75rem;display:grid;gap:.56rem;
 background:#fff1ce;color:#25443b;border:2px solid #41594e;border-radius:10px;
 box-shadow:3px 4px #263f3752;font:500 13px/1.35 system-ui,sans-serif;
}
.watch-copy {min-width:0;display:grid;gap:.45rem}
.watch-bar strong {font:700 21px/1.05 Georgia,serif}
.watch-controls {display:flex;flex-wrap:wrap;gap:5px}
.watch-bubble {margin:0;overflow-wrap:anywhere}
.watch-bar[data-indoors] .watch-bubble {
 position:fixed;left:var(--bubble-x,50vw);bottom:var(--bubble-bottom,75dvh);
 transform:translateX(-50%);width:max-content;max-width:min(21rem,calc(100vw - 20px));
 box-sizing:border-box;padding:.55rem .8rem;border:2px solid #3b5047;border-radius:14px;
 background:#fff6da;color:#203b32;box-shadow:2px 3px #202c3660;
 font:650 clamp(13px,1.6vw,18px)/1.3 system-ui,sans-serif;pointer-events:none;
}
.watch-bar[data-indoors] .watch-bubble::after {
 content:"";position:absolute;bottom:-7px;left:var(--bubble-tail,50%);width:10px;height:10px;
 transform:translateX(-50%) rotate(45deg);
 border-right:2px solid #3b5047;border-bottom:2px solid #3b5047;background:#fff6da;
}
.watch-wellbeing {
 display:flex;align-items:center;gap:.75rem;padding:.47rem .58rem;border-radius:6px;background:#f2e3b9;
}
.watch-wellbeing[hidden],.watch-energy[hidden] {display:none}
.watch-feeling {display:grid;gap:1px;min-width:4.5rem}
.watch-feeling span:first-child,.watch-energy label {font-size:11px;color:#505a47}
.watch-feeling span:last-child {font-weight:700}
.watch-feeling.unwell span:last-child {color:#87462e}
.watch-energy {flex:1;min-width:6rem}
.watch-energy > div {display:flex;justify-content:space-between;gap:.5rem;font-size:11px;font-variant-numeric:tabular-nums}
.watch-energy meter {display:block;width:100%;height:9px;accent-color:#457761}
.watch-energy meter::-webkit-meter-bar {background:#d9cba1;border:0}
.watch-energy meter::-webkit-meter-optimum-value {background:#457761}
.watch-energy meter::-webkit-meter-suboptimum-value {background:#967039}
.watch-energy meter::-webkit-meter-even-less-good-value {background:#aa5640}
.watch-bar button,.town-directory button.follow-resident,.town-directory button.follow-own{padding:.4rem .6rem;border-radius:4px;border:1px solid #38574c;background:#30584b;color:#fff6dd;font:600 13px system-ui;cursor:pointer}
.watch-bar button+button{background:transparent;color:#354f46}.watch-bar button:focus-visible,.follow-resident:focus-visible{outline:3px solid #ad6837;outline-offset:2px}
.watch-interior[hidden],.watch-bar[hidden]{display:none}
.watch-reason{display:block;margin:.5rem 0 0;color:#34594a}
.watch-reason[hidden]{display:none}
.watch-schedule{font-size:12px;line-height:1.45;border-top:1px solid #c6b992;padding-top:.45rem}
.watch-schedule summary{cursor:pointer;color:#30574a;width:fit-content}
.watch-schedule dl{display:grid;grid-template-columns:minmax(5ch,1fr) minmax(0,2fr);gap:.35rem .65rem;margin:.5rem 0 0}
.watch-schedule dt{font-weight:600}.watch-schedule dd{margin:0;font-weight:400}
.watch-schedule[open]{max-height:34dvh;overflow:auto;overscroll-behavior:contain}
body[data-following] .caption,body[data-following="resident"] .story-bubble{visibility:hidden}
.town-directory li{grid-template-columns:minmax(0,1fr) auto auto;gap:4px 8px}.town-directory li strong,.town-directory li small{grid-column:1}
.town-directory li button.follow-resident{grid-area:1/3/3/4}.town-directory li button.follow-resident:disabled{opacity:.45;cursor:default}
.town-directory li button.follow-own{grid-area:auto;justify-self:start}
.local-person[data-pastime]:not([data-pastime="work"]) i>.workwear{visibility:hidden}
@media(max-width:600px){.watch-bar{left:8px;bottom:max(8px,env(safe-area-inset-bottom));width:min(25rem,calc(100% - 16px));gap:.4rem;padding:.55rem}.watch-bar strong{font-size:18px}.watch-bar button{font-size:12px;padding:.35rem}.town-directory li{gap:4px}}


.town-directory li:has(.directory-actions){grid-template-columns:minmax(0,1fr) auto}
.town-directory .directory-actions{grid-column:2;grid-row:1 / 4;display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.local-person[data-post-uniform][data-pastime] i>.workwear:not(.workwear-working){visibility:visible}
.post-street-props{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated;pointer-events:none}
.post-street-props[hidden]{display:none}
.watch-target{outline:2px dashed #eee2a6;outline-offset:3px;border-radius:6px}
@media(max-width:600px){.town-directory .directory-actions{max-width:115px}.town-directory li:has(.directory-actions){align-items:start}}

header nav{display:flex;flex-wrap:nowrap;align-items:center;min-width:0;max-width:100%;overflow-x:auto;white-space:nowrap;overscroll-behavior-x:contain;scrollbar-width:thin}
header nav a{flex:none}.room-stage{position:relative}.room-stage canvas{display:block}
.cabinet-targets{position:absolute;inset:0;pointer-events:none}.cabinet-targets button{position:absolute;top:16.92%;width:20.625%;height:58.46%;padding:0;pointer-events:auto;color:transparent;background:transparent;border:0;cursor:pointer}.cabinet-targets button:hover,.cabinet-targets button:focus-visible{outline:3px solid #ffdc94;background:#ffedb319;outline-offset:2px}
.watch-machines-frame{position:relative;pointer-events:none;width:min(100%,246.153846dvh);aspect-ratio:320/130}.watch-machines-frame[hidden],#inside-message:empty{display:none}
.arcade-game{box-sizing:border-box;width:min(470px,94vw);max-height:94dvh;overflow:auto;padding:clamp(12px,3vw,22px);color:#fff0ce;background:#283641;border:3px solid #84cbb4;border-radius:9px;box-shadow:5px 6px #182528;font:15px/1.4 system-ui,sans-serif}
.arcade-fixtures{position:absolute;inset:0;pointer-events:none}
.scene-detail{position:absolute;transform:translate(-50%,-50%);appearance:none;pointer-events:auto;cursor:pointer;background:transparent;border:0;padding:0;margin:0;min-width:0;min-height:0}
#world .scene-detail{z-index:5}.camera-in #world .scene-detail,.shopping #world .scene-detail{visibility:hidden}
.scene-detail:focus-visible{outline:2px dashed #ffe397;outline-offset:2px;border-radius:2px}
.detail-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
.arcade-game::backdrop{background:#10252ad9}.arcade-head,.arcade-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.arcade-head{justify-content:space-between}.arcade-head h2{margin:0;font:bold 26px Georgia,serif;color:#ffe5a3}
.arcade-game button{color:#e8f4dc;background:#354d56;border:1px solid #87afa4;border-radius:4px;font:600 14px system-ui;padding:7px 11px;cursor:pointer}.arcade-game button:focus-visible{outline:3px solid #ffd592;outline-offset:1px}.arcade-game button[aria-pressed=true]{background:#ede0a4;color:#34403e}
.arcade-score{display:block;color:#a8d9c3;margin:7px 0;font:600 14px monospace}.arcade-board{display:block;width:100%;height:auto;image-rendering:pixelated;touch-action:none;outline-offset:2px}
.arcade-mines{width:min(100%,330px);margin:auto;display:grid;grid-template-columns:repeat(9,1fr);gap:2px}.arcade-mines button{aspect-ratio:1;padding:0;line-height:1;border-radius:2px;font-weight:700}.arcade-mines .covered,.arcade-mines .flag{box-shadow:inset 1px 2px #a3c1ae;background:#55786e}.arcade-mines .opened{background:#293c41;color:#f7db91;border-color:#485e5a}.arcade-mines .flag{color:#ffdd90}.arcade-mines .mine{background:#a45052}.arcade-result{margin:6px 0;color:#ffda99;min-height:1.3em}.arcade-help{margin:12px 0 0;color:#d4e5de;font-size:14px}.arcade-pad{display:flex;gap:3px;margin-right:auto}.arcade-pad button{padding:8px 10px}
@media(max-width:600px){header nav{max-width:100vw}.arcade-pad button{min-height:42px}}
#inside.watch-offstage[open]{display:none}
#inside[open]:not(:modal):not(.watch-offstage){position:fixed;inset:0;z-index:1800;margin:auto}

.town-directory .directory-favorite{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin:.4rem 0 .7rem;padding:.6rem;border:1px solid #99864c;border-radius:5px;background:#f7e7ae;color:#344538}
.directory-favorite[hidden]{display:none}.town-directory li .resident-star{display:inline-block;position:static;margin-right:.35rem;min-width:30px;min-height:30px;padding:0;background:transparent;color:#6b561d;border:0;font-size:21px;vertical-align:middle}
.resident-yearbook{box-sizing:border-box;width:min(570px,94vw);max-height:90dvh;padding:0 1rem 1rem;overflow:auto;overscroll-behavior:contain;background:#fff5d9;color:#34453d;border:2px solid #556652;border-radius:8px;font:15px/1.45 system-ui,sans-serif}
.resident-yearbook::backdrop{background:#172d29a6}.resident-yearbook button,.resident-yearbook input,.directory-favorite button{border:1px solid #73816d;background:#fffaf0;color:#304937;border-radius:5px;font:inherit;padding:.35rem .57rem;cursor:pointer}
.resident-yearbook button:disabled{opacity:.5}.year-head,.resident-yearbook nav,.year-gifts{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.year-head{position:sticky;top:0;z-index:1;justify-content:space-between;background:#fff5d9;padding:.7rem 0;border-bottom:1px solid #c7b995}
.year-head h2,.year-plot h3{font-family:Georgia,serif;margin:0}.year-plot{margin:.8rem 0}.year-plot p{margin:.35rem 0 .6rem;font-style:italic}.year-notice:empty{display:none}
.year-days{list-style:none;margin:0;padding:0}.year-days li{border-top:1px solid #c7b995;padding:.65rem 0}.year-days time{font-weight:bold}.year-days small{margin-left:.7rem;color:#586451}.year-days p{margin:.2rem 0}.year-details{color:#42594d}.year-gifts{margin-top:.4rem}
.resident-yearbook nav{padding-top:.6rem}.resident-yearbook button:focus-visible,.resident-star:focus-visible{outline:3px solid #826915;outline-offset:1px}
@media(max-width:600px){.town-directory .directory-actions{max-width:128px}.resident-yearbook{font-size:14px}.year-head h2{font-size:20px}}
.directory-favorite button[aria-pressed=true]{background:#36594c;color:#fff5d5;border-color:#36594c}.town-directory li .resident-star[aria-pressed=true]{color:#835b06}
.watch-name{display:flex;align-items:center;gap:.3rem}.watch-name .watch-star{min-width:28px;min-height:28px;padding:0;border:0;background:transparent;color:#795813;line-height:1;font-size:21px}
