#room-post-office{background:#241b15;color:#f5e9d4;min-height:100dvh;padding:0 0 90px;font-family:Georgia,serif}
.post-office-top{max-width:1250px;margin:auto;padding:20px 24px;display:flex;justify-content:space-between;gap:16px;font:16px Arial,sans-serif}
.post-office-top a{color:#f5dfb9;text-decoration:none;min-height:44px;display:flex;align-items:center}
.post-office-heading{text-align:center;padding:22px 20px 28px}
.post-office-heading>p:first-child{font:12px Arial,sans-serif;letter-spacing:.28em;color:#d6b780}
.post-office-heading h1{font:400 clamp(40px,6vw,76px)/1.1 Georgia,serif;margin:10px 0 16px;color:#fff0d0}
.post-office-heading>p:last-child{font-size:clamp(17px,2vw,22px);line-height:1.5;color:#dfceb4}
.post-office-scene{position:relative;max-width:1400px;margin:auto;overflow:hidden;background:#6b4b32;min-height:300px}
.post-office-scene>img{width:100%;height:auto;display:block;aspect-ratio:3/2;object-fit:cover}
.mail-counter-link{position:absolute;bottom:11%;left:50%;transform:translateX(-50%);min-width:230px;max-width:90%;min-height:60px;display:flex;align-items:center;justify-content:center;gap:14px;padding:14px 24px;border:2px solid #f0d195;border-radius:7px;background:#302318ee;color:#fff1cf!important;text-decoration:none;font:600 clamp(18px,2.4vw,27px)/1.3 Georgia,serif;box-shadow:0 0 24px #ffdf8a60}
.mail-counter-link span{font-size:38px}.mail-counter-link:focus-visible,.post-office-sorting a:focus-visible{outline:3px solid #ffe49a;outline-offset:5px}
.post-office-sorting{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;padding:28px 20px 10px;max-width:1200px;margin:auto}
.post-office-sorting a{min-height:48px;display:flex;align-items:center;padding:12px 18px;background:#463221;border:1px solid #aa8553;border-radius:5px;color:#f8e7c3;text-decoration:none;font:17px Georgia,serif}
.post-office-directory{max-width:1160px;margin:20px auto;padding:0 22px}
#room-post-office .finder{padding:clamp(18px,3vw,36px);background:#eadcc0;border:8px ridge #89633f;border-radius:8px;color:#30291f}
#room-post-office #karla-letters-collection>summary{font:400 30px Georgia,serif;cursor:pointer;padding:12px 0;color:#453018}
#room-post-office .search-tools{display:block}#room-post-office .search-box input{max-width:none}
#room-post-office .stage-block{background:#c3a06c;border:5px solid #785435;border-radius:3px;margin:22px 0;padding:0;scroll-margin-top:16px;box-shadow:inset 0 0 12px #55371840}
#room-post-office .stage-block>summary,#room-post-office .letter-subgroup>summary{cursor:pointer;list-style-position:inside;min-height:58px;padding:17px;color:#2b2117;font:600 clamp(19px,2.5vw,25px)/1.35 Georgia,serif;background:#d7bd8a}
#room-post-office .names{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px;background:#66462d;box-shadow:inset 0 6px 12px #0003}
#room-post-office .letter-name{display:flex;align-items:center;justify-content:flex-start;gap:13px;min-height:88px;padding:16px;background:linear-gradient(150deg,#fff9e9,#ead8b0);color:#40301f;border:1px solid #c8aa71;border-radius:3px;text-decoration:none;font:20px/1.4 Georgia,serif;box-shadow:0 3px 5px #24180d60;overflow-wrap:anywhere}
#room-post-office .letter-name[hidden]{display:none!important}
#room-post-office .letter-envelope-icon{font-size:32px;color:#8d3d39;flex:none}
#room-post-office .letter-name::after{content:none}#room-post-office .letter-name:hover{background:#fff8da;outline:2px solid #d5b86e}
#room-post-office .letter-subgroup{margin:12px;background:#e6d3aa;border:1px solid #8c693e}
#room-post-office .popover{background:#16100cdb;z-index:1000;color:#26364a;box-sizing:border-box}
#room-post-office .popover .panel{width:min(900px,100%);background:#fffaf0;margin:0 auto;color:#26364a;max-height:calc(100dvh - 120px)}
#room-post-office .panel-top{background:#fff7e8;color:#26364a;flex-wrap:wrap;padding:12px 20px}
#room-post-office .panel-top a{color:#26364a}#room-post-office .panel-close-x{font-size:30px;min-width:44px;text-align:center}
#room-post-office .letter-copy{font:20px/1.75 Georgia,serif;color:#302b25}#room-post-office .letter-copy p{margin:0 0 1em}
.symbol-mail svg{height:clamp(210px,27vw,360px);width:auto;max-width:100%;filter:drop-shadow(0 8px 10px #0006)}
#entrance .symbols{flex-wrap:wrap;justify-content:center}#entrance .symbol{flex:0 1 18%;min-width:140px}
#room-karla .scattered-letters,#room-karla .table-letter-stack,#room-karla .letter-tote{display:none!important}
.animals-post-office-link,.other-family-animals{max-width:1100px;margin:20px auto;padding:22px;background:#fff6e0;color:#243b50;border:1px solid #b59b69;border-radius:12px}
.animals-post-office-link a{color:#243b50;font:600 18px/1.4 Georgia,serif;text-decoration:none;min-height:48px;display:flex;align-items:center}
.small-animal-links{display:grid;grid-template-columns:1fr 1fr;gap:16px}.small-animal-links a{padding:22px;border:1px solid #b59b69;border-radius:8px;color:#243b50;background:#e9ddbe;font:600 26px Georgia,serif;text-decoration:none}.small-animal-links span{display:block;margin-top:12px;font:16px/1.4 Arial,sans-serif}
#room-karla dialog.modal .card{max-width:900px;margin:auto;background:#fffaf0;color:#243b50;border-radius:12px;overflow:auto;max-height:calc(100dvh - 120px)}
#room-karla dialog.modal .head{display:flex;justify-content:space-between;gap:16px;padding:20px;background:#233c50;color:#fff}#room-karla dialog.modal .head a{color:#fff;font-size:36px;text-decoration:none}
#room-karla dialog.modal .body{padding:24px;font:20px/1.65 Georgia,serif}
@media(max-width:700px){#room-post-office .names{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}#room-post-office .letter-name{font-size:18px;padding:12px;gap:9px;min-height:80px}.post-office-directory{padding:0 10px}.post-office-top{font-size:14px;padding:14px}.post-office-scene>img{min-height:330px;object-fit:cover}.post-office-sorting{gap:8px;padding:20px 12px}.post-office-sorting a{font-size:16px;padding:10px 12px}.post-office-heading{padding-top:8px}#entrance .symbol{flex-basis:30%;min-width:100px}.symbol-mail svg{height:clamp(182px,40vw,280px)}}
@media(max-width:420px){#room-post-office .names{grid-template-columns:1fr}.small-animal-links{grid-template-columns:1fr}}
#room-post-office,#room-post-office *{box-sizing:border-box}
#room-post-office{width:100%;max-width:100vw;overflow-x:hidden}
.post-office-scene{width:min(100%,1400px);min-height:0}
.post-office-scene>img{aspect-ratio:2/1;height:auto;min-height:0}
@media(max-width:700px){.post-office-scene>img{min-height:0;aspect-ratio:2/1}.mail-counter-link{bottom:8%;min-height:48px;padding:8px 14px;font-size:18px}.mail-counter-link span{font-size:27px}.post-office-heading h1{font-size:42px}}
body:has(#room-post-office .popover:target){overflow:hidden}
#room-post-office .popover .panel-top{z-index:30;top:0}
#room-post-office .panel-top a:focus-visible,#room-post-office .letter-name:focus-visible{outline:3px solid #a5752e;outline-offset:3px}
#room-post-office .letter-subgroup[hidden],#room-post-office .stage-block[hidden]{display:none!important}
body #entrance .symbols{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))!important;max-width:1200px}
body #entrance .symbol-mail svg{width:100%;height:auto;aspect-ratio:480/725}
@media(max-width:700px){body #entrance .symbols{grid-template-columns:repeat(3,minmax(0,1fr))!important}body #entrance .symbol{min-width:0}}
@media(max-width:360px){body #entrance .symbols{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

#room-post-office .alphabetical-mail-row>summary{font-family:Georgia,serif;font-style:italic;letter-spacing:.05em}#room-post-office .alphabetical-mail-row .letter-name{background:linear-gradient(155deg,#fff9e9,#e7d6b1);border:1px solid #b29767;box-shadow:0 3px 7px #241b1533;font-family:Georgia,serif;font-style:italic}#room-post-office .alphabetical-mail-row .letter-envelope-icon{color:#785435}

#room-post-office .karla-letters-categories > .stage-block{display:none!important}

/* The four real brass plates are the entrance to the letter bundles. */
.post-office-scene .post-office-sorting{position:absolute;inset:0;padding:0;max-width:none;display:block;pointer-events:none}
.post-office-sorting button{position:absolute;top:15.15%;width:8.2%;height:4.1%;min-height:32px;transform:translateX(-50%);padding:0;border:0;border-radius:3px;background:linear-gradient(110deg,#b18438,#e5c47a 48%,#b78a42);color:#35220e;font:bold clamp(13px,2vw,28px) Georgia,serif;text-shadow:0 1px #ffe4a7;box-shadow:0 0 12px #ffd77b80;cursor:pointer;pointer-events:auto}
.post-office-sorting button:nth-child(1){left:28.8%}.post-office-sorting button:nth-child(2){left:45.2%}.post-office-sorting button:nth-child(3){left:61.8%}.post-office-sorting button:nth-child(4){left:78.5%}
.post-office-sorting button:hover,.post-office-sorting button:focus-visible{outline:3px solid #ffe49a;outline-offset:3px;box-shadow:0 0 24px #ffdc89}
#room-post-office .post-office-directory{display:none;position:fixed;inset:8dvh 3vw 3dvh;z-index:900;max-width:1160px;margin:auto;padding:20px;overflow:auto;background:linear-gradient(#785131,#3d291d);border:8px ridge #9d7045;border-radius:10px;box-shadow:0 0 0 100vmax #140c08b8,0 20px 70px #000a}
#room-post-office .post-office-directory.is-open{display:block;animation:mail-slide-out .35s ease-out}
.mail-tray-header{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#fff0cf}.mail-tray-header h2{font:26px Georgia,serif;margin:8px 0 18px}.mail-tray-close{min-width:48px;min-height:48px;font-size:36px;border:1px solid #dcbd7c;background:#382316;color:#ffe6a6;border-radius:6px;cursor:pointer}
#room-post-office #karla-letters-collection>summary{display:none}#room-post-office .finder{border:0;background:transparent;padding:0;color:#fff0cf}#room-post-office .search-tools label{color:#fff0cf}
#room-post-office .alphabetical-mail-row{border:0;background:transparent;margin:12px 0;box-shadow:none}#room-post-office .alphabetical-mail-row>summary{display:none}#room-post-office .names{background:transparent;box-shadow:none;padding:8px}
#room-post-office .letter-name{position:relative;min-height:115px;justify-content:center;padding:30px 15px 18px;background:linear-gradient(155deg,#fff9e9 49%,#dfcda6 50%,#f5e7c9 51%)!important;border-radius:3px;transform:rotate(-1deg);transition:transform .2s,box-shadow .2s;text-align:center}
#room-post-office .letter-name:nth-child(even){transform:rotate(1deg)}#room-post-office .letter-name:hover,#room-post-office .letter-name:focus-visible{transform:translateY(-6px) rotate(0);box-shadow:0 10px 16px #24180d80}#room-post-office .letter-envelope-icon{display:none}
@keyframes mail-slide-out{from{opacity:0;transform:translateY(-35px) scale(.96)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#room-post-office .post-office-directory.is-open{animation:none}#room-post-office .letter-name{transition:none}}
@media(max-width:700px){.post-office-scene{overflow-x:auto}.post-office-scene>img{width:780px;max-width:none}.post-office-scene .post-office-sorting{width:780px}.post-office-sorting button{font-size:18px;min-height:32px}.post-office-directory .mail-tray-header h2{font-size:21px}#room-post-office .post-office-directory{inset:5dvh 2vw 2dvh;padding:12px}}

#room-post-office .letter-name.historical-surprise{border:3px solid #efc44c;box-shadow:0 0 15px #ffda7680,inset 0 0 12px #f8d15d55;flex-direction:column;gap:8px}
.historical-surprise small{font:12px/1.3 Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#795716}
.historical-outcome{margin-top:30px;padding:24px;border-top:3px solid #c29532;background:#f5ead1;color:#302b25;font:19px/1.7 Georgia,serif}.historical-outcome h2{font:28px Georgia,serif;color:#674a16}.historical-sources{margin-top:24px;font:15px/1.6 Arial,sans-serif;color:#302b25}.historical-sources a{color:#294c6a}.historical-sources summary{cursor:pointer;min-height:44px}.historical-letter .panel-body{padding:24px}.historical-letter .source-note{color:#675c47;font:14px/1.5 Arial,sans-serif}
/* Keep historical letters isolated from decorative room and reader styles. */
#room-post-office .historical-letter{position:fixed!important;inset:0!important;z-index:2000!important;padding:12px!important;background:#20180fe8!important;overflow:auto!important;align-items:flex-start!important}
#room-post-office .historical-letter:not(:target){display:none!important}
#room-post-office .historical-letter:target{display:block!important}
#room-post-office .historical-letter>.panel{display:block!important;width:min(860px,100%)!important;max-width:860px!important;height:auto!important;max-height:none!important;margin:0 auto!important;overflow:visible!important;background:#fffcf4!important;color:#302b25!important;border:0!important;box-shadow:0 12px 45px #0005!important}
#room-post-office .historical-letter .panel-top{position:relative!important;top:auto!important;display:flex!important;padding:16px 24px!important;background:#fffcf4!important;color:#302b25!important;border:0!important;box-shadow:none!important;font:16px/1.5 Arial,sans-serif!important}
#room-post-office .historical-letter .panel-body{display:block!important;position:static!important;margin:0!important;padding:24px clamp(20px,5vw,56px) 40px!important;width:100%!important;max-width:none!important;height:auto!important;overflow:visible!important;border:0!important;background:#fffcf4!important;box-shadow:none!important;columns:auto!important}
#room-post-office .historical-letter .panel-body::before,#room-post-office .historical-letter .panel-body::after{display:none!important;content:none!important}
#room-post-office .historical-letter .letter-copy{display:block!important;position:static!important;margin:0!important;padding:0!important;columns:auto!important;letter-spacing:normal!important;word-spacing:normal!important;text-decoration:none!important;text-transform:none!important;white-space:normal!important}
#room-post-office .historical-letter .letter-copy p,#room-post-office .historical-letter .historical-outcome p{display:block!important;position:static!important;float:none!important;transform:none!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0 0 1.4em!important;padding:0!important;border:0!important;font-family:Georgia,serif!important;font-size:22px!important;font-weight:400!important;font-style:normal!important;line-height:1.85!important;letter-spacing:normal!important;word-spacing:normal!important;white-space:normal!important;overflow:visible!important;overflow-wrap:break-word!important;color:#302b25!important;background:none!important;text-decoration:none!important;text-shadow:none!important;box-shadow:none!important}
#room-post-office .historical-letter .historical-outcome{display:block!important;margin:40px 0 0!important;padding:24px 0 0!important;border:0!important;background:none!important}
#room-post-office .historical-letter .historical-outcome h2{font:28px/1.4 Georgia,serif!important;margin:0 0 20px!important;border:0!important;color:#684d20!important}
#room-post-office .historical-letter>.return-previous-control{display:none!important}
#room-post-office .historical-letter .panel-close-x{display:flex!important;align-items:center;justify-content:center;min-width:48px;min-height:48px;text-decoration:none;color:#684d20!important;font:36px/1 Arial,sans-serif!important}
@media(max-width:600px){#room-post-office .historical-letter{padding:6px!important}#room-post-office .historical-letter .panel-top{padding:12px 16px!important}#room-post-office .historical-letter .letter-copy p,#room-post-office .historical-letter .historical-outcome p{font-size:21px!important}}
#room-post-office .letter-name.historical-surprise{border:3px solid #ffe381!important;outline:1px solid #fff0ae!important;box-shadow:0 0 8px 3px #ffdb69,0 0 22px 6px #ffca3b99,0 0 38px 9px #e9a91a55,inset 0 0 14px #ffdd8a99!important}
#room-post-office .historical-surprise small{color:#754b05!important;font-weight:700;text-shadow:0 0 5px #ffe58b,0 0 10px #ffce54}
#room-post-office .historical-letter .panel-top>span{color:#735011!important;text-shadow:0 0 7px #ffe8a3,0 0 15px #ffd24b;font-weight:700!important}

#room-post-office .historical-letter .letter-copy p.potter-opening{font-size:26px!important;line-height:1.7!important;color:#67491d!important;font-style:italic!important;margin:12px 0 40px!important}

/* Render exactly one letter in the browser top layer, with one scroll area. */
body:has(#post-office-reader[open]) .photo-management,
body:has(#post-office-reader[open]) .photo-management-signin{display:none!important}
body:has(#post-office-reader[open]){overflow:hidden}
#room-post-office .letter-panel:target{visibility:hidden!important;pointer-events:none!important}
#post-office-reader{position:fixed!important;inset:0!important;width:min(920px,calc(100vw - 24px))!important;height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important;max-width:calc(100vw - 24px)!important;margin:auto!important;padding:0!important;border:1px solid #b69b70!important;border-radius:14px;background:#fffcf4!important;color:#302b25!important;overflow:hidden!important;box-sizing:border-box}
#post-office-reader[open]{display:flex!important;flex-direction:column!important}
#post-office-reader::backdrop{background:#20180fe8}
#post-office-reader .mail-reader-header{position:static!important;display:flex!important;flex:none;align-items:center;justify-content:space-between;gap:18px;padding:12px 20px;background:#fff7e8;border-bottom:1px solid #dacbac;font:17px/1.5 Arial,sans-serif}
#post-office-reader .mail-reader-header button{flex:none;min-height:48px;padding:8px 16px;border:1px solid #9c7b49;border-radius:8px;background:#fffcf4;color:#513b1d;font:700 20px/1.4 Arial,sans-serif;cursor:pointer}
#post-office-reader .mail-reader-content{display:block!important;position:static!important;flex:1;min-height:0;overflow:auto!important;overscroll-behavior:contain;padding:28px clamp(20px,5vw,56px);-webkit-overflow-scrolling:touch}
#post-office-reader .mail-reader-content *{position:static!important;float:none!important;transform:none!important;height:auto!important;max-height:none!important;columns:auto!important;box-sizing:border-box;overflow-wrap:break-word}
#post-office-reader .letter-copy,#post-office-reader p{font:22px/1.85 Georgia,serif!important;color:#302b25!important;background:none!important;text-shadow:none!important;white-space:normal!important}
#post-office-reader p{display:block!important;margin:0 0 1.4em!important}
#post-office-reader .historical-outcome{margin-top:32px;padding:24px 0 0;border-top:2px solid #c29532;background:none}
#post-office-reader h2{font:28px/1.4 Georgia,serif;color:#684d20;margin:0 0 20px}
#post-office-reader .return-previous-control{display:none!important}

.daily-featured-letter{padding:12px 16px;margin:12px 0;border:1px solid #b99a59;border-radius:8px;background:#fff5dd;color:#322417}.daily-featured-letter p{margin:0 0 8px;font-weight:700}.daily-featured-letter a{color:#322417}

/* Letter content must never inherit scene decorations or positioned overlays. */
#post-office-reader .mail-reader-content::before,#post-office-reader .mail-reader-content::after,#post-office-reader .letter-copy::before,#post-office-reader .letter-copy::after,#post-office-reader p::before,#post-office-reader p::after{content:none!important;display:none!important}
#post-office-reader .mail-reader-content p{width:auto!important;min-height:0!important;padding:0!important;border:0!important;box-shadow:none!important;letter-spacing:normal!important;word-spacing:normal!important;text-decoration:none!important;line-height:1.85!important}
#post-office-reader .mail-reader-content svg{max-width:100%;height:auto!important}
.mail-write-button,#mail-writing-desk button{min-height:48px;padding:10px 18px;border:1px solid #a78650;border-radius:7px;background:#fff4d9;color:#49341f;font:19px/1.4 Georgia,serif;cursor:pointer}
#mail-writing-desk{box-sizing:border-box;width:min(850px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:24px;border:2px solid #aa8b50;border-radius:12px;background:#f1e4ca;color:#30271e;overflow:auto}
#mail-writing-desk::backdrop{background:#20180fe8}
#mail-writing-desk header{display:flex;justify-content:space-between;align-items:center;gap:16px}#mail-writing-desk h2{font:30px/1.3 Georgia,serif;margin:0}#mail-writing-desk label{display:block;margin:18px 0 8px;font:18px/1.5 Georgia,serif}
#mail-writing-desk textarea{box-sizing:border-box;width:100%;min-height:40dvh;padding:22px;resize:vertical;border:1px solid #aa8b50;border-radius:5px;background:#fff9e9;color:#262d43;font:25px/1.7 'Segoe Print','Bradley Hand',cursive}
#mail-writing-desk .desk-actions{display:flex;flex-wrap:wrap;gap:12px}#mail-writing-desk .draft-status{font:15px/1.5 Arial,sans-serif}#mail-writing-desk .ink-preview{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:24px;padding:24px;background:#fff9e9;color:#262d43;font:25px/1.8 'Segoe Print','Bradley Hand',cursive}

/* Keep the featured envelope level, including on touch and keyboard focus. */
#room-post-office .daily-featured-letter,
#room-post-office .daily-featured-letter .letter-name,
#room-post-office .daily-featured-letter .letter-name:hover,
#room-post-office .daily-featured-letter .letter-name:focus-visible{transform:none!important;rotate:none!important}

/* Letter sources never participate in the page, even when their hash is targeted. */
#room-post-office section.letter-panel,#room-post-office section.letter-panel:target{display:none!important;visibility:hidden!important;pointer-events:none!important}

/* White envelopes, each with a small illustrated postage stamp. */
#room-post-office a.letter-name{background:linear-gradient(150deg,transparent 67%,#edf0f2 67.4%,#fff 68%),linear-gradient(210deg,#fff 67%,#edf0f2 67.4%,#fff 68%)!important;background-color:#fff!important;color:#26374a!important;border:1px solid #d4d9de!important;min-height:160px;padding:78px 18px 30px!important;box-shadow:0 5px 12px #20170e45;font-size:21px;line-height:1.4}
#room-post-office a.letter-name:hover,#room-post-office a.letter-name:focus-visible{background-color:#fff!important;outline:2px solid #d5b86e}
#room-post-office .postage-stamp{position:absolute;top:12px;right:14px;width:49px;height:59px;padding:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;background:#fff;color:var(--stamp-ink);border:2px dotted var(--stamp-ink);outline:3px solid #fff;box-shadow:0 1px 4px #24374b30;transform:rotate(3deg);pointer-events:none}
#room-post-office .stamp-picture{display:flex;align-items:center;justify-content:center;width:100%;height:34px;background:var(--stamp-ink);color:white;font:28px/1 Georgia,serif}
#room-post-office .postage-stamp small{color:var(--stamp-ink);font:700 6px/1.5 Arial,sans-serif;letter-spacing:.5px;text-transform:uppercase;text-shadow:none;white-space:nowrap}
#room-post-office .daily-featured-letter{background:#fff;border-color:#d4d9de}
#room-post-office .letter-name.historical-surprise{outline:2px solid #e7c566!important}

/* Photographed paper and pictorial postage; text remains selectable HTML. */
#room-post-office a.letter-name{background-image:url('/assets/real-envelopes.webp')!important;background-size:200% 300%!important;background-repeat:no-repeat!important;background-position:0% 0%!important;background-color:#fff!important;aspect-ratio:8/5;min-height:190px;padding:105px 24px 55px!important;border:1px solid #d4d5d3!important;border-radius:2px;font:21px/1.35 Georgia,serif;text-align:center;color:#253b55!important;text-shadow:0 .3px .4px #253b5530;transform:none!important}
#room-post-office a.letter-name .postage-stamp{display:none!important}
@media(max-width:700px){#room-post-office a.letter-name{font-size:18px;padding:85px 14px 35px!important;min-height:170px}}

/* Compact envelopes, including the daily featured letter. */
#room-post-office .names{grid-template-columns:repeat(auto-fill,minmax(140px,180px));gap:12px;justify-content:center}
#room-post-office a.letter-name{box-sizing:border-box;width:100%;max-width:180px;height:112px;min-height:0;padding:40px 10px 12px!important;font-size:16px;line-height:1.3;gap:4px}
#room-post-office .daily-featured-letter{box-sizing:border-box;width:max-content;max-width:100%;padding:12px;margin:12px auto}
#room-post-office .daily-featured-letter a.letter-name{width:180px}
@media(max-width:700px){#room-post-office .names{grid-template-columns:repeat(auto-fill,minmax(130px,150px));gap:10px}#room-post-office a.letter-name{max-width:150px;height:94px;padding:32px 8px 10px!important;font-size:14px}#room-post-office .daily-featured-letter a.letter-name{width:150px}}

/* Folded envelope backs, with a hinged triangular flap. */
#room-post-office a.letter-name{background:linear-gradient(32deg,transparent 49.4%,#d9cfbc 49.8%,#faf7ef 50.4%,transparent 51%) left bottom/50% 76% no-repeat,linear-gradient(-32deg,transparent 49.4%,#d9cfbc 49.8%,#faf7ef 50.4%,transparent 51%) right bottom/50% 76% no-repeat,linear-gradient(145deg,#fffdf7,#eee7da)!important;border-color:#d3c8b4!important;isolation:isolate;perspective:600px;overflow:visible;padding:69px 8px 8px!important;font-size:15px;box-shadow:0 4px 8px #20170e45,inset 0 0 12px #b5a68b22}
#room-post-office a.letter-name::before{content:"";position:absolute;inset:0 0 auto;height:65%;background:linear-gradient(170deg,#fffdf8,#e6ddcc);clip-path:polygon(0 0,100% 0,98% 14%,50% 100%,2% 14%);transform-origin:top center;transition:transform .4s ease;z-index:2;pointer-events:none;filter:drop-shadow(0 1px 1px #79694e)}
#room-post-office a.letter-name::after{content:"";display:block;position:absolute;left:12%;right:12%;top:14%;height:65%;background:linear-gradient(135deg,#f3e3c1,#e5cca0);border:1px solid #c4a778;box-shadow:0 3px 8px #5d442b35;z-index:-1;opacity:0;transition:transform .4s ease,opacity .2s;pointer-events:none}
#room-post-office a.letter-name.is-opening::before{transform:rotateX(180deg)}
#room-post-office a.letter-name.is-opening::after{opacity:1;transform:translateY(-35%)}
#room-post-office a.letter-name.is-opening{z-index:5}
@media(max-width:700px){#room-post-office a.letter-name{padding:57px 7px 6px!important;font-size:13px}}
@media(prefers-reduced-motion:reduce){#room-post-office a.letter-name::before,#room-post-office a.letter-name::after{transition:none}}

#post-office-reader .historical-letter-intro{font:italic 18px/1.6 Georgia,serif;color:#594a35;margin:0 0 24px;padding:0 0 18px;border-bottom:1px solid #d9cbb3}

/* End the room image at the wooden counter, above the patterned rug. */
.post-office-scene>img{clip-path:inset(0 0 6% 0);margin-bottom:-3%}
.post-office-scene .post-office-sorting{bottom:auto;height:106.383%}
@media(max-width:700px){.post-office-scene>img{margin-bottom:-23.4px}}

@font-face{font-family:'Karla Letter Hand';src:url('/assets/letter-handwriting.ttf') format('truetype');font-weight:400 700;font-style:normal;font-display:swap}
#post-office-reader .letter-copy,#post-office-reader .letter-copy p,#post-office-reader .letter-copy li,#post-office-reader .letter-copy span{font-family:'Karla Letter Hand','Segoe Print','Bradley Hand',cursive!important;font-size:28px!important;font-weight:500!important;line-height:1.6!important;color:#28354b!important}
#post-office-reader .mail-reader-content .letter-copy p{line-height:1.6!important}
@media(max-width:600px){#post-office-reader .letter-copy,#post-office-reader .letter-copy p,#post-office-reader .letter-copy li,#post-office-reader .letter-copy span{font-size:26px!important}}

/* Every envelope uses the same folds, regardless of its former stamp variant. */
#room-post-office a.letter-name{background-size:50% 76%,50% 76%,100% 100%!important;background-position:left bottom,right bottom,center!important;background-repeat:no-repeat!important}

/* Canadian postage and the dedicated Thank You series. */
#room-post-office a.letter-name .canadian-stamp{display:flex!important;z-index:3;top:6px;right:6px;width:27px;height:35px;padding:2px;gap:0;--stamp-ink:#a92c38;outline:2px solid #fff;transform:rotate(2deg)}
#room-post-office .canadian-stamp .stamp-picture{font-size:19px;height:23px;background:#fff5ee}
#room-post-office .canadian-stamp small{font-size:5px;line-height:1.3}
#room-post-office a.thank-you-envelope{border:2px solid #986ab8!important;outline:1px solid #d8bde8!important;box-shadow:0 0 10px #af82c666,0 4px 8px #20170e45!important}
#room-post-office .thank-you-intro{font:18px/1.6 Georgia,serif;color:#42304f;padding:8px 18px}
#post-office-reader .letter-copy[lang=uk],#post-office-reader .letter-copy[lang=uk] p{font-family:'Segoe Print','Bradley Hand',Georgia,serif!important}

.mail-series-legend{padding:12px 18px;margin:10px 0;background:#fff9e9;border:1px solid #d7cab4;border-radius:8px;color:#342c24;font:16px/1.6 Georgia,serif}.mail-series-legend p{margin:4px 0}.legend-dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:8px}.historical-dot{background:#e8bd40}.thanks-dot{background:#986ab8}
@font-face{font-family:'Kalam';src:url('/assets/kalam-regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
#post-office-reader .letter-copy[lang=en],#post-office-reader .letter-copy[lang=en] p{font-family:'Kalam','Karla Letter Hand','Segoe Print',cursive!important;font-weight:400!important}
#room-post-office a.thank-you-envelope{font-family:'Kalam','Karla Letter Hand',cursive!important;font-weight:400}

#room-post-office a.thank-you-envelope{flex-direction:column;gap:2px}#room-post-office a.thank-you-envelope>small{font:10px/1.2 Arial,sans-serif;color:#72438f}

#room-post-office a.letter-name .family-lake-stamp{width:37px;height:44px;--stamp-ink:#3d6551;transform:none;gap:1px}
#room-post-office .family-lake-stamp svg{display:block;width:100%;height:25px}
#room-post-office .family-lake-stamp small{font-size:4px;letter-spacing:0;line-height:1.2}

#room-post-office a.letter-name .czech-stamp{width:37px;height:44px;--stamp-ink:#28528d;transform:none;gap:1px}
#room-post-office .czech-stamp svg{display:block;width:100%;height:25px}
#room-post-office .czech-stamp small{font-size:4px;letter-spacing:0;line-height:1.2}

/* A single scroll surface keeps shelf labels aligned on phones and iPads. */
#room-post-office .post-office-scene{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom;overscroll-behavior-x:contain}
.mail-scene-canvas{position:relative;width:100%;min-width:1100px}
#room-post-office .mail-scene-canvas>img{display:block;width:100%;max-width:none;height:auto;aspect-ratio:2/1;object-fit:cover;clip-path:inset(0 0 6% 0);margin-bottom:-3%;user-select:none;-webkit-user-drag:none}
#room-post-office .mail-scene-canvas .post-office-sorting{width:100%;height:106.383%}
.mail-swipe-hint{text-align:center;color:#f5dfb9;font:16px/1.5 Arial,sans-serif;margin:8px 16px 14px}
.post-office-scene:focus-visible{outline:3px solid #ffe49a;outline-offset:3px}
@media(min-width:1100px){.mail-swipe-hint{display:none}}

/* Swiping a letter tray changes its alphabetical page; vertical reading stays native. */
#room-post-office .post-office-directory{touch-action:pan-y pinch-zoom}
.mail-group-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 18px;color:#fff0cf;font:15px/1.4 Arial,sans-serif}
.mail-group-controls button{min-width:90px;min-height:48px;padding:10px 14px;border:1px solid #dcbd7c;border-radius:6px;background:#382316;color:#ffe6a6;font:18px Georgia,serif;cursor:pointer}
.mail-group-controls button:disabled{opacity:.4;cursor:default}
.mail-group-controls button:focus-visible{outline:3px solid #ffe49a;outline-offset:3px}
.mail-group-controls span{text-align:center}

/* Warm golden highlights identify the four alphabetical letter shelves. */
#room-post-office .post-office-sorting button{
 background:linear-gradient(110deg,#b98025,#ffe6a0 48%,#dba744);
 border:1px solid #ffe3a0;
 color:#38230c;
 text-shadow:0 1px 1px #fff1bc;
 box-shadow:0 0 8px 3px #ffd05d9c,0 0 22px 7px #ffbf456e,inset 0 0 7px #fff4c7b3;
}
#room-post-office .post-office-sorting button:hover,
#room-post-office .post-office-sorting button:focus-visible{
 outline:3px solid #ffe8a3;outline-offset:4px;
 box-shadow:0 0 12px 5px #ffdc7dcc,0 0 32px 10px #ffbe458c,inset 0 0 9px #fff5cb;
}

/* Let the flap lift before the paper rises and the reader opens. */
#room-post-office a.letter-name::before{transition:transform 1s cubic-bezier(.22,.61,.36,1)}
#room-post-office a.letter-name::after{transition:transform .65s ease .5s,opacity .4s ease .5s}
@media(prefers-reduced-motion:reduce){#room-post-office a.letter-name::before,#room-post-office a.letter-name::after{transition:none}}

/* Purple glow identifies Karla’s thank-you letters. */
#room-post-office a.thank-you-envelope{box-shadow:0 0 12px #a855f7aa,0 0 26px #9333ea66,0 4px 8px #20170e45!important}
#room-post-office a.thank-you-envelope:is(:hover,:focus-visible){box-shadow:0 0 16px #a855f7dd,0 0 34px #9333ea99,0 4px 8px #20170e45!important}

/* A cream letter floats out through a quiet shower of golden light. */
.letter-magic{display:none;position:fixed;inset:0;z-index:2147483646;pointer-events:none;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#34271999,#17131cc2);overflow:hidden}
.letter-magic.is-active{display:flex;animation:magic-veil 3.4s both}
.magic-halo{position:absolute;width:min(80vw,580px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#ffe4a663,transparent 65%);animation:magic-light 3.4s both}
.magic-envelope{position:relative;width:min(66vw,300px);height:180px;perspective:900px;transform:translateY(55px);filter:drop-shadow(0 12px 18px #0005)}
.magic-flap{position:absolute;inset:0;background:linear-gradient(#fffdf5,#decfb4);clip-path:polygon(0 0,100% 0,50% 65%);transform-origin:top;animation:magic-flap 3.4s both;z-index:3}
.magic-pocket{position:absolute;inset:0;background:linear-gradient(30deg,#f5eddf 49.5%,transparent 50%) left/50% 100% no-repeat,linear-gradient(-30deg,#eee3cf 49.5%,transparent 50%) right/50% 100% no-repeat; border:1px solid #dbc8a5;border-top:0;border-radius:0 0 5px 5px;z-index:2}
.magic-paper{position:absolute;left:10%;top:8%;width:80%;height:230px;box-sizing:border-box;padding:30px 22px;background:linear-gradient(115deg,#fff7e6,#ecd8b3);border:1px solid #d4b784;box-shadow:0 0 22px #ffe6a266;transform-origin:center;animation:magic-paper 3.4s both;color:#77532e;font:italic 19px/1.5 Georgia,serif;text-align:center}
.magic-paper span{display:block;max-height:65px;overflow:hidden}.magic-paper i{display:block;height:1px;background:#9c7a4755;margin:19px 0}
.magic-spark{position:absolute;left:50%;top:50%;font-size:var(--size,12px);color:#ffe8a5;text-shadow:0 0 10px #ffc34b;animation:magic-spark 3.4s both;animation-delay:calc(var(--i)*20ms)}
#post-office-reader.magical-arrival{animation:magic-reader .2s ease-out both}
@keyframes magic-veil{0%{opacity:0}12%,96%{opacity:1}100%{opacity:0}}
@keyframes magic-light{0%{opacity:0;transform:scale(.4)}65%{opacity:1;transform:scale(1.1)}100%{opacity:0;transform:scale(1.3)}}
@keyframes magic-flap{0%,12%{transform:rotateX(0)}35%,100%{transform:rotateX(180deg);z-index:0}}
@keyframes magic-paper{0%,24%{transform:translateY(25%) scale(.8);opacity:0}38%{opacity:1}72%{transform:translateY(-60%) rotate(-3deg) scale(1.02);opacity:1}100%{transform:translateY(-70%) rotate(0) scale(1.15);opacity:0}}
@keyframes magic-spark{0%,22%{opacity:0;transform:translate(-50%,0) scale(0)}45%,88%{opacity:1}100%{opacity:0;transform:translate(var(--x),var(--y)) scale(.3) rotate(90deg)}}
@keyframes magic-reader{from{opacity:.7}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.letter-magic{display:none!important}#post-office-reader.magical-arrival{animation:none}}

/* A replayable sample stays separate from the visitor's own draft. */
#mail-writing-desk [data-how]{margin-top:18px;font-size:17px;background:#49341f;color:#fff7e6}
#mail-writing-desk .letter-tutorial{margin-top:16px;padding:18px;border:1px solid #aa8b50;border-radius:9px;background:#fff8e9}
#mail-writing-desk .letter-tutorial[hidden],#mail-writing-desk .download-help[hidden]{display:none}
#mail-writing-desk .letter-tutorial h3{font:22px/1.3 Georgia,serif;margin:0}
#mail-writing-desk .tutorial-caption{font:18px/1.5 Arial,sans-serif;min-height:4.5em}
#mail-writing-desk .tutorial-screen{min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#e6d6b6;border-radius:8px;padding:20px;color:#30271e;font:20px/1.6 Georgia,serif;box-sizing:border-box}
#mail-writing-desk .demo-room{text-align:center;font-size:25px}
#mail-writing-desk .demo-tap{position:relative;display:block;width:fit-content;margin:14px auto;padding:10px 18px;border:2px solid #8c622b;border-radius:7px;background:#fff4d9;box-shadow:0 0 0 5px #d4ae5370;animation:demo-tap 1.8s ease-in-out infinite}
#mail-writing-desk .demo-tap::after{content:'👆';position:absolute;right:-12px;bottom:-22px;font-size:32px}
#mail-writing-desk .demo-paper{width:min(340px,100%);box-sizing:border-box;padding:20px;background:#fffdf3;box-shadow:0 3px 12px #49341f26;font:20px/1.6 Georgia,serif}
#mail-writing-desk .demo-paper small{font:15px Arial,sans-serif}
#mail-writing-desk .demo-words{animation:demo-ink 2s ease-out both}
#mail-writing-desk .demo-files{width:min(360px,100%);box-sizing:border-box;padding:20px;background:#fff;border-radius:9px;font:19px/1.5 Arial,sans-serif}
#mail-writing-desk .demo-file{padding:14px;border:1px solid #c4b28e;border-radius:6px;background:#f7f2e8}
#mail-writing-desk .tutorial-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:20px}
#mail-writing-desk button:disabled{opacity:.45;cursor:default}
#mail-writing-desk .tutorial-note{font:14px/1.5 Arial,sans-serif}
#mail-writing-desk .download-help{margin:20px 0 0;padding:18px;background:#fff8e9;border:2px solid #907139;border-radius:8px;font:17px/1.6 Arial,sans-serif}
#mail-writing-desk .download-help p{margin:10px 0 0}
@keyframes demo-tap{50%{box-shadow:0 0 0 10px #d4ae5320}}
@keyframes demo-ink{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#mail-writing-desk .demo-tap,#mail-writing-desk .demo-words{animation:none}}
@media(max-width:480px){#mail-writing-desk{padding:16px}#mail-writing-desk .letter-tutorial{padding:12px}#mail-writing-desk .tutorial-screen{padding:12px}#mail-writing-desk .tutorial-controls button{padding:8px 12px;font-size:17px}}
/* Clear celebratory confetti, including a gentle still version. */
.magic-confetti{position:absolute;left:50%;top:44%;width:9px;height:15px;background:var(--color);border-radius:2px;animation:letter-confetti 3.4s ease-out both;animation-delay:calc(var(--i)*12ms)}
@keyframes letter-confetti{0%,15%{opacity:0;transform:translate(0,0) rotate(0)}25%{opacity:1}90%{opacity:1}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(650deg)}}
@media(prefers-reduced-motion:reduce){.letter-magic.is-active{display:flex!important;animation:none;background:#30271ee8}.letter-magic *{animation:none!important}.letter-magic .magic-paper{opacity:1;transform:translateY(-30%)}.letter-magic .magic-confetti,.letter-magic .magic-spark{opacity:1;transform:translate(var(--x),var(--y))}.letter-magic .magic-flap{display:none}}
.dog-letter-entry{display:block;margin:16px auto;min-height:44px;padding:12px 20px}
.dog-letter-desk{width:min(90vw,620px);max-height:88dvh;overflow:auto;border:1px solid #b79561;border-radius:16px;background:#fff6e5;color:#38291d;padding:24px;box-sizing:border-box}
.dog-letter-desk::backdrop{background:#18120fba}.dog-letter-desk header{display:flex;align-items:center;justify-content:space-between;gap:12px}.dog-letter-desk h2{margin:0;font:1.6rem Georgia,serif}.dog-letter-desk label{display:block;margin:16px 0;font-weight:bold}.dog-letter-desk input,.dog-letter-desk select,.dog-letter-desk textarea{display:block;box-sizing:border-box;width:100%;padding:12px;margin-top:6px;font:16px/1.5 system-ui;background:#fffdf8;color:#30251b;border:1px solid #ac9675;border-radius:6px}.dog-letter-desk button{min-height:44px;padding:10px 18px;font:inherit;cursor:pointer}.dog-letter-desk p{line-height:1.5}.dog-letter-desk [data-close]{font-size:24px}

/* Celebrate on the tap, then reveal the letter promptly. */
.letter-magic.is-active,.magic-halo,.magic-flap,.magic-paper,.magic-spark,.magic-confetti{animation-duration:1.4s;animation-delay:0s}
@keyframes letter-confetti{0%{opacity:1;transform:translate(0,0) rotate(0)}85%{opacity:1}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(650deg)}}
@keyframes magic-spark{0%{opacity:1;transform:translate(-50%,0) scale(.8)}85%{opacity:1}100%{opacity:0;transform:translate(var(--x),var(--y)) scale(.3) rotate(90deg)}}
@keyframes magic-veil{0%,90%{opacity:1}100%{opacity:0}}

.magic-spark{color:#fff0b0;text-shadow:0 0 7px #fff6cf,0 0 18px #ffc34b,0 0 28px #edaa35}

/* A top-layer celebration remains visible above every letter reader on iPad. */
dialog.letter-magic{box-sizing:border-box;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;color:#ffe8a5;pointer-events:auto}
dialog.letter-magic::backdrop{background:transparent}

/* A full-screen golden shower, spread from the first frame. */
.letter-magic.is-active,.magic-halo,.magic-flap,.magic-paper,.magic-spark,.magic-confetti{animation-duration:1.8s}
.magic-spark{animation-name:golden-shower;animation-delay:0s}
@keyframes golden-shower{0%{opacity:.8;transform:translate(var(--x),calc(var(--y) - 35px)) scale(.7) rotate(0)}25%{opacity:1;transform:translate(var(--x),var(--y)) scale(1.15) rotate(25deg)}65%{opacity:1}100%{opacity:0;transform:translate(var(--x),calc(var(--y) + 90px)) scale(.65) rotate(85deg)}}

/* Render inside the native reader's top layer and recreate on every opening. */
#post-office-reader>.letter-magic{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;box-sizing:border-box;pointer-events:none;z-index:100;overflow:hidden}
#post-office-reader>.letter-magic.is-active{display:flex;animation-duration:3.6s}
#post-office-reader .magic-spark{font-size:var(--size);animation-duration:3.6s}
#post-office-reader .magic-halo,#post-office-reader .magic-flap,#post-office-reader .magic-paper,#post-office-reader .magic-confetti{animation-duration:3.6s}
@keyframes golden-shower{0%{opacity:1;transform:translate(var(--x),calc(var(--y) - 25px)) scale(.85)}20%{opacity:1;transform:translate(var(--x),var(--y)) scale(1.1) rotate(20deg)}85%{opacity:1;transform:translate(var(--x),calc(var(--y) + 60px)) scale(1) rotate(60deg)}100%{opacity:0;transform:translate(var(--x),calc(var(--y) + 100px)) scale(.8) rotate(80deg)}}
@media(prefers-reduced-motion:reduce){#post-office-reader>.letter-magic.is-active{animation:none!important}}

#room-post-office .post-office-directory.is-open{animation:none;scroll-behavior:auto}

#mail-writing-desk select,#mail-writing-desk input{display:block;box-sizing:border-box;width:100%;min-height:46px;padding:10px 12px;margin:7px 0 16px;border:1px solid #ac9675;border-radius:6px;background:#fffdf8;color:#30251b;font:16px/1.4 system-ui}
#mail-writing-desk label{display:block;font-weight:bold}#mail-writing-desk p{line-height:1.5}#mail-writing-desk textarea{box-sizing:border-box;width:100%}

/* Keep the room artwork free of rectangular link outlines. */
body #room-karla .room-shell :is(a[href],button),body #room-karla .room-shell :is(a[href],button):hover{outline:none!important;box-shadow:none!important}
body #room-karla .room-shell :is(a[href],button):focus-visible{outline:2px dotted #ffe6a2!important;outline-offset:2px}
#room-karla .dog-room-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:14px;margin:16px auto 22px;padding:14px;max-width:900px;box-sizing:border-box;background:#fff7e9;border:1px solid #d1bb92;border-radius:12px}
#room-karla .dog-room-actions a,#room-karla .dog-room-actions .dog-letter-entry{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;margin:0;min-height:48px;padding:11px 18px;border:1px solid #9f783f;border-radius:8px;background:#f8e7c7;color:#38291d;font:600 17px/1.4 Georgia,serif;text-align:center;text-decoration:none;cursor:pointer;outline:none!important;box-shadow:none!important}

#room-karla #family-polaroid-open.dog-letter-wall-poster{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:clamp(2px,.5vw,9px);padding:clamp(5px,1vw,16px)!important;background:linear-gradient(120deg,#fff8e6,#e9d4a7)!important;border:clamp(3px,.45vw,8px) ridge #957042!important;color:#46341e!important;text-align:center;overflow:hidden;cursor:pointer;box-sizing:border-box}
#room-karla .dog-letter-wall-poster .dog-poster-envelope{font:clamp(15px,2.5vw,42px)/1 Georgia,serif;color:#8f612c}
#room-karla .dog-letter-wall-poster strong{font:700 clamp(11px,1.8vw,30px)/1.1 Georgia,serif}
#room-karla .dog-letter-wall-poster>span:not(.dog-poster-envelope){font:clamp(7px,.95vw,15px)/1.2 Georgia,serif}
#room-karla .dog-letter-wall-poster em{font:italic clamp(6px,.85vw,13px)/1.2 Georgia,serif}

#room-karla #family-polaroid-open.dog-letter-wall-poster{gap:clamp(1px,.25vw,4px);padding:clamp(3px,.5vw,8px)!important}
#room-karla .dog-letter-wall-poster .dog-poster-envelope{font-size:clamp(10px,1.35vw,21px)}
#room-karla .dog-letter-wall-poster strong{font-size:clamp(10px,1.65vw,26px)}

#family-recipient{appearance:auto!important;-webkit-appearance:menulist!important}

#room-karla #family-polaroid-open.dog-letter-wall-poster{left:33%!important;top:6.5%!important;width:36%!important;height:17.5%!important;overflow:visible!important;background:linear-gradient(135deg,#164c83,#237eb4)!important;color:#fff9e9!important;border:3px solid #99deff!important;border-radius:12px;box-shadow:0 0 10px #76d8ff,0 0 25px #36baff99!important;padding:8px 22px!important}
#room-karla .dog-letter-wall-poster strong{font-size:clamp(13px,2.1vw,34px);text-shadow:0 0 8px #bceaff}
#room-karla .dog-letter-wall-poster .dog-poster-envelope{color:#fff4d4}
#room-karla .dog-letter-wall-poster .dog-sign-treat{position:absolute;font-size:clamp(16px,2.5vw,38px)!important;line-height:1;filter:drop-shadow(0 0 5px #fff0ab) drop-shadow(0 0 9px #ffc15b);pointer-events:none}
#room-karla .dog-letter-wall-poster .treat-one{left:-6%;top:8%;transform:rotate(-30deg)}
#room-karla .dog-letter-wall-poster .treat-two{right:-6%;top:8%;transform:rotate(30deg)}
#room-karla .dog-letter-wall-poster .treat-three{left:-6%;bottom:8%;transform:rotate(25deg)}
#room-karla .dog-letter-wall-poster .treat-four{right:-6%;bottom:8%;transform:rotate(-25deg)}
#room-karla #family-polaroid-open.dog-letter-wall-poster:focus-visible{outline:3px solid white!important;outline-offset:5px}

.dog-letter-desk{border:3px solid #79b9dc;background:linear-gradient(135deg,#eef8ff,#fff8e8);box-shadow:0 0 24px #77ccff55}
.dog-desk-bones{display:flex;align-items:center;justify-content:center;gap:32px;font-size:30px;filter:drop-shadow(0 0 4px #e9c97b);margin:0 0 14px;pointer-events:none}
.dog-desk-bones span{font-size:22px}
.dog-letter-desk .dog-letter-errors{padding:14px 18px;margin:18px 0;border:2px solid #a23b25;border-radius:8px;background:#fff0df;color:#702716;scroll-margin:16px}
.dog-letter-desk .dog-letter-errors[hidden]{display:none}
.dog-letter-desk .dog-letter-errors ul{margin:8px 0 0;padding-left:22px}
.dog-letter-desk [aria-invalid="true"]{border:2px solid #a23b25}

.dog-chorus{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;padding:18px;margin:12px auto;max-width:680px;background:#e8f5ff;border:1px solid #79b9dc;border-radius:12px;color:#193c58}
.dog-chorus button{min-height:44px;padding:10px 16px;border:1px solid #5c99bf;border-radius:8px;background:#164f7e;color:white;font:16px/1.4 Georgia,serif;cursor:pointer}
.dog-chorus button:disabled{opacity:.55;cursor:default}
.dog-chorus [role="status"]{flex-basis:100%;text-align:center;font:15px/1.4 Georgia,serif}
#room-post-office .mail-write-button{display:inline-flex;align-items:center;justify-content:center;gap:14px;border-bottom:3px solid #72b6d3;padding-bottom:13px}
.family-sign-boat{display:inline-flex;width:40px;height:40px;flex:none;pointer-events:none}.family-sign-boat svg{width:100%;height:100%}
@media(max-width:480px){#room-post-office .mail-write-button{gap:8px}.family-sign-boat{width:30px;height:30px}}

/* Compact, readable dog-letter sign in its existing wall position. */
#room-karla #family-polaroid-open.dog-letter-wall-poster{left:39%!important;top:3.5%!important;width:24%!important;height:12%!important;padding:4px 8px!important;gap:0;overflow:hidden!important}
#room-karla .dog-letter-wall-poster strong{font-size:clamp(17px,2.45vw,38px)!important;line-height:1.05}
#room-karla .dog-letter-wall-poster .dog-poster-envelope,#room-karla .dog-letter-wall-poster>span:not(.dog-sign-treat){display:none}
#room-karla .friends-photo-controls .friends-photo-link{font-size:clamp(16px,1.6vw,22px);font-weight:800;white-space:normal}

@media(max-width:600px){#room-karla #family-polaroid-open.dog-letter-wall-poster{padding:2px!important;border-width:2px!important}#room-karla .dog-letter-wall-poster strong{font-size:clamp(10px,2.45vw,17px)!important}}

/* Karla’s reply stays with Paola’s original letter. */
.paola-reply{margin:2rem 0 0;padding:2rem 0 0;border-top:1px solid #c8bca5;color:#30271f;}
.paola-thanks-intro{font-style:italic;line-height:1.6;}

/* Let longer letter titles fit below the envelope flap. */
#room-post-office .names a.letter-name{height:auto;min-height:130px;aspect-ratio:auto;min-width:0;white-space:normal;overflow-wrap:anywhere;padding:69px 8px 14px!important}
#room-post-office .names a.letter-name::before{height:65px}
#room-post-office .names a.letter-name small{white-space:normal}
@media(max-width:700px){#room-post-office .names a.letter-name{min-height:112px;padding:57px 7px 12px!important}#room-post-office .names a.letter-name::before{height:53px}}

/* Smaller envelopes; opened letter text keeps its existing size. */
#room-post-office .names{grid-template-columns:repeat(auto-fill,120px);gap:12px;justify-content:center;align-items:start}
#room-post-office a.letter-name,#room-post-office .names a.letter-name,#room-post-office .daily-featured-letter a.letter-name{width:120px;max-width:120px;min-height:87px;height:auto;aspect-ratio:auto;padding:46px 6px 9px!important;font-size:15px}
#room-post-office .names a.letter-name::before,#room-post-office a.letter-name::before{height:43px}
#room-post-office a.letter-name .canadian-stamp{width:27px;height:35px;top:4px;right:4px;transform:scale(.6667);transform-origin:top right}
#room-post-office a.letter-name :is(.family-lake-stamp,.czech-stamp){width:37px;height:44px;transform:scale(.6667);transform-origin:top right}
@media(max-width:700px){#room-post-office .names{grid-template-columns:repeat(auto-fill,100px);gap:10px}#room-post-office a.letter-name,#room-post-office .names a.letter-name,#room-post-office .daily-featured-letter a.letter-name{width:100px;max-width:100px;min-height:75px;padding:38px 5px 8px!important;font-size:13px}#room-post-office .names a.letter-name::before,#room-post-office a.letter-name::before{height:35px}}

/* Small sparkles inherit each envelope's series colour. */
#room-post-office a.letter-name .letter-colour-sparkles{position:absolute;inset:0;pointer-events:none;z-index:5;color:var(--link-highlight,#e8bd40)}
#room-post-office .letter-colour-sparkles i{position:absolute;font:normal 15px/1 Georgia,serif;text-shadow:0 0 5px currentColor;animation:letter-colour-twinkle 3s ease-in-out infinite}
#room-post-office .letter-colour-sparkles i:nth-child(1){left:7px;top:10px}
#room-post-office .letter-colour-sparkles i:nth-child(2){right:8px;bottom:9px;font-size:12px;animation-delay:-1s}
#room-post-office .letter-colour-sparkles i:nth-child(3){left:17px;bottom:12px;font-size:9px;animation-delay:-2s}
.letter-magic .magic-spark{color:var(--letter-sparkle-colour,#ffe8a5);text-shadow:0 0 8px var(--letter-sparkle-colour,#ffc34b)}
@keyframes letter-colour-twinkle{0%,100%{opacity:.45;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}
@media(prefers-reduced-motion:reduce){#room-post-office .letter-colour-sparkles i{animation:none;opacity:.8}}

/* Uniform envelope dimensions across every series and the featured letter. */
body #room-post-office a.letter-name,
body #room-post-office .names a.letter-name,
body #room-post-office .daily-featured-letter a.letter-name{
 box-sizing:border-box!important;width:190px!important;min-width:190px!important;max-width:190px!important;
 height:125px!important;min-height:125px!important;max-height:125px!important;
 flex-shrink:0;aspect-ratio:auto!important;padding:46px 6px 9px!important;
 white-space:normal;overflow-wrap:anywhere;line-height:1.2;font-size:15px;
}
#room-post-office .names{grid-auto-rows:125px;align-items:stretch}
@media(max-width:700px){
 body #room-post-office a.letter-name,
 body #room-post-office .names a.letter-name,
 body #room-post-office .daily-featured-letter a.letter-name{
 width:150px!important;min-width:150px!important;max-width:150px!important;
 height:110px!important;min-height:110px!important;max-height:110px!important;
 padding:38px 5px 8px!important;font-size:13px;
 }
 #room-post-office .names{grid-auto-rows:110px}
}

/* Landscape envelope shelves match the uniform card widths. */
#room-post-office .names{grid-template-columns:repeat(auto-fill,190px)}
@media(max-width:700px){#room-post-office .names{grid-template-columns:repeat(auto-fill,150px);grid-auto-rows:110px}}

/* Keep every title readable below the flap and postage, with room for long names. */
body #room-post-office a.letter-name,
body #room-post-office .names a.letter-name,
body #room-post-office .daily-featured-letter a.letter-name{
 height:auto!important;min-height:135px!important;max-height:none!important;
 padding:52px 12px 18px!important;display:flex;flex-direction:column;
 justify-content:center;align-items:center;gap:8px;overflow:visible;
}
#room-post-office .names{grid-auto-rows:auto;align-items:stretch}
#room-post-office a.letter-name::before{height:43px!important;z-index:0}
#room-post-office a.letter-name>.envelope-title{position:relative;z-index:2;display:block;width:100%;min-width:0;white-space:normal;overflow-wrap:break-word;font:500 16px/1.4 Georgia,serif;color:#203247;text-shadow:none}
#room-post-office a.letter-name>small{position:relative;z-index:2;display:block;max-width:100%;margin:0;white-space:normal;overflow-wrap:break-word;font:700 10px/1.4 Arial,sans-serif;letter-spacing:.04em;color:#654506!important;text-shadow:none}
@media(max-width:700px){
 body #room-post-office a.letter-name,body #room-post-office .names a.letter-name,body #room-post-office .daily-featured-letter a.letter-name{padding:51px 10px 16px!important;min-height:130px!important}
 #room-post-office a.letter-name>.envelope-title{font-size:15px}
}

/* Wide landscape envelopes retain space for the full title. */
#room-post-office .names{grid-template-columns:repeat(auto-fill,280px);grid-auto-rows:auto;gap:16px;align-items:stretch;justify-content:center}
body #room-post-office a.letter-name,
body #room-post-office .names a.letter-name,
body #room-post-office .daily-featured-letter a.letter-name{
 width:280px!important;min-width:0!important;max-width:280px!important;
 height:auto!important;min-height:140px!important;max-height:none!important;
 padding:48px 20px 18px!important;border-radius:3px!important;
}
#room-post-office .daily-featured-letter{width:max-content;max-width:100%}
#room-post-office a.letter-name::before{height:43px!important}
@media(max-width:600px){
 #room-post-office .names{grid-template-columns:minmax(0,320px);gap:16px}
 body #room-post-office a.letter-name,body #room-post-office .names a.letter-name,body #room-post-office .daily-featured-letter a.letter-name{width:100%!important;max-width:320px!important;min-height:145px!important;padding:48px 18px 18px!important}
 #room-post-office .daily-featured-letter{width:min(344px,100%)}
 #room-post-office a.letter-name>.envelope-title{font-size:16px}
}

/* Ghost fiction has its own bright tomato-red series colour. */
.ghost-story-dot{background:#ff6347;box-shadow:0 0 9px #ff634799}
body #room-post-office a.ghost-story-envelope,.ghost-story-card,.ghost-story-link{
 --link-highlight:#ff6347;border:3px solid #ff6347!important;
 box-shadow:0 0 14px #ff6347bb,0 0 30px #ff634766!important;
}
body #room-post-office a.ghost-story-envelope:is(:hover,:focus-visible),.ghost-story-card:is(:hover,:focus-visible),.ghost-story-link:is(:hover,:focus-visible){outline:3px solid #ffa58c;outline-offset:4px;box-shadow:0 0 20px #ff6347dd,0 0 36px #ff634788!important}
body #room-post-office a.ghost-story-envelope>small{color:#8e2818!important}
.ghost-stories-collection{max-width:860px;margin:28px auto;padding:20px;color:#fff1db}
.ghost-stories-collection>h2{text-align:center;font:30px/1.3 Georgia,serif;color:#ffb09d;margin:0 0 20px}
.ghost-story-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.ghost-story-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:140px;padding:26px 20px;border-radius:3px;background:linear-gradient(155deg,#fff9e9 49%,#dfcda6 50%,#f5e7c9 51%);color:#35291c;text-align:center;text-decoration:none;font:22px/1.4 Georgia,serif;box-sizing:border-box;overflow-wrap:anywhere}
.ghost-story-card small{display:block;font:700 13px/1.4 Arial,sans-serif;color:#8e2818;letter-spacing:.04em}
.ghost-story-link{margin:12px;text-decoration:none}
#stephens-letters .ghost-story-card{max-width:380px;margin:24px auto}
@media(max-width:600px){.ghost-story-links{grid-template-columns:1fr}.ghost-stories-collection{padding:20px 24px}.ghost-story-card{font-size:20px}}
body #room-post-office .names a.letter-name.ghost-story-envelope,
body #room-post-office a.letter-name.ghost-story-envelope,
body #room-post-office .ghost-story-links a.ghost-story-envelope,
body #stephens-letters a.ghost-story-card,
body #crate-story a.ghost-story-link{
 --link-highlight:#ff6347!important;border:3px solid #ff6347!important;
 box-shadow:0 0 14px #ff6347bb,0 0 30px #ff634766!important;
}
body #room-post-office #letter-finder a.letter-name.ghost-story-envelope,
body #room-post-office .ghost-stories-collection .ghost-story-links a.ghost-story-card.ghost-story-envelope,
body #room-stephens #stephens-letters a.ghost-story-card,
body #room-stephens #crate-story a.ghost-story-link{
 --link-highlight:#ff6347!important;border:3px solid #ff6347!important;
 box-shadow:0 0 14px #ff6347bb,0 0 30px #ff634766!important;
}

/* A short, subtle shimmer confined to the opening envelope. */
#post-office-reader>.letter-magic{background:transparent}
#post-office-reader>.letter-magic.is-active,#post-office-reader .magic-flap,#post-office-reader .magic-paper{animation-duration:1.6s}
#post-office-reader .magic-halo{width:min(80vw,360px);opacity:.25;animation-duration:1.6s}
#post-office-reader .magic-spark{animation:envelope-soft-spark 1.6s ease-out both;font-size:var(--size,10px);text-shadow:0 0 4px currentColor}
#post-office-reader .magic-confetti{display:none}
@keyframes envelope-soft-spark{0%{opacity:0;transform:translate(var(--x),var(--y)) scale(.4)}25%,60%{opacity:.9;transform:translate(var(--x),var(--y)) scale(.8)}100%{opacity:0;transform:translate(var(--x),calc(var(--y) - 12px)) scale(.3)}}

/* A little more light, preserving each letter series colour and existing timing. */
#room-post-office .letter-colour-sparkles i{filter:brightness(1.08);text-shadow:0 0 3px currentColor,0 0 8px currentColor,0 0 12px currentColor}
#post-office-reader .magic-spark{filter:brightness(1.08);text-shadow:0 0 3px currentColor,0 0 8px currentColor,0 0 12px currentColor}

/* Coloured letters sparkle in their own highlight colour; the default is gold. */
#room-post-office a.letter-name .letter-colour-sparkles{color:var(--link-highlight,#e9b52d)}
#post-office-reader .magic-spark{color:var(--letter-sparkle-colour,#e9b52d);text-shadow:0 0 3px currentColor,0 0 8px currentColor,0 0 12px currentColor}
