.po{color-scheme:light;--ink:#203c32;--paper:#f4e7c8}
.po *{box-sizing:border-box}
.po{margin:0;background:#19372f;color:var(--paper);font:16px/1.45 'Source Sans 3',sans-serif}
.po button,.po input,.po select{font:inherit}
.po button,.po a,.po select{-webkit-tap-highlight-color:transparent}
.po button{cursor:pointer;border:0}
.po button:focus-visible,.po a:focus-visible,.po select:focus-visible,.po input:focus-visible{outline:3px solid #ce683f;outline-offset:3px}
.po button{min-height:44px}
.po a{color:inherit}
.po .room-bar{display:flex;align-items:center;gap:22px;max-width:1536px;margin:auto;padding:18px 24px}
.po .room-bar>div{margin-right:auto}
.po .room-bar h1{font:32px Fraunces,serif;margin:4px 0}
.po .room-bar button{background:none;color:inherit;border-bottom:1px solid #a3ae91}
.po main{max-width:1536px;margin:auto}
.po .wall-nav{padding:10px 20px;background:#d7cfb5;color:#203c32}
.po .wall-nav [role=tablist]{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin}
.po .wall-nav button{flex:0 0 auto;background:#f3e8ca;color:#203c32;border:1px solid #93977c;padding:9px 18px;box-shadow:2px 2px 0 #203c3230}
.po .wall-nav [aria-selected=true]{background:#244639;color:#fff0ce}
.po .scene-viewport{position:relative;width:100%;overflow:hidden;background:#203c32}
.po .scene{position:relative;width:100%;aspect-ratio:3/2;container-type:inline-size}
.po .room-art{position:absolute;width:100%;height:100%;inset:0}
.po .wall-layer{position:absolute;inset:0;pointer-events:none}
.po .wall-layer button,.po .wall-layer a{pointer-events:auto}
/* The painted board, pole and map areas are themselves clickable (click opens that wall's list); the cards
   and buttons inside keep their own action. The layer stays click-through so walls never block each other. */
.po .wall-layer .slot[data-open]{pointer-events:auto;cursor:pointer}
.po .wall-layer a,.po .wall-layer button{cursor:pointer}
.po .slot,.po .spot{position:absolute}
.po .spot{background:#f5e8ca;color:#203c32;box-shadow:2px 3px 0 #172c2960;font:600 clamp(12px,1.2cqw,18px) 'Source Sans 3',sans-serif;padding:5px 10px;min-height:44px}
.po .pole-spot{left:3%;top:71%;width:16%}
.po .board-spot{left:56%;top:64%;width:20%}
.po .map-spot{left:79%;top:66%;width:20%}
.po .pole-slot{left:7%;top:15%;width:8%;height:47%;display:grid;gap:4px;align-content:start}
.po .board-slot{left:55.4%;top:25.5%;width:20.4%;height:34%;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:6px}
.po .paper{background:#f3e5bd url('postoffice-grain.jpg') center/cover;background-blend-mode:soft-light;color:#213a30;box-shadow:2px 3px 2px #172b2945;padding:7px;text-align:left;border:1px solid #87774755;min-width:0;overflow:hidden;position:relative;transform:rotate(-2deg);font-size:clamp(10px,1cqw,16px)}
.po .paper:nth-child(even){transform:rotate(2deg)}
.po .paper::before{content:'';position:absolute;top:1px;left:43%;width:12px;height:6px;background:#a78e6688}
.po .paper strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font:clamp(12px,1.6cqw,22px)/1.03 Anton,sans-serif}
.po .paper small{display:block;font:clamp(12px,.8cqw,13px) 'Source Sans 3',sans-serif;margin-top:5px}
.po .paper.poster{background-color:#e67e45}
.po .paper.packet{background-color:#c9d4ad}
.po .paper.print{background-color:#bdced1}
.po .paper.hand strong{font-family:Caveat,cursive}
.po .pole-slot .paper{min-height:0;height:100%;font-size:12px}
.po .pole-slot .paper strong{font-size:clamp(12px,1.5cqw,20px)}
.po .pole-slot .paper small{font-size:clamp(10px,.75cqw,12px)}
.po .slot-empty{align-self:center;grid-column:1/-1;background:#f0e3c4ef;color:#284236;padding:12px;text-align:center;font:clamp(12px,1.2cqw,18px)/1.3 Fraunces,serif;box-shadow:2px 3px 0 #0002}
.po .pole-slot .slot-empty{font-size:clamp(12px,1cqw,16px)}
.po .mail-slot{left:26%;top:28%;width:25%;height:30%;background:transparent;color:#203c32;display:flex;align-items:flex-end;justify-content:center;padding:12px}
.po .mail-label{background:#f1e4c5;border:2px solid #9e8657;padding:10px 16px;box-shadow:2px 3px 2px #0005;font-size:clamp(14px,1.5cqw,22px)}
.po .mail-label b{display:block;font-family:Fraunces,serif}
.po .mail-label small{font-size:12px}
.po .mail-envelope{position:absolute;top:17%;left:11%;width:23%;height:30%;background:#eddfbe;border:1px solid #7c6848;box-shadow:2px 2px 3px #0005;transform:rotate(-9deg)}
.po .mail-envelope:after{content:'';position:absolute;inset:0;background:linear-gradient(145deg,transparent 49%,#ac9d7c 50%,transparent 51%),linear-gradient(35deg,transparent 49%,#ac9d7c 50%,transparent 51%)}
.po .mail-envelope.second{left:43%;top:17%;transform:rotate(6deg);background:#b8cbd1}
.po .write-slot{left:36%;top:77%;width:36%;height:11%;background:#f8edceeb;color:#203c32;box-shadow:3px 3px 0 #0002;transform:rotate(-1deg);padding:8px}
.po .write-slot .hand{display:block;font:clamp(20px,2.5cqw,36px)/1 Caveat,cursive}
.po .write-slot b{display:block;font:600 clamp(12px,1.2cqw,18px) 'Source Sans 3',sans-serif;margin-top:8px}
.po .map-slot{left:81%;top:20%;width:16.3%;height:39%;display:grid;align-content:start;gap:3px}
.po .wall-caption{display:flex;justify-content:space-between;gap:24px;padding:20px 24px;color:#f4e7c8}
.po .wall-caption h2{font:28px Fraunces,serif;margin:4px 0}
.po .wall-caption p{margin:5px 0;font-size:16px}
.po #wall-count{font-size:12px;letter-spacing:2px}
.po .wall-actions{display:flex;align-items:center;gap:8px}
.po .wall-actions button{background:#efe1bd;color:#203c32;padding:10px 14px}
.po #wall-prev,.po #wall-next{width:44px;flex-shrink:0;font-size:23px}
.po.evening .room-art{filter:brightness(.67) saturate(.8)}
.po dialog{width:min(720px,calc(100% - 24px));max-height:90dvh;overflow:auto;background:#f4e7c8;color:#203c32;border:0;padding:35px 28px;box-shadow:8px 10px 0 #0003}
.po dialog::backdrop{background:#142f28bb}
.po .close{position:absolute;right:8px;top:6px;font-size:28px;background:none;color:#203c32;width:44px}
.po dialog h2{font:30px/1.1 Fraunces,serif;margin:16px 0}
.po dialog p{font-size:16px;line-height:1.5}
.po .eyebrow{font-size:12px!important;letter-spacing:1px}
.po .primary{display:inline-block;padding:12px 18px;background:#244639;color:#fff0ce;text-decoration:none;min-height:44px}
.po .detail-list{display:grid;gap:12px}
.po .detail-list button{padding:18px;background:#e2d8b8;text-align:left;color:#203c32}
.po .detail-list strong{display:block;font:24px/1.1 Anton,sans-serif}
.po .detail-list small{display:block;margin-top:7px;font-size:14px}
.po .hand{font-family:Caveat,cursive}
.po .actions{display:flex;flex-wrap:wrap;align-items:center;gap:15px;margin-top:18px}
.po .sr{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
@media(max-width:800px),(max-height:500px) and (max-width:1100px){.po .room-bar{padding:9px 14px;gap:12px}
.po .room-bar h1{font-size:24px}
.po .room-bar button{font-size:13px}
.po .wall-nav{padding:7px 10px}
.po .wall-nav button{padding:8px 13px;font-size:14px}
.po .scene-viewport{height:clamp(210px,calc(100svh - 220px),600px)}
.po .scene{position:absolute;aspect-ratio:auto}
.po .wall-layer{display:none}
.po .scene[data-wall=door] [data-layer=door],.po .scene[data-wall=mail] [data-layer=mail],.po .scene[data-wall=board] [data-layer=board],.po .scene[data-wall=counter] [data-layer=counter],.po .scene[data-wall=map] [data-layer=map]{display:block}
.po .spot{display:none}
.po .wall-caption{padding:14px;gap:10px;flex-wrap:wrap}
.po .wall-caption h2{font-size:24px}
.po .wall-caption>div:first-child{flex:1 1 190px}
.po .wall-caption p{font-size:15px}
.po .wall-actions{flex:1 1 auto;justify-content:space-between}
.po .paper{padding:5px}
.po .map-slot{gap:2px}
.po dialog{padding:38px 20px 24px}
}
@media(max-height:500px) and (max-width:1100px){.po .room-bar{padding:2px 12px}
.po .room-bar h1{font-size:21px}
.po .wall-nav{padding:3px 10px}
.po .scene-viewport{height:calc(100svh - 173px);min-height:150px}
.po .wall-caption{padding:10px 14px}
.po .wall-caption h2{font-size:21px}
}
@media(prefers-reduced-motion:reduce){.po *{scroll-behavior:auto!important;transition:none!important}
}
.po .pole-slot .paper{display:flex;flex-direction:column;justify-content:center}
.po .pole-slot .slot-empty{grid-row:2/4}
.po .scene[data-fill=full] .write-slot{background:linear-gradient(155deg,transparent 49.6%,#b8a985 50%,transparent 50.4%),linear-gradient(25deg,#f8edce 49.6%,#b8a985 50%,#ecddb7 50.4%);border:1px solid #b8a985}
.po .landscape-open{display:none}
@media(max-height:500px) and (max-width:1100px){.po .landscape-open{display:block;position:absolute;bottom:8px;right:12px;z-index:4;background:#f6e7c5;color:#203c32;padding:10px 16px;box-shadow:2px 3px 0 #0004}
}
.po .wall-nav{background:#203c32;padding-top:15px;padding-bottom:13px}
.po .wall-nav button{position:relative;overflow:visible;box-shadow:2px 4px 1px #0004;transform:rotate(-1deg);border:0;background:#e7d9b5;padding:10px 18px}
.po .wall-nav button:nth-child(even){transform:rotate(1deg);background:#c8d8ca}
.po .wall-nav button::before{content:'';position:absolute;width:33px;height:9px;left:calc(50% - 16px);top:-5px;background:#d4c8a994;transform:rotate(-7deg)}
.po .wall-nav [role=tablist]{padding:6px 3px 7px}
.po .wall-nav [aria-selected=true]{background:#f0c778;color:#203c32;box-shadow:2px 4px 1px #0005,inset 0 -3px #ac4d30}
.po .slot-empty{background:transparent;box-shadow:none;color:#f5e6c1;text-shadow:1px 1px 2px #35271a;font:italic clamp(14px,1.5cqw,22px)/1.3 Fraunces,serif;padding:5px}
.po .map-slot .slot-empty{color:#344934;text-shadow:none}
.po .pole-slot .slot-empty{font:italic clamp(12px,1cqw,17px)/1.3 Fraunces,serif;background:#e9debfcb;color:#314833;text-shadow:none;transform:rotate(-4deg);padding:7px}
.po .board-slot:has(.slot-empty){display:flex;align-items:flex-end;padding-bottom:10px}
.po .pole-slot{width:9%;left:6.5%;gap:5px}
.po .pole-slot .paper{padding:8px 6px;box-shadow:3px 4px 3px #0006;transform:rotate(-3deg);overflow:hidden;justify-content:space-between;border:0}
.po .pole-slot .paper:nth-child(2){transform:rotate(4deg);width:96%;margin-left:5%}
.po .pole-slot .paper:nth-child(3){transform:rotate(-1deg);width:105%;margin-left:-3%}
.po .pole-slot .paper:nth-child(4){transform:rotate(2deg)}
.po .pole-slot .paper:before{background:#bcb7a6;height:2px;width:13px;border-bottom:1px solid #555;left:35%;top:4px}
.po .flyer-top{font:clamp(10px,.75cqw,12px) 'Source Sans 3',sans-serif;letter-spacing:.05em}
.po .flyer-rule{display:block;height:3px;background:currentColor;width:100%;opacity:.7}
.po .paper.flyer-0,.po .paper-close.flyer-0{background-color:#e88952}
.po .paper.flyer-1,.po .paper-close.flyer-1{background-color:#bdcfd0;border:3px solid #334e59}
.po .paper.flyer-1 strong{font-family:Fraunces,serif;font-style:italic}
.po .paper.flyer-2,.po .paper-close.flyer-2{background-color:#eadfac;color:#632f29}
.po .paper.flyer-2 strong{font-family:'Special Elite',monospace;font-size:clamp(12px,1.3cqw,19px)}
.po .paper.flyer-3,.po .paper-close.flyer-3{background-color:#c5d0ac}
.po .paper.flyer-3 strong{font-family:Anton,sans-serif;border-bottom:1px solid;padding-bottom:5px}
.po .paper-close{background:#efe2bd url('postoffice-grain.jpg') center/cover;background-blend-mode:soft-light;padding:25px;box-shadow:3px 4px 0 #31453433}
.po .paper-close h2{font:46px/1.05 Anton,sans-serif}
.po .paper-close.hand h2{font-family:Caveat,cursive}
.po .paper-close.print{background-color:#bdced1}
.po .paper-close.packet{background-color:#c9d4ad}
.po .paper-close.poster{background-color:#e88952}
.po .mail-envelope{left:7%;top:15%;width:23%;height:29%;transform:rotate(-8deg);box-shadow:3px 4px 5px #0006}
.po .mail-label{padding:8px 12px}
.po .mail-label b{font-size:clamp(15px,1.4cqw,22px)}
.po .map-slot{display:block}
.po .map-north{position:absolute;left:7%;top:0;font:12px 'Source Sans 3',sans-serif;letter-spacing:1px;color:#344934}
.po .map-foot{position:absolute;bottom:-6%;left:6%;font:12px 'Source Sans 3',sans-serif;color:#344934}
.po .town-pin{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:28px;min-height:28px;height:28px;background:#e3b868;border:1px solid #805632;border-radius:50%;color:#203c32;font:700 12px 'Source Sans 3',sans-serif;box-shadow:1px 2px 2px #0003;padding:0}
.po .town-pin:hover,.po .town-pin:focus-visible{z-index:5;background:#fff0c5}
.po .regional-map{height:330px;position:relative;background:#e5d9b8 url('postoffice-grain.jpg') center/cover;background-blend-mode:soft-light;margin:22px 0;border:1px solid #b4a17d}
.po .regional-map .map-north{top:10px}
.po .regional-map .town-pin{min-height:44px;width:44px;height:44px;font-size:16px}
.po .town-key{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.po .town-key button{min-height:44px;background:#e4d8b4;color:#203c32;text-align:left;padding:8px;font-size:16px}
.po .town-key b{display:inline-block;min-width:24px;color:#a14828}
.po .physical-box{display:block;position:relative;width:min(320px,90%);height:300px;margin:24px auto 30px;background:#182e29;border:12px ridge #a99158;perspective:900px;box-shadow:5px 7px 0 #0003;overflow:visible}
.po .box-inside{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(ellipse at bottom,#4a4935,#14251e 75%);padding:12px}
.po .box-door{position:absolute;inset:0;border:10px ridge #b39856;background:linear-gradient(115deg,#c8b074,#8e7540 45%,#e0c893 65%,#947843);transform-origin:left center;transition:transform .55s ease;backface-visibility:hidden}
.po .box-glass{position:absolute;inset:10% 10% 24%;background:linear-gradient(135deg,#ffffff15,#152b29aa 40%,#d9d8af33 42%,#162820bc);border:5px ridge #92783d;box-shadow:inset 4px 5px 10px #0006}
.po .box-handle{position:absolute;left:4%;top:55%;width:31px;height:31px;background:radial-gradient(circle at 35% 30%,#f7dd99,#998044 65%,#5a492a);border-radius:50%;box-shadow:3px 3px 4px #0008}
.po .box-name{position:absolute;bottom:5%;left:20%;width:60%;background:linear-gradient(#e7ce89,#b79a5d);color:#413a25;font:14px 'Special Elite',monospace;padding:8px;border:2px inset #b29c63}
.po .physical-box[aria-expanded=true] .box-door{transform:rotateY(-108deg)}
.po .waiting-envelope{display:block;width:80%;height:125px;background:linear-gradient(150deg,transparent 49%,#b9a788 50%,transparent 51%),linear-gradient(30deg,#f0e1bf 49%,#b9a788 50%,#dac9a6 51%);box-shadow:4px 5px 8px #0008;transform:rotate(-5deg)}
.po .empty-box-note{font:24px Caveat,cursive;color:#eddfba}
.po #mail-reveal{border-top:1px solid #b2ab8b;padding-top:12px}
.po #mail-reveal h3{font:26px Fraunces,serif}
.po .mail-invitation{font-size:18px}
@media(max-width:800px),(max-height:500px) and (max-width:1100px){.po .wall-nav{padding:6px 10px}
.po .wall-nav button{font-size:14px;padding:9px 13px}
.po .scene-viewport{height:clamp(230px,calc(100svh - 185px),640px)}
.po .map-foot{font-size:11px}
.po .paper-close{padding:20px}
.po .paper-close h2{font-size:36px}
}
@media(max-height:500px) and (max-width:1100px){.po .scene-viewport{height:calc(100svh - 155px);min-height:150px}
.po .wall-nav{padding:1px 10px}
}
@media(prefers-reduced-motion:reduce){.po .box-door{transition:none}
}
.po .map-foot{font-size:12px!important;bottom:0;left:8%}
.po .map-slot{top:19%;height:39%}
@media(max-height:500px) and (max-width:1100px){.po .paper>*{visibility:hidden}
.po .paper::after{content:'↗';position:absolute;inset:0;display:grid;place-items:center;font:20px 'Source Sans 3',sans-serif}
.po .paper strong{font-size:12px}
}
@media(max-width:800px),(max-height:500px) and (max-width:1100px){.po .scene[data-wall=counter] .write-slot{left:6%;top:58%;width:87%;height:20%}
}
@media(max-height:500px) and (max-width:1100px){.po .scene[data-wall=counter] .write-slot{left:8%;top:25%;width:48%;height:48%}
}

/* ---- P1 port additions (Cove, 2026-09-28). Everything above is Chet's room 03 + 06 prep, scoped to .po. ---- */
body:has(.po){background:#19372f}
.po{background:#19372f;color:#f4e7c8;font:16px/1.45 'Source Sans 3',sans-serif;min-height:100vh}
.po a.paper,.po a.slot,.po a.paper-close{text-decoration:none;display:block}
.po .pole-slot a.paper{display:flex}
.po .room-bar .po-home{font-size:12px;letter-spacing:1px;text-decoration:none}
.po .room-bar span{font-size:12px;letter-spacing:1px}
.po .room-bar .po-back{font-size:14px;border-bottom:1px solid #a3ae91;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.po .slot-failed{color:#f5e6c1;font-style:italic}
.po .pole-slot .slot-failed,.po .map-slot .slot-failed{background:#e9debfcb;color:#314833;text-shadow:none}
.po .mail-slot[data-mailbox-state=checking] .mail-label{opacity:.85}
.po .mail-slot[data-mailbox-state=error] .mail-label{border-color:#ab492b}
.po .po-listing{padding:0 24px 30px;font-size:15px}.po .po-listing>summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.po .po-lists{display:grid;gap:18px;padding:8px 0 16px}
.po .po-list{background:#f4e7c8;color:#203c32;padding:24px 22px;box-shadow:6px 8px 0 #0003}
.po .po-list h2{font:30px/1.1 Fraunces,serif;margin:10px 0 14px}
.po .po-list p{font-size:16px;line-height:1.5}
.po .po-list .detail-list a{color:#213a30}
.po .po-list .detail-list strong{display:block;font:24px/1.1 Anton,sans-serif;margin:4px 0}
.po .po-list .detail-list small{display:block;font-size:14px;margin-top:4px}
.po .po-list .paper-close{padding:18px}
.po .po-list .town-key{list-style:none;padding:0;margin:0}
.po .po-list .town-key li{min-height:44px;background:#e4d8b4;padding:10px;font-size:16px}
.po .po-list .town-key small{font-size:13px;color:#4c5a4c}
.po .po-list .regional-map .town-pin{display:grid;place-items:center}
.po dialog .po-list{box-shadow:none;padding:0;background:none}
.po #mail-reveal{margin-top:6px}
.po .physical-box{color:inherit}
@media(min-width:900px){.po .po-lists{grid-template-columns:1fr 1fr}}
.po .po-listing>summary:focus-visible{outline:3px solid #ce683f;outline-offset:3px}
@media(max-width:800px),(max-height:500px) and (max-width:1100px){.po .po-listing{padding:0 12px 24px}.po .room-bar .po-back{font-size:13px}}
@media(max-width:800px),(max-height:500px) and (max-width:1100px){.po .room-bar span{display:none}}

@media(max-height:500px) and (max-width:1100px){
  .po .scene[data-wall=map] + .landscape-open{left:12px;right:auto}
}
