:root{--ink:#203e40;--pine:#205545;--brick:#9c4433;--mute:#5c6c68;--paper:#f6f7f1;--rule:#d3dcd1;--white:#fdfef9;--serif:"PT Serif",Georgia,"Times New Roman",serif;--sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.45 var(--sans)}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.53}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[role=button]:focus-visible{outline:3px solid #c2773e;outline-offset:3px}button{border:0;background:none}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.12}i[data-icon]{display:inline-flex;flex:none}i[data-icon] svg{width:19px;height:19px;vertical-align:middle}.mast{background:#203e40;color:white}.bar,main{width:min(1280px,94%);margin:auto}.bar{min-height:66px;display:flex;align-items:center;gap:clamp(24px,5vw,84px)}.brand{display:flex;align-items:center;gap:10px;font:600 24px var(--serif);letter-spacing:-.6px;color:white;text-decoration:none;white-space:nowrap}.brand-icon{display:grid;place-items:center;font:32px/1 Georgia;color:#e8cd8a;border:1px solid #8c9d87;border-radius:9px;width:38px;height:38px}.bar nav,.account,.wallet,.nav,.district-title,.category,.region,.map-chip,.north{display:flex;align-items:center}.bar nav{gap:9px}.nav{gap:8px;padding:8px 12px;border-radius:5px;color:#ccd9d1;font-weight:550;font-size:14px}.nav.active,.nav:hover{background:#3b5656;color:#fff}.account{gap:12px;margin-left:auto}.wallet{gap:7px;font-variant-numeric:tabular-nums}.wallet i{color:#e6c77d}.avatar{border:1px solid #839997;border-radius:50%;width:34px;height:34px;display:grid;place-items:center}.city-title{display:flex;align-items:flex-end;justify-content:space-between;padding:30px 0 20px}.region{gap:7px;font-size:13px;color:var(--mute);font-weight:550}.signal,.live-dot{width:7px;height:7px;border-radius:100%;background:#497667;display:inline-block}.city-title h1{font:500 clamp(40px,5vw,65px)/1.02 var(--serif);letter-spacing:-2.6px;margin-top:3px}.district-title{gap:7px;color:var(--mute);font-size:14px;margin-bottom:6px}.layout{display:grid;grid-template-columns:minmax(0,1.98fr) minmax(270px,.83fr);gap:22px;align-items:start;margin-bottom:38px}.map-panel,.quest-card,.shift-card{border:1px solid var(--rule);border-radius:12px;background:var(--white);overflow:hidden}#map-frame{position:relative;isolation:isolate;height:clamp(320px,48vh,570px);overflow:hidden;background:#e1e7d9}#map{width:100%;height:100%;display:block;touch-action:none;cursor:grab;user-select:none}#map:active{cursor:grabbing}#map [role=button]{cursor:pointer}.map-top{pointer-events:none;position:absolute;inset:14px 15px auto;display:flex;align-items:center;justify-content:space-between}.map-chip,.north,.map-tools,.credit{border:1px solid #b8c4b8;background:#fbfcf4f2}.map-chip,.north{gap:6px;padding:5px 10px;font-size:12px;font-weight:650;border-radius:20px}.north{border:0;background:transparent;flex-direction:column;gap:0;font-size:10px}.north i svg{height:24px;width:24px}.map-tools{position:absolute;bottom:22px;right:14px;border-radius:6px;display:grid;overflow:hidden}.map-tools button{width:34px;height:33px;font-size:21px;display:grid;place-items:center}.map-tools button+button{border-top:1px solid var(--rule)}.map-tools button:hover{background:#e0edda}.credit{position:absolute;bottom:0;left:0;border:0;font-size:10px;padding:1px 5px}.credit a,.text-link{color:var(--pine)}.arrival{border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:15px 19px;display:flex;align-items:center;gap:12px;min-height:77px}.arrival .info{flex:1;min-width:0}.arrival strong,.place-name{display:block}.arrival small,.places small,.shift-card small,.quest-progress small,.entry small{color:var(--mute)}.arrival small{font-size:12px}.place-icon,.arrival-icon{display:grid;place-items:center;border-radius:8px;flex-shrink:0;color:var(--pine);background:#e3eee1;width:35px;height:35px}.arrival-icon{width:42px;height:42px}.museum,.passage{color:#914731;background:#f4e7d9}.workshop{color:#405679;background:#e3e9ed}.crossing{color:#656044;background:#ecebdc}.places-heading{display:flex;align-items:baseline;justify-content:space-between;margin:17px 19px 8px}.places-heading h2,.shift-card h2{font:600 23px var(--serif);letter-spacing:-.6px}.places-heading small{color:var(--mute);font-size:12px}.places{display:grid;grid-template-columns:1fr 1fr;padding:0 12px 12px;gap:2px 5px}.place{display:flex;align-items:center;gap:10px;text-align:left;padding:7px;border-radius:6px;min-width:0}.place:hover,.place[aria-pressed=true]{background:#eff3ea}.place strong{font-size:14px;line-height:1.3}.place small{display:block;font-size:12px}.layout aside{display:grid;gap:14px}.quest-card #photo{display:block;position:relative;width:100%;aspect-ratio:2/1;padding:0;background:#656458;overflow:hidden}.quest-card img{width:100%;height:100%;object-fit:cover;filter:sepia(.12) contrast(1.02);display:block}.quest-card #photo span{display:grid;place-items:center;position:absolute;bottom:9px;right:9px;background:#1a2d2cb8;color:white;padding:5px;border-radius:5px}.quest-body,.shift-card{padding:20px}.category{color:var(--brick);gap:6px;font-size:12px;font-weight:650}.category i svg{height:15px;width:15px}.quest-body h2{font:550 clamp(27px,2.4vw,38px)/1.05 var(--serif);letter-spacing:-1.25px;margin:9px 0}.quest-body p:not(.category),.shift-card p,.dialog-copy{color:#51615c;font-size:14px;line-height:1.55}.quest-progress{display:flex;gap:10px;align-items:center;margin:13px 0}.quest-progress>span{display:flex;gap:3px;flex:1}.quest-progress b{height:4px;background:#e0e6dc;flex:1}.quest-progress b.done{background:#51836a}.quest-progress small{font-size:12px}.primary,.action,.secondary{padding:9px 14px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:6px;font-size:14px;font-weight:600;min-height:40px;text-align:center}.primary,.action{color:white;background:var(--pine)}.primary:hover,.action:hover{background:#153f35}.primary{width:100%}.secondary{color:var(--pine);border:1px solid #c4cfc3;background:var(--white)}.secondary:hover{background:#edf3e9}.shift-card h2{display:flex;gap:9px;align-items:center}.shift-card p{margin:8px 0 12px}.shift-card .secondary{width:100%}.tagline{display:block;font-size:12px;color:var(--mute);margin:5px 0}.modal-head{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-bottom:17px}.modal-head h2{font:550 30px var(--serif);letter-spacing:-.8px}.modal-head button{font-size:28px;line-height:1;border-radius:6px;min-width:38px;min-height:38px;background:#eef2e9}dialog{color:var(--ink);padding:24px;border:1px solid var(--rule);border-radius:12px;width:min(490px,94vw);max-height:86vh;box-shadow:0 14px 55px #142c3440;background:var(--white)}dialog::backdrop{background:#17303485}#modal-body{display:grid;gap:12px}#modal-body img{width:100%;border-radius:6px}#modal-body label{display:grid;gap:6px;font-weight:600}input,select{width:100%;border:1px solid #aabbaa;border-radius:6px;padding:10px;color:var(--ink);background:white}.entry{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--rule)}.entry small{display:block}.dialog-rule{border:0;border-top:1px solid var(--rule);width:100%;margin:0}.line{display:flex;justify-content:space-between;align-items:center;gap:10px}.text-link{font-weight:600}.buttons{display:flex;flex-wrap:wrap;gap:8px}.buttons>*{flex:1}#notice{position:fixed;z-index:10;bottom:20px;left:50%;transform:translateX(-50%);max-width:90vw;color:white;background:var(--ink);padding:9px 15px;border-radius:6px;opacity:0;pointer-events:none;text-align:center}#notice.show{opacity:1}#modal-error{color:#963825}.pin-text{font:600 12px var(--sans);fill:#26433a;paint-order:stroke;stroke:#fafbef;stroke-width:3;stroke-linejoin:round}.pin-dot{stroke:white;stroke-width:2}.map-panel [hidden]{display:none}
@media(max-width:830px){.bar,main{width:94%}.bar{gap:18px}.layout{gap:12px;grid-template-columns:minmax(0,1.65fr) minmax(224px,1fr)}.quest-body,.shift-card{padding:15px}.places{grid-template-columns:1fr}.arrival{flex-wrap:wrap}.city-title{padding:22px 0 14px}}
@media(max-width:640px){.bar,main{width:calc(100% - 24px)}.bar{gap:6px;min-height:56px}.brand{font-size:19px;gap:6px}.brand-icon{width:28px;height:30px;font-size:25px}.bar nav{margin-left:auto;gap:0}.nav{font-size:13px;padding:7px}.nav:first-child{display:none}.nav i{display:none}.account{margin:0 0 0 4px;gap:7px}.wallet{gap:3px;font-size:13px}.wallet i svg{width:15px}.avatar{width:30px;height:30px}.city-title h1{font-size:40px}.city-title{padding:16px 0 12px}.region,.district-title{font-size:11px}.district-title i svg{width:16px}.layout{display:flex;flex-direction:column}.map-panel,aside{width:100%}#map-frame{height:clamp(275px,44svh,380px)}.arrival{padding:10px;min-height:65px;gap:8px}.arrival-icon{width:32px;height:32px}.arrival strong{font-size:14px}.arrival .action,.arrival .secondary{padding:7px 9px;font-size:13px}.places{grid-template-columns:1fr 1fr;padding:0 5px 8px}.places-heading{margin:10px 12px 5px}.places-heading h2{font-size:20px}.place{gap:5px;padding:5px}.place-icon{width:27px;height:27px}.place strong{font-size:12px}.place small{font-size:10px}.quest-card #photo{aspect-ratio:2.8/1}.map-tools{right:7px}.map-top{inset:9px 8px auto}.modal-head h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
#avatars,#walker{pointer-events:none}.player-label{font:600 10px var(--sans);paint-order:stroke;stroke:#fffef5;stroke-width:3px;fill:#24463e;text-anchor:middle}.turn-arrow path{fill:none;stroke-linecap:round;stroke-linejoin:round}.turn-hit{stroke:transparent;stroke-width:17;pointer-events:stroke;cursor:pointer}.turn-casing{stroke:#fffcf3;stroke-width:5px;pointer-events:none}.turn-color{stroke:#416467;stroke-width:2.4px;pointer-events:none}.turn-arrow.current .turn-casing{stroke-width:8px}.turn-arrow.current .turn-color{stroke:#d46125;stroke-width:5px}.map-top .control-chip{pointer-events:auto;cursor:pointer;min-height:36px;gap:8px}.control-chip i svg{height:15px;width:15px}.control-chip:hover{background:#fff}.mode-options{display:grid;gap:8px}.mode-options button{display:grid;text-align:left;justify-content:start;gap:2px}.mode-options button[aria-pressed=true]{border-color:#336952;background:#eaf2e6}.mode-options small,.order small{display:block;color:var(--mute);font-weight:400}.steer-hint{color:var(--mute);font-size:12px}.shop-board{display:grid;gap:10px}.shop-board h3{margin:4px 0 0}.shop-board h4{margin:3px 0}.order{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;border-top:1px solid var(--rule);padding:7px 0}.order .amount{white-space:nowrap;font-weight:600}.shop-metrics{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;background:#edf2e9;border-radius:6px;padding:9px 10px}.order.mine strong{color:#296b4e}.shop-notes{font-size:13px;color:var(--mute)}#district-avatars .other-avatar{pointer-events:none}.arrival .info small{display:block}

.garage-art{margin:0;overflow:hidden;border:1px solid #c9d0bd;border-radius:8px;background:#283f3e}
#modal-body .garage-art img{width:100%;height:auto;display:block;border-radius:0;image-rendering:pixelated}
.garage-art figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:10px 13px;color:#f8efd7}
.garage-art figcaption span{font:600 clamp(20px,4vw,25px)/1.2 var(--serif)}
.garage-art figcaption small{color:#d8dfc9}
.vehicle-facts{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-variant-numeric:tabular-nums}
.vehicle-facts span{color:var(--mute);font-size:13px}.vehicle-facts strong{color:var(--ink);font-size:16px}
.paint-choices{display:flex;gap:5px;flex-wrap:wrap}.paint-choices button{border-radius:20px;border:1px solid var(--rule);background:var(--white);padding:7px 10px;font-size:13px;display:inline-flex;align-items:center;gap:6px;min-height:36px}
.paint-choices button[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--pine);border-color:var(--pine)}
.paint-choices i{width:13px;height:13px;border-radius:50%;border:1px solid #364e4a66}
.wear-meter{display:block;width:100%;height:9px;border:0;appearance:none;background:#dfe7db;border-radius:8px;overflow:hidden}
.wear-meter::-webkit-meter-bar{background:#dfe7db;border:0;height:9px;border-radius:8px}
.wear-meter::-webkit-meter-optimum-value{background:#4b7f64;border-radius:8px}.wear-meter::-moz-meter-bar{background:#4b7f64}
.garage-note,.garage-service p,.dispatch p{color:var(--mute);font-size:14px;line-height:1.45}
.garage-service,.dispatch{display:grid;gap:8px;padding-top:12px;border-top:1px solid var(--rule)}
.garage-service small{color:var(--brick)}
.service-ticket{display:grid;gap:9px;padding:13px 14px;background:#eef3e9;border:1px solid var(--rule);border-radius:7px}
.ticket-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.ticket-heading h3{font:600 21px var(--serif)}.ticket-heading small,.service-ticket p{color:var(--mute);font-size:13px}
.service-ticket progress{display:block;width:100%;height:7px;accent-color:var(--pine)}
.duty-offer{display:grid;gap:6px;padding-top:9px;border-top:1px solid var(--rule)}.duty-offer small{color:var(--mute)}
.shift-pay,.shift-receipt{margin:0;padding:12px 14px;background:#eef3e9;border:1px solid var(--rule);border-radius:7px;font-variant-numeric:tabular-nums}
.shift-pay div,.shift-receipt{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:5px 12px}
.shift-pay div+div{margin-top:6px}.shift-pay dd{margin:0;font-weight:650;white-space:nowrap}
.shift-receipt h3{font:600 18px var(--serif)}.shift-receipt strong{font-size:19px;color:var(--pine);white-space:nowrap}
.shift-receipt p{grid-column:1/-1;color:var(--mute);font-size:14px}
#modal-body .turn-hint-setting{display:flex;align-items:flex-start;gap:10px;border-top:1px solid var(--rule);padding:13px 0 3px;cursor:pointer}
.turn-hint-setting input{width:19px;height:19px;flex:none;margin:1px 0 0;accent-color:var(--pine)}
.turn-hint-setting small{display:block;margin-top:3px;font-weight:400;color:var(--mute)}
.turn-flag{cursor:pointer}
#back-to-player{position:absolute;bottom:24px;left:10px;min-height:40px;gap:6px}
#back-to-player[hidden]{display:none}
#expand-map{position:absolute;bottom:24px;left:10px;min-height:44px;padding:6px 12px;gap:7px;color:var(--pine);box-shadow:0 1px 3px #203e4020}
#expand-map:has(~ #back-to-player:not([hidden])){bottom:70px}
#expand-map:hover{background:white}
#walk-map-bar{display:none}
body.expanded-map{overflow:hidden}
.expanded-map .mast,.expanded-map .city-title,.expanded-map .layout aside,.expanded-map #expand-map{display:none}
.expanded-map .map-panel{position:fixed;z-index:5;inset:0;width:100%;height:100vh;height:100dvh;display:flex;flex-direction:column;border:0;border-radius:0}
.expanded-map .map-panel>:not(#map-frame,#arrival,#walk-offers,#walk-observer,#walk-map-bar){display:none!important}
.expanded-map #map-frame{flex:1 1 0;min-height:0;height:auto}
.expanded-map #walk-map-bar{display:flex;flex:none;align-items:center;gap:12px;padding:6px max(14px,env(safe-area-inset-right)) 6px max(14px,env(safe-area-inset-left));padding-top:max(6px,env(safe-area-inset-top));background:#203e40;color:#faf9ee}
.walk-city{display:flex;align-items:center;gap:10px;margin-right:auto;font:600 23px/1.2 var(--serif)}
.walk-city i{color:#e9c984}
#walk-map-bar label{font-size:13px;color:#d0ded3}
#walk-address,#collapse-map{min-height:44px;border:1px solid #809890;border-radius:6px}
#walk-address{width:auto;max-width:48%;min-width:0;color:#fcfcf5;background:#304f4e;padding:5px 9px;font:600 15px var(--sans);color-scheme:dark}
#collapse-map{display:flex;align-items:center;gap:7px;background:#f6f6e9;color:#244941;padding:6px 12px;font-weight:600}
#walk-map-bar :focus-visible{outline-color:#f2cb7f;outline-offset:2px}
.expanded-map #arrival{flex:none;max-height:32vh;max-height:32dvh;overflow:auto;padding-bottom:max(12px,env(safe-area-inset-bottom));background:var(--white)}
.expanded-map .arrival .info strong{font:600 clamp(18px,2.3vw,26px)/1.18 var(--serif)}
.expanded-map .map-tools button{width:44px;height:44px}
.expanded-map #walk-observer{flex:none}
#pins :is(.outside-map,.crowded-label:not(:focus)) .pin-text{visibility:hidden}
@media(max-height:460px) and (orientation:landscape){
 .expanded-map .map-tools{display:flex;bottom:12px}
 .expanded-map .map-tools button+button{border-top:0;border-left:1px solid var(--rule)}
}
@media(max-width:640px){
 .expanded-map #walk-map-bar{gap:8px;padding-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right))}
 .walk-city{display:none}
 #walk-map-bar label{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 #walk-address{flex:1;max-width:none}
 #collapse-map{padding-inline:9px;font-size:14px}
}
#map:focus-visible{outline:2px solid var(--pine);outline-offset:-3px}
.dispatch{background:#f2eddd;border:1px solid #ded6bc;border-left:4px solid #b7955e;border-radius:4px;padding:13px 14px}
.dispatch>span{font-size:12px;color:#6e5c3b}
.arrival:has(.range-advice){flex-wrap:wrap}
.range-advice,.dispatch p.range-advice{margin:0;padding:7px 10px;border-left:3px solid #a76e26;background:#f6edda;color:#61491f;font-size:13px;line-height:1.4}
.arrival .range-advice{flex-basis:100%}
.dispatch-return{border-top:1px solid #ded6bc}
.dispatch-return summary{padding:10px 0 4px;min-height:36px;cursor:pointer;font-size:14px;font-weight:600}
.dispatch-return summary:focus-visible{outline:2px solid var(--pine);outline-offset:2px}
.dispatch-return p{margin:4px 0 8px}
.dispatch h3,.garage-service h3{font:600 21px var(--serif)}
#dashboard:not([hidden]){display:flex;align-items:center;gap:10px;padding:9px 18px;background:#edf1e6;border-bottom:1px solid var(--rule)}
#dashboard>div{flex:1}#dashboard strong,#dashboard small{display:block;font-size:13px}#dashboard small{font-size:12px;color:var(--mute)}
#dashboard .secondary{min-height:34px;padding:5px 10px}.garage-nav:focus-visible{outline-offset:0}
@media(max-width:640px){.bar .garage-nav i{display:inline-flex}.garage-nav span{display:none}.bar .garage-nav svg{width:19px;height:19px}#dashboard:not([hidden]){padding:8px 10px}}
.paper-shop{min-width:0}
.paper-preview{display:block;width:100%;padding:8px 8px 0;text-align:left;background:#fcfaf1;border:1px solid #c9caba;border-radius:8px}
.postcard-print{--print:#184e55;--stock:#f4efdb;position:relative;isolation:isolate;display:flex;align-items:center;width:100%;min-width:0;min-height:108px;aspect-ratio:2.9;overflow:hidden;color:var(--stock);background:var(--print);border:1px solid #203c3a33;container-type:inline-size}
.print-passage{--print:#864734;--stock:#fff0cc}
.postcard-map{position:absolute;z-index:-1;right:0;top:0;width:51%;height:100%;color:var(--print);filter:saturate(.78)}
.postcard-lettering{align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;padding:12px 0 13px 14px;width:55%;background:var(--print);clip-path:polygon(0 0,100% 0,88% 100%,0 100%)}
.postcard-lettering small{font:550 12px/1 var(--sans);letter-spacing:.07em}
.postcard-lettering strong{font:600 clamp(19px,7cqw,34px)/.97 var(--serif);letter-spacing:-.035em}
.postcard-stamp{position:absolute;right:9px;top:9px;width:36px;height:42px;background:var(--stock);color:var(--print);border:2px dotted var(--print);outline:2px solid var(--stock);display:grid;place-items:center;transform:rotate(5deg)}
.postcard-stamp i{padding:4px;border:1px solid currentColor}.postcard-stamp svg{width:19px;height:19px}
.paper-shop-link{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;padding:2px 4px}
.paper-shop-link strong{font:600 17px var(--serif)}.paper-shop-link>span,.paper-other{font-size:13px;font-weight:600;color:var(--pine)}
.paper-preview:hover,.paper-preview:focus-visible{border-color:var(--pine)}
.paper-tabs{display:flex;border-bottom:1px solid var(--rule);gap:12px}
.paper-tabs button{min-height:42px;padding:2px 4px;border-bottom:3px solid transparent;color:var(--mute)}
.paper-tabs button[aria-pressed=true]{color:var(--ink);border-color:var(--pine);font-weight:650}
.paper-stock{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:10px;padding:7px 7px 11px;border:1px solid #cccbb8;border-radius:5px;background:#fcfaf1}
.paper-address,.paper-offer{margin:0 6px}.paper-address h3{font:600 22px var(--serif)}
.paper-address small,.paper-credit,.paper-credit a{color:#53645c;font-size:12px}
.paper-offer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.paper-offer>span{font-size:14px}.paper-offer button{min-height:42px}
.ink-paper{padding:16px 20px 12px;color:#234965;background:#f9f6e8;border:1px solid #c4bc9e;border-radius:3px;overflow-wrap:anywhere}
.ink-paper header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ink-paper header strong{font:600 16px var(--serif);color:#556451}
.ink-stamp{display:grid;place-items:center;width:36px;height:40px;color:#3c675a;background:#e1e7d7;border:2px dotted #617a63;transform:rotate(4deg)}
.ink-stamp svg{width:21px;height:21px}
.ink-paper #ink-preview,.ink-paper .ink-signer{margin:0;font:italic 500 24px/34px var(--serif);background:repeating-linear-gradient(transparent 0 33px,#c7d0c5 33px 34px)}
.ink-paper #ink-preview{margin-top:12px}.ink-paper .ink-signer{text-align:right;min-height:34px;font-size:18px}
.ink-paper footer{margin-top:12px;color:#546252;font-size:12px}
.ink-caption{margin:4px 0;padding:6px 10px;border-left:2px solid #99aa99;color:#234965;font:italic 17px/1.35 var(--serif);overflow-wrap:anywhere}
.ink-caption span{font-size:15px}.paper-stock>.paper-other{margin-left:6px}
@media(max-width:420px){
 #modal:has(.ink-paper){width:calc(100% - 20px);max-width:calc(100% - 20px);max-height:calc(100dvh - 20px);padding:16px}
 #modal:has(.ink-paper) #modal-title{font-size:24px}
 .ink-paper{padding:12px 15px}.ink-paper #ink-preview{margin-top:6px}
}
.paper-other{justify-self:start;padding:7px 1px;min-height:42px;text-align:left;text-decoration:underline;text-underline-offset:3px}
#modal-error.paper-receipt{color:var(--pine);font-weight:600}
@media(max-width:360px){.postcard-lettering{padding-left:8px}.paper-shop-link strong{font-size:15px}}
.place-icon.atelier,.arrival-icon.atelier{background:#f0e3e8;color:#7b4057}
#profile{overflow:hidden;padding:1px;background:#e0e4d5}
#profile>svg{width:100%;height:100%;display:block}
.tailor-mirror{position:relative;display:flex;align-items:center;gap:clamp(12px,4vw,28px);min-height:136px;margin:0;padding:12px 18px;background:#e9dfd1;border:1px solid #c8bda9;border-radius:4px;isolation:isolate}
.tailor-mirror::before{content:"";position:absolute;inset:6px;border:1px dashed #9c8979;pointer-events:none}
.tailor-mirror>svg{width:clamp(68px,21vw,100px);height:114px;flex:none;background:#f6f3e4;border:3px double #8f7768;border-radius:46% 46% 3px 3px}
.tailor-mirror figcaption{display:grid;gap:8px}
.tailor-mirror small{color:#674e46;font-size:13px}
.tailor-mirror strong{font:600 clamp(23px,5vw,32px)/1.02 var(--serif);letter-spacing:-.5px;color:#533c3b}
.cloth-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.cloth-swatch{display:flex;align-items:center;gap:8px;padding:7px;text-align:left;min-height:46px;border:1px solid var(--rule);border-radius:4px;font-size:13px;line-height:1.18}
.cloth-swatch[aria-pressed=true]{border-color:#73465a;box-shadow:inset 0 0 0 1px #73465a;background:#fbf0f3}
.weave{flex:none;width:23px;height:27px;transform:rotate(-4deg);border:1px solid #56463555;background:#efece2;box-shadow:1px 1px 0 #7c706540}
.weave-amber{background:repeating-linear-gradient(45deg,#e9a63d 0 4px,#f7c65e 4px 6px)}
.weave-lake{background:repeating-linear-gradient(0deg,#73bfcf 0 7px,#daede1 7px 9px)}
.weave-berry{background:repeating-linear-gradient(-45deg,#97445e 0 3px,#bd6478 3px 5px)}
.weave-selenga{background:repeating-linear-gradient(156deg,#344f74 0 5px,#bddad6 5px 7px,#426483 7px 10px,#91b4bc 10px 11px,#344f74 11px 16px)}
.weave-rowan{background-color:#f2d7a4;background-image:radial-gradient(circle at 5px 7px,#a83534 0 1.8px,transparent 2px),radial-gradient(circle at 9px 6px,#ba493c 0 1.8px,transparent 2px),radial-gradient(circle at 8px 10px,#903936 0 1.8px,transparent 2px),radial-gradient(ellipse 3.5px 1.8px at 12px 4px,#637453 85%,transparent);background-size:17px 15px}
.fabric-cut{width:82px;height:24px;max-width:100%;border:1px solid #6b67534a;box-shadow:1px 2px 0 #78695636;transform:rotate(-3deg)}
.cloth-swatch small{display:block;margin-top:3px;font-size:12px;color:#665348;font-variant-numeric:tabular-nums}
.atelier-price{margin:0;font-size:14px;color:#475148;line-height:1.4}
.rail-wallet{display:flex;align-items:baseline;justify-content:space-between;color:#4e5b50;font-size:14px}
.rail-wallet b{color:var(--ink);font-variant-numeric:tabular-nums}
.rail-garment{display:grid;align-items:center;grid-template-columns:64px minmax(0,1fr);gap:9px 13px;border:1px solid #d3c7b3;border-radius:6px;background:#faf7ee;padding:10px 12px}
.rail-garment h3{font:600 21px/1.08 var(--serif);color:#453a34}
.rail-garment p,.rail-garment small,.rail-empty{font-size:14px;line-height:1.35;color:#5c554a}
.rail-garment p{margin-top:4px}
.rail-sample{position:relative;height:61px;overflow:hidden;background:#eee4d2;border-radius:4px}
.rail-sample::before{content:"";position:absolute;inset:8px 0 auto;height:3px;background:#926747}
.rail-sample::after{content:"";position:absolute;top:6px;left:42%;width:6px;height:12px;border:2px solid #745d3f;border-left:0;border-radius:4px;transform:rotate(6deg)}
.rail-sample i{position:absolute;inset:16px 18% 4px;clip-path:polygon(25% 0,66% 0,100% 88%,56% 100%,43% 42%,32% 89%,0 77%);transform:rotate(-5deg)}
.rail-sample .weave-rowan{inset-inline:10%;clip-path:polygon(0 9%,77% 0,85% 12%,100% 31%,86% 35%,78% 23%,49% 97%)}
.rail-action{grid-column:1/-1;display:grid;gap:4px}
.rail-action button,.rail-tabs button{min-height:44px}
.rail-empty,.rail-receipt{margin:0;padding:10px 12px;background:#f5f1e6}
.rail-receipt{font-size:14px;border-left:3px solid #54715b;color:#2f4d40}
@media(max-width:420px){.rail-garment{grid-template-columns:51px minmax(0,1fr);gap:6px 9px;padding:9px}.rail-garment h3{font-size:19px}}
@media(max-width:420px){#modal:has(.tailor-mirror){padding:16px;max-height:94dvh}.tailor-mirror{padding:9px 12px;gap:10px;min-height:112px}.tailor-mirror>svg{height:96px;width:62px}.tailor-mirror figcaption{gap:5px}.tailor-mirror strong{font-size:22px}.cloth-swatch{padding:6px;gap:6px}.fabric-cut{height:18px}}
.weave-none{background:linear-gradient(135deg,transparent 47%,#929285 47% 52%,transparent 52%) #f8f7ef}
.meeting-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#nearby{border-bottom:1px solid var(--rule)}
.neighbor-row{display:flex;align-items:center;gap:10px;padding:9px 12px;min-width:0;background:#f1f4ed;border-radius:6px}
#nearby .neighbor-row{padding:10px 18px;border-radius:0}
.neighbor-row.incoming{background:#f5edd8;box-shadow:inset 3px 0 #b58136}
.neighbor-portrait{flex:none;width:34px;height:38px;display:block;border-radius:45% 45% 35% 35%;border:1px solid #a9bbaa;background:#dce7d5}
.neighbor-stack{display:flex;align-items:center;padding-right:2px}.neighbor-stack .neighbor-portrait+.neighbor-portrait{margin-left:-17px}
.neighbor-name{flex:1;min-width:0}.neighbor-name strong,.neighbor-name small{display:block;overflow-wrap:anywhere}
.neighbor-name strong{font:600 16px/1.15 var(--serif)}.neighbor-name small{color:#495d55;font-size:13px}
.neighbor-row .secondary{width:auto;min-height:42px;max-width:46%;font-size:13px;padding:7px 10px}
.meeting-check{flex:none;color:var(--pine);width:30px;height:30px;border:1px solid #abc4ad;border-radius:50%;display:grid;place-items:center}
.neighbor-row:focus-visible{outline:2px solid var(--pine);outline-offset:-2px}
.work-book{min-width:0;border:1px solid #b7b4a0;border-radius:3px 8px 8px 3px;overflow:hidden;background:#faf8ec}
.work-book-cover{padding:14px 18px 15px 23px;border-left:6px double #b6b398;background:#284d44;color:#fffbea}
.work-book-cover>strong{display:block;font:600 21px/1.2 var(--serif);overflow-wrap:anywhere}
.work-book-cover dl{display:flex;flex-wrap:wrap;gap:10px 30px;margin:11px 0 0}
.work-book-cover dt{color:#dae4d5;font-size:12px}
.work-book-cover dd{margin:1px 0 0;font:600 19px/1.25 var(--serif);font-variant-numeric:tabular-nums}
.work-book-sheet{padding:17px 18px 14px 23px;border-left:6px double #cfccba}
.work-book-sheet .work-date{margin:0 0 5px;color:#596451;font-size:13px}
.work-book-sheet h3{margin:0;font:600 23px/1.12 var(--serif);overflow-wrap:anywhere}
.work-book-sheet h3:focus-visible{outline:2px solid var(--pine);outline-offset:2px}
.work-role{margin:3px 0 9px;color:#53614f}
.work-book-sheet dl{margin:0}
.work-book-sheet dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;padding:5px 0;border-bottom:1px solid #d4d4c0}
.work-book-sheet dt{font-size:13px;color:#4d5d50}
.work-book-sheet dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}
.work-outcome,.work-service{margin:7px 0 0;color:#365546;font-size:13px}
.work-pages{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 14px 12px}
.work-pages button{min-height:44px}
.walk-passport{min-width:0;border:1px solid #ab9d86;border-radius:3px 9px 9px 3px;overflow:hidden;background:#fbf6e8}
.walk-passport header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;background:#70443e;color:#fff8dc;border-left:5px double #cfac84;padding:13px 16px}
.walk-passport header strong{font:600 23px/1.15 var(--serif)}
.walk-passport header span{font-size:13px;color:#f4debd}
.passport-tabs{display:grid;grid-template-columns:repeat(3,1fr);background:#efe8d7;border-bottom:1px solid #c9bea8}
.passport-tabs button{display:flex;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:44px;padding:4px 2px;color:#544b3f;border-bottom:3px solid transparent;font-size:14px}
.passport-tabs button[aria-pressed=true]{background:#fbf6e8;border-bottom-color:#854d40;color:#633b30;font-weight:650}
.passport-tabs button:focus-visible{outline-offset:-4px}
.passport-page{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:18px;padding:22px 18px}
.walk-imprint{--ink-stamp:#705849;box-sizing:border-box;width:110px;height:108px;border:2px dashed #b6ae9a;color:#786f5d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:50%;transform:rotate(-5deg)}
.imprint-square{--ink-stamp:#9a4939}
.imprint-museum{--ink-stamp:#325e74;border-radius:8px 8px 26% 26%;transform:rotate(3deg)}
.imprint-bookyard{--ink-stamp:#346449;border-radius:38% 38% 10px 10px;transform:rotate(-3deg)}
.walk-imprint.inked{color:var(--ink-stamp);border:4px double currentColor}
.walk-imprint small{font:600 13px/1.1 var(--serif)}
.walk-imprint b{font-size:11px;line-height:1.2;font-variant-numeric:tabular-nums}
.walk-imprint i,.walk-imprint i[data-icon] svg{width:32px;height:32px}
@media(prefers-reduced-motion:no-preference){.walk-imprint.fresh-imprint{animation:passport-ink .24s ease-out}}
@keyframes passport-ink{from{opacity:.45;scale:1.07}to{opacity:1;scale:1}}
.passport-address h3{margin:0;font:600 23px/1.12 var(--serif);overflow-wrap:anywhere}
.passport-address p,.passport-address small{display:block;margin:5px 0 0;color:#595a4c;font-size:13px}
.passport-address h3:focus-visible{outline:2px solid var(--pine);outline-offset:3px}
.walk-passport footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;padding:8px 16px;border-top:1px dashed #bfb49d;color:#625447;font:italic 15px var(--serif);overflow-wrap:anywhere}
.walk-passport time{font:12px var(--sans)}
.passport-note,.passport-funds{margin:0;color:var(--mute);font-size:14px}
.bag-passport{display:grid;place-items:center;height:42px;width:32px;border-radius:1px 4px 4px 1px;border-left:3px double #e3cda0;background:#70443e;color:#f4debd;transform:rotate(-6deg)}
.bag-passport i,.bag-passport svg{width:19px;height:19px}
@media(max-width:420px){
 #modal:has(.walk-passport){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:16px}
 .passport-page{gap:10px;padding:17px 10px}.passport-address h3{font-size:19px}
 .walk-imprint{width:93px;height:94px;gap:2px}.walk-imprint i,.walk-imprint i[data-icon] svg{width:26px;height:26px}
 .passport-tabs button{font-size:13px}
}
@media(max-width:420px){
 #modal:has(.work-book),#modal:has(.work-book-cover){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:16px}
 .work-book-cover,.work-book-sheet{padding-inline:12px}
}
.metallophone{min-width:0}
.echo-player{display:flex;align-items:center;gap:11px;padding:10px 12px;border-left:3px solid #a3793e;background:#f5efde}
.echo-player .town-portrait{width:40px;height:48px;flex:none}
.echo-player strong,.echo-player small{display:block}
.echo-player strong{font:600 20px/1.15 var(--serif)}
.echo-player small{color:#5b5c4c;font-size:13px}
.echo-feedback{margin:14px 0 8px}
.echo-status{font:600 18px/1.25 var(--serif)}
.echo-result h3{margin:14px 0 6px;font:600 23px/1.2 var(--serif)}
.echo-result p{margin:0;color:var(--mute)}
.metal-frame{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:5px;padding:10px 9px;border:2px solid #493d32;border-radius:10px;background:repeating-linear-gradient(2deg,#68543e 0 12px,#614e39 13px 14px);box-shadow:inset 0 0 0 3px #91765a}
.metal-bar{position:relative;display:grid;align-content:center;justify-items:center;height:calc(128px - var(--step)*9px);padding:0;color:#173b37;border:1px solid #44534a;border-radius:6px;background:linear-gradient(95deg,#b7d0bf,#e1e9d7 35%,#a8c0af);box-shadow:inset 0 1px 0 #ffffffae,0 3px 0 #34372b}
.metal-bar:nth-child(even){background:linear-gradient(95deg,#d7b67b,#f1dfad 35%,#c6ae7e)}
.metal-bar::before,.metal-bar::after{content:"";position:absolute;left:calc(50% - 2px);width:4px;height:4px;background:#4b5348;border-radius:50%;box-shadow:0 1px 0 #ffffffa1}
.metal-bar::before{top:10px}.metal-bar::after{bottom:10px}
.metal-bar strong{font:600 clamp(16px,4vw,23px)/1.2 var(--serif)}
.metal-bar small{font-size:11px;color:#405247}
.metal-bar.struck{outline:3px solid #f6cf6e;outline-offset:-4px;box-shadow:inset 0 0 0 4px #61532f}
.metal-help,.metal-author,.metal-sound-status{font-size:14px;color:var(--mute);line-height:1.4;margin:9px 0}
.metal-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:14px}
.metallophone h3{margin:0;font:600 20px/1.25 var(--serif)}
.metal-count{color:var(--mute);font-variant-numeric:tabular-nums;font-size:13px}
.metal-score{display:flex;align-items:center;gap:2px;height:50px;margin:6px 0 9px;padding:0 3px;border-inline:1px solid #c6caba;background:repeating-linear-gradient(0deg,transparent 0 7px,#d4d9ca 7px 8px) center/100% 33px no-repeat}
.metal-score span{flex:0 1 35px;text-align:center;background:var(--white);color:var(--pine);font:600 13px/1.35 var(--serif);transform:translateY(calc(7px - var(--step)*4px));border-radius:4px}
.metal-score .struck{background:var(--pine);color:white}
.metal-tools{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.metallophone button[data-music]{min-height:44px}
.metal-leave{margin-top:7px}
.metal-record{margin-top:16px;padding-top:12px;border-top:1px dashed #b6c1b0}
.metal-record [hidden],.metal-sound-status:empty{display:none}
@media(max-width:420px){
 #modal:has(.metallophone){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:15px}
 #modal:has(.metallophone) .modal-head{gap:6px;margin-bottom:11px}
 #modal:has(.metallophone) .modal-head h2{font-size:24px}
 #modal:has(.metallophone) #modal-error:empty{display:none}
 .metal-frame{gap:3px;padding:8px 4px}
 .metal-bar{height:calc(101px - var(--step)*7px)}
 .metal-tools button{padding:6px 4px}
}
.neighbor-tip-link{display:block;max-width:100%;min-height:44px;padding:4px 0;color:var(--pine);font-size:13px;text-align:left;text-decoration:underline;text-underline-offset:3px}
.tip-author{display:flex;align-items:center;gap:10px;margin:4px 0 12px;color:var(--pine)}
.tip-author strong{font:600 18px/1.2 var(--serif);overflow-wrap:anywhere}
.town-tip+[data-do=neighbors]{margin-top:12px}
.arrival:has(.place-tip-choice){flex-wrap:wrap}
.place-tip-choice{flex:1 0 100%;grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;border-top:1px dashed #afbcab;padding-top:9px}
.place-tip-choice>span{flex:1 1 145px;min-width:0}
.place-tip-choice strong,.place-tip-choice small{display:block}
.place-tip-choice small{color:#495d55;line-height:1.3}
.place-tip-choice .secondary{width:auto;min-height:44px}
.arrival:has(.vacancy-slip){flex-wrap:wrap}
.vacancy-slip,.vacancy-post{border:1px solid #b6c2bd;border-left:4px solid #446b72;background:#f0f5ef;color:#233f42}
.vacancy-slip{grid-column:1/-1;flex:1 0 100%;display:flex;flex-wrap:wrap;align-items:center;gap:5px 14px;padding:8px 12px}
.vacancy-slip>div{flex:1 1 120px;min-width:0}.vacancy-slip strong,.vacancy-slip small{display:block}
.vacancy-slip small,.vacancy-post p{color:#415952}
.vacancy-slip .secondary{min-height:44px;white-space:normal;text-align:left}
.vacancy-post{padding:13px 16px}.vacancy-post article{padding-top:8px;margin-top:7px;border-top:1px dashed #a9b9af}
.vacancy-post strong,.vacancy-post p{display:block;margin:0}.vacancy-post .loan-notice-link{margin:0}
#town-directory:not([hidden]){width:100%;display:flex;align-items:center;gap:9px;min-height:44px;padding:6px 18px;border-bottom:1px solid var(--rule);background:#eef2e9;text-align:left;color:#345547}
#town-directory strong{font-weight:650}
#town-directory small{margin-left:auto;color:#4c665a}
#town-directory>span{font:24px/1 var(--serif)}
.town-walker{cursor:pointer}
.town-walker .player-label{opacity:0;pointer-events:none}
.town-walker:hover .player-label,.town-walker:focus .player-label{opacity:1}
.town-walker.watched .player-label{opacity:1;fill:#663650;font-size:12px}
.town-count circle{fill:#f3dfae;stroke:#624e2c;stroke-width:1px}
.town-count text{fill:#45391f;font:700 9px var(--sans);pointer-events:none}
.town-person{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:8px 10px;padding:12px 0;border-top:1px solid var(--rule)}
.town-person:first-child{border-top:0}
.town-portrait{width:42px;height:47px;border-radius:45% 45% 32% 32%;background:#e5eada;flex:none}
.town-person h3{margin:0;font:600 21px/1.15 var(--serif)}
.town-name small,.town-visit span{color:#506257;font-size:13px}
.town-stop-line{grid-column:2/-1;display:flex;align-items:center;justify-content:space-between;gap:10px}
.town-visit>*{display:block}
.town-person button{grid-area:1/3;min-height:44px}
.town-person .town-stops-toggle{white-space:nowrap;flex:none;color:#305c50;font-weight:600;padding:0 5px}
.town-stops-toggle span{margin-left:2px;font-size:16px}
.town-stops{grid-column:2/-1;min-width:0;background:#f0f3e9;border:1px solid #c7d2c2;border-radius:5px;padding:10px 13px 6px}
.town-clockline{display:flex;justify-content:space-between;align-items:baseline;gap:8px;color:#42584d;font-size:13px}
.town-clockline b,.town-stop b{font-variant-numeric:tabular-nums}
.town-stops ol{list-style:none;margin:7px 0 0;padding:0}
.town-stops li{position:relative;padding-left:17px}
.town-stops li:not(:last-child)::before{content:"";position:absolute;top:17px;bottom:-17px;left:4px;width:2px;background:#849e8f}
.town-stops li::after{content:"";position:absolute;top:13px;left:0;width:7px;height:7px;border:2px solid #49715a;border-radius:50%;background:#f0f3e9;pointer-events:none}
.town-stops li:first-child::after{background:#49715a}
.town-person .town-stop{position:relative;width:100%;display:block;text-align:left;padding:7px 20px 9px 3px;border-radius:3px;color:#213c33}
.town-stop:hover,.town-stop:focus-visible{background:#e0e9da}
.town-stop strong,.town-stop b,.town-stop span span{display:block}
.town-stop strong{font:600 19px/1.2 var(--serif)}
.town-stop b,.town-stop span span{font-size:13px;line-height:1.45;font-weight:normal}
.town-stop b{margin-top:3px;color:#34594a}
.town-stop i{position:absolute;right:4px;top:50%;transform:translateY(-50%);font:20px/1 var(--sans);color:#456751}
.town-person .town-watch{width:100%;margin:3px 0 5px}
#town-trail path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.trail-edge{stroke:#fff9ee;stroke-width:5.5px}
.trail-ink{stroke:#754861;stroke-width:3px;stroke-dasharray:3 5}
.trail-ring{fill:#8e546323;stroke:#754861;stroke-width:2;stroke-dasharray:4 2}
.watching-walk #route-line,.watching-walk #target-parking,.watching-walk #exits{visibility:hidden}
#walk-observer{display:flex;align-items:center;gap:10px;padding:9px 15px;border-top:1px solid #c6b4ba;border-left:4px solid #84566b;background:#f3ebeb}
#walk-observer[hidden]{display:none}
#walk-observer .town-portrait{display:block;width:34px;height:38px;background:#e8dade}
.observer-caption{flex:1;min-width:0}
.observer-caption strong,.observer-caption span{display:block}
.observer-caption strong{font:600 20px/1.2 var(--serif);color:#59394b}
.observer-caption span{font-size:13px;color:#5b4c52}
#walk-observer button{min-height:44px;flex:none;padding:6px 10px}
@media(max-width:450px){#walk-observer{gap:7px;padding:7px}#walk-observer button{font-size:12px}}
.town-person blockquote{grid-column:2/-1;margin:0;padding:9px 11px;border-left:3px solid #9e7750;background:#f7f0df;font:italic 17px/1.4 var(--serif)}
.town-person .town-ask{grid-area:auto;grid-column:2/-1;justify-self:start}
.town-tip{grid-column:2/-1;min-width:0;border:1px solid #c7c9b6;border-radius:6px;background:#fbf9ef;overflow:hidden}
.town-tip-address{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:12px;padding:10px}
.town-tip-address strong,.town-tip-address span,.town-tip-address small{display:block;overflow-wrap:anywhere;hyphens:auto}
.town-tip-address strong{font:600 20px/1.1 var(--serif)}
.town-tip-address span{margin:4px 0;color:#4b5d53;font-size:13px;line-height:1.3}
.town-tip-address small{font-size:12px;color:#445c4b}
.town-tip-plan{position:relative;align-self:center;border:1px solid #c6cbbb;background:#e9eddf}
.town-tip-map{display:block;width:100%;aspect-ratio:1}
.town-tip-plan a{position:absolute;bottom:0;right:0;padding:0 3px;background:#fbf9eff0;color:#40574b;font:10px/1.4 var(--sans)}
.town-tip-actions{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,6fr);gap:6px;padding:7px 10px;border-top:1px dashed #c8c9b6}
.town-tip-actions button{grid-area:auto}
.town-tip-actions button[aria-pressed=true]{border-color:#ad965a;color:#614b1c;background:#f7eaca}
.town-person:focus-visible,.town-person blockquote:focus-visible{outline:2px solid #985637;outline-offset:1px}
@media(max-width:420px){
 #modal:has(.town-person,.tip-author){padding:16px;max-height:94dvh}
 .town-person{grid-template-columns:34px minmax(0,1fr) auto;gap:5px 7px}
 .town-portrait{width:32px;height:38px}
 .town-person button{padding:6px 9px;font-size:13px}
 .town-stop-line,.town-stops{grid-column:1/-1}
 .town-person blockquote,.town-person .town-ask,.town-tip{grid-column:1/-1}
 .town-tip-address{grid-template-columns:76px minmax(0,1fr);gap:9px}
}
.job-listing{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:left;padding:10px 2px;border-bottom:1px solid var(--rule)}
.job-listing:hover{background:#f2f4eb}.job-listing:last-child{border-bottom:0}
.job-listing strong,.job-listing small{display:block}.job-listing b{color:#265b48;white-space:nowrap;font-size:14px}
.kiosk-counter{display:grid;gap:5px;position:relative;padding:26px 16px 14px;border:1px solid #d4c9ad;border-radius:6px;overflow:hidden;background:#fcf5df;color:#354f49}
.kiosk-counter::before{content:"";position:absolute;inset:0 0 auto;height:12px;background:repeating-linear-gradient(90deg,#376b60 0 17px,#efe8c8 17px 34px);border-bottom:1px solid #9da591}
.kiosk-counter span{font-size:13px}.kiosk-counter strong{font:600 25px/1.1 var(--serif)}
#directory-filters{display:flex;flex-wrap:wrap;gap:3px;margin:0 18px 9px;border-bottom:1px solid var(--rule)}
#game-picker:not([hidden]){display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:0 18px 10px;color:var(--ink);font-weight:650}
.saved-tables-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:500;cursor:pointer}
.saved-tables-toggle input{width:18px;height:18px;margin:0;accent-color:var(--pine)}
#saved-tables-empty strong{display:block}
#directory-game{max-width:100%;min-height:44px;padding:4px 10px;border:1px solid var(--rule);border-radius:5px;background:var(--paper);color:var(--ink);font:inherit}
#tables-empty{margin:8px 18px 16px;color:var(--mute)}
#place-search-form{display:flex;align-items:center;gap:8px;margin:0 18px 6px;padding:0 0 0 11px;border:1px solid #b8c6b8;border-radius:7px;background:#fbfcf7;color:#466353}
#place-search-form:focus-within{border-color:#3a6552;box-shadow:0 0 0 1px #3a6552}
#place-search{flex:1;min-width:0;min-height:44px;padding:6px 3px;border:0;background:transparent;color:var(--ink);font-size:16px;outline:none}
#place-search::placeholder{color:#5e7065}
#place-search::-webkit-search-cancel-button{appearance:none}
#clear-place-search{flex:none;width:44px;height:44px;color:#385d4a;font-size:23px;line-height:1}
:is(#search-empty,#properties-empty,#budget-empty,#saved-tables-empty,#open-jobs-empty){margin:2px 18px 14px;padding:12px 14px;border-left:3px solid #a4b6a4;background:#f4f6ee}
:is(#search-empty,#properties-empty,#budget-empty,#saved-tables-empty,#open-jobs-empty) strong{font:600 18px var(--serif)}
:is(#search-empty,#properties-empty,#budget-empty,#saved-tables-empty,#open-jobs-empty) p{margin:3px 0;color:#56675c;font-size:14px}
:is(#search-empty,#properties-empty,#budget-empty,#saved-tables-empty,#open-jobs-empty) button{min-height:44px;padding:0;text-decoration:underline;text-underline-offset:3px;color:var(--pine)}
.places-heading{align-items:center;gap:10px}
.places-caption{display:flex;align-items:baseline;gap:2px 10px;flex-wrap:wrap}
#saved-filter,.save-place{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:44px;border:1px solid #c5cdbf;border-radius:8px;color:#425a4c;background:var(--white)}
#saved-filter{padding:0 10px;font-size:13px}
.save-place{width:44px}
#saved-filter[aria-pressed=true],.save-place[aria-pressed=true]{color:#694810;background:#fbefd0;border-color:#ba9b5d}
#saved-filter[aria-pressed=true] path,.save-place[aria-pressed=true] path{fill:#d3a948}
:is(#pins,#story-markers) .saved-pin{display:none;fill:#ecc465;stroke:#533e1a;stroke-width:1.4;stroke-linejoin:round;pointer-events:none}
:is(#pins,#story-markers) .is-saved .saved-pin{display:inline}
#saved-empty:not([hidden]){display:flex;align-items:flex-start;gap:12px;margin:0 12px 12px;padding:15px;border:1px dashed #bda879;border-radius:8px;background:#fcf7e9}
#saved-empty>i{color:#79571d}
#saved-empty strong{font:600 17px var(--serif)}
#saved-empty p{margin:3px 0;color:var(--mute);font-size:14px}
#saved-empty button{padding:0;min-height:44px;color:var(--pine);text-decoration:underline;text-underline-offset:3px}
@media(max-width:640px){
 .arrival .arrival-icon{display:none}
 .places-caption{flex-direction:column}
}
@media(max-width:420px){
 .arrival{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:6px 10px}
 .arrival .info{grid-area:1/1}
 .arrival .save-place{grid-area:1/2}
 .arrival .action,.arrival .secondary{grid-column:1/-1;min-height:44px}
 .arrival .range-advice{grid-column:1/-1}
}
#directory-filters button{flex:0 1 auto;padding:5px 12px;min-height:40px;color:var(--mute);font-size:14px;border-bottom:3px solid transparent}
#directory-filters button[aria-pressed=true]{color:var(--pine);font-weight:650;border-color:var(--pine)}
#directory-filters button:focus-visible{outline-offset:-3px}
#directory-reset{pointer-events:auto;min-height:36px;color:#f8faf0;background:#315b51;border:1px solid #254e43}
:is(#pins,#story-markers) .directory-muted:not(:focus){opacity:.38}
#pins .directory-muted:not(.directory-anchor):not(:focus) .pin-text{display:none}
#pins .directory-anchor.directory-muted:not(:focus){opacity:.76}
#pins .watched-stop.directory-muted:not(:focus){opacity:1}
#pins .watched-stop.directory-muted:not(:focus) .pin-text{display:block}
.watched-stop .pin-dot{stroke:#754861;stroke-width:3px}
#arrival .walk-guide-link{flex:none;min-height:44px;padding:5px 8px;background:transparent;color:#2e6053;text-decoration:underline;text-underline-offset:3px;font:600 13px var(--sans)}
.walk-origin small,.walk-guide-target small,.walk-guide-distance small{display:block;color:#536555;font:400 13px/1.35 var(--sans)}
.walk-origin h3{margin:3px 0 0;font:600 22px/1.15 var(--serif)}
.walk-origin h3,.walk-guide-target{min-width:0;overflow-wrap:anywhere}
.walk-guide-caption{margin:0;color:#455e51;font-size:14px}
.walk-guide-target{min-width:0;overflow-wrap:anywhere}
.walk-guide-tabs{display:flex;gap:4px;border-bottom:1px solid var(--rule)}
.walk-guide-tabs button{flex:1;min-height:44px;padding:3px 6px;color:#496259;border-bottom:3px solid transparent}
@media(max-width:480px){.walk-guide-tabs{flex-wrap:wrap}.walk-guide-tabs button{flex:1 1 28%}}
.walk-guide-tabs [aria-pressed=true]{border-color:var(--pine);color:var(--pine);font-weight:650}
.walk-guide-map{position:relative;overflow:hidden;border:1px solid #bdc9b8;border-radius:4px;background:#eee9dd}
.walk-guide-map svg{display:block;width:100%;aspect-ratio:2.5;height:auto}
.walk-guide-map a{position:absolute;bottom:0;right:0;padding:1px 5px;background:#fffff1ef;color:#375046;font-size:10px}
.walk-guide-routes{display:grid}
.walk-guide-route{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:48px;padding:7px 10px;text-align:left;border-left:3px solid transparent;border-bottom:1px solid #d5d9cd}
.walk-guide-route[aria-pressed=true]{background:#e8eee3;border-left-color:#38654f}
.walk-guide-target strong{font:600 17px/1.18 var(--serif)}
.walk-guide-distance{flex:none;text-align:right;color:#305347;font-weight:650;font-variant-numeric:tabular-nums}
#modal-body:has(.walk-origin)>.primary{min-height:44px}
#modal-body:has(.walk-origin) #modal-error:empty{display:none}
@media(max-width:520px){
 #modal:has(.walk-origin){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:14px}
 #modal:has(.walk-origin) .modal-head{margin-bottom:8px}
 #modal-body:has(.walk-origin){gap:8px}
 .walk-origin h3{font-size:19px}
}
@media(max-width:420px){
 #arrival .walk-guide-link{grid-column:1/-1;justify-self:start;padding-inline:0}
}
.directory-results{align-items:stretch;gap:5px 8px}
.directory-results .place{min-height:70px;align-items:flex-start;padding:10px;border:1px solid var(--rule);border-left:3px solid #bacdbb;background:#f8faf3}
.directory-results .place:hover,.directory-results .place[aria-pressed=true]{background:#eaf1e6;border-left-color:var(--pine)}
.directory-results .place-icon{margin-top:2px}
.directory-results .place-copy{min-width:0}.directory-results .place strong{font-size:15px}
.directory-results .place small{font-size:13px;line-height:1.35}
.directory-results .place .place-distance{margin-top:3px;font-size:12px;color:#4b645b}
.bulletin-results .place{align-items:center;gap:11px;padding:10px 12px;border:1px solid #cfc7ac;border-left:3px solid #93724c;background:#faf6e9}
.bulletin-results .place:hover,.bulletin-results .place[aria-pressed=true]{background:#f4efd9;border-left-color:#684b2e}
.bulletin-results .place-icon{align-self:stretch;flex:none;width:39px;height:auto;min-height:40px;margin:0;padding-right:8px;border-radius:0;border-right:1px dashed #b6aa88;background:transparent}
.bulletin-results .place strong{font:600 19px/1.15 var(--serif);color:#334b3e}
.bulletin-results .place small{margin-top:2px}
#bulletin-empty{margin:2px 18px 14px;padding:12px 14px;border:1px dashed #c2b791;border-radius:5px;background:#faf6e9}
#bulletin-empty strong{font:600 19px var(--serif)}
#bulletin-empty p{margin:4px 0;color:#526053;font-size:14px}
#bulletin-empty button{min-height:44px;padding:0;color:var(--pine);text-decoration:underline;text-underline-offset:3px}
.arrival:has(.bulletin-update){flex-wrap:wrap}
.bulletin-update{flex-basis:100%;grid-column:1/-1;font-size:13px;color:#695741}
.arrival:has(.address-notices){flex-wrap:wrap}
.address-notices{grid-column:1/-1;flex:1 0 100%;min-width:0;margin:0;padding:0 12px;list-style:none;border-left:3px solid #9a7449;background:#f7f4e8}
.address-notices li{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 12px;padding:10px 0}
.address-notices li+li{border-top:1px dashed #c6bea5}
.address-notices li>div{flex:1 1 195px;min-width:0;overflow-wrap:anywhere}
.address-notices strong,.address-notices small{display:block}
.address-notices strong{font:600 18px/1.2 var(--serif);color:#344a3d}
.address-notices small{margin-top:2px;font-size:13px;color:#505f52}
.address-notices button{min-height:44px;max-width:100%;white-space:normal}
:is(#activity-budget,#vacancy-filter):not([hidden]){display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:44px;margin:0 12px 6px;padding:0 6px;color:var(--pine);cursor:pointer}
:is(#activity-budget,#vacancy-filter) input{width:18px;height:18px;margin:0;accent-color:var(--pine)}
#activity-budget small{color:#56675c;font-variant-numeric:tabular-nums}
:is(#budget-empty,#open-jobs-empty) button{display:block}
#shift-length{min-width:0;margin:0 18px 8px;padding:0;border:0}
#shift-length legend{padding:0 0 4px;font-size:14px;font-weight:650;color:#3b554a}
#shift-length>div{display:flex;gap:3px;max-width:330px;background:#e8ede2;border:1px solid #c3cfbb;border-radius:6px;padding:2px}
#shift-length label{position:relative;flex:1;cursor:pointer}
#shift-length input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
#shift-length span{display:grid;place-items:center;min-height:44px;border-radius:4px;color:#345344;font-variant-numeric:tabular-nums}
#shift-length input:checked+span{background:#345b4c;color:white;font-weight:650}
#shift-length input:focus-visible+span{outline:2px solid #ad6434;outline-offset:1px}
.job-results{grid-template-columns:1fr}
.job-results .place:not([hidden]){display:grid;grid-template-columns:auto minmax(0,1fr) clamp(88px,20%,128px);align-items:center}
.job-quote:not([hidden]){display:grid;align-content:center;align-self:stretch;justify-items:end;border-left:1px dashed #bac7b6;padding-left:10px;text-align:right}
.place .job-quote small{font-size:12px;color:#526358}
.job-quote b{font:600 20px/1.2 var(--serif);font-variant-numeric:tabular-nums;color:#235943}
.job-quote.limited b{font-size:17px;color:#81512e}
@media(max-width:480px){
 .job-results .place:not([hidden]){grid-template-columns:auto minmax(0,1fr);align-items:start}
 .job-results .job-quote:not([hidden]){grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:6px 0 0;border-left:0;border-top:1px dashed #bac7b6;text-align:start}
}

@media(max-width:640px){
 #shift-length{margin:0 10px 8px}
 #directory-filters{margin:0 10px 7px;gap:0}
 #place-search-form{margin:0 10px 5px}
 :is(#search-empty,#properties-empty,#budget-empty,#saved-tables-empty,#open-jobs-empty){margin:2px 10px 10px}
 #directory-filters button{flex:1;padding:4px 5px;min-height:44px}
 #directory-filters{flex-wrap:wrap}
 #bulletin-empty{margin-inline:10px}
 .directory-results{grid-template-columns:1fr;padding:0 9px 10px}
 .directory-results .place{min-height:62px;padding:7px 9px;gap:9px}
 .directory-results .place-icon{width:31px;height:31px}
}
@media(max-width:640px){#nearby .neighbor-row{padding:8px 10px}.neighbor-row{gap:7px}.neighbor-stack .neighbor-portrait:nth-child(3){display:none}}

/* Общие книжные полки */
.place-icon.bookyard{background:#e3ece2;color:#375f4f}
.chalk-seats{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--rule);padding-bottom:9px;color:#42554c;font-size:14px}
.chalk-seats>span{display:flex;align-items:center;gap:7px;min-width:0;overflow-wrap:anywhere}
.chalk-seats .chalk-token{width:15px;height:15px;flex:none;color:#266557}
.chalk-seats .chalk-token.o{border-color:#986827;border-width:3px}
.chalk-token{position:relative;display:block;width:54%;aspect-ratio:1;color:#f7f1db}
.chalk-token.x::before,.chalk-token.x::after{content:"";position:absolute;top:45%;left:-10%;width:120%;height:11%;border-radius:55% 32%;background:currentColor;transform:rotate(47deg)}
.chalk-token.x::after{transform:rotate(-44deg)}
.chalk-token.o{border:clamp(4px,.65vw,7px) solid #f4ca80;border-radius:48% 53% 45% 54%;transform:rotate(-9deg)}
.chalk-status{margin:0;font:600 21px/1.2 var(--serif);color:var(--pine)}
.chalk-frame{justify-self:center;padding:12px 13px 16px;width:min(100%,284px);background:#79583e;border:2px solid #604934;border-radius:7px;box-shadow:inset 0 -4px #99754e}
.chalk-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);aspect-ratio:1;padding:7px;background:radial-gradient(ellipse at 35% 20%,#3b5b4f,#234337);border-radius:2px;box-shadow:0 0 0 2px #4e422f}
.chalk-cell{display:grid;place-items:center;min-width:0;min-height:0;padding:12%;border-radius:0;border:0}
.chalk-cell:nth-child(3n+2){border-inline:2px solid #c3cebaaa}
.chalk-cell:nth-child(n+4):nth-child(-n+6){border-block:2px solid #c3cebaaa}
.chalk-cell:disabled{opacity:1}
.chalk-cell:enabled:hover,.chalk-cell:focus-visible{background:#eaf4d51a}
.chalk-cell:focus-visible{outline:3px solid #ffdc86;outline-offset:-4px}
.chalk-cell.winning{background:#ece49e30}
.chalk-preview .chalk-token{opacity:.7}
.chalk-preview{position:relative}
.chalk-preview::after{content:"";position:absolute;inset:6%;border:1px dashed #f2e2bb;border-radius:5px;pointer-events:none}
.chalk-coach{display:flex;gap:10px;align-items:center;padding:10px 12px;border-left:3px solid #507579;background:#eaf0e8}
.chalk-coach .town-portrait{width:34px;height:41px;background:#d9e5de}
.chalk-coach strong{font:600 19px/1.2 var(--serif)}
.chalk-coach p{margin-top:3px;color:#3f514a;font-size:13px}
@media(max-width:420px){
 #modal:has(.chalk-coach){width:96vw;padding:14px;max-height:94dvh}
 #modal-body:has(>.chalk-coach){gap:8px}
}
.chalk-replay{display:grid;gap:11px;min-width:0}
.chalk-replay .chalk-seats{margin:0}
.chalk-replay-heading,.chalk-paging{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.chalk-replay-heading strong{font:600 19px var(--serif)}
.chalk-replay-heading small,.chalk-caption span{color:#4c6054;font-size:13px}
.chalk-replay .chalk-frame{width:min(100%,233px,35vh)}
.chalk-replay .chalk-cell{position:relative}
.chalk-replay .last-mark::after{content:"";position:absolute;inset:4px;border:1.5px dashed #f5e59f;border-radius:3px}
.chalk-caption{padding:7px 11px;border-left:3px solid #997546;background:#f5efdf;line-height:1.4}
.chalk-caption strong,.chalk-caption span{display:block;overflow-wrap:anywhere}
.chalk-caption strong{color:#344f44;font:600 20px/1.2 var(--serif)}
.chalk-paging button{min-height:44px;flex:1}
.chalk-paging button[aria-disabled=true]{color:#646d65;background:#f3f3eb;cursor:default}
@media(max-width:420px){#modal:has(.chalk-replay){padding:16px;max-height:95dvh}.chalk-replay{gap:8px}}
.chalk-note{margin:0;color:var(--mute);font-size:13px;line-height:1.4}
.wallet{min-height:44px;padding:4px 8px;color:#fffae7;border-radius:7px;white-space:nowrap}
.wallet:hover,.wallet:focus-visible{background:#385751}
.cash-line{display:flex;align-items:baseline;justify-content:space-between;gap:10px;color:#486057}
.cash-line b{color:var(--ink);font-size:20px;font-variant-numeric:tabular-nums}
.savings-cover,.savings-page{position:relative;display:flex;min-width:0;overflow:hidden;border:1px solid #48736a;border-radius:3px 9px 9px 3px}
.savings-cover{color:#fff2d1;background:#345c53}
.savings-spine{width:16px;flex:none;background:repeating-linear-gradient(38deg,#214b42 0 3px,#2d554b 3px 5px);border-right:2px solid #9d946e}
.savings-cover-title,.savings-figures{min-width:0;padding:18px 16px}
.savings-cover h3,.savings-figures h3{margin:0;font:600 24px/1.15 var(--serif);overflow-wrap:anywhere}
.savings-cover p{margin:7px 0 0;color:#efe7cf;font-size:14px}
.savings-page{background:#f9f3df;border-color:#c6bea0}
.savings-figures{flex:1}
.savings-figures small,.savings-figures span{color:#526157;font-size:13px}
.savings-figures h3{margin:3px 0 13px;color:#294a41}
#savings-title:focus-visible{outline:2px solid #517661;outline-offset:3px;border-radius:2px}
.savings-figures p{margin:0;font-size:15px;color:#526157}
.savings-figures strong{color:#2c5044;font:600 29px var(--serif)}
.savings-figures progress{display:block;width:100%;height:9px;margin:7px 0;appearance:none;border:0;border-radius:3px;background:#dedac5;accent-color:#43705b}
.savings-figures progress::-webkit-progress-bar{background:#dedac5;border-radius:3px}
.savings-figures progress::-webkit-progress-value{background:#43705b;border-radius:3px}
.savings-figures progress::-moz-progress-bar{background:#43705b;border-radius:3px}
.savings-form{display:grid;gap:10px;min-width:0}
.savings-form input{width:100%;min-width:0;min-height:44px}
.savings-form button{min-height:44px}
#savings-deposit:has(input:disabled)>:is(label,button){display:none}
.wage-setting{margin:0;padding:0;border:0;min-width:0}
.wage-setting legend{padding:0;margin-bottom:5px;font-weight:600}
.wage-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;background:#e3e8dd;padding:3px;border-radius:7px}
.wage-choice{min-height:44px;border-radius:4px;background:transparent;color:#38564a;font-weight:650;font-variant-numeric:tabular-nums}
.wage-choice:hover{background:#f3f6ec}
.wage-choice[aria-pressed="true"]{background:#345c50;color:white}
.wage-choice:focus-visible{outline:2px solid #9d552f;outline-offset:1px}
.wage-setting small{display:block;margin-top:5px;font-size:13px;color:#475e54}
#deposit-limit{font-size:13px;color:var(--mute)}
@media(max-width:420px){
 #modal:has(.cash-line){padding:17px;max-height:94dvh}
 #savings-deposit:not(:has(input:disabled)){grid-template-columns:minmax(0,1fr) auto;gap:6px 8px}
 #savings-deposit label{grid-column:1;grid-row:1}
 #savings-deposit button{grid-column:2;grid-row:1;align-self:end}
 #deposit-limit{grid-column:1/-1}
 .savings-figures,.savings-cover-title{padding:14px}
 .savings-figures h3{font-size:22px}
 .bar #journal-tab i{display:inline-flex}
 .bar #journal-tab span{display:none}
 .bar #journal-tab{min-height:44px}
 .wallet{padding:3px 5px}
}
@media(max-width:360px){.bar .brand-icon{display:none}}
.place-icon.teahouse,.arrival-icon.teahouse{color:#725037;background:#f3e5c8}
.tea-display{display:grid;grid-template-columns:minmax(95px,.85fr) minmax(0,1.15fr);align-items:center;gap:12px;min-height:142px;padding:18px;border:1px solid #b8b9a1;border-radius:6px;background:linear-gradient(0deg,#ae8256 0 4%,#cba375 4% 25%,#d6dfc9 25% 100%);--brew:#c67a22}
.tea-display.currant{--brew:#723748}
.takeaway-display{background:linear-gradient(0deg,#c2a582 0 23%,#e4e5ce 23%);border-color:#c8c2a6}
.takeaway-cup{--sleeve:#a44e20;--berry:#f5ac3d;display:block;position:relative;justify-self:center;width:64px;aspect-ratio:3/4;transform:rotate(-5deg)}
.takeaway-cup.currant{--sleeve:#724258;--berry:#d5a1b4}
.takeaway-cup.cinnamon{--sleeve:#714632;--berry:#ddac72}
.takeaway-cup.cinnamon i{background:repeating-linear-gradient(54deg,transparent 0 5px,#d8ab733a 5px 7px),var(--sleeve)}
#modal-body label.kiosk-pack{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:.7rem;min-height:54px;margin:.7rem 0;padding:.5rem .65rem;background:#fff9ed;border:1px solid #c9bd9e;border-radius:.4rem;cursor:pointer}
.kiosk-pack .takeaway-cup{width:29px}
.kiosk-treat{margin:.8rem 0;padding:.85rem 1rem;border:1px solid #d5c9ad;border-radius:.5rem;background:#fbf5e8}
.kiosk-treat h3{display:flex;align-items:center;gap:.6rem;line-height:1.2}
.kiosk-treat .takeaway-cup{width:28px;flex:none}
.kiosk-treat p{margin:.4rem 0;overflow-wrap:anywhere}
.kiosk-treat button{max-width:100%;min-height:44px}
.kiosk-pack strong,.kiosk-pack small{display:block}
.kiosk-pack small{font-weight:400;color:#536055}
.kiosk-pack input{width:1.15rem;height:1.15rem;margin:0;padding:0;accent-color:#345d47}
#modal-body label.kiosk-pack:has(:checked){border-color:#38684e;background:#f0f3e7}
.takeaway-cup::before{content:"";position:absolute;inset:11% 5% 0;background:linear-gradient(90deg,#dfd2ad,#fff5dd 32%,#efe4c9 72%,#d5c9a8);clip-path:polygon(0 0,100% 0,85% 100%,15% 100%);border-radius:0 0 29% 29% / 0 0 5% 5%}
.takeaway-cup::after{content:"";position:absolute;inset:1% 0 auto;height:15%;border-radius:18% 18% 8% 8% / 68% 68% 22% 22%;background:linear-gradient(#677368 0 22%,#414e43 23% 65%,#2f4035 66%)}
.takeaway-cup i{position:absolute;inset:34% 7% 16%;clip-path:polygon(0 0,100% 0,90% 100%,10% 100%);background:
 radial-gradient(circle at 43% 56%,var(--berry) 0 7%,transparent 8%),
 radial-gradient(circle at 56% 68%,var(--berry) 0 7%,transparent 8%),
 radial-gradient(ellipse at 59% 34%,#e3ddac 0 10%,transparent 11%),
 linear-gradient(117deg,transparent 49%,#e3ddac 50% 52%,transparent 53%) center/45% 65% no-repeat,var(--sleeve)}
.bag-art .takeaway-cup{width:32px}
#modal:has(.takeaway-display) .primary,#modal:has(.takeaway-display) .book-back{min-height:44px}
@media(max-width:420px){#modal:has(.takeaway-display){padding:16px;max-height:94dvh}.takeaway-display .takeaway-cup{width:49px}}
.tea-place{position:relative;width:min(100%,138px);aspect-ratio:1.28;justify-self:center}
.tea-saucer{position:absolute;bottom:7%;left:2%;width:92%;height:22%;border:2px solid #48756b;border-bottom:5px solid #355b54;border-radius:50%;background:#9bb8a5;box-shadow:0 4px 2px #533c252f}
.tea-handle{position:absolute;right:1%;top:34%;width:28%;height:31%;border:6px solid #477569;border-radius:40% 55% 60% 45%;background:transparent}
.tea-bowl{position:absolute;top:25%;left:13%;width:66%;height:54%;border:1px solid #3f665d;border-bottom:4px solid #396457;border-radius:12% 12% 42% 42% / 13% 13% 78% 78%;background:linear-gradient(0deg,transparent 47%,#ede4b9 47% 54%,transparent 54%),linear-gradient(90deg,#759c8b,#a6c0a6 24%,#64917e 66%,#527766)}
.tea-bowl::before{content:"";position:absolute;top:-11%;left:-1%;width:102%;height:34%;border-radius:50%;border:3px solid #d3dcba;box-shadow:0 1px 1px #456455;background:radial-gradient(ellipse at 35% 35%,#ffdeac77 0 8%,transparent 15%),var(--brew)}
.tea-ticket{align-self:center;min-width:0;padding:12px 9px 12px 12px;background:#fbf3de;color:#3d4435;border-left:3px solid #966745;box-shadow:1px 3px 0 #5e5d4517}
.tea-ticket strong,.tea-ticket small{display:block;overflow-wrap:anywhere}
.tea-ticket strong{font:600 clamp(17px,3.5vw,23px)/1.15 var(--serif)}
.tea-ticket small{font-size:13px;line-height:1.35;margin-top:7px}
.tea-menu{display:flex;gap:6px}.tea-flavor{flex:1;min-height:44px;padding:7px 8px;border:1px solid var(--rule);border-radius:5px}
.tea-flavor[aria-pressed=true]{border-color:var(--pine);background:#edf1e4;box-shadow:inset 0 0 0 1px var(--pine)}
.tea-note{margin:0;font-size:14px;color:var(--mute)}
.tea-receipt{justify-self:start;min-height:44px;color:var(--pine);text-decoration:underline;text-underline-offset:3px}
.tea-tabs{gap:clamp(3px,1.5vw,12px)}
#modal-body:has(>.tea-tabs){grid-template-columns:minmax(0,1fr)}
.tea-tabs button{flex:1;min-width:0;min-height:44px;line-height:1.22}
.tea-card-ready::after{content:"";display:inline-block;vertical-align:super;margin-left:2px;width:6px;height:6px;border-radius:50%;background:#98531e}
.tea-stamp-card{color:#294e53;background:#f8f3de;border:1px solid #a6aea0;border-left:5px solid #547b76;border-radius:4px;padding:15px 17px}
.tea-stamp-card h3{margin:0;font:600 clamp(21px,4vw,28px)/1.13 var(--serif)}
.tea-stamp-card p{margin:6px 0 0;font-size:14px;line-height:1.4}
.tea-stamp-card strong,.tea-stamp-card small{display:block}
.tea-stamps{display:flex;gap:clamp(9px,3vw,18px);margin:11px 0;padding:10px 0;border-block:1px dashed #a7ae98}
.tea-stamp{display:grid;place-items:center;position:relative;width:41px;height:41px;border:2px dashed #9d9e89;border-radius:50%}
.tea-stamp.inked{border:3px double #375f62;transform:rotate(-8deg)}
.tea-stamp.inked:nth-child(2){transform:rotate(9deg)}
.tea-stamp.inked::before{content:"";width:14px;height:9px;border:2px solid #375f62;border-radius:1px 2px 7px 7px;transform:translateX(-1px)}
.tea-stamp.inked::after{content:"";position:absolute;width:4px;height:5px;border:2px solid #375f62;border-left:0;border-radius:0 6px 6px 0;left:25px;top:12px}
.tea-card-receipt{padding:5px 0 5px 10px;border-left:2px solid #8a9e8b;font-size:13px;color:var(--mute)}
.tea-card-receipt strong{display:block;color:var(--ink);font:600 18px/1.3 var(--serif)}
.tea-card-receipt:focus-visible,#tea-card-title:focus-visible{outline:2px solid #547b76;outline-offset:2px}
@media(max-width:420px){
 #modal:has(.tea-tabs){padding:16px;max-height:94dvh}
 .tea-menu .tea-flavor{min-width:0;padding-inline:4px;font-size:14px;line-height:1.25}
}
#tea-note-form{display:grid;gap:12px}
#tea-note-form>button{min-height:44px}
.tea-napkin{position:relative;min-width:0;padding:15px 18px 15px 25px;overflow-wrap:anywhere;border:1px solid #c8c1b2;border-radius:2px;color:#344b43;background:linear-gradient(to right,transparent 8px,#995553 8px 10px,transparent 10px 12px,#b17b73 12px 13px,transparent 13px),repeating-linear-gradient(0deg,#fff4 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,#fff3 0 1px,transparent 1px 4px),#f4f0e4}
.tea-napkin:after{content:"";position:absolute;right:-1px;top:-1px;width:16px;height:16px;background:linear-gradient(45deg,#dad5c7 48%,#fffdf7 52%);clip-path:polygon(0 0,100% 0,100% 100%);pointer-events:none}
.napkin-to{display:block;padding-right:8px;font-size:13px;color:#536356}
.tea-napkin p{margin:12px 0;font:italic 600 clamp(19px,4vw,25px)/1.25 var(--serif)}
.napkin-signature{display:block;text-align:right;color:#604c43;font:italic 16px/1.35 var(--serif)}
.napkin-choices{margin:9px 0;padding:0;border:0;min-width:0}
.napkin-choices legend{font-weight:600;margin-bottom:4px;padding:0}
#modal-body .napkin-choices label{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 6px;border-top:1px solid #d0cec1;font:italic 17px/1.3 var(--serif);cursor:pointer}
.napkin-choices label:has(:checked){background:#e4ebe1;color:#284e40}
.napkin-choices input{flex:none;margin:0;width:16px;height:16px;padding:0;accent-color:#385e4d}
.napkin-choices label:has(:focus-visible),.tea-napkin:focus-visible{outline:2px solid #935537;outline-offset:1px}
@media(max-width:420px){
 #modal:has(.tea-napkin){padding:16px;max-height:94dvh}
 .tea-display{padding:9px;gap:5px;min-height:118px;grid-template-columns:minmax(56px,.54fr) minmax(0,1.46fr)}
 .tea-ticket{padding:11px 6px 11px 8px}
}
.chalk-opponents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.chalk-opponents button{min-height:44px;line-height:1.25;padding:7px 9px}
#pins .invite-pin{display:none;pointer-events:none}
#pins .has-invitation .invite-pin{display:inline}
#board-invitation:not([hidden]){display:flex;align-items:center;gap:12px;padding:10px 18px;background:#f8f2df;border-bottom:1px solid #dcd3b7}
#walk-offers{background:#e9efe5;max-height:32vh;max-height:32dvh;overflow:auto}
.place-icon.post-office,.arrival-icon.post-office{background:#dbe7e9;color:#375b70}
.post-envelope{position:relative;border:1px solid #b3b6aa;padding:17px 18px 14px;border-radius:3px;background:#fffdf1;color:#2e4855;overflow-wrap:anywhere}
.post-envelope::before{content:"";position:absolute;inset:0 0 auto;height:5px;background:repeating-linear-gradient(-50deg,#688393 0 9px,#fffdf1 9px 16px,#b06e5e 16px 25px,#fffdf1 25px 32px)}
.post-envelope header{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:60px}
.post-envelope h3{margin:0;font:600 clamp(19px,5vw,26px)/1.16 var(--serif)}
.postmark{position:relative;flex:0 0 88px;height:59px}
.post-perforation{display:grid;place-items:center;position:absolute;right:1px;top:0;width:39px;height:45px;border:2px dashed #f4f1dd;outline:1px solid #a2aaa0;outline-offset:-1px;background:#537984;color:#fbf6df}
.post-perforation i,.post-perforation svg{display:block;width:24px;height:24px}
.postmark>span{position:absolute;left:1px;bottom:0;display:grid;align-content:center;justify-items:center;width:53px;height:53px;transform:rotate(-12deg);border-radius:50%;border:3px double #63675a;color:#50584d;background:#fffdf155;font:600 9px/1.4 var(--sans)}
.postmark b{font-size:8px;border-top:1px solid}
.post-form label{display:grid;gap:4px;margin:8px 0;color:#385563;font-size:13px}
.post-form select{width:100%;min-width:0;min-height:44px;padding:5px 9px;background:#fbfcf7;color:#203e40;border:1px solid #a7b6b4;border-radius:3px;font-size:15px}
.post-envelope footer{display:flex;align-items:baseline;gap:9px;border-top:1px solid #bfcbc1;margin-top:14px;padding-top:9px;font-size:12px}
.post-envelope footer strong,.post-paper header strong{font:600 18px var(--serif)}
.post-paper header small,.post-paper header strong{display:block}
.post-paper p{font-size:15px;margin:17px 0 6px}
.meeting-reply{border-top:5px solid #477366;background-color:#f3f5e9}
.meeting-reply p{color:#365e52;font:italic 23px/1.2 var(--serif)}
.meeting-reply footer{display:flex;justify-content:space-between;align-items:baseline;gap:5px 12px;flex-wrap:wrap}
.meeting-reply footer strong{font-variant-numeric:tabular-nums}
.meeting-receipt{padding:8px 10px;border-left:3px solid #477366;color:#365e52;background:#edf3e8;font-size:14px}
.post-paper h3{margin:5px 0}
.post-envelope small,.post-message,.post-help{color:#4e625f;font-size:13px}
.post-message,.post-help{margin:0}
.postal-desk{display:flex;align-items:center;gap:14px;padding:14px 12px;border:1px solid #a6b7b4;border-radius:4px;background:#f4f1e5;color:#2e4855}
.postal-desk strong,.postal-desk small{display:block}
.postal-desk strong{font:600 21px/1.1 var(--serif)}
.postal-desk small{margin-top:5px;line-height:1.4}
.mail-rack{display:flex;align-items:stretch;gap:3px;flex:0 0 66px;height:48px;padding:4px;background:#587482;border:2px solid #39525c;border-bottom-width:5px;border-radius:3px;box-sizing:border-box}
.mail-rack i{flex:1;position:relative;overflow:hidden;background:#293f48;box-shadow:inset 0 2px 2px #20343d}
.mail-rack i::before{content:"";position:absolute;left:2px;top:7px;width:15px;height:32px;background:linear-gradient(148deg,transparent 34%,#b9afa0 35% 38%,transparent 39%),#f8edcc;transform:rotate(-8deg);box-shadow:2px 2px #c0ac89}
.mail-rack i:nth-child(2)::before{top:15px;background-color:#f0c9ae;transform:rotate(8deg)}
.mail-rack i:nth-child(3)::before{top:11px;background-color:#d3dcd1}
.post-inbox{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 12px;background:#e7eeed;border-left:3px solid #52798a}
.post-inbox>div{display:flex;align-items:center;gap:7px}
.post-inbox i,.post-inbox svg{display:block;width:20px;height:20px}
.post-inbox .secondary{width:auto;min-height:44px}
.carrier-stop{display:flex;align-items:center;gap:11px;padding:6px 10px;background:#e9efeb;color:#284952;border-left:3px solid #477383}
.carrier-stop .town-portrait{height:39px;width:35px;background:transparent}
.carrier-stop strong,.carrier-stop small{display:block}
.carrier-stop strong{font:600 17px/1.2 var(--serif)}
.carrier-stop small{font-size:12px;line-height:1.45}
.postal-origin{display:inline-flex;align-items:center;flex-wrap:wrap;gap:3px 8px;margin-top:14px;padding:3px 8px;border:3px double #526b73;border-radius:2px;color:#385866}
.postal-origin small{color:inherit;font-size:11px}
.postal-origin strong{font:600 14px/1.25 var(--serif)}
.post-pages{display:flex;gap:8px}
.post-pages button{flex:1;min-height:44px}
@media(max-width:520px){
 dialog:has(.post-envelope){padding:15px}
 #modal:has(.postal-desk){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:15px}
 #modal-body:has(.postal-desk){grid-template-columns:minmax(0,1fr);gap:10px}
 #modal:has(.postal-desk) #modal-error:empty{display:none}
 .postal-desk{gap:10px}
 .postal-desk strong{font-size:19px;overflow-wrap:anywhere}
 #modal:has(.carrier-stop){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:13px}
 #modal:has(.carrier-stop) .modal-head{margin-bottom:8px}
 #modal:has(.carrier-stop) #modal-title{font-size:23px}
 #modal-body:has(.carrier-stop){gap:8px}
 #modal:has(.carrier-stop) #modal-error:empty{display:none}
 #modal:has(.carrier-stop) .primary{min-height:44px}
 .post-envelope{padding:13px 11px 11px}
 .post-inbox button{max-width:100%}
}
.place-icon.fountain,.arrival-icon.fountain{background:#d6e9e8;color:#2a646f}
.water-stage{margin:0;overflow:hidden;border-radius:7px;background:#243d4a;color:#f3f0dc}
.water-stage canvas{display:block;width:100%;height:auto}
.water-stage figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:8px 12px;padding:9px 13px;flex-wrap:wrap}
.water-caption{font:600 20px/1.15 var(--serif)}
.water-phase{font:13px/1.2 var(--sans);color:#d2dfdc}
.water-controls,.water-score{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.water-controls label{display:grid;gap:3px;color:#485d61;font-size:13px}
.water-controls select{width:100%;min-width:0;min-height:44px;padding:4px 5px;border:1px solid #abbfbc;background:var(--white);border-radius:4px;color:#2e4e59;font-weight:600}
.water-score{list-style:none;padding:0;margin:0;text-align:center}
.water-score li{padding:6px 2px;border-bottom:3px solid #b9c6c4;font-size:14px;color:#4a5e60}
.water-score [aria-current=step]{border-color:#236c80;color:#204d59;font-weight:700}
.water-by,.water-audio-status{margin:0;font-size:13px;color:#475d60}
.water-audio-status:empty{display:none}
.water-lights{min-width:0;margin:0;padding:0;border:0;color:#243e48}
.water-lights legend{margin-bottom:5px;padding:0;font-weight:650}
.water-lights>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px;border-radius:6px;background:#253e49}
.water-switch{display:grid;justify-items:center;gap:2px;min-height:56px;padding:5px 2px;border:1px solid #75878b;border-radius:3px;background:#344f59;color:#f4f7ed}
.water-switch i{display:block;width:24px;height:4px;border-radius:3px;background:#84999d}
.water-switch[data-lit=true] i{background:var(--lamp);box-shadow:0 0 6px var(--lamp)}
.water-switch[aria-pressed=true]{border-color:var(--lamp);box-shadow:inset 0 -2px var(--lamp)}
.water-switch strong{font:600 14px/1.2 var(--sans)}.water-switch small{font-size:12px;color:#e7eeeb}
.water-switch:focus-visible{outline:2px solid #fff;outline-offset:-4px}
.water-lights p{margin:5px 0 0;font-size:13px;line-height:1.3;color:#475d60}
@media(max-width:520px){
 dialog:has(.water-stage){padding:15px;max-height:calc(100dvh - 16px)}
 dialog:has(.water-stage) .modal-head h2{min-width:0;font-size:clamp(20px,5.8vw,26px)}
 .water-controls{gap:5px}
 .water-stage figcaption{padding:8px 10px}
 .water-caption{font-size:17px}
}
dialog:has(.map-table){width:min(640px,94vw)}
dialog:has(.map-table) .modal-head h2{min-width:0;overflow-wrap:anywhere}
.map-table [hidden]{display:none!important}
.map-table{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:14px 22px;align-items:start}
.map-sheet-title{grid-column:1/-1;border-top:2px solid #384f60;padding-top:8px;display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.map-sheet-title h3{order:-1;margin:0;font:600 clamp(19px,3.8vw,27px)/1.15 var(--serif);color:#253e4c}
.map-sheet-title time{color:#52656d;font-size:13px;white-space:nowrap}
.map-tray{padding:9px;background:#384e60;border:1px solid #253a48;border-radius:5px;box-shadow:inset 0 0 0 3px #526777}
.map-slide-grid{position:relative;width:100%;aspect-ratio:1;background:repeating-linear-gradient(135deg,#293c48 0 3px,#2e4350 3px 5px)}
.map-piece,.map-whole{position:absolute;inset:0 auto auto 0;overflow:hidden}
.map-piece{width:33.333333%;height:33.333333%;padding:0;appearance:none;border:1px solid #354c5a;border-radius:3px;background:#e7eddc}
.map-sliding .map-piece{transition:transform .15s ease-out}
.map-piece:disabled{opacity:1}
.map-piece svg,.map-template svg,.map-whole svg{display:block;width:100%;height:100%}
.map-piece b{position:absolute;bottom:4px;left:4px;padding:0 4px;border:1px solid #b3bda8;border-radius:2px;background:#f8faeb;color:#3e534c;font:600 16px/1.2 var(--serif)}
.map-piece:enabled b{color:#fffdf0;background:#23465b;border-color:#23465b}
.map-piece:enabled:hover{border-color:#805117}
.map-piece:focus-visible{z-index:1;outline:3px solid #b85917;outline-offset:-4px}
.map-whole{inset:0}
.map-table-notes{display:grid;gap:10px;font-size:14px}
.map-table-notes p{margin:0}
.map-slide-count{color:#2e4f61;font-weight:700;font-variant-numeric:tabular-nums}
.map-table-notes small{color:#5a6a66;font-size:11px}
.map-template summary{cursor:pointer;min-height:44px;align-content:center;text-decoration:underline;text-underline-offset:3px;-webkit-tap-highlight-color:#52677726}
.map-template summary:focus-visible{outline:3px solid #b85917;outline-offset:1px}
.map-template svg{width:min(100%,150px);height:auto;border:1px solid #8e9d94}
.map-table-notes button{min-height:44px;justify-self:start}
@media(max-width:520px){
 dialog:has(.map-table) .modal-head h2{font-size:clamp(20px,5.8vw,26px)}
 dialog:has(.map-table){padding:15px}
 .map-table{grid-template-columns:minmax(0,1fr);gap:9px}
 .map-tray{width:min(100%,30vh,300px);width:min(100%,34dvh,300px);min-width:min(100%,168px);justify-self:center}
 .map-table-notes{grid-template-columns:1fr auto;gap:4px 9px}
 .map-slide-count,.map-slide-help,.map-table-notes small{grid-column:1/-1}
 .map-table-notes button{align-self:start}
}
@media(prefers-reduced-motion:reduce){.map-sliding .map-piece{transition:none}}
.walk-offer{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 18px;border-bottom:1px solid #c2cfc0}
.walk-pair-face{display:grid;place-items:center;width:42px;height:46px;background:#f8f9ee;border:1px solid #bac7b8;border-radius:24px 24px 8px 8px}
.walk-pair-face svg{width:30px;height:39px}
.walk-offer small,.walk-offer strong,.walk-offer div>span{display:block;overflow-wrap:anywhere}
.walk-offer small,.walk-offer div>span{font-size:12px;color:#455d50}
.walk-offer strong{font:600 19px/1.2 var(--serif);margin:2px 0}
.walk-offer button{min-height:44px}
.arrival:has([data-do=offer_walk]){flex-wrap:wrap}
@media(max-width:640px){
 .walk-offer{grid-template-columns:31px minmax(0,1fr) auto;gap:8px;padding:8px 10px}
 .walk-pair-face{width:31px;height:40px}.walk-pair-face svg{width:24px;height:32px}
 .walk-offer strong{font-size:16px}.walk-offer button{padding:6px 9px}
}
.invite-slate{width:42px;height:36px;flex:none;display:flex;align-items:center;justify-content:center;gap:4px;border:3px solid #856244;border-radius:3px;background:#345547;transform:rotate(-3deg)}
.invite-slate .chalk-token{width:12px;height:12px}
.invite-slate .chalk-token.o{border-width:2px}
.invite-text{flex:1;min-width:0;overflow-wrap:anywhere}
.invite-text strong,.invite-text small{display:block}
.invite-text strong{font:600 18px/1.16 var(--serif);color:#354d41}
.invite-text small{font-size:13px;margin-top:3px;color:#526054}
#board-invitation button{min-height:44px;flex:none;border-color:#b9b399;background:#fffdf5}
@media(max-width:640px){
 #board-invitation:not([hidden]){padding:8px 10px;gap:8px}
 .invite-slate{width:34px;height:31px;gap:2px}
 .invite-slate .chalk-token{width:10px;height:10px}
 .invite-text strong{font-size:16px}
 #board-invitation button{padding:6px 9px}
}
@media(max-height:640px){.chalk-frame{width:min(100%,220px)}}
.studio-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:18px}
.studio-mount{display:grid;place-items:center;padding:17px 12px;background:#3b514a;border-radius:5px}
.studio-print{display:block;width:100%;height:auto;background:#fff7e5;box-shadow:0 2px 6px #16272266}
.studio-controls{display:grid;align-content:center;gap:12px;min-width:0}
.studio-controls h3,.studio-controls legend{margin:0;color:#394b42;font:600 19px var(--serif);overflow-wrap:anywhere}
.studio-controls p{margin:0;color:var(--mute);font-size:14px}
.studio-controls fieldset{min-width:0;margin:0;padding:0;border:0}
.studio-choices{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.studio-choice{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:5px 9px;border:1px solid var(--rule);border-radius:5px;font-size:14px}
.studio-choice[aria-pressed=true]{border-color:var(--pine);box-shadow:inset 0 0 0 1px var(--pine);background:#e9f0e5}
.studio-swatch{width:17px;height:22px;border-radius:2px}
.studio-swatch.velvet{background:repeating-linear-gradient(90deg,#603542 0,#985e6a 4px,#603542 8px)}
.studio-swatch.map{background:repeating-linear-gradient(62deg,transparent 0 5px,#faf4dc 5px 8px),repeating-linear-gradient(-25deg,#a7bda7 0 6px,#f6f4df 6px 9px)}
.peer-print-button{flex:none;display:grid;justify-items:stretch;gap:2px;width:53px;min-height:52px;padding:3px 4px;border:1px solid #b9b19a;border-radius:3px;background:#fff8e8;color:#3f4c43;box-shadow:0 1px 2px #35473c25;font:600 11px/1.2 var(--sans)}
.peer-print-button:hover{border-color:#57755f}
.peer-print-face.studio-swatch{display:grid;place-items:end center;overflow:hidden;width:100%;height:31px;border-radius:1px}
.peer-print-face svg{width:32px;height:31px}
.studio-controls h3:focus-visible{outline:2px solid #a56839;outline-offset:3px}
.studio-controls .primary,.studio-controls .secondary{min-height:44px}
.pair-frame{display:flex;align-items:flex-end;justify-content:center;gap:8%;padding:24px 8% 18px;min-height:140px;box-sizing:border-box;overflow:hidden;border:7px solid #f2e9d7;border-bottom-width:18px;border-radius:3px;background:linear-gradient(146deg,transparent 45%,#f8ebcb 46% 48%,transparent 49%),repeating-linear-gradient(65deg,#bac6b1 0 20px,#ede4ca 21px 23px,#bac6b1 24px 42px);box-shadow:inset 0 0 0 1px #788e79,0 2px 5px #20372d30}
.pair-frame svg,.pair-empty{display:block;width:38%;max-width:72px;aspect-ratio:26/40}
.pair-empty{box-sizing:border-box;border:2px dashed #4b645a;border-radius:50% 50% 4px 4px;background:#fff8e59e}
.studio-prop{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:7px 9px;border:1px solid #bdc9bc;border-radius:5px;text-align:left;font-weight:600}
.studio-prop small{display:block;color:#4b5f53;font-weight:400}
.studio-prop i{flex:none;width:18px;height:18px;border:1px solid #708673;border-radius:4px;text-align:center}
.studio-prop[aria-pressed=true]{background:#eef2e6;border-color:#67846b}
.studio-prop[aria-pressed=true] i{background:#345c4b;color:#fff}
.studio-prop[aria-pressed=true] i::after{content:"✓";font:14px/16px var(--sans)}
.bag-flower-actions{display:grid;gap:4px}
.studio-download{text-decoration:none}.studio-download[hidden]{display:none}
@media(max-width:500px){
 .studio-layout{grid-template-columns:1fr;gap:12px}
 .studio-mount{padding:10px}
 .studio-print{width:min(100%,clamp(110px,25vh,210px))}
 .studio-controls{gap:8px}
}
.shelf-tabs{display:flex;gap:6px}
.shelf-tabs button{flex:1}
.shelf-tabs [aria-pressed=true]{color:#fffaf0;background:#365e50;border-color:#365e50}
.street-shelf{display:flex;align-items:flex-end;gap:clamp(8px,3%,14px);padding:20px 10px 0;background:#ede6d5;border:1px solid #d0c4ac;border-bottom:7px solid #946e49;border-radius:5px 5px 2px 2px}
.shelf-book{background:none;border:0;padding:0;flex:0 1 100px;min-width:0;color:inherit;cursor:pointer;text-align:left}
.book-cover{position:relative;display:flex;flex-direction:column;justify-content:space-between;isolation:isolate;overflow:hidden;aspect-ratio:3/4;width:100%;padding:13% 9% 12% 17%;background:var(--cloth);color:var(--foil);box-shadow:inset 4px 0 #0002,inset 6px 0 #fff2,2px 0 #d8ceb7;border-radius:2px 4px 2px 2px}
.book-cover b{font:600 clamp(14px,3.8vw,21px)/1.05 Georgia,serif;overflow-wrap:break-word}
.book-cover i{display:block;align-self:center;width:54%;aspect-ratio:1.4}
.cover-curtain{--cloth:#335a51;--foil:#fff1c8}
.cover-curtain i{border:2px solid currentColor;background:linear-gradient(90deg,transparent 46%,currentColor 46% 54%,transparent 54%),linear-gradient(0deg,transparent 46%,currentColor 46% 54%,transparent 54%)}
.cover-ticket{--cloth:#8e4937;--foil:#ffebc9}
.cover-ticket i{border:1.5px dashed currentColor;transform:rotate(-13deg);background:linear-gradient(90deg,transparent 68%,currentColor 68% 72%,transparent 72%)}
.cover-rain{--cloth:#344e6a;--foil:#f4e6c6}
.cover-rain i{border:3px double currentColor;border-radius:50%;transform:scaleY(.6);box-shadow:0 0 0 3px var(--cloth),0 0 0 4px currentColor}
.book-preview{display:grid;grid-template-columns:minmax(65px,90px) 1fr;align-items:center;gap:18px;padding:15px;background:#f4f0e6;border-radius:4px}
.book-preview .book-cover b{font-size:clamp(14px,3.8vw,16px)}
.book-preview p,.book-note,.shelf-empty{margin:0;font-size:14px;line-height:1.5;color:#44584d}
.book-back{justify-self:start;min-height:36px;padding:3px 2px;color:#335b4b;background:none;border:0;font-weight:650;cursor:pointer}
.book-page{padding:clamp(16px,4vw,26px);border:1px solid #d9cdb7;border-left:4px solid #bbab85;background:#fcf7e9;color:#312f26}
.book-page h3{margin:0 0 .65em;font:600 clamp(24px,6vw,32px)/1.12 Georgia,serif}
.book-page p{font:normal 17px/1.55 Georgia,serif;margin:0}
.book-page p+p{text-indent:1.1em;margin-top:.45em}
.ink-pine{--seal-ink:#245348}.ink-indigo{--seal-ink:#354a76}.ink-clay{--seal-ink:#914534}
.seal-proof{display:grid;place-items:center;min-height:166px;padding:15px;background-color:#eeece0;background-image:repeating-linear-gradient(0deg,transparent 0 23px,#d5d7c9 23px 24px);border:1px solid #d0cbb9}
.reader-seal{--seal-paper:#faf7e9;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;max-width:100%;min-width:122px;padding:4px 14px 9px;border:4px double currentColor;border-radius:46% 46% 6px 6px;color:var(--seal-ink);background:var(--seal-paper);transform:rotate(-3deg)}
.reader-seal svg{display:block;width:80px;height:64px}
.reader-seal .cut{fill:none;stroke:var(--seal-paper);stroke-width:1.8;stroke-linecap:round}
.reader-seal .cut.fill{fill:var(--seal-paper);stroke:none}
.reader-seal b{max-width:100%;padding-top:2px;border-top:1px solid currentColor;font:600 19px/1.18 var(--serif);overflow-wrap:anywhere;text-align:center}
.reader-card li:has(.small-seal){display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:9px;align-items:center}
.reader-card .small-seal{grid-row:1/3;min-width:0;width:42px;padding:1px 0 0;border-width:2px;border-style:solid;--seal-paper:#edf2e8}
.reader-card .small-seal svg{width:36px;height:32px}
.reader-card li:has(.small-seal) .reader-stamp{justify-self:start}
#seal-form{display:grid;gap:12px}
#seal-form .seal-options span{font-size:14px;padding:3px 2px}
.seal-options i{background:var(--seal-ink);width:10px;height:10px;border-radius:50%}
#seal-form button{min-height:44px}
.seal-help{margin:0;color:#45584e;font-size:14px}
@media(max-width:420px){
 #modal:has(.seal-proof){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:14px}
 #modal:has(.seal-proof) .modal-head{margin-bottom:10px}
 #modal-body:has(.seal-proof){gap:8px}
 #modal-body:has(.seal-proof) #modal-error:empty{display:none}
 .seal-proof{min-height:140px;padding:12px}
 #seal-form{gap:8px}
 #seal-form .seal-options span{font-size:13px}
}
.reader-card{position:relative;min-width:0;padding:13px 14px 13px 23px;border:1px solid #becbbc;border-radius:3px;background:linear-gradient(to right,transparent 12px,#c0cec0 12px 13px,transparent 13px),#edf2e8;color:#2a443d}
.reader-card h3{margin:0 0 7px;font:600 21px/1.2 var(--serif)}
.reader-card ol{margin:0;padding:0;list-style:none}
.library-desk{display:flex;align-items:center;gap:16px;padding:14px 16px;color:#344b41;background:#ece9d8;border:1px solid #c6c5ad;border-bottom:4px solid #927252;border-radius:3px}
.library-desk>i{flex:none;width:41px;height:42px;border-bottom:3px solid #725d46;background:linear-gradient(86deg,transparent 9%,#536e63 10% 22%,#eadab4 23% 25%,#915d4e 26% 40%,transparent 41%) left bottom/70% 90% no-repeat,linear-gradient(74deg,transparent 32%,#ad824d 33% 55%,#f1dfb0 56% 58%,#666e53 59% 76%,transparent 77%) right bottom/59% 100% no-repeat}
.library-desk strong,.library-desk small,.renewal-slip strong,.renewal-slip span{display:block}
.library-desk strong{font:600 22px var(--serif)}
.library-desk small{margin-top:3px;font-size:14px}
.renewal-slip{display:grid;gap:7px;padding:12px 14px;background:#f5efdc;border:1px solid #ccc0a4;border-left:4px solid #927a55;border-radius:3px}
.renewal-slip>div{display:flex;align-items:baseline;gap:4px 12px;flex-wrap:wrap;padding-bottom:5px;border-bottom:1px dashed #b8a989}
.renewal-slip strong{font:600 19px/1.25 var(--serif);color:#4f4a36}
.renewal-slip span,.renewal-slip p{font-size:14px;line-height:1.4;color:#514e3d}
.renewal-slip button{justify-self:start;min-height:44px}
.renewal-slip strong:focus-visible{outline:2px solid #826b48;outline-offset:2px}
.reader-card li,.card-blank{border-top:1px solid #bdcbbd;padding:8px 0 4px}
.reader-card li+li{margin-top:5px}
.reader-stamp{display:inline-block;border:1px solid currentColor;padding:2px 7px;border-radius:3px;color:#285b47;font:600 15px/1.3 var(--serif)}
.reader-stamp.stamp-moved{color:#38556f}
.reader-stamp.stamp-again{color:#834536}
.reader-byline{margin-top:4px;display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:13px;color:#46594e}
.reader-byline span,#reader-signature-hint{overflow-wrap:anywhere}
.reader-byline time{flex:none;font-variant-numeric:tabular-nums}
.card-blank{margin:0;color:#52665a;font-size:14px}
#book-impression{padding:0;border:0;margin:12px 0 0;min-width:0}
#book-impression legend{padding:0 0 5px;font-size:14px;font-weight:650}
.reader-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#modal-body .reader-options label{display:grid;position:relative;place-items:center;gap:0;min-height:44px;border:1px solid #a9b9ab;border-radius:3px;background:#f9fbf5;color:#344d42;font-size:14px;cursor:pointer}
.reader-options input{position:absolute;width:1px;height:1px;padding:0;opacity:0}
#modal-body .reader-options label:has(:checked){background:#385c4d;color:white;border-color:#385c4d;box-shadow:inset 0 -3px #203e34}
.reader-options label:has(:focus-visible){outline:2px solid #98512c;outline-offset:1px}
#reader-signature-hint{display:block;margin-top:5px;color:#455b4e;font-size:13px}
.shelf-empty{padding:22px 14px;background:#f3eddf;border-bottom:4px solid #a3815f}
.loan-list h3{margin:2px 0 5px;font:600 19px/1.2 var(--serif)}
.loan-list-book{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:48px;padding:7px 6px;text-align:left;border-top:1px solid var(--rule)}
.loan-list-book:hover{background:#eff2e8}
.loan-list-book strong,.loan-list-book small{display:block}
.loan-list-book strong{font:600 17px/1.2 var(--serif)}
.loan-list-book small{margin-top:2px;font-size:13px;color:var(--mute)}
.loan-list-book>i:last-child{font:20px/1 var(--serif);color:#516c5e}
.loan-spine{height:34px;border-radius:2px;background:linear-gradient(to bottom,transparent 5px,var(--foil) 5px 7px,transparent 7px 26px,var(--foil) 26px 27px,transparent 27px),var(--cloth);box-shadow:inset 2px 0 #0002}
.loan-slip{position:relative;display:grid;gap:5px;padding:14px 17px;background:#f4f0e3;border:1px solid #c3bfac;border-radius:3px;color:#414c3f}
.loan-slip::before{content:"";position:absolute;top:-1px;right:14px;width:11px;height:21px;background:#948066;clip-path:polygon(0 0,100% 0,100% 100%,50% 76%,0 100%)}
.loan-slip.watching::before{background:#347060}
.loan-slip strong{padding-right:18px;font:600 19px/1.2 var(--serif)}
.loan-slip small{font-size:13px}
.loan-slip p{padding-top:8px;margin:3px 0;border-top:1px dashed #c4bfac;font-size:14px}
.loan-slip button{min-height:44px;justify-self:start;max-width:100%}
.loan-notice-link{display:block;min-height:44px;padding:4px 0;color:var(--pine);text-decoration:underline;text-underline-offset:3px;text-align:left}
@media(max-width:420px){
 #modal:has(.loan-slip,.loan-list){padding:16px;max-height:94dvh}
 #modal:has(.loan-slip) .book-preview{grid-template-columns:72px minmax(0,1fr);gap:12px;padding:12px}
 .loan-slip{padding:12px 13px}
}
.shelf-book:focus-visible,.book-back:focus-visible,.book-page:focus-visible,.book-preview:focus-visible{outline:2px solid #26604c;outline-offset:3px}
@media(hover:hover){.shelf-book:hover .book-cover{transform:translateY(-3px)}}
#profile-books{display:grid}
.district-tools{display:flex;align-items:center;gap:16px}
.district-tools .district-title{margin:0}
#open-bag{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:6px 12px;border:1px solid #b7c6b8;border-radius:7px;background:var(--white);color:#285446;font-weight:650}
#open-bag:hover{background:#edf2e7}
#bag-count{min-width:1.5em;border-radius:4px;background:#dce7da;font-size:12px;line-height:1.6}
.bag-section h3,.bag-empty h3{margin:0;font:600 21px/1.2 var(--serif)}
.bag-section ul{padding:0;margin:6px 0 0;list-style:none}
.bag-item{display:grid;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:5px 12px;padding:11px 0;border-top:1px solid var(--rule)}
.bag-item button,.bag-empty button{min-height:44px}
.bag-label strong,.bag-label small{display:block;overflow-wrap:anywhere}
.bag-label strong{font:600 18px/1.2 var(--serif)}
.bag-label small{color:#506256;font-size:13px;margin-top:3px}
.bag-art{display:grid;place-items:center;height:62px;overflow:hidden;background:#f0eddf;border-radius:5px}
.bag-cloth{width:100%;height:100%}
.bag-outfit{width:100%;height:100%;background:#dde9dd}
.bag-art .book-cover{width:33px;justify-content:center;padding:0;transform:rotate(-7deg)}
.bag-bouquet{display:block;width:100%;height:100%;object-fit:cover}
.bag-print{display:grid;place-items:center end;width:48px;height:34px;padding:4px;transform:rotate(-7deg);color:#17564f;border:2px solid #fdf8e8;background:linear-gradient(110deg,#245652 35%,#d8dfcb 36%);box-shadow:0 1px 3px #3e47373b}
.bag-print.design-passage{color:#86513b;background:linear-gradient(110deg,#8a503f 35%,#e5d2b7 36%)}
.bag-print i{border:1px dotted currentColor;padding:2px;background:#f8f2e1}
.bag-print i[data-icon] svg{width:15px;height:15px}
.bag-empty{display:flex;align-items:flex-start;gap:15px;padding:16px;background:#f4f2e7;border:1px solid #dedcca;border-radius:7px}
.bag-empty>i{padding:6px;color:#346653}
.bag-empty>i svg{width:32px;height:32px}
.bag-empty p{margin:6px 0 12px;color:#4d5e51;font-size:14px}
@media(max-width:640px){
 .district-tools{flex-direction:column-reverse;align-items:flex-end;gap:4px}
 #open-bag{min-height:44px;padding:5px 9px;font-size:14px}
}
@media(max-width:500px){
 #modal:has(.bag-section,.bag-empty){padding:16px;max-height:94dvh}
 .bag-item{grid-template-columns:55px minmax(0,1fr);column-gap:10px}
 .bag-art{grid-row:span 2;height:58px}
 .bag-item>button,.bag-flower-actions{grid-column:2;justify-self:start}
}

/* Лицевая сторона и адресное поле подарочной открытки */
.gift-letter{min-width:0;padding:7px;background:#fcfaf1;border:1px solid #c7c5b3;box-shadow:1px 3px 0 #263e3812}
.gift-address{display:grid;gap:10px;margin:0;padding:15px 9px 12px}
.gift-address>div{display:grid;grid-template-columns:55px minmax(0,1fr);align-items:baseline;column-gap:9px}
.gift-address dt{color:#526658;font-size:12px}
.gift-address dd{margin:0;padding:0 0 3px;border-bottom:1px solid #bdc2b2;color:#21483d;font:600 17px/1.3 var(--serif);overflow-wrap:anywhere}
.gift-heading{margin:2px 0;font-size:16px}
.gift-person{display:flex;align-items:center;gap:9px;padding:9px 0;border-top:1px solid var(--rule)}
.gift-person strong{flex:1;min-width:0;overflow-wrap:anywhere}
.gift-person button,.gift-answers button{min-height:44px}
.gift-answers{display:flex;flex-wrap:wrap;gap:8px}
.gift-answers button{flex:auto}
.paper-give{border-top:1px solid var(--rule);padding:10px 6px 0;text-align:left;color:var(--pine);font-weight:650;min-height:42px}
.gift-invitation{display:flex;align-items:center;gap:10px;width:100%;padding:12px 16px;text-align:left;background:#f7efda;color:#274d43;border-bottom:1px solid #d0c8af}
.gift-invitation i{width:26px;height:26px;flex:none}
.gift-invitation span{flex:1;min-width:0;overflow-wrap:anywhere}
.gift-invitation strong,.gift-invitation small{display:block}
.gift-invitation b{font-size:14px;text-decoration:underline;text-underline-offset:3px}
.gift-person small{max-width:40%;color:#526658;text-align:right}
@container(max-width:270px){.gift-letter .postcard-lettering{width:64%}}

/* Керамическое панно в Книжном дворике */
.glaze{position:relative;display:block;aspect-ratio:1;overflow:hidden;background:var(--clay);transform:rotate(var(--rotation,0deg));pointer-events:none}
.glaze-river{--clay:#214e70;background:radial-gradient(circle at 0 0,#213f59 0 23%,#c3e3dc 24% 35%,#377b88 36% 46%,#f3e7ca 47% 55%,#285f78 56% 72%,#afcfc3 73% 79%,#224c68 80%)}
.glaze-leaf{--clay:#d6ddbc}
.glaze-leaf i{position:absolute;inset:10% 18%;border-radius:95% 0 94% 0;background:linear-gradient(132deg,#255c4f 0 48%,#abc69b 49% 51%,#417758 52%)}
.glaze-sun{--clay:#edcb98;background:radial-gradient(circle at 0 100%,#b64f32 0 33%,transparent 34%),repeating-conic-gradient(from 0deg at 0 100%,#e5a44e 0deg 11deg,#f4dab0 11deg 22.5deg)}
.mosaic-entry{display:flex;align-items:center;text-align:left;gap:14px;padding:8px 12px;color:var(--pine);background:#edf2e8;border:1px solid #aabab0;border-radius:5px;font-weight:650}
.mosaic-sample{display:flex;gap:2px;flex:none;background:#f6efdd;padding:2px}
.mosaic-sample .glaze{width:23px}
.museum-ballot{background:#fcf8ed;border:1px solid #c8c2af;border-top:4px solid #516e62;border-radius:3px;padding:13px 15px 4px}
.vote-date{display:flex;align-items:baseline;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid #bdb59f}
.vote-date h3{font:600 23px/1.2 var(--serif)}
.vote-date small,.vote-count{font-size:13px;color:#495a4f;font-variant-numeric:tabular-nums}
.vote-options{display:grid;grid-template-columns:46px minmax(0,1fr) max-content;column-gap:12px}
.vote-row{display:grid;grid-column:1/-1;grid-template-columns:subgrid;align-items:center;width:100%;padding:10px 2px;text-align:left}
.vote-row+.vote-row{border-top:1px solid #d9d2bf}
.vote-row .glaze{width:100%;border:2px solid #f2e8d3;box-shadow:0 1px 2px #65553e66}
.vote-label{display:grid;gap:6px}
.vote-label strong{font:600 19px/1.15 var(--serif);color:#304b40}
.vote-track{height:4px;background:#e0decb;border-radius:2px;overflow:hidden}
.vote-track i{display:block;height:100%;background:#3c6775}
.vote-row:has(.glaze-leaf) .vote-track i{background:#557656}
.vote-row:has(.glaze-sun) .vote-track i{background:#a96738}
.vote-row[aria-pressed=true] .vote-count{color:#275b45;font-weight:700}
.vote-count{white-space:nowrap;text-align:right}
.vote-row:focus-visible{outline-offset:1px}
.ballot-status{font-size:14px;color:#405449}
.vote-yesterday{display:flex;align-items:center;gap:12px;padding:9px 11px;border-left:3px solid #9f7858;background:#f4edde;font-size:14px}
@media(max-width:420px){#modal:has(.museum-ballot){padding:15px;max-height:94dvh}.museum-ballot{padding:10px 10px 3px}.vote-options{grid-template-columns:39px minmax(0,1fr) max-content;column-gap:8px}}
.mosaic-name,.mosaic-tools,.mosaic-pages{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mosaic-name h3{font:600 22px/1.2 var(--serif);margin:0}
.mosaic-name span{color:#4b625c;font:600 13px var(--sans);font-variant-numeric:tabular-nums}
.mosaic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;width:min(100%,255px);justify-self:center;aspect-ratio:1;align-content:start;border:5px solid #64746a;background:#e8e3d2;box-shadow:0 2px 0 #3b4f42}
.mosaic-cell{position:relative;padding:0;min-width:0;aspect-ratio:1;border:0;background:#f5efde;color:#677b70;border-radius:0}
.mosaic-cell .glaze{width:100%;height:100%}
.mosaic-cell::after{content:"";position:absolute;inset:0;box-shadow:inset 1px 2px #fff4,inset -1px -2px #162e3024;pointer-events:none}
.mosaic-cell.empty .glaze{opacity:0}
.tile-plus{position:absolute;inset:0;display:grid;place-items:center;font:400 23px/1 var(--sans)}
.mosaic-cell:focus-visible{outline:3px solid #1a322a;outline-offset:-4px;z-index:1}
.mosaic-cell.empty:focus-visible .glaze{opacity:.58}
.mosaic-cell[aria-pressed=true]::after{box-shadow:inset 0 0 0 3px #faf8ef,inset 0 0 0 5px #293f38}
@media(hover:hover){.mosaic-cell.empty:hover .glaze{opacity:.58}}
.mosaic-caption{margin:0;color:#43584e;text-align:center;font:14px/1.4 var(--sans);overflow-wrap:anywhere}
.tile-palette{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.tile-swatch{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:6px;border:1px solid #b8c3b8;border-radius:5px;font-size:14px}
.tile-swatch .glaze{width:22px}
.tile-swatch[aria-pressed=true]{border-color:#285a49;box-shadow:inset 0 0 0 1px #285a49;background:#e5eee3;color:#214737;font-weight:650}
.tile-rotate{min-height:44px;padding:7px 4px;color:var(--pine);font-weight:650;text-underline-offset:4px;text-decoration:underline}
.mosaic-pages:empty{display:none}
.museum-wall{display:grid;justify-items:center;gap:15px;margin:0;padding:23px 16px 18px;border-radius:4px;background:#284541;color:#faf2d9}
.museum-wall .mosaic-grid{width:min(100%,245px);border:6px solid #ac8d5c;outline:1px solid #503f2d;gap:2px;background:#dbd2bd;box-shadow:0 3px 6px #0f252287}
.museum-wall figcaption{text-align:center}
.museum-wall h3{margin:0 0 2px;font:600 25px/1.15 var(--serif)}
.museum-wall figcaption span{font-size:13px;color:#dce7d8}
.exhibit-credit,.exhibit-empty{margin:0;color:#475e54;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.exhibit-credit{border-left:3px solid #ad8e60;padding:4px 9px}
.exhibit-choices{display:flex;gap:5px}
.exhibit-choices button{flex:1;min-height:44px}
.exhibit-choices button[aria-pressed=true]{color:#fff;background:#345b50;border-color:#345b50}
@media(max-width:420px){
 #modal:has(.museum-wall){padding:16px;max-height:94dvh}
 .museum-wall{padding:14px 12px;gap:10px}
 .museum-wall .mosaic-grid{width:min(100%,205px)}
}
.mosaic-grid button:focus-visible .tile-plus{color:#192e27}

/* Цветочная витрина и ваза площади */
.garden-bed{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:8px 5px 0;border:1px solid #a8a894;border-radius:5px 5px 9px 9px;overflow:hidden;background:linear-gradient(to bottom,#e8eddd 0%,#d9e1ce 62%,#899674 62%,#a89167 66%,#9a7856 73%,#bc7d5b 74%,#b47454 94%,#905c42 95%)}
.garden-plot{position:relative;min-width:0;padding:0 3px 9px;display:grid;justify-items:center;gap:6px;border-radius:4px}
.garden-art{position:relative;display:grid;align-items:end;justify-items:center;width:100%;height:clamp(94px,18vh,148px)}
.garden-art canvas{height:100%;max-width:100%;object-fit:contain}
.garden-hole{position:absolute;bottom:2%;width:31%;height:7%;border-radius:50%;background:#705b43;box-shadow:inset 0 2px #584936,0 2px #b4a076}
.garden-shoot{position:absolute;bottom:3%;height:26%;width:3px;background:#526d47;border-radius:50%;transform:rotate(-7deg)}
.garden-shoot:before,.garden-shoot:after{content:"";position:absolute;bottom:37%;right:1px;width:16px;height:10px;border-radius:0 95% 0 95%;background:#658150;border-bottom:1px solid #48613d}
.garden-shoot:after{bottom:65%;left:0;transform:scaleX(-1) rotate(12deg);background:#81955e}
.garden-tag{position:relative;min-width:54px;padding:2px 5px;border:1px solid #9b7957;border-radius:2px;background:#efe5c9;color:#413b2d;font:600 14px/1.3 var(--serif)}
.garden-plot[aria-pressed=true] .garden-tag{color:white;background:#375749;border-color:#294637}
.garden-plot[aria-pressed=true] .garden-tag:before{content:"";position:absolute;left:calc(50% - 4px);top:-5px;border-right:4px solid transparent;border-left:4px solid transparent;border-bottom:4px solid #375749}
.garden-plot:focus-visible{outline-offset:-3px;outline-color:#714529}
.garden-detail{display:grid;gap:3px;padding:4px 2px;color:#334e40}
.garden-detail strong{font:600 22px/1.2 var(--serif)}
.garden-detail span{font-size:14px;overflow-wrap:anywhere}
.garden-detail small{font-size:13px;color:#506257;font-variant-numeric:tabular-nums}
.garden-seeds{display:flex;gap:4px}
.garden-seed{flex:1;min-height:44px;padding:4px 2px;border:1px solid #b3bcaa;border-radius:4px;color:#3b5547;font-size:14px}
.garden-seed[aria-pressed=true]{background:#e5ecd9;border-color:#50705a;box-shadow:inset 0 -2px #50705a;font-weight:650}
@media(max-width:420px){#modal:has(.garden-bed){padding:15px;max-height:94dvh}.garden-tag{min-width:46px}.garden-seed{font-size:13px}}
.place-icon.florist{background:#f0e1dc;color:#853f4c}
.flower-tabs{display:flex;gap:6px}
.flower-tabs button{flex:auto}
.flower-tabs button[aria-pressed=true]{color:#fffaf2;background:#38574a;border-color:#38574a}
.flower-window{margin:0;border:1px solid #b8bcaa;background:#fcf9ee;overflow:hidden;border-radius:4px}
.flower-window canvas{display:block;width:100%;height:auto}
.flower-window figcaption{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:10px 12px;color:#294c40;border-top:1px solid #afb8a4}
.flower-window figcaption strong{font:600 clamp(17px,4vw,23px)/1.15 var(--serif)}
.flower-window figcaption b,.flower-window figcaption small{white-space:nowrap;font-variant-numeric:tabular-nums}
.flower-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.flower-choice{display:grid;justify-items:center;align-content:center;gap:4px;min-height:45px;padding:5px 1px;font-size:13px;border-bottom:2px solid #c6cdbd}
.flower-choice i{width:14px;height:8px;background:var(--petal);border-radius:50% 1px 50% 1px}
.flower-choice[aria-pressed=true]{background:#eaf0e4;border-color:var(--pine);color:#234c3a;font-weight:650}
.flower-note{margin:0;color:#44594f;font-size:14px;line-height:1.45}
.sketch-pages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;border-bottom:1px solid #b5b9a6}
.sketch-tab{min-height:44px;padding:4px 2px;font-size:14px;color:#475c4d;border-bottom:3px solid transparent}
.sketch-tab[aria-pressed=true]{border-bottom-color:#446b55;background:#edf1e6;font-weight:650}
.sketch-tab span{color:#345d43}
.sketch-sheet{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;min-width:0;margin:0;padding:6px 16px 6px 10px;border:1px solid #cbc8b7;border-left:5px solid #a6aa8c;border-radius:3px;background:#f7f4e8}
.sketch-sheet canvas{display:block;width:100%;max-width:176px;justify-self:center;height:auto}
.sketch-sheet figcaption{color:#4a5146;border-top:1px solid #c9c6b2;padding:8px 0}
.sketch-sheet strong{display:block;font:italic 600 clamp(20px,4vw,28px)/1.18 var(--serif)}
.sketch-sheet small{display:block;margin-top:6px;font-size:13px;line-height:1.45}
.sketch-sheet.filled{border-left-color:#557b63}
.sketch-sheet.filled figcaption{color:#344f3d}
.sketch-count{display:flex;justify-content:space-between;margin:0;font-size:14px;color:#4a5e50}
.sketch-count b{font-variant-numeric:tabular-nums}
.sketch-sheet strong:focus-visible{outline:2px solid #82613a;outline-offset:3px}
@media(max-width:420px){
 #modal:has(.sketch-sheet){padding:16px;max-height:94dvh}
 .sketch-tab{font-size:13px}
 .sketch-sheet{padding-right:10px;padding-left:3px}
}
.florist-counter{display:flex;align-items:center;gap:16px;padding:14px 16px;background:#ede6d9;border:1px solid #cbc2ab;color:#344e3f}
.florist-counter strong,.florist-counter small{display:block}
.florist-counter strong{font:600 19px/1.25 var(--serif)}
.florist-counter small{margin-top:3px;font-variant-numeric:tabular-nums}
.ribbon-spool{position:relative;flex:0 0 36px;height:31px;border-block:4px solid #877252;border-radius:5px 6px;background:repeating-linear-gradient(0deg,#af5263 0 2px,#cb7080 3px 4px);transform:rotate(-10deg)}
.ribbon-spool::after{content:"";position:absolute;width:17px;height:15px;left:27px;top:16px;border:solid #ac4e62;border-width:0 0 5px 4px;border-bottom-left-radius:13px}
.wrap-status{padding-left:10px;border-left:3px solid #af5263}

/* Полка открыток в пассаже */
.market-lot{display:grid;gap:10px;min-width:0;padding:8px 8px 13px;background:#faf5e6;border:1px solid #cfc6ad;border-bottom:5px solid #997956}
.market-counter{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 4px}
.market-counter div{min-width:0;overflow-wrap:anywhere}
.market-counter small,.market-counter strong{display:block}
.market-counter small,.market-note,.market-lot form small,.market-lot>small{color:#4d6054;font-size:14px;line-height:1.45}
.market-counter strong{font:600 18px/1.25 var(--serif)}
.market-price{position:relative;flex:none;min-width:62px;padding:7px 9px 7px 18px;background:#f1d5a5;color:#673d29;font:600 20px/1.2 var(--serif);text-align:center;clip-path:polygon(9px 0,100% 0,100% 100%,9px 100%,0 50%)}
.market-price:before{content:"";position:absolute;left:7px;top:calc(50% - 2px);width:4px;height:4px;border-radius:100%;background:#8b684a}
.market-lot form{display:grid;gap:7px;padding:0 3px}
.market-set-price{display:grid;grid-template-columns:minmax(76px,1fr) minmax(90px,1.35fr);gap:8px}
.market-set-price input{min-width:0;width:100%;height:44px;border:1px solid #acb8a9;border-radius:5px;padding:6px 9px;background:#fffef8;font:600 18px var(--sans)}
.market-set-price button,.market-lot button{min-height:44px}
.market-lot .replace-tag{background:#f7eed8;border:1px solid #d2c4a4;border-radius:4px;padding:10px}
.seller-tag{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px dashed #b3a383;padding-bottom:7px;margin-bottom:2px;color:#514b3b;font:600 18px/1.2 var(--serif)}
.replace-tag .market-set-price{grid-template-columns:minmax(54px,.8fr) minmax(0,1.45fr)}
.replace-tag .primary{padding:6px;line-height:1.2}
@media(max-width:420px){
 #modal:has(.market-tabs){padding:16px;max-height:94dvh}
 .seller-tag{font-size:16px}
}
.market-empty{padding:16px 12px;background:#f3ecdc;border-bottom:5px solid #997956}
.market-empty strong{font:600 21px/1.25 var(--serif)}
.market-empty p,.market-note{margin:5px 0 0}
.market-editions{display:flex;gap:6px}
.market-editions button{flex:1;font-size:14px}
.market-editions [aria-pressed=true]{border-color:var(--pine);color:var(--pine);background:#e6ede1}
@container(max-width:270px){.market-lot .postcard-lettering{width:64%}}
.market-receipt{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:12px 14px;border-left:3px solid #709780;background:#edf3e9;color:#294f40}
.market-receipt small{grid-column:1/-1;overflow-wrap:anywhere}

.market-tabs .secondary{padding:7px 8px;min-height:44px}
.price-editions{display:flex;gap:5px}
.price-editions button{flex:1;min-width:0;padding:7px 5px;min-height:44px;line-height:1.25}
.price-editions [aria-pressed=true]{background:#38594c;border-color:#38594c;color:#fff}
.price-tickets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.price-ticket{display:flex;flex-direction:column;min-width:0;padding:12px 11px 10px;border:1px solid #c4c5ad;border-top:4px solid #597561;border-bottom-style:dashed;background:#f0f2e5}
.price-ticket.shelf{border-color:#cfb99d;border-top-color:#a27247;background:#faf1df}
.price-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:3px 6px}
.price-top h3{margin:0;font:600 19px/1.12 var(--serif)}
.price-top b{white-space:nowrap;font:600 23px/1.1 var(--serif);color:#304c40}
.price-ticket p{margin:8px 0 2px;font-size:14px;overflow-wrap:anywhere}
.price-ticket small{display:block;color:#4e5c50;font-size:13px}
.price-ticket button{margin-top:auto;min-height:44px;width:100%}
.price-ticket small:has(+button){padding-bottom:10px}
.price-summary{margin:0;font-size:14px;color:#304c40}
.price-summary:empty{display:none}
@media(min-width:481px){.price-top{display:grid;gap:5px}.price-top b{font-size:27px}}
@media(max-width:480px){
 #modal:has(.price-tickets){padding:14px;max-height:95dvh}
 #modal-body:has(.price-tickets){gap:8px}
 .price-tickets{grid-template-columns:1fr;gap:7px}
 .price-ticket{padding:8px 10px;border-top-width:1px;border-left-width:4px;border-left-color:#597561}
 .price-ticket.shelf{border-left-color:#a27247}
 .price-ticket p{margin-top:4px}
 .price-ticket small:has(+button){padding-bottom:6px}
 .price-top b{font-size:20px}
}

.bus-pin{cursor:pointer}
.bus-shell{fill:#286f6b;stroke:#fffbee;stroke-width:1.8}
#bus-2 .bus-shell{fill:#744e72}
#bus-3 .bus-shell{fill:#38578a}
.bus-pin text{font:700 15px var(--sans);fill:white;pointer-events:none}
.bus-pin.aboard .bus-shell,.bus-pin:focus-visible .bus-shell{stroke:#ecae42;stroke-width:4px}
.bus-board{display:grid;gap:13px}
.bus-board h3{font:600 23px var(--serif)}
.bus-board section{display:grid;grid-template-columns:38px minmax(0,1fr);gap:8px 10px;border-top:2px solid #42675d;padding-top:12px}
.line-number{display:grid;place-items:center;align-self:start;min-height:35px;border-radius:4px;background:#285956;color:white;font:700 22px var(--sans)}
.bus-board [data-line="1"]{--line-ink:#285956}.bus-board [data-line="2"]{--line-ink:#744e72}.bus-board [data-line="3"]{--line-ink:#38578a}
.bus-board section[data-line]{border-color:var(--line-ink)}.bus-board .line-number{background:var(--line-ink)}
.bus-transfer{grid-column:1/-1;padding:5px 9px 7px;border-left:3px solid var(--line-ink);background:#f1f1e9}
.bus-transfer>div{display:flex;align-items:center;gap:6px;color:#304037;font-size:13px;line-height:1.3}
.bus-transfer b{flex:none;padding:2px 5px;background:var(--line-ink);border-radius:3px;color:white}
.bus-transfer time{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.bus-board strong,.bus-board small{display:block}
.bus-board small{color:#52635b;font-size:13px}
.bus-board p{margin:6px 0;color:#344d44;font-size:14px}
.bus-board section button,.bus-board section>small{grid-column:1/-1}
.bus-board section button{min-height:44px}
.bus-exits{grid-column:1/-1;min-width:0;margin:0;padding:0;border:0}
.bus-exits legend{margin:0 0 3px;color:#425c52;font-size:13px;font-weight:600}
#modal-body .bus-exits label{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:44px;padding:5px 9px;border-bottom:1px solid #c7d0c2;cursor:pointer}
.bus-exits label:has(:checked){background:#e7f0e5;color:#254d41}
.bus-exits input{width:16px;height:16px;margin:0;padding:0;accent-color:#315e50}
.bus-exits time{color:#4a6257;font-size:13px;font-variant-numeric:tabular-nums}
.venue-folio{border:1px solid #bfbeaa;border-left:5px solid #506956;background:#f6f4e8;border-radius:4px}
.venue-folio summary{padding:14px;cursor:pointer}
.venue-folio summary small{color:#53655a;margin-right:8px}
.venue-folio summary strong{display:block;font:600 20px var(--serif)}
.venue-folio p{padding:0 15px 15px;color:#344b41}
.folio-art{height:72px;margin:0 14px 10px;display:flex;align-items:center;justify-content:center;gap:8px}
[data-venue=opera] .folio-art{background:#4d393b;overflow:hidden;align-items:stretch;gap:12%;border-bottom:4px solid #b79659}
[data-venue=opera] .folio-art i{width:22%;background:repeating-linear-gradient(100deg,#793344 0 8px,#a95865 12px,#673743 24px);border-radius:0 0 65% 12%}
[data-venue=arts-palace] .folio-art i{width:52px;height:38px;background:#77a4ac;border-radius:4px 4px 45% 45%;border:4px solid #6d8c90;box-shadow:inset -5px -7px #0002}
[data-venue=arts-palace] .folio-art i:nth-child(2){background:#758c65;border-color:#546b4d}
[data-venue=arts-palace] .folio-art i:nth-child(3){background:#c9a367;border-color:#a27b46}
[data-venue=national-library] .folio-art{display:none}
.imprint-opera{--ink-stamp:#823d55;border-radius:40% 40% 6px 6px}
.imprint-national-library{--ink-stamp:#365d72;border-radius:6px}
.imprint-arts-palace{--ink-stamp:#90652e;border-radius:20%}
@media(max-width:420px){
 #modal:has(.bus-board){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:16px}
 .bus-board{gap:8px}.bus-board section{grid-template-columns:32px minmax(0,1fr);gap:6px 8px;padding-top:8px}
 #modal:has(.bus-board) #modal-error:empty{display:none}
}

/* Passenger stop request. */
.arrival:has(.bus-bell){flex-wrap:wrap}
.bus-bell{flex-basis:100%;grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid #b8c4b4;border-radius:5px;background:#e6ece1}
.bus-bell>div{min-width:0}
.bus-bell strong{font:600 16px/1.2 var(--serif);color:#29443b}
.bus-bell small{display:block;margin-bottom:2px;color:#40584b}
.bell-button{display:inline-flex;align-items:center;justify-content:center;flex:none;gap:7px;min-height:44px;padding:6px 10px;border:1px solid #763f32;border-bottom:3px solid #69392e;border-radius:6px;background:#914a3b;color:#fff8e8;font-weight:650}
.bell-button:active{background:#783c30}
.bell-lamp{width:10px;height:10px;border-radius:50%;background:#ffd2a3;box-shadow:inset 0 0 0 1px #ffe3c1,0 0 0 2px #6e352e}
@media(max-width:420px){.bus-bell{padding:6px 8px}.bell-button{font-size:13px}}

/* Glazed stoneware from the Arts Palace. */
.glaze-lake{--clay:#78abaf;--edge:#345f6b;--light:#b9d9cb}
.glaze-cedar{--clay:#749170;--edge:#3b5849;--light:#b4c6a1}
.glaze-honey{--clay:#d3954f;--edge:#935335;--light:#ecc486}
.glazed-cup{position:relative;display:block;width:9.5rem;max-width:100%;aspect-ratio:1.55;filter:drop-shadow(1px 4px 2px #49372226)}
.clay-handle{position:absolute;inset:16% 2% 22% 63%;border:.55em solid var(--clay);border-right-color:var(--edge);border-radius:38% 46% 56% 28%;transform:rotate(-8deg);box-shadow:inset 1px -1px 0 var(--edge)}
.clay-body{position:absolute;inset:11% 20% 2% 3%;overflow:hidden;border-radius:7% 8% 32% 34% / 9% 10% 77% 76%;background:linear-gradient(95deg,var(--edge),var(--clay) 12%,var(--light) 30%,var(--clay) 55%,var(--edge));border-bottom:.32em solid #9f7452}
.clay-rim{position:absolute;inset:2% 20% auto 3%;height:25%;border-radius:50%;background:radial-gradient(ellipse at 54% 145%,var(--light) 5%,var(--clay) 48%,var(--edge) 78%);border:.22em solid var(--light);box-shadow:0 1px 0 var(--edge)}
.clay-body b{position:absolute;inset:42% 0 auto;height:21%;color:#f9efcd}
.motif-stripe b{background:linear-gradient(transparent 5%,currentColor 6% 22%,transparent 23% 62%,currentColor 63% 83%,transparent 84%)}
.motif-grain b{background:radial-gradient(ellipse at 50% 40%,currentColor 0 25%,transparent 30%) 0 10% / 14% 75% repeat-x}
.motif-ripple b{background:radial-gradient(ellipse at 50% 0%,transparent 50%,currentColor 54% 63%,transparent 68%) center / 27% 100% repeat-x}
.pottery-bench{margin:0;border:1px solid #bfaf95;border-radius:6px;overflow:hidden;background:#eae2cf}
.pottery-bench>div{display:grid;place-items:end center;min-height:144px;padding:12px 0 10px;background:linear-gradient(8deg,#b79370 0%,#cca781 26%,#e9ddc8 26.5%,#f5ebd6 100%)}
.pottery-bench figcaption{padding:7px 15px;background:#f9f2df;color:#554231;font:600 16px/1.4 var(--serif)}
.cup-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:16px 5px 8px;border:1px solid #bcaa91;border-radius:5px;background:linear-gradient(100deg,#e2d4bc,#f5ebd6 50%,#e9dbc3)}
.cup-exhibit,.cup-vacancy{display:grid;align-content:start;min-width:0;padding:0;color:#423722;text-align:center}
.cup-plinth{height:clamp(74px,18vw,97px);display:grid;place-items:end center;padding:0 4px 2px;border-bottom:8px solid #ab8059;box-shadow:0 2px 0 #77563d,0 5px 4px #63452c25}
.cup-plinth .glazed-cup{width:100%;max-width:104px;font-size:clamp(8px,2vw,12px)}
.cup-exhibit:focus-visible{outline-offset:-2px}
.cup-label{display:grid;align-content:start;justify-items:center;gap:3px;padding:10px 3px 3px}
.cup-label strong{font:600 clamp(14px,3vw,18px)/1.25 var(--serif);text-decoration:underline;text-decoration-color:#9a8971;text-underline-offset:3px}
.cup-label small{font:12px/1.3 var(--sans);overflow-wrap:anywhere}
.cup-shelf-note{display:block;text-align:center;color:#594b39}
#pottery-form{display:grid;gap:12px;margin:12px 0 0}
.finish-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;border:0;padding:0;margin:0;min-width:0}
.finish-options legend{font-weight:650;margin-bottom:6px}
.finish-options label{position:relative;cursor:pointer}
.finish-options input{position:absolute;top:50%;left:50%;width:1px;height:1px;opacity:0}
.finish-options span{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;border:1px solid #c0b9a6;border-radius:5px;font-weight:600;color:#514939}
.finish-options span:is(.glaze-lake,.glaze-cedar,.glaze-honey)::before{content:"";display:block;width:10px;height:10px;flex:none;border-radius:50%;background:var(--clay);border:1px solid var(--edge)}
.finish-options input:checked+span{border-color:#4d6356;box-shadow:inset 0 0 0 1px #4d6356;background:#e2e7d8;color:#273c32}
.finish-options input:focus-visible+span{outline:3px solid #365c78;outline-offset:2px}
#pottery-form button{min-height:44px}
.bag-art .glazed-cup{width:46px;font-size:7px}
.tea-place .glazed-cup{position:absolute;left:8%;bottom:15%;width:87%;font-size:12px}
.tea-display:not(.empty) .glazed-cup .clay-rim{background:radial-gradient(ellipse at 34% 30%,#f3c894aa 0 8%,transparent 17%),var(--brew)}
@media(max-width:420px){
 #modal:has(.pottery-bench){padding:16px;max-height:94dvh}
 .pottery-bench>div{min-height:118px}.pottery-bench .glazed-cup{width:114px}
 .finish-options span{font-size:13px}.tea-place .glazed-cup{font-size:8px}
}

.ink-1{--stub-ink:#2e6058;--stub-paper:#e5ecdb;--stub-band:#c6d7b9}
.ink-2{--stub-ink:#854730;--stub-paper:#f7e5c7;--stub-band:#ecd3a6}
.ink-3{--stub-ink:#344e7c;--stub-paper:#e7edf5;--stub-band:#bdcfe1}
.bus-crew{padding:15px 18px;border:1px solid #c8c2ad;border-top:4px solid var(--stub-ink);border-radius:6px;background:#f5f1e6}
.crew-id{display:flex;gap:12px;align-items:center}.crew-id svg{width:44px;height:53px;background:var(--stub-paper);border-radius:4px}
.crew-id small,.bus-crew p{color:#45554b;font-size:13px}.crew-id h3,.stub-paper h3{margin:2px 0;font:600 24px/1.1 var(--serif)}
.bus-crew blockquote{margin:16px 0 12px;color:#35473c;font:18px/1.4 var(--serif)}.bus-crew p{padding-top:10px;border-top:1px solid #c8c2ad;margin:0}
.bus-souvenir{display:grid;grid-template-columns:64px minmax(0,1fr);position:relative;overflow:hidden;color:var(--stub-ink);border:1px solid var(--stub-ink);border-radius:6px;background:var(--stub-paper)}
.stub-route{display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:13px 4px;background:repeating-linear-gradient(135deg,transparent 0 5px,#ffffff35 5px 6px),var(--stub-band);border-right:2px dashed var(--stub-ink)}
.stub-route b{font:700 21px/1.1 var(--serif);white-space:nowrap}
.stub-route span{writing-mode:vertical-rl;transform:rotate(180deg);font-size:12px;letter-spacing:.13em;font-weight:700;text-transform:uppercase}
.stub-paper{padding:16px 18px;min-width:0}.stub-paper h3{font-size:21px}
.stub-paper dl{border-top:1px solid var(--stub-ink);margin:12px 0 10px;padding-top:10px}
.stub-paper dl>div{position:relative;padding-left:16px}.stub-paper dl>div+div{padding-top:8px}
.stub-paper dl>div::before{content:"";position:absolute;left:0;top:.32em;width:8px;height:8px;box-sizing:border-box;border:2px solid var(--stub-ink);border-radius:50%}
.stub-paper dl>div+div::before{top:calc(.32em + 8px);background:var(--stub-ink)}
.stub-paper dt,.stub-paper footer{font-size:12px}.stub-paper dd{margin:1px 0 0;font-weight:700;font-size:15px;line-height:1.3}
.stub-paper footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;padding-top:8px;border-top:1px dotted var(--stub-ink)}
.stub-mini{display:grid;place-items:center;width:46px;height:29px;border:1px dashed var(--stub-ink);border-left:8px solid var(--stub-ink);background:var(--stub-paper);color:var(--stub-ink);font:bold 13px var(--serif);transform:rotate(-6deg)}
#modal:has(.bus-crew,.bus-souvenir) #modal-body>button{margin-top:12px;min-height:44px}
@media(max-width:420px){#modal:has(.bus-crew,.bus-souvenir){padding:16px;max-height:94dvh}#modal:has(.bus-crew,.bus-souvenir) #modal-title{font-size:24px}.bus-souvenir{grid-template-columns:44px minmax(0,1fr)}.stub-route b{font-size:17px}.stub-paper{padding:12px}.stub-paper h3{font-size:20px}.bus-crew{padding:12px}}

.cover-first-bus{--cloth:#353d5e;--foil:#fff0bb}
.book-cover.cover-first-bus{container-type:inline-size;background:linear-gradient(165deg,transparent 56%,#515d79 56% 64%,#404966 64% 77%,#303954 77%),var(--cloth)}
.book-cover.cover-first-bus b{font-size:clamp(11px,21cqi,17px);overflow-wrap:normal}
.cover-first-bus i{position:relative;width:68%;aspect-ratio:1.95;border:1px solid currentColor;border-radius:17% 23% 10% 8%;
 background:linear-gradient(90deg,transparent 28%,var(--cloth) 28% 34%,transparent 34% 60%,var(--cloth) 60% 67%,transparent 67%) 50% 20% / 85% 46% no-repeat,linear-gradient(var(--foil),var(--foil)) 50% 20% / 85% 46% no-repeat}
.cover-first-bus i::after{content:"";position:absolute;inset:84% 0 -20%;background:radial-gradient(circle at 22% 50%,var(--foil) 0 11%,transparent 13%),radial-gradient(circle at 78% 50%,var(--foil) 0 11%,transparent 13%)}
.street-shelf{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(78px,100%),1fr));gap:12px 9px}
.street-shelf .shelf-book{width:100%;max-width:100px}
.venue-folio .secondary{margin:0 12px 12px;max-width:calc(100% - 24px);min-height:44px}
.shelf-tabs{flex-wrap:wrap}.shelf-tabs button{width:auto;flex:1 0 auto;min-height:44px;padding-inline:6px}
@media(max-width:420px){#modal:has(.shelf-tabs){padding:16px;max-height:94dvh}.shelf-tabs{gap:4px}.shelf-tabs button{font-size:13px}.street-shelf{grid-template-columns:repeat(auto-fit,minmax(min(84px,100%),1fr))}}

.theatre-model{margin:0;border:1px solid #b5a391;border-radius:5px;background:#f4ead6;overflow:hidden}
.stage-frame{position:relative;overflow:hidden;isolation:isolate;border:solid #754f3c;border-width:8px 7px 6px;box-shadow:inset 0 0 0 1px #422f34}
.stage-frame canvas{display:block;width:100%;height:auto}
.stage-frame::before{content:"";position:absolute;z-index:2;inset:0 0 auto;height:6px;background:linear-gradient(#3b2631,#825052 68%,#d8a765 70%);box-shadow:0 2px 5px #46323e80}
.stage-drape{position:absolute;top:0;bottom:0;width:51%;pointer-events:none;border-bottom:3px solid #b78b52;background:repeating-linear-gradient(90deg,#4e2934 0%,#83414a 9%,#9e5458 13%,#5e303d 22%,#482837 25%);box-shadow:1px 1px 4px #2e1f2d75}
.drape-left{left:0;transform:translateX(-89%)}.drape-right{right:0;transform:translateX(89%)}
@media(prefers-reduced-motion:no-preference){
 .show-opening .stage-drape{animation:open-model-curtain 250ms cubic-bezier(.23,1,.32,1) backwards}
 @keyframes open-model-curtain{from{transform:translateX(0)}}
}
.theatre-model figcaption{display:grid;gap:2px;padding:9px 14px;color:#493833;border-top:2px solid #bf9167}
.theatre-model figcaption strong{font:600 18px/1.25 var(--serif)}
.theatre-model figcaption small{font-size:13px;overflow-wrap:anywhere}
.field-tape{--stripe:#487873;position:relative;isolation:isolate;display:grid;gap:11px;padding:15px 19px 8px;border:2px solid #3e3c35;border-radius:9px;background:radial-gradient(circle at 7px 7px,#544e40 2px,transparent 3px) 0 0/100% 100%,repeating-linear-gradient(0deg,#d4c4a5 0 2px,#cfc0a5 2px 3px);box-shadow:inset 0 0 0 3px #e2d6c0}
.field-tape[data-tape="arts-palace"]{--stripe:#a75e40}.field-tape[data-tape="teahouse"]{--stripe:#856446}
.tape-label{padding:7px 11px 8px;border-radius:2px;border:1px solid #b5a58b;border-bottom:6px solid var(--stripe);background:#faf3dc;color:#2f322e}
.tape-label small{font-size:12px}.tape-label h3{margin:2px 0 0;font:600 clamp(20px,4vw,28px)/1.1 var(--serif)}
.tape-window,.bag-cassette{display:flex;align-items:center;justify-content:space-between;border:2px solid #5d5848;border-radius:9px;background:#625b4d}
.tape-window{width:66%;max-width:225px;justify-self:center;height:36px;padding:0 6px;box-shadow:inset 0 2px 5px #2d2c24}
.tape-window i,.bag-cassette i{width:24px;height:24px;border:4px dashed #f1e6c8;border-radius:50%;background:#373d3b;box-shadow:0 0 0 2px #9a927e}
.tape-window span{width:30%;height:12px;border:1px solid #413c32;background:linear-gradient(90deg,#42382c,#a28c69 45% 55%,#493e31)}
.tape-foot{width:53%;height:8px;justify-self:center;border:1px solid #a5967c;border-bottom:0;transform:perspective(12px) rotateX(12deg)}
.tape-player{display:block;width:100%;min-width:0;height:48px}
.club-machine{margin:0;background:#f3ebdb;border:1px solid #b4a58e;border-radius:7px;overflow:hidden}
.deck-face{display:grid;grid-template-columns:minmax(38px,1fr) minmax(0,2.6fr);gap:12px;padding:17px 14px;background:repeating-linear-gradient(2deg,#78553e 0 2px,#805c44 3px 7px,#76553e 8px 10px);border-bottom:3px solid #4b392d}
.deck-grille{border:2px solid #483a30;border-radius:3px;background:radial-gradient(ellipse,#262d2b 1.4px,transparent 1.7px) 0 0/5px 5px,#716b58;box-shadow:inset 0 1px 7px #352f28}
.deck-well{padding:8px 10px 10px;border:2px solid #292c29;border-radius:4px;background:#4b514a;box-shadow:inset 0 0 0 2px #777b69}
.deck-card{padding:6px 8px;background:#eee1be;border-bottom:5px solid #b06843;color:#292f2c}
.deck-card small{font-size:12px}.deck-card h3{margin:2px 0 0;font:600 clamp(19px,4vw,28px)/1.1 var(--serif)}
.deck-spools{display:flex;align-items:center;justify-content:space-between;max-width:150px;margin:9px auto 0;padding:4px 8px;border:1px solid #777a67;border-radius:16px;background:#282f2c}
.deck-spools i{height:18px;width:18px;border:4px dashed #d4c5a2;border-radius:50%;box-shadow:0 0 0 2px #736958}
.deck-spools span{width:30%;height:5px;background:#948774}
.club-machine figcaption{padding:7px 12px;color:#483b30;font-size:14px;overflow-wrap:anywhere}
.deck-shelf{display:grid;gap:6px}.deck-shelf[hidden]{display:none}.deck-shelf h4{margin:0;font:600 18px var(--serif)}.deck-shelf button{min-height:44px}
.deck-update{margin:0;padding:8px 10px;background:#f4ead7;border-left:3px solid #ae744a;color:#443c30;font-size:14px}
@media(max-width:420px){#modal:has(.club-machine){padding:16px;max-height:94dvh}#modal:has(.club-machine) #modal-title{font-size:24px}.deck-face{gap:8px;padding:11px 9px}.deck-well{padding:7px}}
.tape-caption{margin:0;color:#404d48;font-size:15px;line-height:1.45}
.tape-picker{display:flex;flex-wrap:wrap;gap:6px}.tape-picker button{min-height:44px}.tape-picker [aria-pressed="true"]{background:#e4eee7;border-color:#5f826f}
.bag-cassette{width:44px;height:28px;padding:3px;background:linear-gradient(#eee0c0 0 30%,#547c74 30% 44%,#625b4d 44%);align-items:end;border-radius:4px}
.bag-cassette i{width:10px;height:10px;border-width:2px}
@media(max-width:420px){
 #modal:has(.field-tape){padding:16px;max-height:94dvh}
 #modal:has(.field-tape) #modal-title{font-size:24px}
 .tape-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .tape-picker button{padding:5px 7px;font-size:13px;line-height:1.15}
}
.lighting-desk,.stage-circuit{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 12px;padding:12px 14px;border:1px solid #bdac90;border-radius:4px;background:#eee6d8;color:#403730}
.lighting-desk{color:#f9ebd3;background:#493c3e;border-bottom:3px solid #b18d58}
.lighting-desk strong,.stage-circuit strong{display:block;font:600 19px/1.2 var(--serif)}
.lighting-desk small,.stage-circuit small{display:block;margin-top:3px;font-size:13px;line-height:1.35}
.pilot-lamp{display:block;width:16px;height:16px;border-radius:50%;border:3px solid #b29871;box-shadow:0 0 0 1px #6d5c4e,inset 1px 2px 3px #493b30;background:#776457}
.pilot-lamp[data-powered="true"]{background:#ffdc8c;box-shadow:0 0 0 1px #71573c,inset 1px 2px 2px #fff1c2,0 0 8px #dba051}
.stage-circuit:has(button){grid-template-columns:auto minmax(0,1fr) auto}
.stage-circuit button{min-height:44px}
@media(max-width:420px){.stage-circuit:has(button){grid-template-columns:auto minmax(0,1fr)}.stage-circuit button{grid-column:1/-1}}
.stage-controls{display:grid;gap:12px}.stage-controls .book-back{min-height:44px}
.stage-controls .filter-amber::before,.stage-controls .filter-rose::before,.stage-controls .filter-moon::before{content:"";width:10px;height:10px;border:1px solid #78665d;border-radius:50%;flex:none;background:#e6ba6a}
.stage-controls .filter-rose::before{background:#c48e9c}.stage-controls .filter-moon::before{background:#a4bfdb}
#modal:has(.theatre-model) .primary{min-height:44px}
.stage-update{margin:0;color:#553e32}
.puppet-rail{padding:10px 12px;border:1px solid #ccbaa1;border-radius:4px;background:#fbf3e2;color:#49382a}
.puppet-rail h3{margin:0;font:600 20px/1.15 var(--serif)}
.puppet-rail p{margin:3px 0 9px;font-size:14px;overflow-wrap:anywhere}
.puppet-rail [role=group]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.puppet-rail button{min-height:44px;padding:5px 2px;font-size:14px}
.puppet-rail p:focus-visible{outline:2px solid var(--pine);outline-offset:2px}
@media(max-width:420px){#modal:has(.theatre-model){padding:16px;max-height:94dvh}#modal:has(.theatre-model) #modal-title{font-size:24px}.stage-controls{gap:9px}.stage-controls .finish-options span{font-size:13px;gap:3px}.theatre-model figcaption{padding:7px 10px}}
@media(max-width:360px){.stage-controls .finish-options:first-child span{flex-direction:column;gap:2px}}

.deal-watch,.deal-mail{position:relative;padding:10px 13px 9px 18px;border:1px solid #cfbfa1;border-left:5px double #9a7146;border-radius:3px;background:#fbf5e8;color:#4a4636}
.deal-watch.watching{border-left-color:#456b54;background:#eff3e8}
.deal-watch p,.deal-mail p{margin:0;font-size:14px;line-height:1.4}
.deal-watch button{min-height:44px;max-width:100%;margin-top:5px}
.deal-mail h3{margin:0 0 7px;font:600 21px/1.2 var(--serif);color:#59452f}
.deal-mail article{border-top:1px dashed #bbad90;padding-top:8px}
.deal-mail .loan-notice-link{margin:0}
#journal-tab[data-deals]{position:relative}
#journal-tab[data-deals]::after{content:attr(data-deals);position:absolute;top:-4px;right:-2px;padding:0 4px;min-width:15px;border-radius:8px;background:#8b4a28;color:white;font:700 11px/16px var(--sans)}

/* The bakery counter and its brick oven. */
.bakery-counter { overflow:hidden; border:1px solid #d0b69a; border-radius:9px; background:#fff9ed; color:#482d24; }
.bread-scene {
 display:grid; place-items:end center; height:98px; border-bottom:8px solid #aa7047;
 background-color:#c07756;
 background-image:linear-gradient(90deg,transparent 48%,#e1a586 49% 52%,transparent 53%),linear-gradient(0deg,transparent 88%,#e1a586 89%),linear-gradient(90deg,#cf8663 50%,transparent 50%);
 background-size:104px 40px,100% 20px,104px 40px;
}
.bread-arch { display:grid; place-items:end center; width:130px; height:78px; border-radius:80px 80px 0 0; border:8px solid #f1c996; border-bottom:0; background:radial-gradient(ellipse at bottom,#674131,#322d2e 76%); box-shadow:0 -3px 0 #9a5c43,inset 0 5px 0 #4a322b; }
.rye-loaf { display:none; position:relative; width:83px; height:33px; margin-bottom:4px; border-radius:52% 58% 19% 24% / 89% 96% 17% 24%; transform:rotate(-4deg); border-bottom:5px solid #75422e; background:linear-gradient(156deg,#e7ac5b,#b36837); }
.rye-loaf::before { content:""; position:absolute; inset:3px 13px 10px; border-radius:50%; background:repeating-linear-gradient(114deg,transparent 0 12px,#f6d199 12px 15px,#9b582e 16px 18px,transparent 19px); }
.bakery-counter[data-stage=baking] .bread-arch { background:radial-gradient(ellipse at bottom,#f39d51,#a34b31 52%,#492e30 85%); }
.bakery-counter:is([data-stage=baking],[data-stage=ready],[data-stage=cooled]) .rye-loaf { display:block; }
.bakery-counter[data-stage=cooled] .rye-loaf { filter:saturate(.52); }
.bread-card { padding:14px 16px 16px; }
.bread-card small { color:#79472c; font-size:.78rem; font-weight:700; }
.bread-card h3 { margin:3px 0 7px; font:700 1.55rem/1.1 Georgia,serif; color:#512e25; }
.bread-card p { margin:8px 0 0; font-size:.94rem; line-height:1.4; overflow-wrap:anywhere; }
.bread-card .primary { margin-top:12px; width:100%; min-height:44px; }
.bread-count,.bread-count span { display:flex; align-items:center; gap:4px; }
.bread-count { gap:9px; color:#684534; font-size:.83rem; font-weight:650; }
.bread-count i { display:block; height:13px; width:10px; border:1px dashed #ac8c75; border-radius:45% 45% 15% 15%; }
.bread-count i.full { border:1px solid #945c36; background:#dfa85c; }
.bread-card .bread-option { width:100%; min-height:44px; margin-top:8px; }
.pastry-display{overflow:hidden;border:1px solid #c6af91;border-radius:8px;background:#fff9ed;color:#493327}
.pickup-ticket{color:#493327;background:#fcf4df;border:1px solid #c9b895;border-radius:5px;overflow:hidden}
.pickup-ticket header,.pickup-paid{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.pickup-ticket header{background:#efe2bd;border-bottom:1px dashed #ad956b;padding:12px 16px;color:#654733;font-weight:650}
.pickup-ticket header b,.pie-stub{font-family:ui-monospace,monospace;font-variant-numeric:tabular-nums}
.pickup-ticket header b{white-space:nowrap}
.pickup-ticket h3:focus-visible{outline:2px solid var(--pine);outline-offset:3px}
.pickup-paid{border-block:1px dashed #bda880;margin:12px 0 16px;padding:7px 0;color:#315f46}
.pie-stub{padding:5px;color:#704a2c;background:#faeac3;border-block:1px dashed #ad8655;transform:rotate(-8deg);font-size:12px}
.pastry-label button+button{margin-top:6px}
@media(max-width:480px){
 #modal:has(.pickup-ticket){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:15px}
 #modal:has(.pickup-ticket) #modal-error:empty{display:none}
}
.pastry-tray{position:relative;display:grid;place-items:center;height:155px;isolation:isolate;overflow:hidden;background:repeating-linear-gradient(0deg,#a1744e 0 2px,transparent 2px 34px),linear-gradient(105deg,#b58a61,#e3be8d 54%,#af8258)}
.pastry-tray::before{content:"";position:absolute;z-index:-1;width:72%;height:77%;transform:rotate(-5deg);border:5px double #f4e4ce;box-shadow:0 3px 7px #59412b40;background-color:#fbecd6;background-image:repeating-linear-gradient(90deg,#ac635938 0 5px,transparent 5px 12px),repeating-linear-gradient(0deg,#ad665735 0 5px,transparent 5px 12px)}
.pastry-tray>b{position:absolute;right:8%;bottom:10%;padding:2px 10px;border:3px double #aa9076;background:#fff6e3;color:#543b31;transform:rotate(4deg);font:italic 19px var(--serif)}
.cherry-pie{width:112px;aspect-ratio:1.68;display:block;position:relative;transform:rotate(-13deg);border:1px solid #986236;border-radius:66% 38% 61% 36%;background:radial-gradient(ellipse at 60% 20%,#fff1bf70,transparent 35%),radial-gradient(ellipse at 40% 45%,#f3c17f 21%,#e4a15b 59%,#ae6d36 89%);box-shadow:inset 0 -4px 6px #88512352,1px 4px 3px #51352242}
.cherry-pie i{position:absolute;inset:27% 16% 36% 12%;transform:rotate(-7deg);border:3px solid #d69a59;border-radius:85% 20% 76% 23%;background:repeating-linear-gradient(62deg,transparent 0 12%,#bf874c 13%,#f0c58b 16% 21%,transparent 23% 29%),radial-gradient(ellipse at 55% 60%,#884754,#492c36 80%)}
.pastry-label{padding:16px}.pastry-label h3{font:600 25px/1.15 var(--serif);margin:0}.pastry-label p{margin:7px 0 14px;overflow-wrap:anywhere}.pastry-label button{width:100%;min-height:44px}
.baker-apron-card{display:flex;align-items:center;gap:16px;border:1px solid #cfb89a;border-radius:5px;background:#f6ecd9;padding:12px 14px}.baker-apron-card .cherry-pie{width:55px;flex-shrink:0}.baker-apron-card strong,.baker-apron-card small{display:block}.baker-apron-card strong{font:600 21px var(--serif)}.baker-apron-card small{color:#655143}.bag-art .cherry-pie{width:37px}.bag-art .cherry-pie i{border-width:1px}
@media(max-width:480px){#modal:has(.pastry-display,.baker-apron-card){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:15px}#modal:has(.pastry-display,.baker-apron-card) #modal-error:empty{display:none}.pastry-tray{height:130px}}
.bakery-counter[data-recipe=poppy] .rye-loaf { width:70px; height:40px; border-radius:56% 55% 29% 25% / 78% 80% 30% 28%; background:linear-gradient(155deg,#ecb16b,#ac5f2f); }
.bakery-counter[data-recipe=poppy] .rye-loaf::before,.bag-recipe i::before {
 content:""; position:absolute; inset:4px 13px 8px; border:2px solid #f3c78a; border-radius:50%;
 background:radial-gradient(ellipse,#42352f 0 1px,transparent 1.5px) 0 0/7px 5px,
            radial-gradient(ellipse,#65442f 0 1px,transparent 1.5px) 3px 2px/9px 6px,#cc8a4d;
}
.bag-recipe { display:grid; place-items:center; width:39px; height:46px; transform:rotate(-7deg); border:1px solid #b89260; border-top:5px solid #8e4e3d; border-radius:2px; background:repeating-linear-gradient(0deg,#f8ecd2 0 6px,#dacca7 7px); box-shadow:2px 2px 0 #d2c1a2; }
.bag-recipe i { position:relative; width:29px; height:20px; border-radius:55% 55% 34% 34%; background:#c28346; border-bottom:3px solid #89542e; }
.bag-recipe i::before { inset:2px 4px 3px; border-width:1px; background-size:5px 4px,7px 5px; }

/* Pocket route guide and the district's two directories. */
.district-guides { display:flex; background:#eef2e9; border-bottom:1px solid var(--rule); }
.district-guides #town-directory:not([hidden]) { flex:1; min-width:0; border-bottom:0; }
#bus-guide { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:5px 15px; color:#294e46; background:#e7eee3; border:0; border-left:1px solid #c0cec0; font-weight:650; }
#bus-guide i { width:18px; height:18px; }
.bus-board-head { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.bus-board-head h3 { margin:0; }
.bus-board-head button { flex:none; min-height:44px; }
.transit-guide { --route:#285956; color:#263e3b; }
.transit-guide[data-line="2"],.guide-tab[data-line="2"] { --route:#744e72; }
.transit-guide[data-line="3"],.guide-tab[data-line="3"] { --route:#38578a; }
.guide-tabs { display:flex; gap:5px; margin:0 0 10px; }
.guide-tab { flex:1; min-height:44px; border:1px solid #bdc6bb; border-radius:5px; color:#34534a; background:#f8f8ee; font-weight:700; }
.guide-tab[aria-pressed="true"] { color:white; background:var(--route); border-color:var(--route); }
.guide-tab[data-line="1"] { --route:#285956; }
.guide-paper { border:1px solid #b8bfae; border-top:5px solid var(--route); border-radius:4px; background:#f8f5e8; overflow:hidden; }
.guide-paper header { padding:10px 13px 11px; border-bottom:1px solid #c2c8b8; }
.guide-paper header small,.guide-stops h4 { color:#4e6156; font-size:.79rem; font-weight:650; }
.guide-paper header h3 { margin:2px 0 0; font:700 1.35rem/1.12 var(--serif); color:#213d39; }
.guide-fold { display:grid; grid-template-columns:minmax(108px,40%) minmax(0,1fr); }
.atlas-route-map { min-width:0; display:flex; position:relative; flex-direction:column; justify-content:center; border-right:1px solid #bcc4b2; background:#e6eadc; }
.atlas-route-map svg { display:block; width:100%; height:auto; }
.atlas-route-map a { align-self:flex-start; margin:1px 0 2px 3px; padding:3px; color:#374d43; background:#eff2e5; font:10px/1.2 var(--sans); }
.atlas-track-edge,.atlas-track { fill:none; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.atlas-track-edge { stroke:#fffaf0; stroke-width:5px; }
.atlas-track { stroke:var(--route); stroke-width:2.6px; }
.atlas-station circle { fill:#fffbee; stroke:var(--route); stroke-width:1.8; }
.atlas-station text { text-anchor:middle; font:700 10.5px var(--sans); fill:#233b3a; }
.guide-stops { padding:9px 10px; align-self:center; min-width:0; }
.guide-stops h4 { margin:0 0 6px; line-height:1.25; }
.guide-stops ol { margin:0; padding:0; list-style:none; }
.guide-stops li+li { border-top:1px solid #c8cbbc; }
.atlas-stop { display:grid; grid-template-columns:19px 1fr 7px; width:100%; align-items:center; gap:6px; min-height:46px; border:0; background:transparent; padding:7px 0; text-align:left; color:#263d38; font-size:.92rem; line-height:1.23; font-weight:650; }
.atlas-stop span { min-width:0; overflow-wrap:anywhere; }
.atlas-stop small { display:block; color:#52645a; font-size:.77rem; font-weight:500; margin-top:2px; }
.atlas-stop i { color:var(--route); font:20px/1 var(--serif); }
.atlas-letter { width:19px; height:19px; display:grid; place-items:center; color:var(--route); background:#fffbef; border:1.5px solid var(--route); border-radius:50%; font-size:12px; }
.guide-live { margin:0; min-height:38px; padding:9px 12px; background:var(--route); color:white; font-size:.87rem; line-height:1.3; }
.ride-planner,.ride-pickers,#ride-result{display:grid;gap:12px;min-width:0}
.ride-pickers{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ride-pickers label{display:grid;gap:3px;min-width:0;color:#465b50;font-size:13px}
.ride-pickers select{width:100%;min-width:0;min-height:44px;border:1px solid #aebbad;border-radius:4px;background:#fffef6;color:#263e3b;padding:4px 7px;font:600 14px var(--sans)}
.ride-sheet{border:1px solid #b7beae;border-top:4px solid #416454;border-radius:3px;background:#faf7e9;color:#243e35}
.ride-sheet header{display:flex;align-items:baseline;justify-content:space-between;gap:4px 8px;flex-wrap:wrap;padding:10px 12px;border-bottom:1px solid #bec5b6}
.ride-sheet header strong{font:600 21px/1.15 var(--serif)}
.ride-sheet header small{color:#506354;font-size:12px}
.ride-sheet ol{list-style:none;margin:0;padding:0 12px}
.ride-sheet li{--ink:#285956;display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;padding:9px 0}
.ride-sheet li+li{border-top:1px dashed #b4bead}
.ride-sheet li[data-line="2"]{--ink:#744e72}.ride-sheet li[data-line="3"]{--ink:#38578a}
.ride-line{align-self:center;text-align:center;border-radius:4px;background:var(--ink);color:#fff;padding:4px 2px;font:700 14px var(--sans)}
.ride-sheet li div{position:relative;display:grid;gap:3px}
.ride-sheet li div::before{content:"";position:absolute;left:3px;top:.65em;bottom:.65em;width:2px;background:var(--ink)}
.ride-sheet li span{position:relative;display:flex;align-items:baseline;gap:8px;padding-left:16px;font-size:14px;line-height:1.35}
.ride-sheet li span::before{content:"";position:absolute;left:0;top:.42em;width:8px;height:8px;box-sizing:border-box;border:2px solid var(--ink);border-radius:50%;background:#faf7e9}
.ride-sheet li span:last-child::before{background:var(--ink)}
.ride-sheet time{font-variant-numeric:tabular-nums;color:#425548;flex:none}
@media(max-width:520px){
 #modal:has(.ride-planner){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:14px}
 #modal-body:has(.ride-planner){grid-template-columns:minmax(0,1fr);gap:8px}
 #modal:has(.ride-planner) #modal-error:empty{display:none}
 .ride-pickers{grid-template-columns:1fr}
 .ride-sheet header strong{font-size:19px}
}
@media(max-width:420px){
 .district-guides #town-directory:not([hidden]) { display:grid; grid-template-columns:18px 1fr 10px; padding:5px 8px; gap:0 6px; }
 .district-guides #town-directory i,.district-guides #town-directory>span { grid-row:1 / 3; }
 .district-guides #town-directory strong,.district-guides #town-directory small { grid-column:2; }
 .district-guides #town-directory>span { grid-column:3; }
 .district-guides #town-directory small { grid-row:2; margin:0; font-size:11px; }
 #bus-guide { padding:5px 8px; font-size:13px; }
 #modal:has(.transit-guide) { width:calc(100% - 16px); max-width:calc(100% - 16px); padding:14px; }
 #modal:has(.transit-guide) #modal-error:empty { display:none; }
 .guide-stops { padding:7px; }
 .atlas-stop { font-size:.85rem; gap:4px; }
}

/* The opera foyer postcard, with a map between the curtain folds. */
.print-opera { --print:#622e40; --stock:#ffedc7; border-color:#975a56; }
.print-opera .postcard-map { width:52%; filter:sepia(.32) saturate(.82); }
.print-opera .postcard-lettering { width:51%; padding:12px 8px 13px 14px; clip-path:none; background:linear-gradient(105deg,#672d41,#572839); border-right:3px double #d6b374; }
.print-opera .postcard-lettering small { color:#f5d496; }
.print-opera .postcard-lettering strong { font-size:clamp(18px,6.9cqw,34px); }
.print-opera .postcard-stamp { right:6px; top:auto; bottom:6px; width:28px; height:30px; }
.print-opera .postcard-stamp i { padding:2px; }
.print-opera .postcard-stamp svg { width:16px; height:16px; }
.paper-curtain { position:absolute; inset:0 0 auto 51%; height:58%; pointer-events:none; border-top:4px double #e6c07d; }
.paper-curtain::before,.paper-curtain::after {
 content:""; position:absolute; top:0; width:51%; height:100%;
 background:repeating-linear-gradient(104deg,#723449 0%,#a65b5a 16%,#83404e 26%,#622d40 40%); border-bottom:3px double #ebca94;
}
.paper-curtain::before { left:0; border-bottom-right-radius:100% 100%; }
.paper-curtain::after { right:0; border-bottom-left-radius:100% 100%; background:repeating-linear-gradient(76deg,#713448 0%,#a65b5a 16%,#83404e 26%,#622d40 40%); }
.bag-print.design-opera { color:#6b3245; background:linear-gradient(110deg,#70374a 35%,#ecd7a7 36%); }

.paper-value { white-space:nowrap; }
@media(max-width:420px){
 #modal:has([data-edition-select]) { width:calc(100% - 16px); max-width:calc(100% - 16px); max-height:calc(100dvh - 16px); padding:14px; }
 #modal:has([data-edition-select]) #modal-error:empty { display:none; }
}

.park-feeder{margin:0;overflow:hidden;border:1px solid #b4bda6;border-radius:7px;background:#f8f7ed;color:#283e32}
.park-feeder canvas{display:block;width:100%;height:clamp(118px,32vw,176px);object-fit:cover;background:#dbe4d6}
.park-feeder figcaption{padding:12px 15px 14px;border-top:1px solid #b4bda6}
.park-feeder figcaption>small:first-child{font-size:12px;color:#536747}
.park-feeder h3{margin:3px 0 7px;font:600 clamp(21px,4vw,27px)/1.05 var(--serif)}
.park-feeder p{font-size:14px;line-height:1.4}
.feeder-signature{display:block;margin-top:8px;color:#4c5a48;overflow-wrap:anywhere}
.feeder-controls{display:flex;flex-wrap:wrap;gap:8px}
.feeder-controls button{flex:1 1 auto;min-height:44px}
.field-notebook{border:1px solid #c3baa4;border-left:8px solid #496451;border-radius:3px 8px 8px 3px;background:#faf6e8;color:#344638;padding:16px 17px 5px}
.field-notebook header{border-bottom:1px solid #adae96;padding-bottom:12px}
.field-notebook header strong,.field-notebook header small{display:block}
.field-notebook header strong{font:600 22px/1.12 var(--serif)}
.field-notebook header small,.field-entry time{color:#556752;font-size:12px}
.field-notebook ul{margin:0;padding:0;list-style:none}
.field-notebook li{padding:13px 0}
.field-notebook li+li{border-top:1px dashed #b2b49f}
.field-entry{display:grid;grid-template-columns:minmax(65px,29%) minmax(0,1fr);gap:10px;align-items:center}
.field-entry canvas{display:block;width:100%;height:auto}
.field-entry h3,.field-blank strong{font:600 19px/1.12 var(--serif)}
.field-notebook li p{margin:4px 0;font-size:13px;line-height:1.4}
.field-entry time{display:block;font-variant-numeric:tabular-nums}
.field-blank{color:#596552}
.bag-field-book{display:grid;place-items:center;background:#67785b;color:#f6ecd6;width:34px;height:43px;border-left:5px solid #415440;border-bottom:3px double #d5c9a7;border-radius:2px 5px 4px 2px;transform:rotate(-5deg)}
.bag-field-book svg{width:21px;height:21px}
.flask-counter{margin:0;overflow:hidden;border:1px solid #acbcb0;border-radius:4px;background:#faf6e8;color:#304940}
.flask-shelf{display:flex;justify-content:center;align-items:flex-end;gap:12px;height:126px;padding-bottom:17px;border-bottom:3px solid #917952;background:linear-gradient(0deg,#c9b995 0 25px,#dee7dc 25px)}
.flask-bottle{width:45px;height:78px;position:relative;margin-right:13px;border:2px solid #395d55;border-radius:11px 11px 7px 7px;background:linear-gradient(90deg,#46756b,#82a697 26%,#578276 68%,#42685d);box-shadow:inset 0 -6px #637a6b}
.flask-bottle::before{content:"";position:absolute;left:3px;right:3px;top:-13px;height:15px;border:2px solid #746447;border-radius:5px 5px 3px 3px;background:repeating-linear-gradient(90deg,#dac59f 0 3px,#bfac86 3px 4px)}
.flask-bottle::after{content:"";position:absolute;inset:23px -1px auto;height:24px;border-block:2px solid #536f5b;background:radial-gradient(circle at 30% 55%,#bd602d 0 3px,transparent 4px),radial-gradient(circle at 47% 40%,#d88a37 0 4px,transparent 5px),linear-gradient(145deg,transparent 44%,#688155 45% 50%,transparent 51%),#edd9ad}
.flask-cup{width:25px;height:31px;clip-path:polygon(0 0,100% 0,88% 100%,12% 100%);background:#aaafa0}
.flask-cup.full{border-top:4px solid #92623d;background:linear-gradient(#fbefd4 0 29%,#be793c 30% 65%,#edddbe 66%)}
.flask-counter figcaption{padding:12px 14px}
.flask-counter h3{font:600 23px/1.1 var(--serif);margin:0 0 5px}
.flask-counter span{color:#4a6254;font-size:14px}
@media(max-width:520px){
 #modal:has(.flask-counter){width:calc(100% - 16px);max-width:calc(100% - 16px);padding:15px}
 #modal:has(.flask-counter) #modal-error:empty{display:none}
}
@media(max-width:520px){
 #modal:has(.field-notebook){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:15px}
 #modal-body:has(.field-notebook){grid-template-columns:minmax(0,1fr);gap:9px}
 #modal:has(.field-notebook) #modal-error:empty{display:none}
 .field-notebook{padding:12px 10px 3px}
}
.bag-binoculars{display:grid;place-items:center;width:40px;height:40px;background:#39594c;color:#e7d8ac;border:2px solid #b7a27b;border-radius:9px;transform:rotate(-6deg)}
.bag-binoculars svg{width:30px;height:30px}
.kite-sky{margin:0;overflow:hidden;background:#fbf6e8;color:#283f40;border:1px solid #aab8aa;border-radius:7px}
.kite-sky canvas{display:block;width:100%;height:auto}
.kite-sky figcaption{padding:10px 12px;border-top:1px solid #aab8aa;font-size:14px;line-height:1.35}
.kite-sky ul{margin:0;padding:0;list-style:none;display:grid;gap:5px}
.kite-sky li{display:grid;align-items:center;grid-template-columns:14px minmax(0,1fr) minmax(20px,35%);gap:7px}
.kite-sky li small{text-align:right;color:#4d6156;overflow-wrap:anywhere}
.kite-chip{display:inline-block;flex:none;width:13px;height:17px;clip-path:polygon(50% 0,100% 37%,50% 100%,0 37%);background:linear-gradient(96deg,#a04936 48%,#e69d4d 50%)}
.kite-chip.swallow{background:linear-gradient(28deg,#344f71 50%,#d4e5dc 52% 64%,#597b99 67%)}
.kite-chip.reed{background:repeating-linear-gradient(-42deg,#367563 0 6px,#c6d890 6px 8px)}
.kite-controls{display:flex;flex-wrap:wrap;gap:7px}
.kite-controls button{flex:1 1 auto;min-height:44px}
.kite-launch{display:flex;justify-content:center;align-items:center;gap:6px;padding:6px 9px;border-radius:5px;border:1px solid #a8b5a5;background:#eff3e9;font-weight:600}
.kite-launch:not(:disabled):hover{background:#e3ecd9}
.kite-duration{color:#506254;line-height:1.4}
.kite-ribbons{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:6px 10px;padding:10px 12px;background:#f7efd9;border:1px solid #ccba93;border-radius:5px;color:#493f32}
.kite-ribbons strong,.kite-ribbons small{display:block}
.kite-ribbons strong{font:600 19px/1.15 var(--serif)}
.kite-ribbons small{margin-top:2px;font-size:13px;line-height:1.35}
.kite-ribbons i{display:flex;gap:2px;align-self:center;border-top:2px solid #796348;transform:rotate(9deg)}
.kite-ribbons i b{width:15px;height:17px;clip-path:polygon(0 0,100% 0,48% 100%);background:#ad4c3d}
.kite-ribbons i b:nth-child(2){background:#c69732}.kite-ribbons i b:last-child{background:#348276}
.kite-ribbons button{grid-column:1 / -1;min-height:44px}
@media(max-width:480px){
 #modal:has(.kite-sky){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:14px}
 #modal:has(.kite-sky) .modal-head{margin-bottom:10px}
 #modal-body:has(>.kite-sky){gap:8px}
 #modal:has(.kite-sky) #modal-error:empty{display:none}
 .kite-controls:has(.primary){display:grid;grid-template-columns:1fr 1fr}
 .kite-controls .primary,.kite-controls .secondary{padding:6px}
 .kite-sky li{grid-template-columns:14px minmax(0,1fr) auto}
 .kite-sky li small{max-width:76px}
}
.waymark-caption{color:#485d54;font-size:14px;line-height:1.45}
.waymark-list{display:grid;gap:9px;margin:0;padding:0;list-style:none}
.waymark-route{display:grid;align-items:center;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;width:100%;min-height:62px;padding:10px 12px;text-align:left;color:#294d43;background:#f2f5ec;border:1px solid #9aaea1;border-left:4px solid #4b7160;border-radius:5px}
.waymark-route:hover,.waymark-route:focus-visible{background:#e4edde}
.waymark-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#35594e;color:#fff9dd}
.waymark-place strong,.waymark-place small{display:block}
.waymark-place strong{font:600 19px/1.15 var(--serif)}
.waymark-place small{margin-top:3px;color:#526156;font-size:13px;line-height:1.3}
.waymark-route b{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:420px){.waymark-route{grid-template-columns:26px minmax(0,1fr) auto;gap:7px;padding:9px 7px}.waymark-icon{width:26px;height:26px}.waymark-place strong{font-size:17px}}
.place-icon.pushkin-park,.arrival-icon.pushkin-park{color:#466b47;background:#e1e9d8}

.travel-link{display:inline-flex;align-items:center;gap:4px;min-height:32px;color:var(--ink);font-size:14px;font-weight:650;text-underline-offset:3px}

#home-screen[hidden],#voyage-screen[hidden],#voyage-screen [hidden],#move-home[hidden]{display:none!important}
.resident-address{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px;border:1px solid var(--rule);border-radius:6px;background:#eff3ea}
.resident-address>div{display:flex;align-items:center;gap:10px;min-width:0}
.resident-address strong{display:block;overflow-wrap:anywhere;font:600 19px/1.3 var(--serif)}
.resident-address span{font-size:13px}
.home-address-preview svg{display:block;width:100%;height:auto;aspect-ratio:2;background:#e9ecdf;border:1px solid var(--rule);border-radius:6px}

#story-markers [role=button] {cursor:pointer}
#story-markers g:focus-visible {outline:2px solid #844e36}
#street-directory[hidden] {display:none}
.directory-address:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:3px;min-width:0}
.directory-address .place{align-self:stretch}
.directory-address .place-copy{min-width:0;overflow-wrap:anywhere}
.directory-address .save-place[aria-pressed=false]{background:transparent;border-color:transparent}
.directory-address .save-place:hover{background:#edf1e8;border-color:#c5cdbf}
@media(max-width:640px){.places{grid-template-columns:minmax(0,1fr)}}
.venue-address{display:flex;align-items:center;justify-content:space-between;gap:12px}
.venue-address .dialog-copy{margin:0;overflow-wrap:anywhere}
.activity-preview{min-width:0;border-block:1px solid var(--rule);overflow-wrap:anywhere}
.activity-preview summary{min-height:44px;align-content:center;padding:.5rem 0;color:var(--pine);font-weight:650;cursor:pointer}
.activity-preview>div{padding:0 .25rem .75rem}
.activity-preview h3{margin:0;font:600 1.15rem/1.3 var(--serif)}
.activity-preview p{margin:.4rem 0}
.activity-preview ul{margin:.5rem 0 0;padding-inline-start:1.3rem}
.activity-preview li+li{margin-top:.25rem}
.activity-preview li small{color:var(--pine);font-weight:650}
.venue-tip{min-width:0;padding:.75rem 1rem;background:#edf2e8;border-inline-start:3px solid var(--pine);overflow-wrap:anywhere}
.venue-tip h3{margin:0;font:600 1.15rem/1.3 var(--serif)}
.venue-tip p{margin:.4rem 0 0}
.venue-tip button{display:block;max-width:100%;margin:.5rem 0 0;white-space:normal;overflow-wrap:anywhere}
.venue-guestbook{margin:16px 0;border:1px solid #c8c0ab;border-left:4px solid #826e50;border-radius:4px;background:#fbf8eb;color:var(--ink)}
.venue-guestbook summary{display:flex;align-items:center;gap:9px;min-height:44px;padding:8px 12px;cursor:pointer;font:600 19px var(--serif);list-style:none}
.venue-guestbook summary::-webkit-details-marker{display:none}
.venue-guestbook summary::after{content:"";margin-left:auto;width:7px;height:7px;border:solid #70684e;border-width:0 2px 2px 0;transform:rotate(45deg)}
.venue-guestbook[open] summary::after{transform:rotate(225deg)}
.venue-guestbook>div{padding:0 12px 12px}
.venue-guestbook ol{list-style:none;margin:0 0 10px;padding:0}
.venue-guestbook li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid #ded9c6;font-size:14px}
.venue-guestbook li span{min-width:0;overflow-wrap:anywhere}
.venue-guestbook li strong{font:600 18px var(--serif)}
.venue-guestbook li small{display:block;color:#575c50}
.venue-guestbook .small-seal,.signed-line .small-seal{flex:0 0 44px;min-width:0;padding:0;border-width:2px;--seal-paper:#fbf8eb}
.venue-guestbook .small-seal svg,.signed-line .small-seal svg{width:37px;height:30px}
.venue-guestbook h4{margin:.75rem 0 .25rem;font-size:.95rem}
.guestbook-update{margin:.75rem 0;padding:.65rem .8rem;border:1px solid #d5cdba;background:#fffdf5}
.guestbook-update h4{margin:0}.guestbook-update>div{display:flex;align-items:center;justify-content:space-between;gap:.45rem;min-height:44px}
.guestbook-update strong{font:600 18px var(--serif);overflow-wrap:anywhere}
.venue-guestbook button{min-height:44px}
.signed-addresses,.signed-addresses article{display:grid;gap:.55rem;min-width:0}
.signed-addresses article{padding:.85rem 0;border-bottom:1px solid var(--rule);overflow-wrap:anywhere}
.signed-addresses article h3{margin:0}.signed-addresses article p,.signed-line small{color:var(--mute)}
.signed-line{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.45rem .65rem;background:#fbf8eb;border-left:3px solid #aa9270}
.signed-line strong,.signed-line small{display:block}.signed-line strong{font:600 1.08rem var(--serif)}
.signed-addresses button{min-height:44px}
#street-directory .venue-activity{margin-top:3px;color:var(--pine)}
@media(max-width:440px){
 #directory-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 #directory-filters:has([data-directory="games"]:not([hidden])){grid-template-columns:repeat(12,minmax(0,1fr))}
 #directory-filters:has([data-directory="games"]:not([hidden])) button{grid-column:span 3}
 #directory-filters:has([data-directory="games"]:not([hidden])) button:nth-child(n+5){grid-column:span 4}
 #directory-filters:has([data-directory="pastimes"]:not([hidden])) button:nth-child(n){grid-column:span 4}
 #directory-filters:has([data-directory="pastimes"]:not([hidden])):has([data-directory="games"]:not([hidden])) button:nth-last-child(-n+2){grid-column:span 6}
 #directory-filters:has([data-directory="pastimes"]:not([hidden])){grid-template-columns:repeat(12,minmax(0,1fr))}
}
#pastime-directory .place { min-width:0; text-align:left; }
#pastime-directory .place-copy { min-width:0; overflow-wrap:anywhere; }
#pastime-directory .pastime-link { color:var(--pine); font-weight:650; }
.street-voice {border-left:3px solid #966445;padding:8px 14px;margin:16px 0}
.street-voice strong,.street-voice small {display:block}
.street-voice small {color:var(--muted);margin:4px 0 12px}
.street-voice blockquote {margin:8px 0;line-height:1.55}

#city-mystery small{display:block;margin-bottom:.75rem;color:#47665b}
.story-task{padding:1rem;margin:1rem 0;border:1px solid #c5d2c3;border-radius:.65rem;background:#edf2e8}
.story-task h3{margin:0}.story-task button{margin:.25rem .4rem .25rem 0}

.npc-character{margin:.65rem 0;color:#324f47;grid-column:1/-1}
.npc-character summary{cursor:pointer;width:fit-content}
.npc-character dl{max-width:22rem;margin:.5rem 0}
.npc-character dl div{display:flex;justify-content:space-between;border-bottom:1px solid #d5ded2;padding:.25rem 0}
.npc-character dd{font-variant-numeric:tabular-nums}

.build-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.75rem}
.build-catalog article,.build-estimate{padding:1rem;border:1px solid #c6d3c4;border-radius:.65rem}
.build-catalog h3,.build-estimate h3{margin:.25rem 0}.build-catalog small,.property-row small{display:block;color:#405c50}
.build-catalog button,.build-estimate button{margin:.65rem .25rem 0 0}.build-estimate{background:#edf2e8;margin-bottom:.75rem}
.property-row{display:block;width:100%;text-align:left;padding:.6rem;margin:.35rem 0}
#plot-picker:not([hidden]){display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.35rem;position:absolute;z-index:5;bottom:.6rem;left:50%;transform:translateX(-50%);width:max-content;max-width:95%;background:#fffaf0;border:1px solid #aebdae;color:#203e37;border-radius:.5rem;padding:.45rem}
#property-price{width:9rem;max-width:100%}.district-tools{flex-wrap:wrap}

#plot-picker button{width:auto;min-height:40px}

.district-exits{display:grid;gap:.45rem;margin:1rem 0;padding:.75rem;border:1px solid var(--line);border-radius:.5rem}.district-exits button{display:grid;gap:.15rem;text-align:left}.district-exits small{font-weight:400;font-variant-numeric:tabular-nums}.commute-list{margin:1rem 0}.commute-list ul{padding-left:1.2rem}.commute-list li+li{margin-top:.4rem}

#modal:has(.estate-book){width:min(43rem,calc(100vw - 1.5rem))}
.estate-book{color:#223f38}
.estate-book nav{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #b9c9b9;gap:.2rem}
.estate-tab{min-height:44px;padding:.45rem .15rem;font-weight:600;color:#52675d;border-bottom:3px solid transparent}
.estate-tab[aria-pressed=true]{color:#1c523e;border-bottom-color:#236344;background:#edf2e8}
.estate-content{display:grid;gap:.8rem;margin-top:1rem}
.estate-summary,.estate-facts{display:flex;flex-wrap:wrap;gap:.75rem 1.35rem;margin:0}
.estate-summary{background:#e8efe2;border-left:3px solid #42715a;padding:.7rem 1rem}
.estate-book dt,.estate-facts dt,.estate-card small,.estate-ledger small,.estate-note{color:#496354;font-size:.81rem}
.estate-book dd,.estate-facts dd{margin:0;font-weight:650;font-variant-numeric:tabular-nums}
.estate-summary dd{font:600 1.55rem var(--serif)}
.estate-tills{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap;background:#e8efe2;border-left:3px solid #42715a;padding:.7rem 1rem}
.estate-tills .estate-summary{padding:0;border:0}
.estate-tills button{min-height:44px}
.estate-market-tools{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;padding:.45rem .65rem;background:#edf2e8;border-radius:.35rem}
.estate-market-tools strong{font-variant-numeric:tabular-nums}
.offer-filters{display:flex;flex-wrap:wrap;gap:.4rem}
#estate-price-filter{flex-basis:100%;min-width:0;border-top:1px solid var(--rule);padding-top:.5rem}
#estate-price-filter>div{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin-top:.25rem}
#estate-price-filter input{width:9rem;min-width:0;max-width:100%;min-height:44px;font-variant-numeric:tabular-nums}
#estate-price-filter button{max-width:100%;min-height:44px;white-space:normal}
.estate-ledger-filter{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.35rem .7rem;padding:.45rem .65rem;background:#edf2e8;border-radius:.35rem}
#modal-body .estate-ledger-filter label{margin:0;font-weight:600}
.estate-ledger-filter select{min-width:0;max-width:100%;min-height:44px;padding:.3rem .6rem;color:var(--ink);background:#fffef9;border:1px solid #aebbad;border-radius:.35rem}
#modal-body label.offer-reduced{display:flex;align-items:center;gap:.5rem;flex-basis:100%;margin:0;border-top:1px solid #ced9c8;min-height:44px;font-weight:550;cursor:pointer}
#modal-body .offer-reduced input{flex:none;width:1.1rem;height:1.1rem;margin:0;padding:0;accent-color:var(--pine)}
@media(max-width:440px){
 .offer-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .offer-filters .estate-filter{padding-inline:.3rem}
}
.estate-card header .save-place{margin-inline-start:auto}
.offer-memory{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.2rem .75rem;padding:.45rem .65rem;background:#f1f4eb;border-radius:.35rem}
.offer-memory strong{display:block;font-variant-numeric:tabular-nums}
.offer-memory .estate-link{min-height:44px}
.build-budget{margin-bottom:.75rem}
.build-budget>div,.build-funding dt{min-width:0;overflow-wrap:anywhere}
.build-funding{margin:.75rem 0 0;padding:.5rem 0;border-block:1px solid #c6d3c4}
.build-funding>div{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:1rem;padding:.2rem 0}
.build-funding dd{margin:0;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.build-catalog .project-budget-note{margin-top:.4rem;font-weight:600}
.build-estimate button{max-width:100%;white-space:normal}
.purchase-estimate{margin:.75rem 0;border:1px solid #c8d2bf;border-radius:.4rem;background:#f4f6ed}
.purchase-estimate summary{min-height:44px;align-content:center;padding:.5rem .75rem;cursor:pointer;color:var(--pine);font-weight:650}
.purchase-estimate>div{padding:0 .75rem .7rem}
.purchase-estimate p{margin:0;font-size:.88rem}
.purchase-estimate span{white-space:nowrap}
.purchase-estimate table{width:100%;margin-top:.7rem;border-collapse:collapse;font-variant-numeric:tabular-nums}
.purchase-estimate caption{text-align:left;font:600 1.05rem/1.3 var(--serif);padding-bottom:.5rem}
.purchase-estimate th,.purchase-estimate td{padding:.35rem .15rem;text-align:right;border-top:1px solid #ccd5c5}
.purchase-estimate thead th{font-size:.77rem;line-height:1.25;color:#475c50;vertical-align:bottom}
.purchase-estimate th:first-child{text-align:left}
.purchase-estimate tbody td:last-child{font-weight:650;color:var(--pine)}
.estate-market-tools .estate-filter{min-height:44px;width:auto}
.estate-filter[aria-pressed=true]{color:white;background:#225640;border-color:#225640}
.estate-shortfall,.estate-card .estate-shortfall{display:block;color:#89482f}
#estate-feedback{margin:0;color:#25583f;font-weight:600}
#estate-feedback:empty{display:none}
.estate-card-cash{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.55rem .85rem}
.estate-card-cash button{min-height:44px}
.estate-card .estate-payout{margin:0;color:var(--pine);font-weight:600}
.estate-payout:empty{display:none}
.estate-card{border:1px solid #c5d0c3;border-radius:.5rem;background:#fffef9;padding:.9rem 1rem;display:grid;gap:.7rem;overflow-wrap:anywhere}
.estate-card header,.estate-card footer{display:flex;align-items:center;gap:.75rem}
.estate-card header h3,.estate-subhead{margin:0}
.estate-mark{height:2.4rem;width:2.4rem;flex:none;display:grid;place-items:center;background:#e6ede0;color:#315b43;border-radius:.35rem}
.estate-card footer{border-top:1px solid #d5ded2;padding-top:.55rem;justify-content:space-between;font-size:.85rem}
.estate-card footer button{width:auto;min-height:42px}
.estate-empty{padding:.75rem 0;color:#40584b}
.estate-ledger{list-style:none;padding:0;margin:0}
.estate-ledger li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6rem;align-items:center;padding:.7rem 0;border-bottom:1px solid #cbd6c8}
.estate-ledger strong,.estate-ledger small{display:block;overflow-wrap:anywhere}
.estate-ledger b{font-variant-numeric:tabular-nums;white-space:nowrap}.estate-credit{color:#1d6144}.estate-debit{color:#8e452c}
.estate-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.45rem}
.venue-ticket{min-height:44px;overflow-wrap:anywhere;text-underline-offset:.18em}
.owned-actions .venue-ticket{grid-column:1/-1}
@media(max-width:440px){
 .estate-actions.owned-actions{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
 .owned-actions button{min-height:44px;text-align:center;line-height:1.2;padding-inline:.35rem}
}
.estate-offer{background:#f1f4eb;border-radius:.35rem;padding:0 .7rem}
.estate-offer summary{min-height:44px;align-content:center;cursor:pointer;color:#28523e;font-weight:600;line-height:1.55}
.estate-offer summary strong{display:inline-block;margin-inline-start:.35rem;font-size:.84rem;font-variant-numeric:tabular-nums}
.estate-offer[open]{padding-bottom:.65rem}
.property-offer{display:grid;gap:.45rem;margin-top:.3rem}
.property-offer label{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.property-offer input{box-sizing:border-box;width:9rem;max-width:100%;min-height:44px}
.property-offer>div{display:flex;gap:.4rem;flex-wrap:wrap}
.property-offer button{min-height:44px}
.property-offer>[data-do="property-compare"]{justify-self:start}
.offer-prices{min-width:0;padding:.7rem;border:1px solid #c8d2bf;border-radius:.4rem;background:#fbfcf7}
.offer-prices h4,.offer-prices p{margin:0 0 .45rem}
.offer-prices h4{font:600 1.05rem var(--serif)}
.offer-prices ul{margin:0;padding:0;list-style:none}
.offer-prices li,.build-price-reference{display:flex;align-items:center;justify-content:space-between;gap:.3rem .7rem;flex-wrap:wrap;padding:.45rem 0;border-top:1px solid #d5ddcf}
.offer-prices li>div{min-width:0;overflow-wrap:anywhere}
.offer-prices small{display:block;color:#496354}
.offer-prices button{font-variant-numeric:tabular-nums;margin:0}
.entrance-route h3,.entrance-route p{margin:0;overflow-wrap:anywhere}
.entrance-route figure{margin:.75rem 0;border:1px solid #c8d2bf;border-radius:.45rem;overflow:hidden;background:#e8eddf}
.entrance-route .town-tip-map{aspect-ratio:2.1}
.route-credit{display:block;text-align:right;padding:0 .4rem;color:#40584b;font-size:.7rem}
.route-legend{display:inline-flex;gap:.8rem}
.route-legend span::before{display:inline-block;content:"";width:.65em;height:.65em;margin-right:.3em;border:1px solid #713d26;border-radius:50%;background:#fffaf0}
.route-legend span:last-child::before{background:#a95330}
.entrance-route figcaption{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.3rem .6rem;padding:.5rem .65rem;background:#f6f7ef}
.entrance-route figcaption strong{font-variant-numeric:tabular-nums}
.build-price-reference{padding-bottom:0}
.estate-link{color:#20573e;text-decoration:underline;text-underline-offset:.2em;text-align:left;font-weight:650;min-height:44px}
.estate-statement{display:grid;gap:.8rem}.estate-statement h3,.estate-statement p{margin:0}
.estate-statement .estate-ledger small:first-child{color:#304f42;font-size:.95rem}
.studio-folder,.studio-address{display:grid;gap:.8rem;min-width:0}
.studio-address+.studio-address{border-top:1px solid #c8caba;padding-top:1rem}
.studio-address h3,.studio-sheet figcaption{overflow-wrap:anywhere}
.studio-address small{color:#526457}
.studio-sheet{margin:.4rem 0;padding:clamp(.45rem,2vw,.9rem);background:#faf4e3;border:1px solid #cdc5af}
#modal-body .studio-sheet img{display:block;width:100%;height:auto;aspect-ratio:900/394;border-radius:0}
.studio-sheet figcaption{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.2rem .8rem;margin-top:.4rem;color:#36453d}
.studio-sheet strong{font:600 1.16rem var(--serif)}
.studio-sheet small{font-variant-numeric:tabular-nums}
.studio-folder button{min-height:44px}
.collection-filter{justify-self:start}
.collection-filter[aria-pressed="true"]{color:white;background:var(--pine)}
.studio-address .studio-series{margin:0;color:#43594b}
.studio-counter{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:.65rem;margin-top:.7rem}
.studio-counter article{display:flex;flex-direction:column;align-items:stretch;gap:.3rem;min-width:0;padding:.6rem;background:#faf4e3;border:1px solid #cdc5af}
#modal-body .studio-counter img{display:block;width:100%;height:auto;border-radius:0}
.studio-counter h4{margin:0;font:600 1.1rem var(--serif);overflow-wrap:anywhere}
.studio-counter small{color:#43594b;margin-bottom:.3rem}
.story-task .studio-counter button{margin:auto 0 0;min-height:44px}
.visit-report fieldset{display:flex;flex-wrap:wrap;gap:.3rem;min-width:0;margin:0;padding:0;border:0}
.visit-report legend{font-size:.82rem;color:#496354}
#modal-body .visit-report fieldset label{display:flex;align-items:center;gap:.35rem;min-height:44px;margin:0;padding:.4rem .45rem;border:1px solid #c5d0c3;border-radius:.35rem;font-size:.92rem;cursor:pointer}
#modal-body .visit-report label:has(:checked){background:#e8efe2;border-color:#42715a}
.visit-report fieldset input{margin:0;padding:0;width:1rem;height:1rem;accent-color:#315f49}
.visit-counts{padding:.75rem 1rem;background:#f4f6ed;border-left:3px solid #42715a;overflow-wrap:anywhere}
.visit-counts h4,.visit-counts dl>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:.25rem .7rem}
.visit-counts h4{margin:0;padding-bottom:.5rem;border-bottom:1px solid #c8d3c4;font-size:1rem}
.visit-counts h4 b{font:600 1.65rem var(--serif)}
.visit-counts dl{display:grid;gap:.8rem;margin:.75rem 0 .2rem}
.visit-counts dt{font-size:.94rem;color:#264438}
.visit-counts dl>div::after{content:"";grid-column:1/-1;height:.32rem;border-radius:.16rem;background:linear-gradient(to right,#45755a var(--share),#dce4d6 var(--share))}
.visit-report:has([value="week"]:checked) [data-period="all"],.visit-report:has([value="all"]:checked) [data-period="week"]{display:none}
.shared-garden{display:grid;gap:.65rem;margin:0;padding:.85rem;border:1px solid #c6cebb;border-radius:.5rem;background:#f4f3e8}
.shared-garden h3,.shared-garden h4{margin:0;color:#263f35}
.shared-garden h4{display:flex;align-items:baseline;justify-content:space-between;font-size:.94rem}
.shared-garden h4 small,.shared-garden>small{font-size:.77rem;font-weight:500;color:#52644f}
.shared-garden figcaption{font-size:.87rem;color:#354d3e}
.bed-row{display:grid;grid-template-columns:6.7rem minmax(0,1fr);align-items:center;gap:.55rem}
.bed-row h4{display:grid;gap:.16rem}
.bed-soil{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;border-bottom:3px solid #956f50;border-radius:.28rem;background:linear-gradient(to bottom,#e3e8cf,#e9ead8 82%,#c9af8a 82%,#d1ba98)}
.bed-soil .bed-flower,.bed-empty{display:grid;place-items:end center;height:4.15rem;min-width:0;padding:0}
.bed-soil .bed-flower{width:100%;border:0;border-radius:.2rem;background:transparent}
.bed-flower canvas{height:4rem;width:3.5rem;max-width:100%;object-fit:contain}
.bed-soil .bed-flower:is(:focus-visible,[aria-pressed=true]){outline:2px solid #38664c;outline-offset:-2px;background:#d4dfc04d}
.bed-empty::after{content:"";width:.85rem;height:.22rem;border-radius:50%;background:#a28b67;margin-bottom:.3rem}
@media(max-width:480px){.bed-row{grid-template-columns:1fr;gap:.22rem}.bed-row h4{display:flex}.shared-garden{padding:.65rem}}
@media(max-width:440px){#modal:has(.estate-book){padding:14px}.estate-tab{font-size:.8rem}.estate-card{padding:.7rem}.estate-summary{gap:.65rem 1rem}}
.quest-finding{display:grid;gap:.8rem;color:var(--ink);overflow-wrap:anywhere}
.quest-finding h3,.quest-finding h4,.quest-finding p,.quest-finding figure{margin:0}
.quest-finding .category{color:#2c654e}
.quest-finding figure{overflow:hidden;border:1px solid #d5dacd;border-radius:.45rem;background:#f2f1e7}
.quest-finding figure img,.quest-finding figure svg{display:block;width:100%;height:auto;max-height:34vh;object-fit:contain}
.quest-finding figcaption{padding:.45rem .7rem;font-size:.81rem;color:#4b5c53}
.quest-finding section{border-left:3px solid #b08a45;padding:.15rem .8rem}
.quest-finding section h4{margin-bottom:.25rem}
.finding-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.finding-actions button{min-height:44px}

.game-table{display:grid;gap:12px;min-width:0}
:is(.table-rematch,.table-draw-offer){border-left:3px solid var(--pine);padding:10px 12px;background:#edf2e8;overflow-wrap:anywhere}
:is(.table-rematch,.table-draw-offer) h3{margin:0;font:600 19px var(--serif)}
:is(.table-rematch,.table-draw-offer) p{margin:4px 0 8px;font-size:14px}
:is(.table-rematch,.table-draw-offer)>div{display:flex;flex-wrap:wrap;gap:6px}
:is(.table-rematch,.table-draw-offer) button{min-height:44px}
.table-draw-note{overflow-wrap:anywhere}
.table-review{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;padding:8px 0;border-top:1px solid var(--rule);overflow-wrap:anywhere}
.table-review button{min-height:44px}
.game-table header,.game-setup,.game-controls,.game-promotion{display:flex;flex-wrap:wrap;align-items:end;gap:8px 14px}
.game-table header{justify-content:space-between;align-items:center;border-bottom:1px solid var(--rule);padding-bottom:10px}
.game-table header>span,.table-host,.game-help,.table-seats{font-size:14px;color:#466153}
.game-table label{display:grid;gap:4px;font-size:13px;font-weight:650}
.game-table select{font:inherit;font-size:16px;min-height:44px;background:var(--white);border:1px solid #aebdae;color:var(--ink);border-radius:6px;padding:4px 8px;max-width:100%}
.game-table .table-status{font:600 21px var(--serif);color:var(--pine)}
.game-table>.primary,.game-table>.secondary{justify-self:start}
.game-table .game-grid{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:0;width:min(100%,416px);margin-inline:auto;border:2px solid #344d46;overflow:hidden;border-radius:4px}
.game-table .game-cell{position:relative;display:grid;place-items:center;min-height:0;min-width:0;width:100%;aspect-ratio:1;margin:0;padding:0;border:0;border-radius:0;font:700 clamp(19px,6vw,35px)/1 var(--sans);color:var(--ink);background:#f2ead5}
.game-table .dark{background:#91ab91}.game-table .game-cell.picked{background:#efbf65}
.game-table .game-cell.legal::after{content:"";position:absolute;inset:36%;background:#315c45;border-radius:100%;opacity:.8}
.game-table .game-cell.legal:has(.figure)::after{inset:3%;border:3px solid #ae5422;background:none;opacity:1}
.game-table .game-cell:focus-visible{outline:3px solid #b3511b;outline-offset:-3px;z-index:1}
.game-table .figure{position:relative;font:clamp(23px,7vw,39px)/1 Georgia,serif;color:#203238}
.game-table .figure.white{color:#fffaf0;-webkit-text-stroke:.9px #26383c}
.game-table .file,.game-table .rank{position:absolute;font:bold 9px/1 var(--sans);color:#334f46}
.game-table .rank{top:2px;left:2px}.game-table .file{right:2px;bottom:1px}
.game-table .disc{border-radius:50%;width:73%;height:73%;background:#205548;border:2px solid #173b31}
.game-table .disc-o{background:#e8bc5e;border-color:#976625}
.game-table .reversi .disc-o{background:#fffaf0;border-color:#919a8a}
.game-table .four .secondary{padding:0;min-height:40px;border-radius:0;margin:0}
.game-table .game-promotion{border:1px solid var(--rule);padding:8px}
.game-table .game-rating{border-top:1px solid var(--rule);padding-top:10px}
.rating-result{margin-block:8px;overflow-wrap:anywhere;border-block:1px solid var(--rule);font-variant-numeric:tabular-nums}
.rating-result summary{cursor:pointer;min-height:44px;padding:10px 4px;color:var(--pine)}
.rating-result summary strong{float:right;padding-inline:8px}
.rating-result>div{padding:0 6px 6px}
.my-games{display:grid;gap:14px;min-width:0}
.my-games-count{margin:0;color:var(--pine)}
.personal-game,.unplayed-games{padding-block:12px;border-top:1px solid var(--rule);min-width:0;overflow-wrap:anywhere}
.personal-game header,.game-totals,.unplayed-games>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px}
.personal-game header{justify-content:space-between}
.personal-game header span{font-variant-numeric:tabular-nums}
.personal-game h3,.unplayed-games h3{margin:0;font:600 21px var(--serif)}
.game-totals,.unplayed-games p{margin:6px 0 10px;font-size:14px;color:#466153}
.my-games button{min-height:44px;max-width:100%;margin:0}
.my-games>button{justify-self:start}
.waiting-tables ul{list-style:none;padding:0;margin:0}
.waiting-tables li,.waiting-tables>div{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;padding-block:12px}
.waiting-tables li{border-top:1px solid var(--rule)}
.waiting-tables li>div{flex:1 1 11rem;min-width:0;overflow-wrap:anywhere}
.waiting-tables h3{margin:0;font:600 19px var(--serif)}
.waiting-tables p{margin:4px 0;color:#466153}
.waiting-filter{display:grid;gap:4px;margin:10px 0 14px;max-width:18rem;font-size:14px;font-weight:650}
.waiting-filter select{width:100%;min-width:0;min-height:44px;padding:6px 9px;border:1px solid var(--rule);border-radius:6px;background:var(--white);color:var(--ink);font:inherit;font-size:16px}
.waiting-tables button{margin:0;min-height:44px;max-width:100%}
.waiting-tables>div{justify-content:flex-start}
.game-table .game-rating p{margin:5px 0}.game-table .game-rating ol{margin:4px 0;padding-left:22px}
.game-table .game-error{color:#933d24}.game-table .game-error:empty{display:none}
.game-cell .game-token{grid-area:1/1;pointer-events:none}
.game-table .piece-in-motion{z-index:2}
.game-table .reversi .disc{backface-visibility:hidden}
.table-invitations{padding:12px;border:1px solid var(--rule);border-radius:6px;background:#f0f3e8}
.table-invitations h3{margin:0 0 8px;font:600 19px var(--serif)}
.table-invitations ul{margin:0;padding:0;list-style:none}
.table-invitations li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:6px 0}
.table-invitations li>div{flex:1 1 11rem;min-width:0;overflow-wrap:anywhere}
.table-invitations small{display:block;color:#466153}
.table-invitations button{min-height:44px;max-width:100%;white-space:normal}
.venue-game-guide{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid var(--rule);padding-top:10px}
.venue-game-guide button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.game-table .go .game-cell{background:#e4c592}
.go .game-cell:before,.go .game-cell:after{content:"";position:absolute;background:#886944;pointer-events:none}
.go .game-cell:before{left:0;right:0;top:50%;height:1px}
.go .game-cell:after{top:0;bottom:0;left:50%;width:1px}
.go .game-cell:nth-child(9n+1):before{left:50%}
.go .game-cell:nth-child(9n):before{right:50%}
.go .game-cell:nth-child(-n+9):after{top:50%}
.go .game-cell:nth-last-child(-n+9):after{bottom:50%}
.game-table .go .star-point{background:#e4c592 radial-gradient(circle at center,#64482c 2px,transparent 3px)}
.game-table .go .disc{width:78%;height:78%;background:#242d2a;border-color:#1d2521;z-index:1}
.game-table .go .disc-o{background:#fffcf1;border-color:#a69c88}
.go .last-stone .disc:after{content:"";position:absolute;inset:43%;border:1.5px solid #f4e3bf;border-radius:50%}
.go .last-stone .disc-o:after{border-color:#5c503a}
.go-tools{display:flex;flex-wrap:wrap;gap:.45rem}
.go-tools button{min-height:44px}
.go-tools [aria-pressed=true],.go-tools [aria-expanded=true]{background:#e2eee3;border-color:#457362}
.go .group-stone .disc{box-shadow:0 0 0 2px #fff9de,0 0 0 4px #215d50}
.go .go-liberty{grid-area:1/1;z-index:1;width:34%;aspect-ratio:1;border:2px solid #215d50;background:#fff9de;pointer-events:none}
.go-group-notes{width:min(100%,416px);margin:0 auto;color:var(--ink);font-size:14px}
.go-group-notes p{margin:.25rem 0}
.go .area-mark,.go-score .area-mark{display:inline-block;width:10px;height:10px;border:1.5px solid #29392e;pointer-events:none}
.go .area-mark{grid-area:1/1;z-index:1}
.black-area{background:#26352c}
.white-area{background:#fffaf0;transform:rotate(45deg)}
.go-score{width:min(100%,416px);margin-inline:auto}
.go-score table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.go-score caption{text-align:left;font:600 19px var(--serif);padding-bottom:6px;color:var(--pine)}
.go-score th,.go-score td{padding:4px 6px;text-align:right}
.go-score th:first-child{text-align:left}
.go-score thead,.go-score tfoot{border-block-end:1px solid var(--rule)}
.go-score tfoot{background:#eef1e6;font-weight:700}
.go-score .area-mark{margin-inline-end:6px}
.go-score p{margin-top:6px;color:#466153;font-size:14px}
.game-table [data-table="area"]{min-height:44px}
.counting-board{width:min(100%,416px);margin-inline:auto;color:var(--ink)}
.nim-pile{padding:8px 0;border-bottom:1px solid var(--rule)}
.nim-stones,.nim-choices,.kalah-side{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.nim-stones{min-height:22px;margin-block:3px}
.nim-stones i{width:16px;height:13px;border-radius:55% 45% 48% 42%;background:#527567;box-shadow:inset 0 -2px #33574a}
.game-table .nim-choices button{padding:3px 8px;min-width:44px;min-height:44px}
.kalah{background:#e8c99a;border-radius:10px;padding:10px;border:1px solid #b59768}
.kalah-side{justify-content:space-between;font-size:14px}
.kalah-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding-block:6px}
.kalah-pit{min-width:0;min-height:44px;border-radius:45%;background:#674c34;color:#fff4db;border:2px solid #f1ce7b;font:600 18px var(--sans);padding:0}
.kalah-pit:disabled{background:#a3815d;color:#292219;border-color:transparent;opacity:1}
.stone-count{display:inline-block;font-variant-numeric:tabular-nums}

/* Street and venue names come from the map and may contain long unbroken words. */
.arrival{flex-wrap:wrap}
.arrival-address{display:flex;align-items:center;gap:12px;flex:1 1 14rem;min-width:0;max-width:100%}
.arrival-address .info,.arrival>button,.modal-head h2,.city-title>div,.game-table header>span,.table-seats,.game-rating li{min-width:0;overflow-wrap:anywhere}
.arrival>button{max-width:100%;white-space:normal}
.modal-head button{flex:none}
.city-title{flex-wrap:wrap;gap:10px}
.city-title>div{max-width:100%}
@media(max-width:420px){
 .arrival-address{grid-area:1/1}
 .arrival:not(:has(>.save-place)) .arrival-address{grid-column:1/-1}
}

.radio-access{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;padding:8px 18px;border-bottom:1px solid var(--rule)}
.radio-access>span{display:inline-flex;align-items:center;gap:8px;font-weight:650}
.radio-access button,.radio-panel button,.radio-panel select{min-height:44px}
.radio-panel{display:grid;gap:14px;min-width:0;overflow-wrap:anywhere}
.radio-panel p,.radio-panel h3,.radio-receiver>[role=status]:empty{margin:0}
.radio-instrument{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:center;gap:14px;border:1px solid #264a40;border-radius:8px;padding:14px;background:#1f433c;color:#f6f1db}
.radio-instrument strong,.radio-instrument small,.radio-instrument div>span{display:block}
.radio-instrument strong{font:600 23px/1.2 var(--serif);margin:4px 0}
.radio-instrument small{color:#d5e0d1}
.radio-dial{position:relative;width:84px;height:84px;border:3px double #b5c3a9;border-radius:50%;background:repeating-conic-gradient(from -1deg,#9eae92 0deg 2deg,transparent 2deg 30deg)}
.radio-dial:before{content:"";position:absolute;inset:5px;border-radius:50%;background:#243e35}
.radio-dial>span:first-child{position:absolute;top:3px;inset-inline:0;text-align:center;color:#e3ddbb;font:600 11px var(--sans)}
.radio-needle{position:absolute;inset:13px 35px;background:linear-gradient(to bottom,#ffcc70 50%,#95b3a5 50%);clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.radio-route{display:flex;flex-wrap:wrap;align-items:end;gap:8px}
.radio-route label{flex:1 1 175px;min-width:0}.radio-route select{display:block;margin-top:3px;max-width:100%}
.radio-notes{margin:4px 0 0;padding:0;list-style:none}
.radio-notes li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 8px;padding:5px 0;border-bottom:1px solid var(--rule);font-size:14px}
.radio-notes b{color:var(--pine)}

#radio-bearings line{stroke:#ad581c;stroke-width:2;stroke-dasharray:10 4 2 4;vector-effect:non-scaling-stroke}
#radio-bearings .radio-received{stroke:#23637b;stroke-dasharray:3 4}
.radio-air{min-width:0;border-top:1px solid var(--rule);padding-top:12px}
.radio-air ul{margin:4px 0;padding:0;list-style:none}
.radio-air li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px;padding:7px 0;border-bottom:1px solid var(--rule)}
.radio-air li div{flex:1 1 155px;min-width:0}
.radio-air small,.radio-air strong{display:block}.radio-air>button{margin:8px 0 3px}
.radio-air li span,.radio-air small{color:#405c55;font-size:13px}
.radio-access>span{margin-right:auto}.radio-access .text-link{padding-inline:6px;color:#88420f}
@media(max-width:480px){.radio-instrument{grid-template-columns:72px minmax(0,1fr);padding:10px;gap:10px}.radio-dial{width:72px;height:72px}.radio-needle{inset:12px 29px}}

.entry > span { min-width:0; overflow-wrap:anywhere; }
