body{background:#24231e}.home-tools{display:grid;grid-template-columns:minmax(0,1fr) 40%;align-items:center;gap:20px;height:52px;padding:8px 2px;border-bottom:1px solid #354038}.home-tools span{font:italic 12px/1.45 Georgia,serif;color:#bdb7a5}.veil{background:#23261fc4}.debug-place{display:flex;align-items:center;gap:12px;margin-top:10px;font-size:10px;color:var(--muted)}.debug-place select{background:#18251e;color:var(--ink);border:1px solid #47504a;font:10px Arial,sans-serif;padding:5px 8px;min-width:150px}#dialogue{z-index:2;top:12px;bottom:auto;width:min(90%,620px);padding:11px 16px;font-size:15px;line-height:1.4;background:#252b24f2}#prompt{top:12px;left:50%;transform:translateX(-50%);max-width:85%;white-space:normal;text-align:center;font-size:10px;background:#252b24ed}.debug-open #dialogue,.debug-open #prompt{top:37px}#load-status:empty{display:none}
@media(max-width:650px){.home-tools{height:76px;gap:10px}.home-tools span{font-size:11px}#dialogue{font-size:11px;padding:7px 10px;top:8px}#prompt{font-size:9px;top:8px}.debug-open #dialogue,.debug-open #prompt{top:30px}.intro-card{padding:8px}.eyebrow{margin:4px 0}h1,h2{font-size:clamp(23px,5vw,30px);margin:5px 0}.invitation{font-size:12px;margin-bottom:8px}.intro-card button{font-size:9px;padding:8px 14px}.instructions{margin:7px 0 0;font-size:8px}.chapter-link{margin-top:8px;font-size:8px}}

.home-memory{box-sizing:border-box;width:min(660px,94vw);max-height:90dvh;overflow:auto;background:#ded3b8;color:#292e27;border:1px solid #968873;padding:20px;box-shadow:0 12px 60px #0009}.home-memory::backdrop{background:#121b16bc}.home-memory h2{font:24px Georgia,serif;margin:0 0 12px}.memory-card{padding:9px;background:#f1e5cb;box-shadow:0 2px 8px #39302440}.memory-card img{display:block;width:100%;max-height:40dvh;object-fit:contain;image-rendering:pixelated}.memory-card img[hidden],.memory-back[hidden],.memory-card[hidden]{display:none}.memory-back{min-height:160px;padding:15px;border:1px solid #b2a588;font:italic 18px Georgia,serif}.memory-back canvas{display:block;max-width:100%;height:auto}.home-memory p{font:15px/1.5 Georgia,serif}.memory-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.memory-actions button{flex:1 1 45%;min-height:44px;background:#293e33;color:#f1e5c9;border:1px solid #586552;font:13px Georgia,serif;padding:10px}.memory-actions button:focus-visible{outline:3px solid #b07432;outline-offset:2px}#home-pocket{font-size:10px;max-width:170px;white-space:normal}
@media(max-height:500px){.home-memory{padding:12px}.home-memory h2{font-size:20px;margin-bottom:6px}.memory-card img{max-height:30dvh}.memory-actions{gap:5px;margin-top:6px}.memory-actions button{flex-basis:22%;font-size:11px;padding:7px}.home-memory p{margin:6px 0}.memory-back{min-height:90px;padding:8px}.memory-back canvas{height:45px;width:auto}}
#home-pocket{position:absolute;right:12px;bottom:12px;z-index:3;min-height:40px;max-width:180px;padding:8px 12px;border:1px solid #998e69;background:#20382de8;color:#efe2c0;font:12px Georgia,serif;letter-spacing:0}#home-pocket[hidden]{display:none}#home-pocket:disabled{opacity:.55}

/* Printed postcard reverse: the typography is live FR/EN, the stamp is game-native SVG. */
.home-memory .memory-back{position:relative;display:grid;grid-template-columns:53% 47%;min-height:280px;padding:34px 20px 18px;border:0;background:radial-gradient(ellipse at 10% 0%,#ad8b4a12,transparent 65%),repeating-linear-gradient(2deg,#7c633407 0 1px,transparent 1px 4px),#eee2c5;box-shadow:inset 0 0 24px #b1935d24;font:italic 18px/1.5 Georgia,serif}.home-memory .memory-back[hidden]{display:none}.postcard-heading{position:absolute;top:10px;left:20px;font:10px Georgia,serif;letter-spacing:3px;color:#847653}.postcard-message{position:relative;padding:24px 18px 24px 0;min-width:0;border-right:1px solid #9b8a635c}.home-memory .postcard-message p{font:italic 18px/1.65 Georgia,serif;transform:rotate(-2deg);color:#434b43}.postcard-message canvas{width:100%;height:auto;margin-top:12px;opacity:.8}.postcard-edition{position:absolute;bottom:0;left:0;font:8px Georgia,serif;letter-spacing:2px;color:#9b8c6a}.postcard-address{min-width:0;padding-left:20px}.postcard-postage{height:132px;position:relative}.home-memory .memory-card .postcard-stamp{position:absolute;right:0;top:-18px;width:77px;height:95px;max-height:none;object-fit:contain;filter:sepia(.15);transform:rotate(4deg)}.postcard-cancel{position:absolute;right:47px;top:6px;width:78px;height:78px;border:2px solid #3d505b99;border-radius:50%;outline:1px solid #3d505b77;outline-offset:-6px;transform:rotate(-17deg);color:#3d505ba6;display:flex;flex-direction:column;align-items:center;justify-content:center;font-style:normal;z-index:1}.postcard-cancel span{font:9px Georgia,serif;letter-spacing:1px}.postcard-cancel strong{font:19px Georgia,serif;border-block:1px solid #3d505b55;margin:3px 0}.postcard-cancel small{font:6px Georgia,serif;letter-spacing:1px}.postcard-waves{position:absolute;right:-9px;top:42px;width:135px;height:45px;fill:none;stroke:#3d505b77;stroke-width:1.4;transform:rotate(-12deg)}.home-memory .postcard-address p{font:italic 15px/1.45 Georgia,serif;color:#4e5549;border-bottom:1px solid #ac9b7755;padding:0 0 6px;margin:0 0 9px}
@media(max-width:500px){.home-memory .memory-back{min-height:260px;padding:30px 10px 14px;grid-template-columns:52% 48%}.postcard-heading{left:10px;font-size:8px;letter-spacing:2px}.postcard-message{padding:28px 10px 23px 0}.home-memory .postcard-message p{font-size:14px}.postcard-address{padding-left:10px}.postcard-postage{height:132px}.home-memory .memory-card .postcard-stamp{width:56px;height:69px;top:0}.postcard-cancel{width:59px;height:59px;right:24px;top:31px}.postcard-cancel span{font-size:7px}.postcard-cancel strong{font-size:15px}.postcard-cancel small{font-size:5px}.postcard-waves{width:90px;top:55px;right:-4px}.home-memory .postcard-address p{font-size:12px}}
@media(max-height:500px) and (min-width:501px){.home-memory .memory-back{min-height:165px;padding-top:20px;padding-bottom:10px}.postcard-heading{top:5px}.postcard-message{padding-top:5px;padding-bottom:15px}.home-memory .postcard-message p{font-size:15px}.postcard-message canvas{height:55px;width:auto;margin:0}.postcard-postage{height:65px}.home-memory .memory-card .postcard-stamp{width:52px;height:64px;top:-12px}.postcard-cancel{width:52px;height:52px;right:36px;top:-5px}.postcard-cancel span{font-size:6px}.postcard-cancel strong{font-size:13px;margin:2px 0}.postcard-cancel small{font-size:4px}.postcard-waves{width:90px;top:18px}.home-memory .postcard-address p{font-size:12px;padding-bottom:3px;margin-bottom:5px}}
/* Chapter six: an actual activation square, also visible while its dialogue is read. */
.stage .home-selection:not([hidden]),.stage:has(>#dialogue:not([hidden])) .home-selection:not([hidden]){display:block;width:2.5%;height:4.4444%;min-width:16px;min-height:16px;border:2px solid #fff0c6;outline:1px solid #25241f;outline-offset:1px;background:#fff3ca0c;box-shadow:inset 0 0 0 1px #28271b80;opacity:1;filter:none;z-index:4}
.stage .home-selection[data-active="false"]{border-style:dashed;border-color:#ddc998;opacity:.65;background:none}
.stage:has(>.veil:not([hidden])) .home-selection{display:none!important}
