:root{--paper:#f5ecdf;--surface:#fffbf4;--paper-dark:#e9dcc9;--ink:#3b2930;--muted:#786761;--wine:#562b3d;--wine-deep:#321723;--gold:#caa46a;--gold-light:#edd4a6;--rust:#ac5d3b;--green:#75836a;--line:#d8c7b5;--shadow:#482c2412;--serif:Georgia,'Times New Roman',serif;--sans:'Trebuchet MS',Arial,sans-serif;--mono:'Courier New',monospace;color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}body:before{content:'';position:fixed;inset:0;pointer-events:none;z-index:80;opacity:.026;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E")}
button,input,textarea,select{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;background:none;border:0;color:inherit}button:disabled{opacity:.5;cursor:default}a{color:inherit;text-decoration:none}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{font-family:var(--serif);font-weight:400;line-height:1.2}h1 em,h2 em{font-weight:400;color:var(--rust)}svg{display:block}.ico{width:21px;height:21px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}img{display:block;max-width:100%}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--rust);outline-offset:4px}::selection{background:#cfa16b55}button .ico{pointer-events:none}[hidden],.hidden{display:none!important}.skip{position:fixed;top:-80px;left:20px;background:var(--wine);color:white;padding:12px;z-index:100}.skip:focus{top:10px}.wrap{max-width:1440px;margin:auto;padding:0 48px}.eyebrow{font:12px/1.5 var(--mono);letter-spacing:.16em;color:var(--muted);text-transform:uppercase}.small-star{color:var(--rust);font-size:17px;margin-right:7px}.btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 20px;border:1px solid var(--wine);border-radius:5px;background:var(--wine);color:#fff5e1;font-size:14px;line-height:1.4;transition:transform .2s,background .2s,box-shadow .2s}.btn:hover{transform:translateY(-2px);box-shadow:0 5px 15px #341b231c}.btn.secondary{background:transparent;border-color:var(--line);color:var(--ink)}.btn.gold{background:var(--gold-light);border-color:var(--gold-light);color:#4c2d2a}.btn .ico{width:18px;height:18px}.wide{width:100%}.text-link{display:inline-flex;align-items:center;gap:9px;min-height:44px;border-bottom:1px solid var(--rust);font-size:14px;padding:7px 0;color:var(--rust)}.text-button{min-height:40px;font-size:14px;padding:8px 0;text-decoration:underline;text-underline-offset:4px}.small-button{border:1px solid var(--line);border-radius:4px;min-height:40px;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:14px}.small-button:hover{background:var(--paper-dark)}.small-button .ico{width:17px;height:17px}.icon-button{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;color:var(--muted)}.icon-button:hover{background:var(--paper-dark)}
.site-header{border-bottom:1px solid var(--line)}.header-inner{max-width:1440px;margin:auto;padding:15px 48px;min-height:95px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;gap:10px}.brand img{width:47px;height:58px;object-fit:contain}.brand-name{font:bold 33px/.95 var(--serif);letter-spacing:-.055em}.brand-name small{display:block;font:9px/1.4 var(--mono);letter-spacing:.19em;margin-top:8px;color:var(--muted)}nav{display:flex;align-items:center;gap:29px;margin:auto}nav a,nav button{font-size:14px;min-height:44px;display:inline-flex;align-items:center;gap:8px;position:relative;padding:4px 0}nav a:hover,nav button:hover{color:var(--rust)}.nav-dot{width:6px;height:6px;border-radius:50%;background:var(--rust)}.header-tools{display:flex;gap:5px}.welcome{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:39px 0 33px}.welcome h1{font-size:clamp(2.7rem,3.55vw,3.7rem);letter-spacing:-.055em;margin:9px 0 9px;line-height:1.15}.welcome h1 em{white-space:nowrap}.welcome p{color:var(--muted);font-size:15px}.meet-link{text-align:right;padding:12px 0 12px 30px;flex-shrink:0;color:var(--muted);display:flex;flex-direction:column;align-items:flex-end;gap:11px}.meet-link>span:first-child{font:italic 18px/1.45 var(--serif)}.meet-label{font-size:12px;display:flex;gap:8px;align-items:center;color:var(--rust)}.meet-label .ico{width:15px;height:15px}
.house{scroll-margin-top:24px}.world-frame{display:grid;grid-template-columns:minmax(0,1fr) 290px;border-radius:10px 10px 0 0;overflow:hidden;background:var(--wine-deep);border:1px solid #553332;border-bottom:0;box-shadow:0 15px 40px #3b202d20}.world-main{min-width:0}.scene{position:relative;aspect-ratio:3/2;isolation:isolate;overflow:hidden;background:#38201b}.scene-art{width:100%;height:100%;object-fit:cover;user-select:none;transition:opacity .35s}.scene-art.changing{opacity:.5}.scene-vignette{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,#1b0b18a6 0,transparent 29%,transparent 64%,#1b0b1880 100%)}.scene-heading{position:absolute;left:27px;right:23px;top:22px;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:15px;pointer-events:none;color:#fff1d6;text-shadow:0 2px 9px #21071299}.scene-heading>div{max-width:75%}.scene-eyebrow{font:10px var(--mono);letter-spacing:.15em;color:#ecd3ad}.scene-heading h2{font-size:34px;margin-top:5px;letter-spacing:-.035em}.scene-tool{pointer-events:auto;display:flex;align-items:center;gap:7px;font-size:12px;border:1px solid #d8b98380;background:#2b142dcc;backdrop-filter:blur(7px);padding:9px 12px;border-radius:30px;color:#f5e4c3;min-height:40px;text-shadow:none}.scene-tool .ico{width:15px;height:15px}.scene-tool[aria-pressed=true]{border-color:#edc98a}.hotspots{position:absolute;inset:0;z-index:4;pointer-events:none}.hotspot{position:absolute;transform:translate(-50%,-50%);width:42px;height:42px;border:1px solid #f5d894ad;box-shadow:0 0 0 5px #ddae5323,0 2px 15px #1b091866;border-radius:50%;background:#382217a8;backdrop-filter:blur(3px);display:grid;place-items:center;color:#ffe8b6;pointer-events:auto;transition:background .2s,transform .2s;animation:hotspot-glow 3.5s ease-in-out infinite}.hotspot .ico{width:18px;height:18px}.hotspot:hover,.hotspot:focus-visible{background:#875633;transform:translate(-50%,-50%) scale(1.08)}.hotspot.found{background:#463d2a9c;border-color:#e6cd9a80;animation:none}.hotspot-label{position:absolute;bottom:49px;left:50%;transform:translateX(-50%);color:#39252b;background:#ffedcf;box-shadow:0 4px 10px #0003;padding:5px 10px;white-space:nowrap;font-size:12px;opacity:0;pointer-events:none;border-radius:4px}.hotspot:hover .hotspot-label,.hotspot:focus-visible .hotspot-label{opacity:1}.scene.hide-spots .hotspot{opacity:0;pointer-events:none}.scene.hide-spots .hotspot:focus-visible{opacity:1;pointer-events:auto}.scene-pet{position:absolute;left:33%;top:27%;width:35%;height:42%;z-index:3;border-radius:40%;cursor:pointer}.scene-pet:focus-visible{outline-color:#ffe1a2;background:#ffc85d11}.scene.pet-reaction .scene-art{animation:scene-love .8s ease-in-out}.scene-bubble{position:absolute;left:24px;bottom:33px;max-width:330px;width:max-content;padding:14px 18px 15px;z-index:6;background:#fffae9ed;border:1px solid #ebd0a5;color:#4b3134;border-radius:2px 9px 9px 9px;box-shadow:0 6px 20px #180c1b30;pointer-events:none;backdrop-filter:blur(6px)}.scene-bubble:before{content:'';position:absolute;top:-8px;left:21px;width:13px;height:13px;background:#fff9e9;transform:rotate(45deg);border-top:1px solid #ebd0a5;border-left:1px solid #ebd0a5}.bubble-name{display:block;font:9px var(--mono);letter-spacing:.14em;color:#93724d;margin-bottom:5px}.scene-bubble p{font:italic 17px/1.45 var(--serif)}.scene-bubble.speak{animation:speech-in .3s}.scene-weather{position:absolute;right:19px;bottom:12px;z-index:2;color:#f5dcb7;font:11px var(--mono);display:flex;align-items:center;gap:6px;text-shadow:0 1px 4px #000}.scene-weather .ico{width:13px;height:13px}.scene-particles{position:absolute;inset:0;pointer-events:none;z-index:8;overflow:hidden}.scene-particle{position:absolute;left:55%;top:35%;font-size:30px;color:#ffe7ae;text-shadow:0 1px 4px #9b362a;animation:heart-float 1.8s ease-out forwards}.room-display{position:absolute;right:18px;bottom:39px;z-index:6;display:flex;gap:8px;max-width:180px}.display-slot{background:#2e1526bb;border:1px solid #d0b0758c;border-radius:8px;width:61px;height:69px;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(5px);color:#e6cfa2;position:relative}.display-slot.empty .ico{width:18px;opacity:.8}.display-slot .curio-sprite{width:57px;height:57px;border-radius:6px;background-color:#f6eddfdd}.display-slot span.slot-label{position:absolute;top:-22px;font-size:9px;white-space:nowrap;letter-spacing:.1em;color:#f1d8a9;opacity:0}.display-slot:hover span.slot-label,.display-slot:focus-visible span.slot-label{opacity:1}.weather-layer{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}.weather-layer.rain:before,.weather-layer.rain:after{content:'';position:absolute;inset:-100% -30%;background:repeating-linear-gradient(108deg,transparent 0 70px,#e9e9f433 71px 72px,transparent 73px 150px);animation:rain-fall 2s linear infinite;opacity:.5}.weather-layer.rain:after{animation-duration:3s;opacity:.25;background-size:70% 80%}.weather-layer.stars:before{content:'✦         ·        ✧             ·          ✧';position:absolute;top:22%;left:10%;width:80%;color:#ffe3a0;font-size:16px;letter-spacing:22px;animation:stars-glow 5s infinite}.room-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#351a28}.room-tab{display:flex;gap:10px;padding:13px 10px;align-items:center;color:#e9d5bb;position:relative;text-align:left;border-top:2px solid transparent;min-height:80px}.room-tab+.room-tab{border-left:1px solid #a47e6c33}.room-tab.selected{background:#573242;border-top-color:#edbd77}.room-tab:hover{background:#4b2939}.room-tab img{width:49px;height:49px;border-radius:5px;object-fit:cover;flex:none}.room-tab strong{font:17px/1.2 var(--serif);display:block}.room-tab small{font-size:10px;display:block;color:#c4a99a;margin-top:5px;line-height:1.3}.room-found{position:absolute;bottom:5px;right:6px;font:9px var(--mono);color:#d1b38c;opacity:.7}
.companion{background:linear-gradient(160deg,#4d263a,#2b1729);padding:22px 24px 18px;display:flex;flex-direction:column;color:#f5e7cf;min-width:0;border-left:1px solid #91654f40}.companion .eyebrow{color:#bd9f92;font-size:10px;letter-spacing:.13em}.companion-top{text-align:center}.portrait-wrap{width:123px;height:128px;margin:13px auto 8px;position:relative}.companion-portrait{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 10px #140c22)}.pet-badge{position:absolute;bottom:2px;right:-10px;width:32px;height:32px;border:1px solid #ae7b70;background:#633649;border-radius:50%;display:grid;place-items:center}.pet-badge .ico{width:16px;height:16px;color:#edbdac}.companion h2{font-size:27px;letter-spacing:-.04em}.companion h2 em{color:#edc18e}.mood{font:italic 15px var(--serif);color:#d6bcaa;margin-top:8px}.bond-label{display:inline-block;font-size:10px;padding:4px 11px;border:1px solid #98715755;border-radius:20px;color:#dbbd91;margin-top:13px}.needs{margin:23px 0 20px;display:grid;gap:11px}.need{display:flex;align-items:center;gap:9px}.need>span{width:88px;font-size:11px;display:flex;align-items:center;gap:6px;color:#dac8b7}.need .ico{width:14px;height:14px;color:#cb9e72}.need>div{flex:1;height:4px;border-radius:5px;background:#7c546044;overflow:hidden}.need i{display:block;width:78%;height:100%;border-radius:5px;background:#dca66a;transition:width .6s}.need:nth-child(2) i{background:#a9b289}.need:nth-child(3) i{background:#c89199}.need small{font:10px var(--mono);width:20px;text-align:right;color:#c8b3a8}.on-his-mind{border-top:1px solid #98745f50;padding-top:19px;margin-top:3px}.on-his-mind h3{font-size:21px;line-height:1.3;margin:8px 0;color:#f6e3bf;letter-spacing:-.02em}.on-his-mind p{font-size:12px;line-height:1.7;color:#c4ada5;min-height:42px}.on-his-mind .btn{width:100%;margin-top:14px;font-size:12px;min-height:40px;padding:9px 12px}.pocket-materials{text-align:left;display:block;border-top:1px solid #98745f50;margin-top:auto;padding:18px 0 0;width:100%}.pocket-materials>.eyebrow{display:block;margin-bottom:11px}.materials-line{display:flex;justify-content:space-between;gap:8px}.material-count{display:inline-flex;gap:5px;align-items:center;font:13px var(--mono);color:#e7cfa4}.material-count .ico{width:16px;height:16px;color:#cdaa76}.pocket-note{display:block;font-size:10px;color:#b59d94;margin-top:8px}.care-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--line);background:var(--surface);border-radius:0 0 8px 8px;box-shadow:0 5px 0 #b59c7b15}.care-bar>button{min-height:92px;display:flex;justify-content:center;align-items:center;gap:13px;padding:16px 10px;transition:background .2s;text-align:left}.care-bar>button+button{border-left:1px solid var(--line)}.care-bar>button:hover{background:var(--paper-dark)}.care-bar .ico{width:27px;height:27px;color:var(--rust);stroke-width:1.3}.care-bar>button:nth-child(2) .ico{color:var(--green)}.care-bar>button:nth-child(4) .ico{color:#917289}.care-bar span{font:19px/1.2 var(--serif)}.care-bar small{display:block;font:11px/1.4 var(--sans);color:var(--muted);margin-top:5px}.house-foot{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 2px;color:var(--muted);font-size:11px}.house-foot>span:first-child{font:italic 14px var(--serif)}.house-foot>span:last-child{display:flex;align-items:center;gap:5px}.house-foot .ico{width:13px;height:13px}.reading-bar{margin-top:12px;background:#e4e8d6;border:1px solid #a3b08a6b;border-radius:6px;display:flex;align-items:center;gap:17px;padding:16px 22px}.reading-bar>div{flex:1}.reading-bar strong{font:19px var(--serif)}.reading-bar p{font-size:12px;color:var(--muted);margin-top:3px}.reading-bar #readingClock{font:24px var(--mono);color:#64704e}.reading-bar .text-button{font-size:12px}
.chapter-and-journal{display:grid;grid-template-columns:1.6fr 1fr;gap:27px;padding:55px 0 60px}.story-card{display:flex;align-items:center;gap:35px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:32px;position:relative;overflow:hidden;min-height:340px}.story-cover{width:180px;height:257px;flex:none;border-radius:3px 8px 8px 3px;transform:rotate(-7deg);background:radial-gradient(ellipse at 15% 0,#845067,#4d2639 75%);border-left:6px solid #371b2c;box-shadow:4px 3px 0 #c8b28e,7px 6px 0 #674738,12px 14px 20px #48232924;color:#efd3a4;padding:14px 11px}.cover-border{border:1px solid #c7a66b80;padding:20px 12px 14px;text-align:center;height:100%;display:flex;align-items:center;flex-direction:column}.cover-kicker{font:8px var(--mono);letter-spacing:.18em}.story-cover h3{font:22px/1.25 var(--serif);margin:16px 0}.story-cover h3 em{font-size:24px}.cover-star{font-size:24px;margin-top:auto}.cover-border small{font:8px var(--mono);letter-spacing:.17em;margin-top:12px}.story-card-copy .eyebrow{font-size:10px;color:var(--rust)}.story-card-copy h2{font-size:32px;letter-spacing:-.04em;line-height:1.15;margin:11px 0 14px}.story-card-copy p{font-size:14px;line-height:1.8;color:var(--muted)}.chapter-dots{display:flex;gap:6px;margin-top:20px}.chapter-dot{display:block;flex:1;height:4px;background:var(--paper-dark);border-radius:3px;position:relative}.chapter-dot.done{background:var(--gold)}.chapter-dot.current{background:var(--wine)}.story-card-actions{margin-top:18px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.story-card-actions .btn{font-size:12px;padding:10px 15px;min-height:40px}.story-card-actions>span{font-size:10px;color:var(--muted)}.journal-card{padding:32px 29px 23px;border:1px solid var(--line);border-radius:8px;background:linear-gradient(135deg,#e7dccb33,transparent);position:relative}.journal-card>.eyebrow{font-size:10px}.journal-card h2{font-size:31px;letter-spacing:-.035em;margin:12px 0}.journal-card>p{color:var(--muted);font-size:14px;line-height:1.8}.journal-preview{margin:19px 0 10px;display:flex;flex-wrap:wrap;gap:7px;min-height:66px;align-content:flex-start}.journal-word{border:1px solid var(--line);background:var(--surface);padding:7px 13px;font:italic 18px var(--serif);border-radius:3px;transform:rotate(var(--tilt,0deg));display:inline-flex;align-items:center;gap:8px}.journal-word .ico{width:13px;height:13px;color:var(--rust)}.journal-empty{font:italic 18px/1.6 var(--serif);color:var(--muted);padding:10px 0}.journal-foot{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);margin-top:17px}.journal-foot .ico{width:15px;height:15px}
.curiosities-section{padding:0 0 60px;scroll-margin-top:30px}.section-heading{display:flex;justify-content:space-between;gap:30px;align-items:flex-end;margin-bottom:28px}.section-heading h2{font-size:43px;letter-spacing:-.045em;margin:10px 0 12px}.section-heading p{font-size:14px;color:var(--muted);max-width:650px}.section-heading .btn{flex-shrink:0;margin-bottom:3px}.collection-toolbar{border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.collection-filters{display:flex;gap:23px}.collection-filters button{font-size:13px;min-height:44px;border-bottom:2px solid transparent;padding:8px 0 12px;color:var(--muted)}.collection-filters button.active{color:var(--rust);border-color:var(--rust)}.collection-toolbar>span{font:italic 14px var(--serif);color:var(--muted)}.curio-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.curio-card{border:1px solid var(--line);border-radius:6px;padding:18px 10px 16px;position:relative;background:var(--surface);text-align:center;transition:transform .2s,box-shadow .2s;min-width:0}.curio-card:hover{transform:translateY(-4px);box-shadow:0 6px 20px var(--shadow)}.curio-sprite{display:block;background-image:var(--curio-sheet);background-repeat:no-repeat;background-size:400% 300%;background-color:#f7f1e7;aspect-ratio:1;width:100%;overflow:hidden;flex:none}.curio-card .curio-sprite{width:97px;height:97px;margin:0 auto 13px;border-radius:8px}.curio-card.locked .curio-sprite{filter:grayscale(.8);opacity:.38}.curio-card strong{display:block;font:17px/1.25 var(--serif);min-height:42px;padding:0 2px}.curio-card small{display:block;font-size:10px;color:var(--muted);margin-top:7px}.curio-status{position:absolute;top:9px;right:9px;color:var(--green)}.curio-status .ico{width:13px;height:13px}.curio-card.locked .curio-status{color:var(--muted)}.collection-note{font:italic 15px var(--serif);text-align:center;color:var(--muted);margin-top:24px}.empty-state{padding:28px;text-align:center;background:var(--surface);border:1px dashed var(--line);border-radius:5px;color:var(--muted);font-size:14px;grid-column:1/-1}.fieldnotes{display:grid;grid-template-columns:1fr 1fr;gap:100px;border-top:1px solid var(--line);padding:50px 48px 65px}.fieldnote-copy h2{font-size:33px;letter-spacing:-.035em;line-height:1.2;margin:12px 0 16px}.fieldnote-copy p{font-size:14px;line-height:1.9;color:var(--muted);max-width:440px}.fieldnote-copy .text-link{margin-top:15px}.fieldnote-copy .text-link span{font:11px var(--mono);padding:3px 7px;border:1px solid var(--line);border-radius:5px}.pinned-letter{align-self:center;position:relative;background:var(--surface);box-shadow:0 5px 18px var(--shadow);padding:36px 34px 26px;transform:rotate(2deg);border-bottom:2px solid var(--line);min-height:240px}.letter-pin{position:absolute;left:43%;top:-11px;width:75px;height:23px;background:#b5a68345;transform:rotate(-5deg)}.pinned-letter .eyebrow{font-size:10px}.pinned-letter blockquote{font:italic 24px/1.5 var(--serif);margin:17px 0 19px}.pinned-letter cite{display:block;font:italic 14px/1.6 var(--serif);text-align:right;color:var(--muted)}.pinned-letter cite strong{font-weight:400;color:var(--rust);font-size:20px}.pinned-letter>button{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);padding:8px 0;margin-top:12px;min-height:35px}.pinned-letter>button .ico{width:13px;height:13px}.site-footer{display:flex;align-items:center;justify-content:space-between;gap:25px;border-top:1px solid var(--line);padding:27px 0 35px}.footer-signature{font:italic 17px var(--serif);display:flex;align-items:center;gap:10px}.footer-signature .ico{color:var(--rust);width:17px;height:17px}.site-footer>span:nth-child(2){font-size:11px;color:var(--muted);margin-left:auto}.site-footer>button{color:var(--gold);font-size:24px;width:40px;height:40px}
.dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;width:590px;max-width:calc(100vw - 32px);max-height:90dvh;overflow:auto;padding:36px;box-shadow:0 20px 90px #1b0c2b6b}.dialog::backdrop{background:#1c101cb3;backdrop-filter:blur(6px)}.dialog-close{position:absolute;top:12px;right:13px;font:28px/1 var(--sans);width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:var(--muted);z-index:6;background:var(--surface)}.dialog-close:hover{background:var(--paper-dark)}.dialog h2{font-size:37px;letter-spacing:-.04em;margin:10px 0 18px;line-height:1.12}.dialog>p,.dialog-body>p{font-size:16px;color:var(--muted);line-height:1.8;margin-bottom:17px}.dialog .eyebrow{font-size:11px}.dialog label{display:block;font-size:14px;color:var(--muted);margin:22px 0 9px}.dialog label small{font-size:12px;float:right}.dialog input:not([type=file]),.dialog textarea,.dialog select{background:var(--paper);border:1px solid var(--line);color:var(--ink);border-radius:5px;padding:12px 13px;font-size:16px;width:100%;min-width:0}.dialog select{appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%23877765' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.dialog textarea{resize:vertical;min-height:65px;line-height:1.6}.dialog small{font-size:12px;line-height:1.6;color:var(--muted)}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.small-dialog{width:470px}.dialog-banner{position:relative;margin:-36px -36px 0;height:208px;overflow:hidden;border-radius:11px 11px 0 0}.dialog-banner>img{width:100%;height:100%;object-fit:cover;object-position:center 45%}.dialog-banner:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#291524c9,transparent 95%)}.dialog-banner>div{position:absolute;left:29px;bottom:20px;color:#fff0d4;z-index:1}.dialog-banner .eyebrow{color:#dbb997;font-size:10px}.dialog-banner h2{font-size:31px;margin:7px 0 0}.dialog-banner h2 em{color:#f4cb8a}.dialog-body{padding-top:23px}.word-options{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 22px}.word-option{font:italic 17px var(--serif);border:1px solid var(--line);background:var(--paper);padding:9px 13px;min-height:40px;border-radius:4px}.word-option:hover{border-color:var(--rust);background:#ead4b75c}.word-option.tried:after{content:' ·';color:var(--rust)}.inline-form{display:flex;gap:9px;margin-bottom:8px}.inline-form .btn{white-space:nowrap;flex:none}.reply{background:var(--paper);border-left:2px solid var(--gold);padding:16px 19px;margin:20px 0;font:italic 19px/1.6 var(--serif)}.reward-note{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px;line-height:1.6;margin-top:22px}.reward-note .ico{color:var(--rust);width:17px;height:17px}.duration-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:24px 0}.duration-options>button{border:1px solid var(--line);background:var(--paper);padding:18px 7px;border-radius:6px}.duration-options>button.selected{border:1px solid var(--rust);box-shadow:inset 0 0 0 1px var(--rust);background:#c4a56a22}.duration-options strong{font:25px var(--serif);display:block}.duration-options small{display:block;margin-top:7px;font-size:12px}.quiet-quote{font:italic 23px/1.5 var(--serif);text-align:center;padding:10px 20px 25px;color:var(--muted)}.play-choices{display:grid;gap:13px;margin-top:22px}.play-choices>button{display:flex;align-items:center;gap:23px;padding:23px 19px;border:1px solid var(--line);background:var(--paper);border-radius:6px;text-align:left}.play-choices>button:hover{border-color:var(--gold)}.play-choice-icon{width:46px;color:var(--rust);font-size:39px;flex:none;text-align:center}.play-choice-icon .ico{width:34px;height:34px;margin:auto}.play-choices strong{font:25px var(--serif);display:block}.play-choices small{display:block;margin-top:8px;font-size:14px;line-height:1.6}.play-choices i{display:block;font-size:12px;font-style:normal;color:var(--rust);margin-top:12px}.origin-dialog{width:950px;padding:42px}.origin-layout{display:grid;grid-template-columns:.65fr 1fr;gap:41px;align-items:center}.origin-portrait img{width:100%;filter:drop-shadow(0 15px 13px #542c1625)}.origin-portrait>span{font:italic 15px var(--serif);color:var(--muted);text-align:center;display:block;margin-top:24px}.origin-layout h2{font-size:43px;margin-bottom:22px}.origin-layout p{font-size:15px;line-height:1.9;color:var(--muted);margin-top:13px}.origin-layout strong{font-weight:400;color:var(--ink)}.origin-rule{border-top:1px solid var(--line);padding-top:17px;margin-top:22px;font:19px/1.6 var(--serif)}.origin-rule em{color:var(--rust)}.personality-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding-top:24px;margin-top:30px;border-top:1px solid var(--line);font:17px/1.5 var(--serif)}.personality-facts span{display:block;font:10px var(--mono);color:var(--muted);margin-bottom:9px;letter-spacing:.12em}
.book-dialog{width:1040px;padding:35px}.book-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-right:35px}.book-dialog-top>.text-button{font-size:12px}.book-progress{display:flex;gap:6px;margin:17px 0 24px}.book-tab{flex:1;background:var(--paper-dark);height:6px;border-radius:3px;position:relative;padding:0}.book-tab:before{content:'';position:absolute;inset:-9px 0}.book-tab.done{background:var(--gold)}.book-tab.active{background:var(--wine)}.book-tab:disabled{opacity:.45}.book-layout{display:grid;grid-template-columns:.8fr 1fr;gap:35px}.book-illustration{position:sticky;top:0;align-self:start}.book-illustration>img{width:100%;aspect-ratio:1.05;object-fit:cover;object-position:center;border-radius:5px;box-shadow:0 5px 20px #47202c16}.book-illustration>span{display:block;font:italic 17px/1.7 var(--serif);text-align:center;color:var(--muted);padding:20px 12px}.book-material-note{background:var(--paper);border-radius:5px;padding:13px;text-align:center;font-size:12px;color:var(--muted)}.book-text>.eyebrow{font-size:10px}.book-text h2{font-size:35px;margin:8px 0 21px}.book-text #chapterBody p{font:17px/1.9 var(--serif);margin-bottom:15px}.chapter-choices{display:grid;gap:8px;margin-top:25px}.chapter-choice{border:1px solid var(--line);background:var(--paper);border-radius:5px;padding:12px 14px;text-align:left;min-height:46px;font-size:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.chapter-choice:hover{border-color:var(--gold);background:#c9a46422}.chapter-choice .ico{width:16px;height:16px;color:var(--rust)}.chapter-response{padding:18px 20px;margin:24px 0 0;background:var(--paper);border-left:2px solid var(--gold);font:italic 18px/1.8 var(--serif)}.chapter-response strong{font:11px var(--mono);letter-spacing:.1em;color:var(--rust);display:block;margin-bottom:7px;text-transform:uppercase}.chapter-next{display:flex;flex-direction:column;gap:13px;align-items:flex-start;margin-top:21px}.chapter-next p{font-size:13px;line-height:1.7;color:var(--muted)}.chapter-next .btn{font-size:13px}.edition-card{border:1px solid var(--line);border-radius:6px;padding:20px;margin:18px 0;background:var(--paper)}.edition-card h3{font-size:24px;margin-bottom:8px}.edition-card p{font:italic 17px/1.7 var(--serif);color:var(--muted)}.edition-card small{display:block;margin-bottom:15px}.edition-card button{margin-top:14px}.new-edition{border-top:1px solid var(--line);padding-top:23px;margin-top:24px;display:flex;gap:15px;align-items:center}.new-edition small{font-size:12px;line-height:1.5}
.journal-dialog{width:760px}.journal-toolbar{display:flex;gap:9px;margin:23px 0}.journal-toolbar input{flex:1}.journal-toolbar .small-button{white-space:nowrap;font-size:12px}.journal-toolbar .small-button[aria-pressed=true]{background:var(--wine);color:#f5e7ce}.journal-entries{display:grid;grid-template-columns:1fr 1fr;gap:13px}.journal-entry{border:1px solid var(--line);border-radius:5px;background:var(--paper);padding:18px;position:relative}.journal-entry h3{font:italic 24px var(--serif);color:var(--rust);padding-right:25px;overflow-wrap:anywhere}.journal-entry .favorite{position:absolute;right:12px;top:14px;padding:6px;color:var(--muted)}.journal-entry .favorite.active{color:var(--rust)}.journal-entry .favorite.active svg{fill:#a8684d33}.journal-entry .favorite svg{width:18px;height:18px}.journal-entry p{font:italic 15px/1.65 var(--serif);color:var(--muted);margin-top:13px;min-height:45px}.journal-entry label{font-size:11px;margin:15px 0 6px}.journal-entry textarea{font-size:13px;background:var(--surface);min-height:65px}.journal-entry .note-save{font-size:11px;min-height:32px;margin-top:6px}.journal-entry small{font-size:10px;display:block;margin-top:9px}.kept-word{display:inline-block;font:9px var(--mono);color:var(--rust);border:1px solid var(--gold);border-radius:3px;padding:3px 5px;margin-top:8px}
.workbench-dialog{width:830px}.workbench-materials{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:24px 0}.material-tile{border:1px solid var(--line);background:var(--paper);padding:15px 8px;text-align:center;border-radius:5px}.material-tile .ico{width:24px;height:24px;color:var(--rust);margin:0 auto 8px}.material-tile strong{font:23px var(--serif);display:block}.material-tile span{font-size:11px;color:var(--muted)}.material-tile button{display:block;font-size:11px;text-decoration:underline;margin:8px auto 0;min-height:25px;color:var(--rust)}.recipe-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.recipe{border:1px solid var(--line);padding:17px;border-radius:6px;background:var(--paper);display:grid;grid-template-columns:62px 1fr;column-gap:13px;align-items:center}.recipe .curio-sprite{width:62px;height:62px;border-radius:5px}.recipe h3{font-size:20px;line-height:1.25}.recipe .costs{display:flex;flex-wrap:wrap;gap:8px;margin:9px 0;font-size:11px;color:var(--muted)}.cost{display:inline-flex;align-items:center;gap:3px}.cost .ico{width:13px;height:13px}.cost.insufficient{color:#a95e48}.recipe .btn{grid-column:1/-1;margin-top:13px;min-height:37px;padding:8px 10px;font-size:12px}.recipe-made{font-size:11px;color:var(--green);grid-column:1/-1;margin-top:10px;text-align:center}.curio-dialog{width:560px;text-align:center}.curio-detail-art{width:160px;height:160px;margin:0 auto 20px}.curio-detail-art .curio-sprite{width:160px;height:160px;border-radius:14px}.curio-acquisition{font-size:14px;color:var(--muted);padding:19px;background:var(--paper);border:1px solid var(--line);border-radius:5px;margin-top:24px}.curio-acquisition .btn{margin-top:12px}.curio-acquisition .costs{display:flex;justify-content:center;gap:15px;margin:10px 0}.place-panel{text-align:left;border-top:1px solid var(--line);margin-top:22px;padding-top:2px}.placement-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.placement-controls select{font-size:13px}.placement-controls .btn{grid-column:1/-1;margin-top:3px}.place-panel .text-button{font-size:12px;display:block;margin:10px auto 0}.hotspot-reward{padding:15px 18px;background:var(--paper);border-left:2px solid var(--gold);margin:21px 0;font:italic 18px/1.6 var(--serif)}.discoveries-dialog{width:860px}.discovery-room{margin-top:28px}.discovery-room h3{font-size:25px;margin-bottom:14px}.discovery-room-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.discovery-item{display:flex;gap:12px;text-align:left;border:1px solid var(--line);padding:15px;background:var(--paper);border-radius:5px;min-height:74px}.discovery-item .ico{color:var(--rust);width:19px;height:19px}.discovery-item strong{font:18px var(--serif);display:block}.discovery-item small{font-size:11px;display:block;margin-top:5px}.discovery-item.unknown{opacity:.55}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0;border-bottom:1px solid var(--line)}.setting-row strong{font-size:14px;font-weight:400}.setting-row p{font-size:12px;color:var(--muted);line-height:1.7;margin-top:5px}.setting-row select{width:150px;font-size:13px;flex:none}.setting-row .small-button{white-space:nowrap;font-size:12px}.settings-buttons{display:flex;flex-direction:column;align-items:flex-end;flex:none}.settings-buttons .text-button{font-size:12px;margin:0;cursor:pointer;padding:6px 0;min-height:30px}.settings-memory{font-size:12px;color:var(--muted);margin-top:20px}.reset-details{margin-top:22px;border-top:1px solid var(--line);padding-top:15px}.reset-details summary{font-size:12px;color:var(--muted);cursor:pointer}.reset-details p{font-size:13px;color:var(--muted);margin:12px 0}.reset-details .btn{font-size:12px}.letter-dialog{width:630px;padding:45px}.letter-dialog #secretLetterText p{font:italic 20px/1.8 var(--serif);margin:17px 0}.letter-signature{text-align:right;font:italic 21px/1.7 var(--serif);color:var(--rust);margin-top:25px}.toasts{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;display:flex;flex-direction:column;gap:8px;align-items:center;width:max-content;max-width:calc(100vw - 26px);pointer-events:none}.toast{background:var(--wine-deep);color:#f9e9ce;border:1px solid #b78d66;padding:13px 19px;border-radius:6px;box-shadow:0 5px 20px #0003;font-size:13px;display:flex;align-items:center;gap:10px;animation:toast-in .25s}.toast .ico{color:#dfbb7d;width:18px;height:18px}.noscript{position:fixed;inset:0;background:#f5ecdf;z-index:200;display:grid;place-items:center;font-size:22px;padding:30px;text-align:center}
[data-theme=midnight]{--paper:#241b29;--surface:#302331;--paper-dark:#3c2d3a;--ink:#f0e2cd;--muted:#bfa9a5;--wine:#8d586a;--wine-deep:#291323;--gold:#d0ad75;--gold-light:#e4c893;--rust:#dfab80;--green:#a8b68c;--line:#5a3f4b;--shadow:#10091455;color-scheme:dark}[data-theme=midnight] .reading-bar{background:#30382e;border-color:#68725a}[data-theme=midnight] .reading-bar #readingClock{color:#becb9e}[data-theme=midnight] .curio-card .curio-sprite,[data-theme=midnight] .curio-detail-art .curio-sprite,[data-theme=midnight] .recipe .curio-sprite{background-color:#e9dbca}[data-theme=midnight] .curio-card.locked .curio-sprite{opacity:.23}[data-theme=midnight] .story-cover{box-shadow:4px 3px 0 #a38c6b,7px 6px 0 #674738,12px 14px 20px #0d081c44}[data-theme=midnight] .journal-word{background:#392a39}[data-theme=midnight] .word-option:hover{background:#8c634a33}
@keyframes hotspot-glow{50%{box-shadow:0 0 0 8px #ddae5310,0 2px 15px #1b091866}}@keyframes scene-love{50%{transform:scale(1.016);filter:brightness(1.1)}}@keyframes speech-in{from{opacity:.2;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes heart-float{0%{opacity:0;transform:translate(0,0) scale(.7)}20%{opacity:1}100%{opacity:0;transform:translate(var(--drift,30px),-110px) scale(1.3)}}@keyframes rain-fall{to{transform:translateY(30%)}}@keyframes stars-glow{50%{opacity:.3}}@keyframes toast-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1550px){.wrap,.header-inner{max-width:1560px}.world-frame{grid-template-columns:minmax(0,1fr) 310px}.companion{padding:27px}.portrait-wrap{width:150px;height:153px}.companion h2{font-size:30px}.companion .eyebrow{font-size:11px}.needs{margin-top:28px}.on-his-mind h3{font-size:24px}.on-his-mind p{font-size:14px}.on-his-mind .btn{font-size:14px}.pocket-note{font-size:12px}.scene-heading h2{font-size:40px}}
@media(max-width:1230px){.wrap{padding:0 30px}.header-inner{padding:13px 30px;gap:20px}nav{gap:22px}nav a,nav button{font-size:13px}.welcome h1{font-size:43px}.world-frame{grid-template-columns:minmax(0,1fr) 260px}.companion{padding:18px 20px}.portrait-wrap{width:95px;height:99px;margin:9px auto}.companion h2{font-size:24px}.mood{font-size:13px}.bond-label{margin-top:10px}.needs{margin:18px 0 14px}.on-his-mind{padding-top:14px}.on-his-mind h3{font-size:19px}.on-his-mind p{font-size:11px}.on-his-mind .btn{margin-top:10px}.pocket-materials{padding-top:12px;margin-top:14px}.scene-heading h2{font-size:29px}.scene-eyebrow{font-size:9px}.scene-heading{top:20px;left:22px;right:17px}.scene-bubble{max-width:285px;padding:12px 15px;left:20px;bottom:29px}.scene-bubble p{font-size:15px}.room-tab{padding:12px 7px;gap:7px;min-height:75px}.room-tab img{width:38px;height:43px}.room-tab strong{font-size:14px}.room-tab small{font-size:9px}.room-display{right:11px;bottom:35px;gap:6px}.display-slot{width:48px;height:56px}.display-slot .curio-sprite{width:45px;height:45px}.care-bar span{font-size:17px}.care-bar small{font-size:10px}.care-bar .ico{width:25px;height:25px}.care-bar>button{gap:10px;min-height:86px}.chapter-and-journal{gap:20px;grid-template-columns:1.6fr 1fr}.story-card{padding:26px;gap:25px}.story-cover{width:145px;height:224px;padding:11px 9px}.cover-border{padding:16px 8px 12px}.story-cover h3{font-size:19px;margin:16px 0 10px}.story-cover h3 em{font-size:21px}.cover-kicker,.cover-border small{font-size:7px}.story-card-copy h2{font-size:28px}.story-card-copy p{font-size:13px}.journal-card{padding:26px 23px}.journal-card h2{font-size:28px}.journal-card>p{font-size:13px}.curio-grid{gap:11px}.curio-card strong{font-size:16px}.curio-card .curio-sprite{width:85px;height:85px}.fieldnotes{padding-inline:25px;gap:65px}.fieldnote-copy h2{font-size:30px}.pinned-letter blockquote{font-size:22px}.section-heading h2{font-size:38px}}
@media(max-width:1000px){.header-inner{gap:20px}.brand-name{font-size:29px}.brand img{width:40px;height:48px}nav{gap:20px}nav>button:last-child{display:none}.welcome{padding:31px 0 26px}.welcome h1{font-size:38px}.welcome p{font-size:14px}.meet-link>span:first-child{font-size:16px}.meet-label{font-size:11px}.world-frame{grid-template-columns:minmax(0,1fr)}.companion{display:grid;grid-template-columns:1fr 1fr 1fr;gap:22px;padding:20px 25px;border-left:0;border-top:1px solid #96725155}.companion-top{position:relative;text-align:left;padding-left:86px;grid-row:1/3;display:flex;flex-direction:column;justify-content:center}.companion-top>.eyebrow{font-size:8px;max-width:130px}.portrait-wrap{position:absolute;left:0;top:50%;transform:translateY(-50%);width:76px;height:86px;margin:0}.pet-badge{width:25px;height:25px;right:-4px;bottom:-2px}.pet-badge .ico{width:13px;height:13px}.companion h2{font-size:20px;margin-top:6px}.mood{font-size:12px;line-height:1.5;margin-top:4px}.bond-label{font-size:9px;padding:3px 7px;align-self:flex-start;margin-top:8px}.needs{grid-column:2;grid-row:1;margin:0;gap:8px;align-self:center}.on-his-mind{grid-column:3;grid-row:1/3;margin:0;padding:0;border:0;border-left:1px solid #98745f50;padding-left:22px}.on-his-mind .eyebrow{font-size:9px}.on-his-mind h3{font-size:18px;margin:6px 0}.on-his-mind p{font-size:11px;min-height:0}.on-his-mind .btn{min-height:35px;padding:7px 9px;font-size:11px;margin-top:9px}.pocket-materials{grid-column:2;grid-row:2;margin-top:0;padding-top:10px;align-self:end}.pocket-materials .eyebrow,.pocket-note{display:none}.scene-heading h2{font-size:35px}.scene-eyebrow{font-size:10px}.scene-bubble p{font-size:17px}.scene-bubble{max-width:340px;bottom:38px;left:25px;padding:14px 18px}.room-display{right:23px;bottom:42px}.display-slot{width:61px;height:69px}.display-slot .curio-sprite{width:57px;height:57px}.room-tabs{grid-template-columns:repeat(4,1fr)}.room-tab{padding:12px 13px;gap:10px}.room-tab img{width:48px;height:48px}.room-tab strong{font-size:17px}.room-tab small{font-size:10px}.care-bar span{font-size:16px}.care-bar small{font-size:9px}.care-bar>button{gap:9px;padding-inline:6px}.care-bar .ico{width:22px;height:22px}.chapter-and-journal{grid-template-columns:1fr}.story-card{gap:42px;padding:30px 40px}.story-cover{width:165px;height:239px}.story-card-copy h2{font-size:35px}.story-card-copy p{font-size:15px;max-width:450px}.story-card-copy .eyebrow{font-size:11px}.story-card-actions .btn{font-size:14px}.journal-card{padding:27px 32px}.journal-card h2{font-size:32px}.journal-card>p{font-size:15px}.journal-preview{min-height:40px}.section-heading{align-items:flex-start;gap:20px}.section-heading h2{font-size:34px}.section-heading .btn{margin-top:21px;font-size:12px;padding-inline:12px}.curio-grid{grid-template-columns:repeat(4,1fr)}.fieldnotes{gap:35px;padding-inline:0}.fieldnote-copy h2{font-size:29px}.pinned-letter{padding:30px 25px}.pinned-letter blockquote{font-size:21px}.site-footer{gap:15px}.footer-signature{font-size:15px}.site-footer>span:nth-child(2){font-size:10px}}
@media(max-width:700px){.wrap{padding:0 20px}.header-inner{padding:12px 20px;min-height:78px;gap:10px}.brand img{width:33px;height:43px}.brand{gap:8px}.brand-name{font-size:30px}.brand-name small{font-size:7px;margin-top:6px}.header-tools{margin-left:auto;gap:0}.header-tools .icon-button{width:36px;height:38px}nav{display:none}.welcome{padding:26px 0 24px;display:block}.welcome>.meet-link{display:none}.welcome .eyebrow{font-size:10px;letter-spacing:.12em}.welcome h1{font-size:clamp(32px,5.8vw,40px);line-height:1.16;margin-top:10px;max-width:100%}.welcome h1 em{white-space:normal}.welcome p{font-size:13px;line-height:1.7;max-width:340px}.world-frame{border-radius:7px 7px 0 0}.scene-heading{left:15px;right:12px;top:13px}.scene-eyebrow{font-size:7px;letter-spacing:.1em}.scene-heading h2{font-size:25px;margin-top:3px}.scene-tool{padding:7px 10px;min-height:34px;font-size:10px;gap:5px}.scene-tool .ico{width:13px;height:13px}.scene-bubble{left:12px;bottom:24px;max-width:230px;padding:10px 12px}.scene-bubble p{font-size:13px;line-height:1.4}.bubble-name{font-size:7px;margin-bottom:4px;letter-spacing:.1em}.scene-weather{font-size:8px;right:11px;bottom:7px;gap:4px}.scene-weather .ico{width:10px;height:10px}.hotspot{width:32px;height:32px;box-shadow:0 0 0 3px #ddae5323,0 2px 12px #1b091866}.hotspot .ico{width:14px;height:14px}.hotspot-label{font-size:10px;bottom:38px;padding:4px 7px}.room-display{right:10px;bottom:30px;gap:5px}.display-slot{width:40px;height:45px;border-radius:5px}.display-slot .curio-sprite{width:36px;height:36px;border-radius:4px}.display-slot.empty .ico{width:14px;height:14px}.room-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.room-tab{padding:10px 5px 12px;flex-direction:column;gap:5px;text-align:center;min-height:88px}.room-tab img{width:48px;height:34px;border-radius:3px}.room-tab strong{font-size:12px;white-space:nowrap}.room-tab small{display:none}.room-found{font-size:7px;bottom:2px;right:50%;transform:translateX(50%)}.companion{grid-template-columns:1fr 1fr;gap:17px;padding:19px 17px}.companion-top{grid-column:1;grid-row:1;min-height:85px;padding-left:67px}.portrait-wrap{width:61px;height:70px;left:-5px}.companion-top>.eyebrow{font-size:7px;letter-spacing:.1em;line-height:1.5}.companion h2{font-size:18px;line-height:1.15}.mood{font-size:11px;line-height:1.5}.bond-label{font-size:8px;padding:3px 5px;margin-top:7px}.needs{grid-column:2;grid-row:1;margin:0;gap:10px}.need>span{font-size:9px;width:63px;gap:3px}.need .ico{width:11px;height:11px}.need{gap:6px}.need small{font-size:8px;width:17px}.on-his-mind{grid-column:1/-1;grid-row:2;padding:13px 0 0;border:0;border-top:1px solid #98745f50;display:grid;grid-template-columns:1fr auto;gap:5px 13px}.on-his-mind .eyebrow{grid-column:1;font-size:8px;line-height:1.4}.on-his-mind h3{grid-column:1;font-size:17px;margin:0;line-height:1.3}.on-his-mind p{display:none}.on-his-mind .btn{grid-column:2;grid-row:1/3;width:auto;align-self:center;max-width:130px;margin:0;font-size:10px;padding:8px 11px;min-height:40px}.pocket-materials{grid-column:1/-1;grid-row:3;border:0;padding:0;display:flex;align-items:center;gap:14px;margin-top:-3px}.pocket-materials>.eyebrow{display:block;font-size:8px;white-space:nowrap;margin:0}.materials-line{gap:20px;justify-content:flex-start}.material-count{font-size:11px}.material-count .ico{width:13px;height:13px}.care-bar>button{flex-direction:column;gap:7px;min-height:84px;text-align:center;padding:12px 3px}.care-bar span{font-size:12px}.care-bar small{display:none}.care-bar .ico{width:23px;height:23px}.house-foot{gap:15px;font-size:9px;line-height:1.5;padding:12px 0}.house-foot>span:first-child{font-size:12px;max-width:190px}.house-foot>span:last-child{max-width:140px;text-align:right}.house-foot .ico{display:none}.reading-bar{padding:14px 13px;gap:11px;flex-wrap:wrap}.reading-bar>.ico{width:18px;height:18px}.reading-bar>div{min-width:170px;max-width:calc(100% - 45px)}.reading-bar strong{font-size:16px}.reading-bar p{font-size:11px}.reading-bar #readingClock{font-size:20px;margin-right:auto}.reading-bar .small-button{font-size:12px;min-height:35px;padding:6px 11px}.reading-bar .text-button{font-size:11px}.chapter-and-journal{padding:34px 0 44px;gap:18px}.story-card{padding:26px 22px;gap:25px;align-items:flex-start;flex-direction:column}.story-cover{width:118px;height:170px;position:absolute;right:-3px;top:27px;transform:rotate(9deg);opacity:.95}.cover-border{padding:12px 6px}.cover-kicker{font-size:5px}.story-cover h3{font-size:15px;margin:10px 0 5px}.story-cover h3 em{font-size:16px}.cover-star{font-size:17px}.cover-border small{font-size:5px;margin-top:6px}.story-card-copy{position:relative;width:100%}.story-card-copy .eyebrow{font-size:8px;letter-spacing:.12em;max-width:190px}.story-card-copy h2{font-size:28px;max-width:230px;line-height:1.14;position:relative;padding-right:20px;margin:10px 0 20px}.story-card-copy h2 em{display:inline-block;max-width:170px}.story-card-copy p{font-size:14px;line-height:1.85;margin-top:22px;max-width:100%}.story-card-actions .btn{font-size:12px;padding:10px 13px}.story-card-actions>span{font-size:10px}.chapter-dots{margin-top:19px}.journal-card{padding:25px 23px}.journal-card .eyebrow{font-size:9px}.journal-card h2{font-size:29px}.journal-card>p{font-size:14px}.journal-preview{margin-top:18px}.journal-word{font-size:17px}.journal-foot{font-size:10px}.curiosities-section{padding-bottom:40px}.section-heading{display:block;margin-bottom:20px}.section-heading .eyebrow{font-size:10px}.section-heading h2{font-size:32px;line-height:1.15;margin:10px 0 15px}.section-heading p{font-size:14px;line-height:1.85}.section-heading .btn{margin-top:18px;padding:10px 15px;min-height:42px;font-size:12px}.collection-toolbar{display:block;padding-bottom:11px;margin-bottom:14px}.collection-filters{gap:18px;justify-content:space-between}.collection-filters button{font-size:10px;padding-bottom:9px;white-space:nowrap}.collection-toolbar>span{font-size:12px;display:block;margin-top:9px;text-align:right}.curio-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.curio-card{padding:16px 5px 12px}.curio-card .curio-sprite{width:73px;height:73px;margin-bottom:10px}.curio-card strong{font-size:13px;line-height:1.3;min-height:35px;padding:0}.curio-card small{font-size:8px;line-height:1.4;min-height:21px;margin-top:6px}.curio-status{top:7px;right:7px}.curio-status .ico{width:11px;height:11px}.collection-note{font-size:13px;line-height:1.6;margin-top:18px}.fieldnotes{grid-template-columns:1fr;padding:34px 0 50px;gap:31px}.fieldnote-copy>.eyebrow{font-size:10px}.fieldnote-copy h2{font-size:31px}.fieldnote-copy p{font-size:14px}.pinned-letter{max-width:350px;width:calc(100% - 16px);margin:auto;padding:29px 26px 23px}.pinned-letter blockquote{font-size:23px}.site-footer{flex-wrap:wrap;justify-content:center;text-align:center;gap:12px;padding-top:23px}.footer-signature{font-size:15px;width:100%;justify-content:center;line-height:1.5}.footer-signature .ico{width:15px;height:15px}.site-footer>span:nth-child(2){font-size:10px;margin-left:0}.site-footer>button{width:27px;height:28px;font-size:20px}.dialog{padding:29px 23px;border-radius:9px;max-width:calc(100vw - 24px);max-height:91dvh}.dialog h2{font-size:32px;margin-top:10px}.dialog .eyebrow{font-size:10px;letter-spacing:.12em}.dialog-close{top:9px;right:8px;width:33px;height:33px;font-size:24px}.dialog-banner{margin:-29px -23px 0;height:180px;border-radius:8px 8px 0 0}.dialog-banner>div{left:22px;bottom:20px}.dialog-banner h2{font-size:28px}.dialog-banner .eyebrow{font-size:8px}.dialog-body{padding-top:22px}.word-options{gap:7px}.word-option{font-size:15px;padding:9px 11px;min-height:39px}.dialog label{font-size:13px}.dialog input:not([type=file]),.dialog select,.dialog textarea{font-size:16px}.inline-form .btn{padding:10px 13px;font-size:12px}.duration-options{gap:7px}.duration-options>button{padding:15px 4px}.duration-options strong{font-size:20px}.duration-options small{font-size:10px;margin-top:5px}.quiet-quote{font-size:21px;padding-inline:0}.reward-note{font-size:11px;align-items:flex-start}.play-choices>button{padding:20px 14px;gap:15px}.play-choices strong{font-size:23px}.play-choices small{font-size:13px}.play-choices i{font-size:11px}.play-choice-icon{width:36px;font-size:34px}.origin-dialog{padding:29px 24px}.origin-layout{display:flex;flex-direction:column;gap:22px}.origin-portrait{width:170px}.origin-portrait>span{display:none}.origin-layout h2{font-size:35px}.origin-layout p{font-size:15px}.personality-facts{grid-template-columns:1fr;gap:18px;margin-top:25px;font-size:17px}.personality-facts span{font-size:9px;margin-bottom:5px}.book-dialog{padding:29px 20px}.book-dialog-top{padding-right:27px;gap:10px}.book-dialog-top>.eyebrow{font-size:8px;max-width:170px}.book-dialog-top .text-button{font-size:10px;line-height:1.4;max-width:88px;text-align:right}.book-progress{margin-top:16px;margin-bottom:22px}.book-layout{display:flex;flex-direction:column;gap:23px}.book-illustration{position:static}.book-illustration>img{aspect-ratio:2/1;object-position:center 57%;border-radius:4px}.book-illustration>span{font-size:14px;padding:13px 5px 0}.book-material-note{display:none}.book-text h2{font-size:32px;margin-bottom:20px}.book-text #chapterBody p{font-size:17px;line-height:1.85}.chapter-choice{font-size:13px;min-height:47px}.chapter-response{font-size:17px;padding:15px 17px}.chapter-next p{font-size:12px}.journal-toolbar{flex-wrap:wrap;gap:8px}.journal-toolbar input{flex-basis:100%}.journal-toolbar .small-button{font-size:12px}.journal-entries{grid-template-columns:1fr}.journal-entry h3{font-size:25px}.journal-entry p{font-size:16px;min-height:0}.journal-entry label{font-size:12px}.journal-entry textarea{font-size:14px}.journal-entry .note-save{font-size:12px}.workbench-materials{gap:7px}.material-tile{padding:12px 3px}.material-tile .ico{width:19px;height:19px}.material-tile strong{font-size:23px}.material-tile span{font-size:9px}.material-tile button{font-size:9px}.recipe-list{grid-template-columns:1fr}.recipe{padding:17px;grid-template-columns:70px 1fr}.recipe .curio-sprite{width:65px;height:65px}.recipe h3{font-size:22px}.recipe .costs{font-size:12px}.recipe .btn{font-size:13px;min-height:40px}.curio-detail-art,.curio-detail-art .curio-sprite{width:145px;height:145px}.placement-controls select{font-size:12px}.curio-acquisition{font-size:13px}.discovery-room-grid{grid-template-columns:1fr}.discovery-room h3{font-size:25px}.setting-row{gap:15px;align-items:flex-start}.setting-row strong{font-size:13px}.setting-row p{font-size:12px}.setting-row select{width:115px;font-size:12px;padding:9px 24px 9px 10px}.setting-row .small-button{font-size:11px;padding:8px 10px}.settings-buttons .text-button{font-size:11px;white-space:nowrap}.settings-memory{font-size:11px}.letter-dialog{padding:35px 25px}.letter-dialog #secretLetterText p{font-size:19px}.toast{font-size:12px;padding:11px 14px}.new-edition{display:block}.new-edition small{display:block;margin-top:12px}}
@media(max-width:380px){.wrap{padding-inline:14px}.header-inner{padding-inline:14px}.welcome h1{font-size:31px}.scene-heading h2{font-size:22px}.scene-bubble{max-width:200px}.scene-bubble p{font-size:12px}.scene-bubble .bubble-name{font-size:6px}.room-display{bottom:25px}.display-slot{width:34px;height:40px}.display-slot .curio-sprite{width:31px;height:31px}.room-tab strong{font-size:11px}.companion{padding:16px 13px;gap:15px}.companion-top{padding-left:57px}.portrait-wrap{width:53px;height:64px}.companion h2{font-size:16px}.materials-line{gap:16px}.on-his-mind .btn{max-width:111px;font-size:9px}.care-bar span{font-size:11px}.story-cover{right:-16px;opacity:.65}.story-card-copy h2{font-size:27px}.story-card{padding:24px 19px}.collection-filters{gap:8px}.collection-filters button{font-size:9px}.curio-card .curio-sprite{width:66px;height:66px}.curio-card strong{font-size:12px}.footer-signature{font-size:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.scene-particle,.weather-layer{display:none}}body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after{animation:none!important;transition:none!important}body.reduce-motion .scene-particle,body.reduce-motion .weather-layer{display:none}

/* Legibility, comfortable targets, and responsive content refinements. */
body{font-size:16px}.welcome p,.story-card-copy p,.journal-card>p,.section-heading p,.fieldnote-copy p,.origin-copy p,.journal-entry p{font-size:16px}
.eyebrow,.welcome .eyebrow,.scene-eyebrow,.companion .eyebrow,.story-card-copy .eyebrow,.journal-card>.eyebrow,.pinned-letter .eyebrow,.dialog .eyebrow,.book-text>.eyebrow{font-size:12px}
.bond-label,.need>span,.need small,.pocket-note,.house-foot,.reading-bar p,.story-card-actions>span,.journal-foot,.room-tab small,.room-found,.care-bar small,.curio-card small,.site-footer>span:nth-child(2),.book-material-note,.journal-entry small,.discovery-item small,.settings-memory,.reward-note,.duration-options small{font-size:12px}
.btn,.small-button,.text-button,.scene-tool,.collection-filters button,.on-his-mind .btn,.story-card-actions .btn,.reading-bar .text-button,.reading-bar .small-button,.pinned-letter>button,.book-dialog-top>.text-button,.chapter-next .btn,.journal-toolbar .small-button,.journal-entry .note-save,.setting-row .small-button,.settings-buttons .text-button,.reset-details .btn{font-size:14px;min-height:44px}
.icon-button,.dialog-close,.pet-badge{min-width:44px;min-height:44px}.hotspot{width:44px;height:44px}.hotspot-label,.display-slot span.slot-label{font-size:12px}.scene-bubble .bubble-name{font-size:12px}.scene-weather{font-size:12px}
.brand-name small{font-size:10px}.mood{font-size:16px}.need>span{width:94px}.need small{width:24px}.on-his-mind p{font-size:14px;min-height:0}.pocket-materials .eyebrow{font-size:12px}.material-count{font-size:14px}.room-tab strong{font-size:17px}.room-found{font-size:12px}.care-bar span{font-size:17px}.care-bar small{line-height:1.45}.house-foot>span:first-child{font-size:14px}
.collection-filters{flex-wrap:wrap;column-gap:22px;row-gap:6px}.curio-card strong{overflow-wrap:anywhere}.curio-card small{line-height:1.5;min-height:22px}.fieldnote-copy p{line-height:1.75}
.dialog{overflow-x:hidden;overscroll-behavior:contain}.dialog>*{min-width:0}.dialog-close{width:44px;height:44px}.dialog h2{padding-right:15px}.dialog p,.dialog small{overflow-wrap:break-word}.dialog input,.dialog textarea,.dialog select,.placement-controls select,.setting-row select,.journal-entry textarea{font-size:16px}.dialog label,.journal-entry label,.chapter-next p,.setting-row p,.reset-details summary,.reset-details p{font-size:14px}.journal-entry .favorite{min-width:44px;min-height:44px}.chapter-choice{font-size:14px;min-height:48px}.chapter-choice .ico{flex:none}.chapter-choice.chosen{border-color:var(--wine);background:var(--wine);color:var(--surface);opacity:1}.chapter-choice:disabled:not(.chosen){opacity:.7}.book-tab{height:44px;min-width:34px;flex:1;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--ink);font:16px var(--serif)}.book-tab:before{display:none}.book-tab.completed{background:var(--paper-dark);border-color:var(--gold)}.book-tab.selected{background:var(--wine);border-color:var(--wine);color:var(--surface);font-weight:bold}
.workbench-materials{grid-template-columns:repeat(4,minmax(0,1fr))}.material-source{min-width:0;min-height:120px;padding:14px 10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;text-align:center}.material-source:hover{border-color:var(--rust);background:var(--paper-dark)}.material-source .material-count{font-size:24px;color:var(--rust)}.material-source .material-count .ico{width:24px;height:24px;color:var(--rust)}.material-source strong{font:17px/1.35 var(--serif)}.material-source small{font-size:12px;line-height:1.5;color:var(--muted)}
.recipe-list{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px 14px;align-items:start;border:1px solid var(--line);border-radius:6px;padding:18px;background:var(--paper)}.recipe-card>.curio-sprite{width:64px;height:64px;border-radius:5px}.recipe-copy{min-width:0}.recipe-copy h3{font:22px/1.2 var(--serif);margin:0 0 7px}.recipe-copy p{font-size:14px;line-height:1.65;color:var(--muted);margin:0 0 10px}.recipe-cost{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.recipe-cost .material-count{font-size:14px;color:var(--ink)}.recipe-cost .ico{color:var(--rust)}.recipe-card>.small-button{grid-column:1/-1;justify-self:stretch;white-space:normal;line-height:1.5}.recipe-card>.small-button:disabled{opacity:.6}.recipe-card .make-ready{background:var(--wine);color:var(--surface);border-color:var(--wine)}
.edition-card summary{position:relative;cursor:pointer;list-style:none;padding:0 25px 0 0;min-height:44px}.edition-card summary::-webkit-details-marker{display:none}.edition-card summary:after{content:'+';position:absolute;right:0;top:0;font-size:24px;color:var(--rust)}.edition-card[open] summary:after{content:'−'}.edition-card summary .eyebrow{display:block;font-size:12px}.edition-card summary strong{display:block;font:25px/1.3 var(--serif);margin:7px 0}.edition-card summary small{font-size:12px;margin-bottom:0;color:var(--muted)}.edition-card[open] summary{margin-bottom:20px}.edition-choices{padding-left:24px;margin:15px 0;font-size:14px;line-height:1.7}.edition-choices li+li{margin-top:7px}.edition-card .edition-word{border-top:1px solid var(--line);padding-top:15px;font-size:18px}.origin-facts dt,.origin-facts span,.kept-word{font-size:12px}
html.still{scroll-behavior:auto}html.still *,html.still *:before,html.still *:after,body.still *,body.still *:before,body.still *:after{animation:none!important;transition:none!important}html.still .scene-particle,html.still .weather-layer,body.still .scene-particle,body.still .weather-layer{display:none}
@media(max-width:1000px){.companion>*{min-width:0}.companion-top>.eyebrow{font-size:12px}.mood{font-size:14px}.bond-label{font-size:12px}.need>span{font-size:12px;width:85px}.need small{font-size:12px}.on-his-mind h3{font-size:21px}.on-his-mind p{font-size:14px}.on-his-mind .btn{font-size:14px}.room-tab small{font-size:12px}.care-bar span{font-size:16px}}
@media(max-width:700px){
.header-tools .icon-button{width:44px;height:44px}.header-inner{gap:10px}.brand-name small{font-size:10px}.welcome p{font-size:16px}.welcome .eyebrow{font-size:12px}
/* Speech sits beneath the picture on phones; positioned art controls stay in the first grid row. */
.scene{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;aspect-ratio:auto}.scene-art{grid-area:1/1;aspect-ratio:3/2;height:auto}.scene-heading,.scene-vignette,.hotspots,.weather-layer,.scene-pet,.room-display,.scene-particles{grid-area:1/1/2/2}.scene-heading{left:15px;right:13px;top:14px;gap:12px}.scene-heading h2{font-size:25px}.scene-eyebrow{font-size:12px}.scene-tool{font-size:14px;min-height:44px;padding:9px 10px;flex:none}.hotspot{width:44px;height:44px}.hotspot .ico{width:18px;height:18px}.hotspot-label{font-size:12px;max-width:180px;white-space:normal}.scene-bubble{grid-row:2;position:relative;left:auto;bottom:auto;width:auto;max-width:none;margin:0;border-radius:0;padding:13px 16px;box-shadow:none}.scene-bubble:before{display:none}.scene-bubble p{font-size:16px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.scene-bubble .bubble-name{font-size:12px}.scene-weather{grid-row:3;position:relative;right:auto;bottom:auto;padding:7px 14px;font-size:12px;justify-content:flex-end}.room-display{right:12px;bottom:12px;gap:7px}.display-slot{width:46px;height:50px}.display-slot .curio-sprite{width:42px;height:42px}.display-slot span.slot-label{font-size:12px}
.room-tab{min-height:112px;padding:11px 5px 22px;justify-content:flex-start}.room-tab strong{font-size:14px;white-space:normal;line-height:1.3;letter-spacing:-.02em;overflow-wrap:anywhere}.room-tab img{width:49px;height:36px}.room-found{font-size:12px;bottom:5px}.room-tab small{display:none}
.companion{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;padding:21px}.companion-top{grid-column:1;grid-row:auto;min-height:110px;padding:5px 0 0 108px}.companion-top .portrait-wrap{width:87px;height:100px;left:1px;top:50%}.companion-top>.eyebrow{font-size:12px}.companion h2{font-size:26px}.mood{font-size:16px}.bond-label{font-size:12px}.needs{grid-column:1;grid-row:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:0}.need{display:grid;grid-template-columns:1fr auto;gap:7px 3px}.need>span{font-size:12px;width:auto;gap:4px}.need>span .ico{display:none}.need small{font-size:12px;width:auto}.need>div{grid-row:2;grid-column:1/-1;height:5px;min-width:0}.on-his-mind{grid-column:1;grid-row:auto;display:block;border-left:0;border-top:1px solid #ffffff26;padding:17px 0 0;margin:0}.on-his-mind .eyebrow{font-size:12px}.on-his-mind h3{font-size:23px;margin-top:4px}.on-his-mind p{display:block;font-size:14px;margin:8px 0 13px}.on-his-mind .btn{max-width:none;width:100%;min-height:44px;font-size:14px}.pocket-materials{grid-column:1;grid-row:auto;display:block;padding-top:17px;margin:0}.pocket-materials .eyebrow{display:block;font-size:12px;margin-bottom:10px}.pocket-materials .material-line{width:100%;justify-content:space-between}.pocket-materials .material-count{font-size:14px}.pocket-materials .material-count .ico{width:16px;height:16px}
.care-bar button{min-height:104px;padding:13px 4px;gap:8px;justify-content:flex-start}.care-bar span{font-size:14px;line-height:1.3;white-space:normal}.care-bar small{display:none}.care-bar .ico{width:25px;height:25px}.house-foot{font-size:12px;gap:12px;flex-wrap:wrap}.house-foot>span:first-child{font-size:14px}.reading-bar p{font-size:12px}.reading-bar .small-button,.reading-bar .text-button{font-size:14px;min-height:44px}
.story-card-copy .eyebrow,.journal-card>.eyebrow{font-size:12px}.story-card-copy p,.journal-card>p{font-size:16px}.story-card-actions{flex-wrap:wrap;gap:12px}.story-card-actions .btn{font-size:14px}.story-card-actions>span,.journal-foot{font-size:12px}.collection-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px;width:100%}.collection-filters button{font-size:14px;min-height:44px;text-align:left;line-height:1.45}.collection-toolbar{align-items:flex-start;gap:15px}.curio-card strong{font-size:16px;min-height:44px;line-height:1.4}.curio-card small{font-size:12px;min-height:26px}.section-heading p,.fieldnote-copy p{font-size:16px}.pinned-letter .eyebrow{font-size:12px}.pinned-letter>button{font-size:14px;min-height:44px}.site-footer>span:nth-child(2){font-size:12px}
.dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:26px 20px}.dialog h2{font-size:32px;line-height:1.2;padding-right:25px}.dialog-banner{margin:-26px -20px 24px}.dialog .eyebrow{font-size:12px}.dialog-close{right:7px;top:7px}.dialog label{font-size:14px}.duration-options small{font-size:12px}.chapter-choice{font-size:14px;min-height:48px}.book-layout{gap:24px}.book-tab{height:44px;font-size:16px}.book-text>.eyebrow,.book-material-note{font-size:12px}.journal-entry textarea{font-size:16px}.journal-entry .note-save{font-size:14px;min-height:44px}.journal-entry small{font-size:12px}.recipe-list{grid-template-columns:minmax(0,1fr)}.recipe-card{padding:16px}.workbench-materials{grid-template-columns:repeat(2,minmax(0,1fr))}.setting-row strong{font-size:16px}.setting-row p{font-size:14px}.setting-row select{font-size:16px}.setting-row .small-button,.settings-buttons .text-button{font-size:14px;min-height:44px}.discovery-item small{font-size:12px}.edition-card{padding:17px}.edition-card summary strong{font-size:24px}
}
@media(max-width:480px){.curio-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.curio-card .curio-sprite{width:92px;height:92px;max-width:100%}.inline-form{flex-wrap:wrap}.inline-form input{flex-basis:100%}.inline-form .btn{width:100%}.placement-controls{grid-template-columns:minmax(0,1fr)}.setting-row{flex-direction:column;align-items:stretch;gap:12px}.setting-row select{width:100%}.setting-row .small-button{align-self:flex-start}.settings-buttons{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:8px 18px}.dialog-actions>.btn{flex:1 1 180px}.scene-heading h2{font-size:23px}.scene-heading .scene-eyebrow{font-size:12px;letter-spacing:.08em}.companion{padding:19px 16px}.companion-top{padding-left:102px}.needs{gap:11px}.room-tab strong{font-size:14px}.care-bar span{font-size:14px}.toast{font-size:14px;max-width:calc(100vw - 32px)}}
/* Small supporting labels remain readable even under the compact layout rules. */
.section-heading .eyebrow,.fieldnote-copy>.eyebrow,.personality-facts span,.chapter-response strong,.recipe-made,.play-choices i,.meet-label{font-size:12px}.fieldnote-copy .text-link span{font-size:14px}.origin-layout p{font-size:16px}

/* Keep every word of the spoken welcome visible, including on small screens. */
.scene-bubble.is-greeting p{display:block;-webkit-line-clamp:unset;overflow:visible}

/* The games live together on a little illustrated shelf. */
.adventure-portal{display:grid;grid-template-columns:118px minmax(0,1fr) 228px;align-items:center;gap:25px;padding:26px 30px;margin:26px 0 0;background:linear-gradient(110deg,#3a1c2d,#5a3144);border:1px solid #966646;border-radius:9px;color:#f7e8cc;position:relative;overflow:hidden;box-shadow:0 7px 25px var(--shadow)}.adventure-portal:after{content:'✧';position:absolute;right:27%;top:-35px;font:140px Georgia,serif;color:#d6ac6e12;pointer-events:none}.portal-book{width:112px;height:112px;transform:rotate(-8deg);border-radius:12px;overflow:hidden;box-shadow:0 8px 15px #190a2244}.portal-book .curio-sprite{width:112px;height:112px}.portal-copy .eyebrow{color:#e2bf91;font-size:12px;letter-spacing:.12em}.portal-copy h2{font-size:31px;letter-spacing:-.035em;margin:7px 0 12px}.portal-copy h2 em{color:#edbf8f}.portal-copy>p{font-size:16px;line-height:1.65;color:#e2ccbd;max-width:660px}.portal-memory{display:block;font-size:13px;color:#cdb296;margin-top:10px}.portal-actions{display:flex;flex-direction:column;gap:10px;align-items:stretch;z-index:1}.portal-actions .text-button{color:#edcf9f;font-size:14px}.portal-actions .btn{font-size:14px;padding:12px 15px}
.play-hub-dialog{width:1040px;padding:36px}.play-hub-dialog>p{max-width:760px}.game-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:26px}.game-hub-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--paper);padding:0;text-align:left;transition:transform .2s,box-shadow .2s;min-width:0}.game-hub-card:hover{transform:translateY(-3px);box-shadow:0 9px 20px var(--shadow);border-color:var(--gold)}.game-hub-art{position:relative;aspect-ratio:1.55;overflow:hidden;width:100%}.game-hub-art img{width:100%;height:100%;object-fit:cover;object-position:center 42%}.game-hub-art:after{content:'';position:absolute;inset:40% 0 0;background:linear-gradient(transparent,#211121d9)}.game-hub-tag{position:absolute;bottom:13px;left:16px;right:10px;z-index:1;font:12px/1.5 var(--mono);letter-spacing:.08em;color:#ffe2a9}.game-hub-copy{display:flex;flex-direction:column;flex:1;padding:21px 18px}.game-hub-copy h3{font-size:27px;line-height:1.15;min-height:62px;letter-spacing:-.035em}.game-hub-copy p{font-size:16px;line-height:1.65;color:var(--muted);margin:10px 0 16px}.game-hub-meta{font-size:12px;line-height:1.6;color:var(--rust);margin-top:auto;padding-top:8px}.game-hub-progress{font-size:13px;line-height:1.6;color:var(--muted);padding-top:7px}.game-hub-cta{margin-top:19px;border-top:1px solid var(--line);padding-top:14px;font-size:14px;color:var(--wine);font-weight:bold}.maze-hub-card{border-color:var(--gold)}.play-hub-foot{display:flex;gap:13px;align-items:flex-start;border-top:1px solid var(--line);margin-top:26px;padding-top:20px}.play-hub-foot .ico{width:19px;height:19px;color:var(--rust);margin-top:3px}.play-hub-foot p{font-size:14px;color:var(--muted);line-height:1.7}
@media(max-width:1000px){.adventure-portal{grid-template-columns:90px minmax(0,1fr);padding:25px;gap:21px}.portal-book,.portal-book .curio-sprite{width:90px;height:90px}.portal-actions{grid-column:2;flex-direction:row;align-items:center}.portal-actions .text-button{padding-inline:10px}.portal-copy h2{font-size:29px}.game-hub-copy h3{font-size:25px}.game-hub-copy{padding:18px 15px}}
@media(max-width:700px){.adventure-portal{grid-template-columns:66px minmax(0,1fr);padding:23px 20px;gap:18px;margin-top:22px}.portal-book,.portal-book .curio-sprite{width:65px;height:65px}.portal-copy h2{font-size:27px;margin-bottom:0}.portal-copy>p{margin-top:15px;grid-column:1/-1}.portal-copy{display:contents}.portal-copy .eyebrow{grid-column:2;grid-row:1;align-self:start;font-size:12px}.portal-copy h2{grid-column:2;grid-row:1;margin-top:24px;align-self:start}.portal-copy>p,.portal-memory{grid-column:1/-1;margin:0}.portal-actions{grid-column:1/-1;flex-direction:column;gap:5px;align-items:stretch}.portal-actions .btn{width:100%}.portal-memory{font-size:13px}.play-hub-dialog{padding:29px 21px}.game-hub-grid{grid-template-columns:1fr;gap:18px}.game-hub-card{display:grid;grid-template-columns:110px minmax(0,1fr)}.game-hub-art{height:100%;aspect-ratio:auto;min-height:230px}.game-hub-art img{object-position:center}.game-hub-tag{writing-mode:vertical-rl;left:14px;bottom:16px;right:auto;font-size:12px}.game-hub-copy{padding:20px 16px}.game-hub-copy h3{font-size:25px;min-height:0}.game-hub-copy p{font-size:16px;margin-bottom:9px}.game-hub-meta{padding-top:0}.game-hub-cta{margin-top:13px;padding-top:12px}.play-hub-foot p{font-size:14px}}
@media(max-width:380px){.game-hub-card{grid-template-columns:79px minmax(0,1fr)}.game-hub-copy{padding:17px 13px}.game-hub-copy h3{font-size:23px}.portal-copy h2{font-size:24px}.portal-copy .eyebrow{font-size:11px;letter-spacing:.07em}}

/* Inkwig's two play drawers. These styles are intentionally namespaced. */
.iwg-dialog{width:760px;max-width:min(760px,calc(100vw - 30px));padding:34px 38px 30px;overflow:auto;color:var(--ink,#f6edda);background:var(--surface,#421b29);border:1px solid var(--line,#795260);border-radius:14px;max-height:92dvh}
.iwg-dialog .dialog-close{font:28px/1 Georgia,serif;z-index:5}
.iwg-dialog button{font:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.iwg-dialog button:disabled{cursor:default;opacity:.48}
.iwg-dialog button:focus-visible,.iwg-board:focus-visible{outline:3px solid var(--gold,#ca9f58);outline-offset:4px}
.iwg-heading{padding-right:23px}.iwg-kicker{font:11px/1.5 'Courier New',monospace!important;letter-spacing:.16em;color:var(--gold,#ca9f58)!important;text-transform:uppercase;margin:0 0 8px!important}
.iwg-heading h2{font:normal clamp(2rem,5vw,2.9rem)/1.1 Georgia,serif;letter-spacing:-.045em;margin:8px 0 14px;color:var(--ink,#f6edda)}
.iwg-heading>p:last-child{font:16px/1.7 var(--sans,Arial,sans-serif);color:var(--muted,#d1bcb9);margin:0;max-width:610px}
.iwg-mode-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:24px 0 16px;flex-wrap:wrap}
.iwg-mode-switch{display:flex;border:1px solid var(--line,#795260);padding:4px;border-radius:7px;gap:4px;max-width:100%;background:var(--paper,#2a1320)}
.iwg-mode-switch button{border:0;border-radius:4px;padding:9px 13px;min-height:39px;color:var(--muted,#d1bcb9);background:transparent;font:13px/1.3 var(--sans,Arial,sans-serif)}
.iwg-mode-switch button[aria-pressed=true]{background:var(--gold,#ca9f58);color:#3c1e27;box-shadow:0 1px 4px #0002}
.iwg-mode-note{font:italic 13px/1.5 Georgia,serif;color:var(--muted,#d1bcb9)}
.iwg-score-row{display:grid;grid-template-columns:1fr 1fr 1fr auto;align-items:center;gap:20px;padding:14px 2px 17px}
.iwg-score-row>div{display:flex;gap:9px;align-items:baseline;flex-wrap:wrap}.iwg-score-row>div>span{font:12px/1.4 var(--sans,Arial,sans-serif);color:var(--muted,#d1bcb9)}
.iwg-score-row strong{font:normal 23px/1.2 Georgia,serif;color:var(--ink,#f6edda);min-width:26px}.iwg-score-row strong small{font:12px/1 var(--sans,Arial,sans-serif);margin-left:3px;color:var(--muted,#d1bcb9)}
.iwg-score-row .iwg-unhurried{font-size:17px;white-space:nowrap}.iwg-calm-finish{flex:none}.iwg-calm-finish:disabled{opacity:.5;cursor:default;transform:none;box-shadow:none}
.iwg-pause{min-height:36px;min-width:78px;padding:8px 13px;border:1px solid var(--line,#795260);border-radius:5px;background:transparent;color:var(--ink,#f6edda);font-size:13px!important}
.iwg-pause:not(:disabled):hover{background:var(--paper,#2a1320)}
.iwg-board{height:335px;position:relative;isolation:isolate;overflow:hidden;border:1px solid #ad895b88;border-radius:10px;background:radial-gradient(ellipse at 50% 115%,#82465355,transparent 75%),linear-gradient(135deg,#28121f,#421b29 57%,#2b172b);touch-action:none;box-shadow:inset 0 0 50px #16071666}
.iwg-board:before{content:"";position:absolute;inset:16px;border:1px solid #cda96b22;border-radius:4px;pointer-events:none;z-index:-1}
.iwg-board:after{content:"";position:absolute;left:0;right:0;bottom:0;height:58px;background:linear-gradient(transparent,#1b0c1877);border-bottom:10px solid #2b1321;pointer-events:none;z-index:-1}
.iwg-board-stars{position:absolute;inset:0;pointer-events:none;z-index:-1}.iwg-board-stars i{position:absolute;width:3px;height:3px;border-radius:50%;background:#e7cb87;box-shadow:0 0 10px #e7bc6666;opacity:.7}.iwg-board-stars i:nth-child(1){left:11%;top:22%}.iwg-board-stars i:nth-child(2){left:71%;top:16%;width:2px;height:2px}.iwg-board-stars i:nth-child(3){left:89%;top:44%}.iwg-board-stars i:nth-child(4){left:35%;top:53%;width:2px;height:2px}.iwg-board-stars i:nth-child(5){left:56%;top:32%}
.iwg-falling-layer{position:absolute;inset:0;pointer-events:none}.iwg-falling-word{position:absolute;top:0;left:0;max-width:calc(100% - 24px);padding:5px 12px 6px;border:1px solid #c6a574;border-radius:4px;background:linear-gradient(#fff7e2,#ead8b2);box-shadow:0 3px 8px #18091455;color:#4d2e31;font:italic 18px/1.05 Georgia,serif;white-space:nowrap;will-change:transform;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.iwg-catcher{position:absolute;left:calc(50% - 49px);bottom:10px;width:98px;height:86px;pointer-events:none;z-index:2;will-change:transform;filter:drop-shadow(0 4px 6px #16071699)}
.iwg-catcher img{position:absolute;width:87px;height:87px;object-fit:contain;bottom:2px;left:6px;border:0;background:transparent}
.iwg-catcher>span{position:absolute;left:0;right:0;bottom:0;height:10px;background:linear-gradient(#f0d398,#bd904f);border:1px solid #916535;border-radius:50% 50% 6px 6px;box-shadow:0 2px 0 #4d272f}
.iwg-overlay{position:absolute;inset:0;z-index:5;padding:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(ellipse at 50% 18%,#74414c55,transparent 80%),#351823f7;color:#f6edda;border-radius:9px}
.iwg-overlay[hidden],.iwg-calm-grid[hidden]{display:none!important}.iwg-overlay-star{font:34px/1 Georgia,serif;color:#d4ad68;margin-bottom:10px}.iwg-overlay h3{font:normal 29px/1.2 Georgia,serif;letter-spacing:-.025em;margin:0 0 12px;color:#f6edda}.iwg-overlay>p{font:15px/1.7 var(--sans,Arial,sans-serif);color:#dfcbc0;max-width:430px;margin:0 0 18px}.iwg-overlay .iwg-overlay-footnote{font:italic 13px/1.5 Georgia,serif;margin:16px 0 0;color:#c8b2aa}
.iwg-btn{border:1px solid var(--gold,#ca9f58);border-radius:5px;padding:12px 19px;min-height:46px;background:var(--gold,#ca9f58);color:#3c1e27;font:14px/1.4 var(--sans,Arial,sans-serif)!important;transition:transform .18s,box-shadow .18s;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.iwg-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px #0002}.iwg-btn-soft{background:transparent;color:var(--ink,#f6edda);border-color:var(--line,#795260)}
.iwg-text-btn{border:0;border-bottom:1px solid var(--line,#795260);padding:8px 0;background:transparent;color:var(--muted,#d1bcb9);font:13px/1.4 var(--sans,Arial,sans-serif)!important;min-height:42px}
.iwg-game-footer{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-top:16px}.iwg-game-footer>p{font:12px/1.7 var(--sans,Arial,sans-serif);color:var(--muted,#d1bcb9);margin:0;max-width:480px}.iwg-game-footer kbd{font:11px/1.3 var(--sans,Arial,sans-serif);border:1px solid var(--line,#795260);border-radius:3px;padding:2px 4px;white-space:nowrap}
@media(max-width:650px){.iwg-game-footer:has(.iwg-calm-finish:not([hidden])){flex-wrap:wrap}.iwg-calm-finish{width:100%}}
.iwg-steering{display:flex;gap:8px;flex:none}.iwg-steering button{min-width:52px;min-height:42px;padding:9px 11px;border:1px solid var(--line,#795260);border-radius:5px;background:transparent;color:var(--ink,#f6edda);font:13px var(--sans,Arial,sans-serif)}.iwg-steering button:active{background:var(--gold,#ca9f58);color:#3c1e27}
.iwg-calm-grid{position:absolute;inset:0;padding:34px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,1fr);gap:18px;z-index:2;touch-action:manipulation}
.iwg-calm-card{position:relative;border:1px solid #c7a575;border-radius:7px;background:linear-gradient(145deg,#fff6df,#e8d3aa);color:#4d2e31;box-shadow:0 4px 10px #190b2355;padding:12px 8px;font:italic clamp(17px,3vw,23px)/1.2 Georgia,serif!important;word-break:break-word;transition:background .15s,box-shadow .15s}
.iwg-calm-card:before{content:"✧";position:absolute;top:9px;right:10px;color:#b68a4e;font-size:15px}.iwg-calm-card:after{content:"COLLECT";position:absolute;bottom:10px;left:0;right:0;font:9px 'Courier New',monospace;letter-spacing:.2em;color:#94734e}.iwg-calm-card:hover{box-shadow:0 0 0 2px #d9b675,0 5px 14px #14091977}.iwg-calm-card.iwg-caught{background:#f8dda0}
.iwg-live{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.iwg-mend-meta{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:25px 0 13px;font:12px/1.5 var(--sans,Arial,sans-serif);color:var(--muted,#d1bcb9)}.iwg-mend-meta>span:first-child{color:var(--gold,#ca9f58);font-style:italic;font-family:Georgia,serif;font-size:15px}
.iwg-sentence-paper{position:relative;padding:21px 25px 30px;background:linear-gradient(100deg,#eee0bf,#fff4db 44%,#efe1c3);border:1px solid #bea279;border-radius:5px 8px 8px 5px;box-shadow:0 4px 0 #ad8e6633,0 12px 25px #140a1715;min-height:152px;color:#4a2b31}
.iwg-sentence-paper:before{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 35px,#b69b7422 36px 37px);opacity:.65}.iwg-paper-label{position:relative;font:10px/1.5 'Courier New',monospace;letter-spacing:.16em;color:#94704c;margin-bottom:13px}.iwg-sentence{position:relative;list-style:none;display:flex;flex-wrap:wrap;gap:9px 7px;padding:0;margin:0;min-height:49px;align-content:flex-start}.iwg-sentence li{padding:0;margin:0;max-width:100%}.iwg-placed-word{padding:5px 8px;border:1px solid #b89c7666;background:#fff9eacc;border-radius:4px;font:italic 21px/1.3 Georgia,serif!important;color:#532f35;max-width:100%;overflow-wrap:anywhere;box-shadow:0 1px 2px #6f422315}.iwg-placed-word:hover{background:#ead2a4;border-color:#a97c4a}.iwg-placed-word:disabled{opacity:1;color:#546744;border-color:transparent;background:transparent;box-shadow:none;cursor:default}.iwg-sentence-placeholder{position:relative;font:italic 20px/1.5 Georgia,serif!important;color:#9a8067!important;margin:0!important}.iwg-paper-flourish{position:absolute;right:17px;bottom:9px;color:#b9965c;font-size:18px;opacity:.65}
.iwg-mend-instruction{font:12px/1.6 var(--sans,Arial,sans-serif)!important;color:var(--muted,#d1bcb9)!important;margin:19px 0 13px!important}.iwg-word-bank{display:flex;gap:9px;flex-wrap:wrap;min-height:50px}.iwg-bank-word{padding:10px 14px;border:1px solid var(--line,#795260);border-radius:5px;background:var(--paper,#2a1320);color:var(--ink,#f6edda);font:italic 20px/1.2 Georgia,serif!important;max-width:100%;overflow-wrap:anywhere;min-height:44px;transition:background .15s,border-color .15s}.iwg-bank-word:not(:disabled):hover{border-color:var(--gold,#ca9f58);background:var(--surface,#421b29)}.iwg-bank-word.iwg-used{opacity:.19;box-shadow:none;text-decoration:line-through;text-decoration-thickness:1px}
.iwg-mend-status{margin:20px 0 19px;padding:14px 17px;border:1px solid var(--line,#795260);border-radius:5px;font:italic 16px/1.6 Georgia,serif;color:var(--muted,#d1bcb9);min-height:54px;background:var(--paper,#2a1320)}.iwg-mend-status.iwg-complete{color:var(--ink,#f6edda);border-color:var(--gold,#ca9f58);background:linear-gradient(100deg,#c69b5c1c,transparent)}.iwg-sentence-paper.iwg-complete{box-shadow:0 0 0 2px #d4b27155,0 5px 0 #ad8e6633}
.iwg-mend-actions{display:flex;gap:17px;align-items:center;flex-wrap:wrap}.iwg-mend-next{margin-left:auto}.iwg-mend-postscript{font:italic 14px/1.65 Georgia,serif!important;color:var(--muted,#d1bcb9)!important;margin:26px 0 0!important;text-align:center}.iwg-mend-postscript span{white-space:nowrap;color:var(--gold,#ca9f58)}
@media(max-width:650px){.iwg-dialog{padding:31px 22px 24px;max-width:calc(100vw - 22px)}.iwg-heading{padding-right:20px}.iwg-heading>p:last-child{font-size:15px}.iwg-mode-row{gap:10px;margin-top:21px}.iwg-mode-note{font-size:12px}.iwg-mode-switch{width:100%}.iwg-mode-switch button{flex:1;font-size:13px;padding-inline:8px}.iwg-score-row{gap:12px;padding-top:6px;grid-template-columns:1fr 1fr 1fr auto}.iwg-score-row>div{flex-direction:column;gap:3px}.iwg-score-row>div>span{font-size:11px}.iwg-score-row strong{font-size:22px}.iwg-pause{min-width:64px;padding:8px;font-size:12px!important}.iwg-board{height:310px}.iwg-overlay{padding:23px}.iwg-overlay h3{font-size:26px}.iwg-overlay>p{font-size:14px}.iwg-game-footer{gap:13px}.iwg-game-footer>p{font-size:11px}.iwg-steering{gap:6px}.iwg-steering button{min-width:43px;font-size:12px;padding:9px 8px}.iwg-calm-grid{padding:25px 20px;gap:13px}.iwg-calm-card{font-size:20px!important}.iwg-calm-card:after{font-size:8px;letter-spacing:.12em}.iwg-calm-card:before{font-size:12px;right:7px}.iwg-mend-meta{gap:7px;margin-top:20px}.iwg-mend-meta>span:last-child{font-size:11px}.iwg-sentence-paper{padding:18px 19px 28px;min-height:148px}.iwg-sentence-placeholder{font-size:18px!important}.iwg-placed-word{font-size:19px!important}.iwg-bank-word{font-size:19px!important;padding:9px 12px}.iwg-mend-actions{gap:13px}.iwg-btn{font-size:13px!important;padding:11px 14px}.iwg-mend-next{margin-left:0}.iwg-mend-postscript{font-size:13px!important}}
@media(max-width:390px){.iwg-dialog{padding-inline:17px}.iwg-score-row{gap:9px}.iwg-score-row>div>span{font-size:10px}.iwg-pause{min-width:59px}.iwg-game-footer{align-items:flex-start}.iwg-calm-grid{padding:22px 14px;gap:10px}.iwg-calm-card{font-size:17px!important}.iwg-calm-card:after{font-size:7px}.iwg-mend-actions .iwg-mend-next{width:100%;margin-top:2px}.iwg-heading h2{font-size:2.1rem}}
@media(prefers-reduced-motion:reduce){.iwg-dialog *{transition:none!important;animation:none!important}}
body.reduce-motion .iwg-dialog *{transition:none!important;animation:none!important}

.iwg-dialog [hidden]{display:none!important}
.iwg-kicker,.iwg-paper-label,.iwg-score-row>div>span,.iwg-mode-note,.iwg-game-footer>p,.iwg-game-footer kbd,.iwg-calm-card:after,.iwg-mend-meta>span:last-child{font-size:12px!important}
.iwg-heading>p:last-child,.iwg-overlay>p{font-size:16px}
.iwg-steering button{min-height:44px}

/* Finished sentences stay fully legible; their disabled buttons are a completed result. */
.iwg-dialog .iwg-placed-word:disabled{opacity:1;color:#465c36}.iwg-kicker{color:var(--muted)!important}.iwg-mend-meta>span:first-child{color:var(--rust)}.iwg-paper-label{color:#76553b}.iwg-sentence-placeholder{color:#7a624f!important}

/* Fresh shelves, remembered editions, and eight distinct catching atmospheres. */
.iwg-round-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 19px;margin-top:22px;border:1px solid var(--line);border-radius:7px;background:var(--paper)}
.iwg-round-card>div{min-width:0}.iwg-round-kicker{font:12px/1.5 var(--mono);letter-spacing:.12em;color:var(--muted);display:block;margin-bottom:4px}.iwg-round-card strong{font:23px/1.25 var(--serif);display:block}.iwg-round-card p{font-size:14px;line-height:1.6;color:var(--muted);margin:6px 0 0}.iwg-pattern-tag{max-width:145px;flex:none;padding:8px 12px;border:1px solid var(--line);border-radius:30px;font:italic 15px/1.4 var(--serif);color:var(--rust);text-align:center}
.iwg-dialog .iwg-speed-label{display:flex;align-items:center;gap:9px;font-size:14px;line-height:1.4;color:var(--muted);margin:0}.iwg-dialog .iwg-speed-label select{min-width:115px;width:auto;padding:9px 29px 9px 11px;font-size:14px;min-height:44px}.iwg-mode-row{gap:12px;margin-top:17px;margin-bottom:6px}.iwg-mode-note{width:100%;font-size:12px}.iwg-mode-switch button{font-size:14px;min-height:44px}.iwg-catch-dialog{width:830px;max-width:min(830px,calc(100vw - 30px))}.iwg-score-row{padding-top:10px}.iwg-variety-note,.iwg-repeat-note{font-size:12px!important;line-height:1.7!important;color:var(--muted)!important;margin:15px 0 0!important}.iwg-variety-note{text-align:center}
.iwg-library-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px;margin-top:21px}.iwg-dialog .iwg-library-controls label{display:block;font-size:14px;line-height:1.5;margin:0;color:var(--muted)}.iwg-library-controls select{display:block;margin-top:7px;min-height:46px;width:100%;font-size:14px!important}.iwg-library-progress{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 15px;padding:15px 0 0}.iwg-library-progress strong{font-size:13px;font-weight:400;color:var(--rust)}.iwg-library-progress span{font-size:12px;color:var(--muted)}.iwg-mend-meta{margin-top:19px}.iwg-mend-postscript{margin-top:17px!important}
.iwg-board[data-atmosphere=library]{background:radial-gradient(ellipse at 10% 5%,#bd783638,transparent 70%),repeating-linear-gradient(90deg,#ffffff06 0 2px,transparent 2px 70px),linear-gradient(135deg,#341c20,#54302f)}
.iwg-board[data-atmosphere=rain]{background:repeating-linear-gradient(108deg,transparent 0 49px,#c4dfeb0c 50px 51px,transparent 52px 90px),linear-gradient(145deg,#192d3c,#34454a 75%,#243846)}
.iwg-board[data-atmosphere=stars]{background:radial-gradient(ellipse at 70% 30%,#71549a55,transparent 70%),linear-gradient(150deg,#17152f,#302140)}
.iwg-board[data-atmosphere=voyage]{background:repeating-radial-gradient(ellipse at 90% 100%,transparent 0 55px,#af9d7133 56px 57px,transparent 58px 105px),linear-gradient(130deg,#203335,#3d4d48)}
.iwg-board[data-atmosphere=tea]{background:radial-gradient(ellipse at 25% 0,#b06f4e55,transparent 70%),linear-gradient(135deg,#482a28,#664438)}
.iwg-board[data-atmosphere=garden]{background:radial-gradient(ellipse at 0 100%,#75825844,transparent 70%),linear-gradient(135deg,#20382d,#3f503b 80%)}
.iwg-board[data-atmosphere=courage]{background:radial-gradient(ellipse at 50% 0,#af6d6d55,transparent 70%),linear-gradient(130deg,#40213b,#61384e)}
.iwg-board[data-atmosphere=dreams]{background:radial-gradient(ellipse at 20% 15%,#9876ab44,transparent 55%),radial-gradient(ellipse at 90% 90%,#548d9755,transparent 65%),#292438}
@media(max-width:650px){.iwg-round-card{padding:15px;gap:12px;margin-top:18px;align-items:flex-start}.iwg-round-card strong{font-size:21px}.iwg-round-card p{font-size:14px}.iwg-pattern-tag{font-size:13px;padding:7px 10px;max-width:110px}.iwg-round-kicker{font-size:12px}.iwg-mode-switch{width:auto;flex:1}.iwg-dialog .iwg-speed-label{flex:1}.iwg-dialog .iwg-speed-label select{width:100%}.iwg-library-controls{gap:12px}.iwg-library-controls select{font-size:16px!important}.iwg-score-row>div>span{font-size:12px}.iwg-pause{min-height:44px}.iwg-calm-card:after{font-size:12px}.iwg-dialog .iwg-speed-label select{font-size:16px}.iwg-steering button{font-size:14px}.iwg-mend-meta>span:last-child{font-size:12px}.iwg-heading>p:last-child{font-size:16px}.iwg-btn{font-size:14px!important}}
@media(max-width:440px){.iwg-library-controls{grid-template-columns:1fr}.iwg-round-card{display:block}.iwg-pattern-tag{display:inline-block;margin-top:11px;max-width:none}.iwg-mode-switch{flex-basis:100%}.iwg-speed-label{justify-content:space-between}.iwg-score-row{grid-template-columns:1fr 1fr 1fr;gap:10px}.iwg-score-row>.iwg-pause{grid-column:1/-1;justify-self:end;min-width:90px}.iwg-board{height:300px}.iwg-calm-grid{padding:20px 12px;gap:10px}.iwg-calm-card{font-size:18px!important}.iwg-library-progress{line-height:1.6}.iwg-mend-meta{margin-top:16px}.iwg-repeat-note{font-size:12px!important}}

/* A full game window. The world is larger than the camera, even on a wide screen. */
.maze-dialog{width:1420px;max-width:calc(100vw - 20px);height:calc(100dvh - 22px);max-height:calc(100dvh - 22px);padding:22px 26px;background:var(--surface);color:var(--ink);border-radius:12px;overflow:hidden}.maze-dialog[open]{display:flex;flex-direction:column;gap:12px}.maze-dialog .dialog-close{position:absolute;top:16px;right:16px;z-index:12}.maze-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-right:52px;flex:none}.maze-kicker{display:block;font:12px/1.4 'Courier New',monospace;letter-spacing:.12em;color:var(--muted);text-transform:uppercase}.maze-heading h2{font:normal clamp(28px,3vw,40px)/1.08 Georgia,serif;letter-spacing:-.045em;margin:5px 0 0}.maze-heading>p{font:italic 16px/1.5 Georgia,serif;color:var(--muted);margin:0;text-align:right}.maze-planning{flex:none;border-bottom:1px solid var(--line);padding-bottom:10px}.maze-planning>summary{cursor:pointer;font:14px/1.6 var(--sans);color:var(--rust);width:max-content;max-width:100%;padding:3px 0}.maze-planning>summary span{color:var(--muted);font-size:13px;margin-left:12px}.maze-options{display:grid;grid-template-columns:1fr 1.25fr 1fr 1.25fr auto;gap:12px;align-items:end;padding-top:12px}.maze-options label{font:14px/1.5 var(--sans);margin:0!important;min-width:0}.maze-options select{font:14px var(--sans)!important;min-height:42px;margin-top:6px;width:100%}.maze-options button{min-height:43px;white-space:nowrap}.maze-planning-note{font:13px/1.6 var(--sans);color:var(--muted);margin:10px 0 0}.maze-confirm{flex:none;background:var(--paper);border:1px solid var(--gold);padding:13px 17px;border-radius:6px}.maze-confirm p{font:16px/1.5 var(--sans);margin:0}.maze-confirm>div{display:flex;gap:18px;align-items:center;margin-top:10px;flex-wrap:wrap}.maze-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px;flex:1;min-height:0}.maze-play{display:flex;flex-direction:column;min-height:0;min-width:0;gap:9px}.maze-map-title{display:flex;justify-content:space-between;align-items:center;gap:15px;flex:none}.maze-map-title .maze-kicker{font-size:12px;letter-spacing:.08em}.maze-map-title h3{font:normal 27px/1.15 Georgia,serif;letter-spacing:-.03em;margin-top:4px}.maze-map-actions{display:flex;gap:8px;flex:none}.maze-map-button,.maze-pause{min-height:40px;padding:8px 12px;border:1px solid var(--line);background:var(--paper);border-radius:5px;font:14px var(--sans)}.maze-map-button[aria-pressed=true]{border-color:var(--gold);color:var(--rust)}.maze-stats{display:flex;align-items:center;gap:22px;border:1px solid var(--line);background:var(--paper);border-radius:6px;padding:9px 14px;flex:none}.maze-stats>span{display:flex;align-items:baseline;gap:6px;white-space:nowrap}.maze-stats strong{font:19px/1.3 Georgia,serif}.maze-stats small{font:12px var(--sans);color:var(--muted)}.maze-stats>span:last-child{margin-left:auto;font:12px var(--sans);color:var(--muted)}.maze-stage{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:210px;min-width:0;background:radial-gradient(ellipse at center,#342330,#1a1724 75%);border:5px solid #4d2935;border-radius:8px;overflow:hidden;box-shadow:0 4px 0 #bd9b69,0 8px 18px #3b223526;isolation:isolate}.maze-canvas{display:block;max-width:100%;max-height:100%;touch-action:none;outline-offset:-4px!important}.maze-overlay{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;background:#211727dc;backdrop-filter:blur(3px);color:#fff1d5}.maze-overlay-star{font:35px/1 Georgia,serif;color:#e5ba72;margin-bottom:9px}.maze-overlay h3{font:29px/1.15 Georgia,serif;max-width:480px;letter-spacing:-.03em}.maze-overlay p{font:16px/1.55 var(--sans);color:#e5d1b6;max-width:520px;margin:12px 0 18px}.maze-overlay .btn{background:#efd2a0;border-color:#efd2a0;color:#432436;min-height:44px}.maze-overlay>small{font:12px/1.5 var(--sans);color:#d4bd9c;margin-top:11px}.maze-play-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:4px;flex:none}.maze-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;flex:1}.maze-tools .small-button{font-size:14px;line-height:1.3;min-height:40px;padding:8px 12px}.maze-guidance-note{width:100%;font:12px/1.4 var(--sans);color:var(--muted);margin:0}.maze-portal-button{border-color:#9473b2!important;color:var(--rust)}.maze-dpad{display:grid;grid-template-columns:repeat(3,42px);grid-template-rows:37px 37px;gap:4px;flex:none}.maze-dpad button{border:1px solid var(--line);background:var(--paper);border-radius:5px;font:22px/1 Georgia,serif;touch-action:none;min-width:42px;min-height:37px}.maze-dpad #mazeUp{grid-column:2}.maze-dpad #mazeLeft{grid-column:1;grid-row:2}.maze-dpad #mazeDown{grid-column:2;grid-row:2}.maze-dpad #mazeRight{grid-column:3;grid-row:2}.maze-dpad button:hover,.maze-dpad button:active{background:var(--gold-light);color:#4a2933}.maze-underfoot{display:flex;justify-content:space-between;gap:15px;flex:none}.maze-underfoot p{font:12px/1.45 var(--sans);color:var(--muted);margin:0}.maze-underfoot p:last-child{text-align:right;max-width:420px}.maze-whisper{font:italic 15px/1.4 Georgia,serif;color:var(--rust);padding:8px 12px;border-left:2px solid var(--gold);background:var(--paper);margin:0;flex:none;max-height:65px;overflow:auto}.maze-journal{background:var(--paper);border:1px solid var(--line);border-radius:7px;overflow:auto;min-height:0;align-self:stretch}.maze-journal>summary{cursor:pointer;padding:14px 16px;font:15px/1.5 Georgia,serif;color:var(--rust);position:sticky;top:0;background:var(--paper);z-index:1;border-bottom:1px solid var(--line)}.maze-journal-content{padding:17px}.maze-journal-content h3{font:italic 25px/1.2 Georgia,serif;color:var(--rust);margin:7px 0 12px}.maze-type-note{font:14px/1.65 var(--sans);color:var(--muted);margin:0 0 18px}.maze-fragments{display:grid;gap:10px;margin:0 0 18px}.maze-fragment{padding:12px;border:1px dashed var(--line);border-radius:4px;background:var(--surface)}.maze-fragment span{display:block;font:11px/1.5 'Courier New',monospace;letter-spacing:.06em;color:var(--muted);margin-bottom:5px}.maze-fragment p{font:italic 16px/1.6 Georgia,serif;color:var(--muted);margin:0}.maze-fragment.found{border-style:solid;border-color:#bb9a6266}.maze-fragment.found p{color:var(--ink)}.maze-fragment.found span{color:var(--rust)}.maze-objective{border-top:1px solid var(--line);padding-top:16px}.maze-objective>p{font:italic 16px/1.6 Georgia,serif;margin:7px 0 0}.maze-objective .maze-seal-note{font:14px/1.5 var(--sans);color:var(--rust);border:1px solid var(--line);padding:10px;border-radius:5px;margin-top:14px}.maze-legend{display:grid;grid-template-columns:1fr 1fr;gap:10px 8px;margin:18px 0;border-top:1px solid var(--line);padding-top:16px}.maze-legend>span{display:flex;align-items:center;gap:7px;font:12px/1.5 var(--sans);color:var(--muted)}.maze-legend i{font:21px Georgia,serif;color:var(--gold);flex:none}.maze-time{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:14px}.maze-time>span{font:13px var(--sans);color:var(--muted)}.maze-time strong{font:17px 'Courier New',monospace}.maze-reward-note{font:13px/1.6 var(--sans);color:var(--muted);margin-top:16px}.maze-victory{border:1px solid var(--gold);background:var(--paper);border-radius:8px;text-align:center;padding:30px;flex:1;overflow:auto;align-content:center}.maze-victory h3{font:normal 38px/1.2 Georgia,serif;letter-spacing:-.03em;margin:14px 0 20px}.maze-victory>p:not(.maze-victory-whisper){font:21px/1.8 Georgia,serif;max-width:800px;margin:0 auto}.maze-result{display:flex;justify-content:center;gap:12px 25px;flex-wrap:wrap;margin:24px 0;font:14px var(--sans);color:var(--muted)}.maze-victory-whisper{font:italic 18px/1.6 Georgia,serif;margin:20px 0 26px;color:var(--rust)}.maze-dialog:has(.maze-victory:not([hidden])) .maze-layout{display:none}.maze-live{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}.maze-dialog button:focus-visible,.maze-dialog select:focus-visible,.maze-dialog summary:focus-visible{outline:3px solid var(--rust);outline-offset:3px}.maze-dialog button:disabled{opacity:.45;cursor:default}.maze-stage:has(.maze-canvas:focus-visible){outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:1100px){.maze-dialog{padding:18px}.maze-layout{grid-template-columns:minmax(0,1fr) 230px;gap:15px}.maze-heading>p{display:none}.maze-map-title h3{font-size:25px}.maze-stats{gap:13px;padding:8px 11px}.maze-stats>span{gap:4px}.maze-options{grid-template-columns:1fr 1fr}.maze-options button{width:max-content}.maze-tools{gap:6px}.maze-tools .small-button{font-size:13px;padding:8px}.maze-underfoot{display:block}.maze-underfoot p:last-child{display:none}.maze-journal-content{padding:14px}}
@media(max-width:900px){.maze-layout{display:flex;flex-direction:column;gap:10px;overflow:auto}.maze-play{flex:1;min-height:470px}.maze-journal{flex:none;max-height:40dvh}.maze-journal-content{display:grid;grid-template-columns:1fr 1fr;gap:14px}.maze-journal-content>.maze-kicker,.maze-journal-content h3,.maze-type-note,.maze-fragments,.maze-objective,.maze-reward-note{grid-column:1/-1}.maze-journal-content h3{margin:0}.maze-fragments{grid-template-columns:repeat(3,1fr);margin:0}.maze-type-note{margin:0}.maze-legend,.maze-reward-note{margin:0}.maze-heading h2{font-size:32px}.maze-heading{padding-right:36px}.maze-stats{gap:20px}.maze-map-title h3{font-size:26px}.maze-map-actions button{font-size:14px}.maze-dialog .dialog-close{top:12px;right:11px}}
@media(max-width:600px){.maze-dialog{max-width:calc(100vw - 8px);height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);padding:13px 10px;border-radius:8px}.maze-dialog[open]{gap:8px}.maze-heading .maze-kicker{font-size:10px;letter-spacing:.08em}.maze-heading h2{font-size:27px;margin-top:3px}.maze-planning{padding-bottom:6px}.maze-planning>summary{font-size:14px;padding:1px 0}.maze-planning>summary span{display:none}.maze-options{gap:10px}.maze-options label{font-size:13px}.maze-options select{font-size:16px!important}.maze-options label:nth-child(2),.maze-options label:nth-child(4){grid-column:1/-1}.maze-planning-note{font-size:12px}.maze-map-title{gap:8px;align-items:center}.maze-map-title h3{font-size:22px;margin-top:2px}.maze-map-title .maze-kicker{font-size:10px;letter-spacing:.04em}.maze-map-actions{gap:5px}.maze-map-actions button{font-size:12px;min-height:36px;padding:7px}.maze-stats{padding:7px 8px;gap:9px;flex-wrap:wrap;row-gap:4px}.maze-stats>span{gap:4px}.maze-stats strong{font-size:16px}.maze-stats small{font-size:11px}.maze-stats>span:last-child{font-size:11px;margin-left:auto}.maze-play{min-height:445px;gap:7px}.maze-stage{min-height:220px;border-width:3px}.maze-play-controls{gap:8px;align-items:flex-end;margin-top:4px}.maze-tools{display:grid;grid-template-columns:1fr 1fr;gap:5px}.maze-tools .small-button{font-size:12px;min-height:38px;padding:6px;line-height:1.35}.maze-tools #mazeFollow{grid-column:1/-1}.maze-guidance-note{display:none}.maze-dpad{grid-template-columns:repeat(3,44px);grid-template-rows:44px 44px;gap:3px}.maze-dpad button{min-width:44px;min-height:44px;font-size:22px}.maze-underfoot p{font-size:11px}.maze-whisper{font-size:14px;max-height:58px;padding:6px 9px}.maze-journal>summary{padding:10px 13px;font-size:14px}.maze-journal-content{display:block}.maze-fragments{grid-template-columns:1fr;margin:15px 0}.maze-journal-content h3{margin:7px 0 12px}.maze-type-note{font-size:14px}.maze-legend{margin:16px 0}.maze-reward-note{margin:15px 0 0}.maze-overlay{padding:15px 13px}.maze-overlay-star{display:none}.maze-overlay h3{font-size:23px;max-width:300px}.maze-overlay p{font-size:14px;line-height:1.5;margin:10px 0 14px;max-width:330px}.maze-overlay .btn{font-size:14px;padding:10px 16px}.maze-overlay>small{font-size:11px;margin-top:9px}.maze-victory{padding:24px 18px}.maze-victory h3{font-size:28px}.maze-victory>p:not(.maze-victory-whisper){font-size:18px}.maze-victory .btn{width:100%}.maze-confirm{padding:12px}.maze-confirm p{font-size:14px}.maze-confirm .small-button{font-size:14px}}
@media(max-height:720px) and (min-width:901px){.maze-dialog{padding:13px 20px}.maze-dialog[open]{gap:7px}.maze-heading h2{font-size:30px}.maze-heading .maze-kicker{font-size:10px}.maze-map-title h3{font-size:23px}.maze-planning{padding-bottom:5px}.maze-play{gap:6px}.maze-stage{min-height:160px}.maze-stats{padding:6px 10px}.maze-tools .small-button{min-height:35px}.maze-dpad{grid-template-rows:32px 32px;grid-template-columns:repeat(3,36px)}.maze-dpad button{min-width:36px;min-height:32px}.maze-guidance-note{display:none}.maze-overlay-star{display:none}.maze-overlay h3{font-size:25px}.maze-overlay p{font-size:14px;line-height:1.4;margin:9px 0 12px}.maze-overlay>small{display:none}}
@media(prefers-reduced-motion:reduce){.maze-dialog *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Short screens retain a reachable map, controls, and exit. */
@media(max-height:550px){.maze-dialog{overflow-y:auto}.maze-layout{flex:0 0 auto;min-height:490px}.maze-play{min-height:490px}.maze-journal{max-height:490px}}

.inkwig-voice-settings{border-top:1px solid var(--line);padding:23px 0;margin-top:8px}
.inkwig-voice-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.inkwig-voice-heading>strong{font:18px/1.4 var(--serif);color:var(--ink)}
.inkwig-voice-source{font:12px/1.5 var(--sans);color:var(--rust);background:var(--paper);border:1px solid var(--line);padding:4px 9px;border-radius:4px;max-width:100%;overflow-wrap:anywhere}
.inkwig-voice-description{font:14px/1.65 var(--sans);color:var(--muted);margin-top:9px!important}
.inkwig-voice-switch-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:18px;font:14px/1.5 var(--sans)}
.inkwig-voice-switch-row .small-button{white-space:nowrap;min-height:44px}
.inkwig-voice-switch-row .small-button[aria-pressed=true]{border-color:var(--gold);background:var(--paper)}
.inkwig-voice-fields{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:15px;margin-top:17px}
.inkwig-voice-fields>div{min-width:0}
.inkwig-voice-source-field{grid-column:1/-1}
.inkwig-voice-fields[data-source=recorded] .inkwig-voice-pace-field{grid-column:1/-1}
.inkwig-voice-fields label{display:block;font:14px/1.5 var(--sans);margin-bottom:7px!important;color:var(--muted)}
.inkwig-voice-fields select{width:100%;max-width:100%;min-height:44px;font:14px/1.5 var(--sans)!important;padding:9px 30px 9px 11px}
.inkwig-voice-actions{display:flex;align-items:center;gap:12px 21px;flex-wrap:wrap;margin-top:17px}
.inkwig-voice-actions button{min-height:44px;font-size:14px}
.inkwig-voice-status{font:14px/1.6 var(--sans);color:var(--muted);margin-top:12px!important;min-height:23px}
.inkwig-voice-attribution{font:12px/1.6 var(--sans);color:var(--muted);margin-top:8px!important}
.scene-bubble.is-speaking{border-color:#d29c51;box-shadow:0 0 0 3px #e7bc6d30,0 6px 20px #180c1b30}
.scene-bubble.is-speaking .bubble-name:after{content:' · speaking';font-size:inherit;letter-spacing:.04em;text-transform:none}
@media(max-width:540px){.inkwig-voice-fields{grid-template-columns:minmax(0,1fr);gap:12px}.inkwig-voice-fields select{font-size:16px!important}.inkwig-voice-switch-row{align-items:flex-start;flex-direction:column;gap:9px}.inkwig-voice-heading{align-items:flex-start;flex-direction:column;gap:8px}.inkwig-voice-actions{gap:8px 19px}.inkwig-voice-description,.inkwig-voice-status{font-size:14px}}

/* A visit with Inkwig. The house stays quiet until a reader opens a door. */
.companion-first {
  --calm-plum: #432636;
  --calm-plum-deep: #34202d;
  --calm-cream: #f7ead6;
  --calm-muted: #d9c1b3;
  --calm-panel-line: #d3ad8540;
  font-size: 16px;
}
.companion-first:before { opacity: .014; }
.companion-first .wrap { max-width: 1260px; padding-inline: 40px; }
.companion-first .site-header { border-bottom-color: color-mix(in srgb, var(--line) 65%, transparent); }
.companion-first .header-inner { max-width: 1260px; min-height: 84px; padding: 13px 40px; gap: 30px; }
.companion-first .brand { gap: 11px; }
.companion-first .brand img { width: 40px; height: 48px; }
.companion-first .brand-name { font-size: 31px; }
.companion-first .brand-name small { font-size: 12px; letter-spacing: .1em; }
.companion-first nav { display: flex; margin-left: auto; margin-right: 18px; gap: 25px; }
.companion-first nav > button,
.companion-first nav > button:last-child,
.companion-first nav > a { display: inline-flex; min-height: 44px; font-size: 14px; color: var(--muted); }
.companion-first nav > button:hover,
.companion-first nav > a:hover { color: var(--ink); }
.companion-first .header-tools { gap: 3px; }
.companion-first .header-tools .icon-button { width: 44px; height: 44px; }
.companion-first .nav-dot { display: none; }
.companion-first .calm-welcome { display: flex; align-items: center; padding: 37px 0 29px; gap: 30px; }
.companion-first .calm-welcome .eyebrow { font-size: 12px; letter-spacing: .14em; }
.companion-first .calm-welcome h1 { font-size: clamp(2.2rem, 3.6vw, 3rem); letter-spacing: -.045em; line-height: 1.18; margin: 9px 0 11px; }
.companion-first .calm-welcome h1 em { white-space: normal; }
.companion-first .calm-welcome p { max-width: 650px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.companion-first .welcome-aside { display: flex; align-items: flex-start; gap: 15px; flex: none; text-align: right; }
.companion-first .welcome-aside p { font: italic 18px/1.6 var(--serif); }
.companion-first .welcome-aside .small-star { margin: 6px 0 0; color: var(--gold); }
.companion-first .world-frame { grid-template-columns: minmax(0, 1.64fr) minmax(320px, 1fr); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 12px 35px var(--shadow); }
.companion-first .world-main { display: flex; flex-direction: column; background: var(--surface); }
.companion-first .scene { display: block; flex: 1; aspect-ratio: 3/2; min-height: 410px; }
.companion-first .scene-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.companion-first .scene-vignette { background: linear-gradient(180deg, #190b1866, transparent 27%, transparent 80%, #190b185c); }
.companion-first .scene-heading { left: 24px; right: 22px; top: 22px; align-items: flex-start; }
.companion-first .scene-eyebrow { display: none; }
.companion-first .scene-heading h2 { font-size: 26px; line-height: 1.25; margin: 4px 0 0; font-weight: 400; }
.companion-first .scene-tool { min-height: 44px; padding: 10px 12px; font-size: 14px; background: #321d2ac4; border-color: #f2d6ad73; }
.companion-first .scene-tool .ico { width: 17px; height: 17px; }
.companion-first .scene-weather { position: absolute; right: 19px; bottom: 14px; padding: 0; font: 12px/1.5 var(--sans); color: #f9ebd7; letter-spacing: .015em; }
.companion-first .scene-pet { left: 30%; top: 25%; width: 43%; height: 53%; }
.companion-first .hotspot { animation: none; box-shadow: 0 2px 12px #21121b55; }
.companion-first .scene.hide-spots .hotspots { visibility: hidden; }
.companion-first .scene.hide-spots .display-slot.empty { display: none; }
.companion-first .display-slot { width: 47px; height: 51px; border-radius: 7px; }
.companion-first .display-slot .curio-sprite { width: 43px; height: 43px; }
.companion-first .room-display { right: 18px; bottom: 42px; }
.companion-first .touch-note { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 49px; padding: 10px 16px; font: italic 15px/1.5 var(--serif); color: var(--muted); border-bottom: 1px solid var(--line); }
.companion-first .touch-note .ico { width: 17px; height: 17px; color: var(--rust); }
.companion-first .touch-note .text-button { font: italic 15px/1.5 var(--serif); text-decoration: none; padding: 3px 0; min-height: 44px; }
.companion-first .room-door { padding: 0; }
.companion-first .room-door > summary { cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 15px; list-style: none; min-height: 49px; padding: 11px 20px; font-size: 14px; color: var(--muted); }
.companion-first .room-door > summary::-webkit-details-marker { display: none; }
.companion-first .room-door > summary:after,
.companion-first .shelf-corner > summary:after { content: ''; display: block; width: 7px; height: 7px; flex: none; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
.companion-first .room-door[open] > summary:after,
.companion-first .shelf-corner[open] > summary:after { transform: rotate(225deg); margin-top: 4px; }
.companion-first .room-door > summary:hover { color: var(--ink); background: var(--paper); }
.companion-first .room-tabs { background: var(--paper); gap: 0; border-top: 1px solid var(--line); }
.companion-first .room-tab { flex-direction: column; min-height: 117px; padding: 13px 7px; text-align: center; justify-content: flex-start; color: var(--ink); border-top: 0; }
.companion-first .room-tab + .room-tab { border-left: 1px solid var(--line); }
.companion-first .room-tab.selected { background: var(--surface); box-shadow: inset 0 -3px var(--gold); }
.companion-first .room-tab:hover { background: var(--paper-dark); }
.companion-first .room-tab img { width: 56px; height: 40px; border-radius: 5px; }
.companion-first .room-tab strong { font-size: 15px; line-height: 1.35; }
.companion-first .room-tab small,
.companion-first .room-found { display: none; }

/* One character, one thought, one invitation. */
.companion-first .calm-companion { display: flex; flex-direction: column; gap: 0; padding: 32px 29px 25px; background: linear-gradient(145deg, var(--calm-plum), var(--calm-plum-deep)); border: 0; color: var(--calm-cream); }
.companion-first .companion-intro { display: flex; gap: 15px; align-items: center; }
.companion-first .companion-avatar { width: 61px; height: 68px; flex: none; object-fit: contain; filter: drop-shadow(0 4px 7px #170d1b40); }
.companion-first .companion-intro h2 { font-size: 28px; letter-spacing: -.035em; line-height: 1.2; margin: 0; }
.companion-first .calm-companion > .mood { font: italic 16px/1.6 var(--serif); color: var(--calm-muted); margin-top: 9px; }
.companion-first .calm-companion .bond-label { display: none; }
.companion-first .calm-companion .scene-bubble { position: relative; inset: auto; grid-area: auto; width: 100%; max-width: none; padding: 23px 0 21px; margin: 18px 0 0; border: 0; border-top: 1px solid var(--calm-panel-line); border-radius: 0; box-shadow: none; background: transparent; backdrop-filter: none; color: var(--calm-cream); pointer-events: auto; min-height: 117px; z-index: auto; }
.companion-first .calm-companion .scene-bubble:before,
.companion-first .calm-companion .scene-bubble:after { display: none; }
.companion-first .calm-companion .scene-bubble .bubble-name { font: 12px/1.5 var(--sans); letter-spacing: .07em; color: #dfb891; margin-bottom: 11px; }
.companion-first .calm-companion .scene-bubble p,
.companion-first .calm-companion .scene-bubble.is-greeting p { display: block; -webkit-line-clamp: unset; overflow: visible; font: 19px/1.65 var(--serif); letter-spacing: -.012em; }
.companion-first .calm-companion .scene-bubble.speak { animation: none; }
.companion-first .calm-companion .scene-bubble.is-speaking { box-shadow: none; }
.companion-first .calm-companion .on-his-mind { grid-area: auto; margin: auto 0 0; padding: 16px 0 0; border: 0; }
.companion-first .calm-companion .on-his-mind > .eyebrow { display: none; }
.companion-first .calm-companion .on-his-mind h3 { font-size: 22px; line-height: 1.3; color: var(--calm-cream); margin: 0 0 8px; }
.companion-first .calm-companion .on-his-mind p { color: var(--calm-muted); font-size: 14px; line-height: 1.65; min-height: 0; margin: 0 0 16px; }
.companion-first .calm-companion .on-his-mind .btn { max-width: none; width: 100%; min-height: 48px; margin: 0; padding: 12px 16px; font-size: 16px; background: #eed5ad; color: #452633; border-color: #eed5ad; border-radius: 7px; }
.companion-first .calm-companion .on-his-mind .btn:hover { background: #f6e1bf; box-shadow: none; transform: none; }
.companion-first .companion-memory { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--calm-panel-line); color: var(--calm-muted); font: italic 14px/1.6 var(--serif); }
.companion-first .calm-companion button:focus-visible { outline-color: #f4c58b; }
.companion-first .care-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; border: 0; border-radius: 0; box-shadow: none; background: none; }
.companion-first .care-bar > button { gap: 13px; min-height: 80px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: color-mix(in srgb, var(--surface) 75%, transparent); text-align: left; }
.companion-first .care-bar > button + button { border-left: 1px solid var(--line); }
.companion-first .care-bar > button:hover { background: var(--surface); border-color: var(--gold); }
.companion-first .care-bar .ico { width: 24px; height: 24px; }
.companion-first .care-bar > button:nth-child(3) .ico { color: #967c96; }
.companion-first .care-bar span { font: 19px/1.35 var(--serif); }
.companion-first .care-bar small { display: block; font: 13px/1.5 var(--sans); color: var(--muted); margin-top: 3px; }
.companion-first .house-foot { padding: 14px 2px; gap: 14px; font-size: 12px; }
.companion-first .house-foot > span:first-child { font: italic 14px/1.5 var(--serif); }
.companion-first .house-foot > span:last-child { font-size: 12px; }
.companion-first .gentle-note { padding: 28px 0 31px; text-align: center; }
.companion-first .gentle-note > p { font: italic 19px/1.6 var(--serif); color: var(--muted); }
.companion-first .gentle-note button { min-height: 44px; padding: 8px 0; margin: 9px 12px 0; font-size: 14px; color: var(--rust); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--rust) 45%, transparent); }
.companion-first .site-footer { padding: 23px 0 27px; gap: 18px; }
.companion-first .footer-signature { font-size: 16px; }
.companion-first .site-footer > span:nth-child(2),
.companion-first .site-footer small { font-size: 12px; }
.companion-first .btn:hover { transform: none; }

/* An open shelf is an invitation, not a list of things left to finish. */
.companion-first .shelf-dialog { width: 730px; padding: 39px; }
.companion-first .shelf-dialog > p { max-width: 560px; }
.companion-first .shelf-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 27px 0 28px; }
.companion-first .shelf-links > button { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; text-align: left; min-height: 130px; padding: 20px 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); font: 22px/1.3 var(--serif); }
.companion-first .shelf-links > button:hover { border-color: var(--gold); background: var(--paper-dark); }
.companion-first .shelf-links .ico { color: var(--rust); width: 25px; height: 25px; }
.companion-first .shelf-links strong { display: block; font-weight: 400; font-size: 22px; }
.companion-first .shelf-links small { display: block; font: 14px/1.6 var(--sans); color: var(--muted); }
.companion-first .shelf-entry { padding: 21px 17px 19px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); min-width: 0; }
.companion-first .shelf-entry > .ico { margin-bottom: 15px; }
.companion-first .shelf-entry .text-link { display: inline-flex; min-height: 44px; padding: 8px 0; font: 21px/1.4 var(--serif); border-bottom: 0; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; text-align: left; }
.companion-first .shelf-entry .text-link:hover { text-decoration-color: var(--rust); }
.companion-first .shelf-entry p { font-size: 14px; line-height: 1.7; color: var(--muted); margin-top: 13px; }
.companion-first .shelf-extra-links { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 9px; }
.companion-first .shelf-corner .shelf-extra-links > button { margin: 0; }
.companion-first .shelf-materials { padding: 10px 0 22px; }
.companion-first .shelf-materials > .eyebrow { display: block; font-size: 12px; margin-bottom: 12px; }
.companion-first .shelf-reassurance { font: italic 15px/1.7 var(--serif); color: var(--muted); margin: 21px 0 0; }
.companion-first .memory-letter { margin-top: 27px; padding: 25px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.companion-first .memory-letter blockquote { font: italic 22px/1.65 var(--serif); margin: 17px 0; }
.companion-first .memory-letter cite { display: block; font: 14px/1.6 var(--serif); color: var(--muted); }
.companion-first .memory-letter .text-button { display: block; margin-top: 13px; font-size: 14px; color: var(--rust); }
.companion-first .care-reassurance { margin-top: 21px; font: italic 15px/1.7 var(--serif); color: var(--muted); }
.companion-first .more-words > summary { cursor: pointer; min-height: 44px; font-size: 14px; color: var(--muted); }
.companion-first .shelf-corner { border-top: 1px solid var(--line); margin-top: 0; }
.companion-first .shelf-corner > summary { min-height: 63px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 1px; list-style: none; cursor: pointer; font: 18px/1.4 var(--serif); color: var(--ink); }
.companion-first .shelf-corner > summary::-webkit-details-marker { display: none; }
.companion-first .shelf-corner > p,
.companion-first .shelf-corner > div > p { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 16px; }
.companion-first .shelf-corner > button,
.companion-first .shelf-corner > div > button { min-height: 46px; margin: 0 10px 17px 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; background: var(--paper); }
.companion-first .shelf-corner button:hover { border-color: var(--gold); }
.companion-first .shelf-corner .pocket-materials { border-top: 0; padding: 14px 0; color: var(--muted); margin: 0; }
.companion-first .shelf-corner .material-count { color: var(--muted); }
.companion-first .shelf-corner .materials-line { justify-content: flex-start; gap: 22px; }
.companion-first .collection-dialog { width: 1050px; }
.companion-first .collection-dialog .curiosities-section { padding: 0; }
.companion-first .collection-dialog .curio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.companion-first .collection-dialog .section-heading { align-items: flex-start; }
.companion-first .collection-dialog .section-heading h2 { font-size: 36px; }
.companion-first .collection-dialog .collection-toolbar { margin-top: 22px; }
.companion-first .story-shelf-dialog { width: 900px; }
.companion-first .story-shelf-dialog .chapter-and-journal { padding: 0; }
.companion-first .story-shelf-dialog .story-card { padding: 24px; box-shadow: none; }
.companion-first .story-shelf-dialog .chapter-dots { display: none; }

/* Small conversations make the character the discovery. */
.companion-first .conversation-dialog { width: 620px; padding: 38px; }
.companion-first .conversation-dialog h2 { font-size: 36px; line-height: 1.2; }
.companion-first #conversationContext { font-size: 16px; line-height: 1.8; color: var(--muted); }
.companion-first .conversation-questions { display: grid; gap: 11px; margin: 24px 0 10px; }
.companion-first .conversation-questions button { min-height: 59px; padding: 16px 19px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); text-align: left; font: 19px/1.45 var(--serif); }
.companion-first .conversation-questions button:hover { background: var(--paper-dark); border-color: var(--gold); }
.companion-first .conversation-response { margin: 26px 0 18px; padding: 23px 25px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 9px 9px 0; background: var(--paper); font: 22px/1.65 var(--serif); }
.companion-first #conversationFact { font-size: 16px; color: var(--muted); line-height: 1.8; margin: 17px 0; }
.companion-first #conversationMemory { display: block; color: var(--muted); font: italic 14px/1.65 var(--serif); margin: 18px 0; }
.companion-first #conversationNext { min-height: 46px; font-size: 16px; margin-top: 5px; }
.companion-first #visitMemories { list-style: none; padding: 0; margin: 24px 0 0; }
.companion-first #visitMemories > * { padding: 20px 0; border-top: 1px solid var(--line); }
.companion-first #visitMemories h3,
.companion-first #visitMemories strong { display: block; font: 22px/1.4 var(--serif); margin-bottom: 7px; color: var(--ink); }
.companion-first #visitMemories p { font-size: 16px; line-height: 1.8; color: var(--muted); margin: 0; }
.companion-first #visitMemories small,
.companion-first #visitMemories time { font-size: 12px; color: var(--muted); }

/* Quiet sitting and reading keep an obvious way back. */
.companion-first .quiet-visit-panel { display: flex; align-items: center; gap: 20px; justify-content: space-between; margin-top: 16px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.companion-first #quietStatus { font: italic 18px/1.6 var(--serif); color: var(--muted); }
.companion-first #endQuiet { flex: none; min-height: 44px; font-size: 14px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 6px; }
.companion-first #endQuiet:hover { background: var(--paper-dark); }
.companion-first .reading-bar { margin-top: 14px; padding: 20px; gap: 17px; border-radius: 10px; }
.companion-first .reading-bar strong { font-size: 19px; }
.companion-first .reading-bar p { font-size: 14px; line-height: 1.6; }
.companion-first .reading-bar #readingClock { font-size: 19px; }
.companion-first.is-quiet .room-door,
.companion-first.is-reading .room-door,
.companion-first.is-napping .room-door,
.companion-first.is-quiet .hotspots,
.companion-first.is-reading .hotspots,
.companion-first.is-napping .hotspots,
.companion-first.is-quiet .room-display,
.companion-first.is-reading .room-display,
.companion-first.is-napping .room-display,
.companion-first.is-quiet .scene-tool,
.companion-first.is-reading .scene-tool,
.companion-first.is-napping .scene-tool { display: none; }
.companion-first.is-quiet .on-his-mind,
.companion-first.is-reading .on-his-mind,
.companion-first.is-napping .on-his-mind { display: none; }
.companion-first.is-quiet .care-bar,
.companion-first.is-reading .care-bar { display: none; }
.companion-first.is-napping .care-bar { grid-template-columns: 1fr; }
.companion-first.is-napping .care-bar > button:not([data-action="nap"]) { display: none; }
.companion-first.is-quiet .companion-memory,
.companion-first.is-reading .companion-memory,
.companion-first.is-napping .companion-memory { margin-top: auto; }
.companion-first.is-quiet .weather-layer,
.companion-first.is-reading .weather-layer,
.companion-first.is-napping .weather-layer { opacity: .4; }
.companion-first .toast { font-size: 14px; border-radius: 8px; }
.companion-first summary:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 1000px) {
  .companion-first .wrap { padding-inline: 28px; }
  .companion-first .header-inner { padding-inline: 28px; gap: 18px; }
  .companion-first nav { gap: 20px; margin-right: 8px; }
  .companion-first .world-frame { grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); }
  .companion-first .calm-companion { padding: 26px 24px; }
  .companion-first .companion-intro { gap: 11px; }
  .companion-first .companion-intro h2 { font-size: 25px; }
  .companion-first .companion-avatar { width: 48px; height: 57px; }
  .companion-first .scene { min-height: 430px; }
  .companion-first .scene-art { object-position: 51% 50%; }
  .companion-first .scene-heading { left: 19px; right: 16px; top: 20px; }
  .companion-first .scene-heading h2 { font-size: 23px; }
  .companion-first .scene-tool span { display: none; }
  .companion-first .scene-tool { padding: 11px 12px; }
  .companion-first .calm-companion .scene-bubble p { font-size: 18px; }
  .companion-first .calm-companion .on-his-mind h3 { font-size: 21px; }
  .companion-first .care-bar > button { gap: 10px; padding: 15px 12px; }
  .companion-first .care-bar span { font-size: 18px; }
  .companion-first .care-bar small { font-size: 12px; }
}
@media (max-width: 760px) {
  .companion-first .wrap { padding-inline: 20px; }
  .companion-first .header-inner { flex-wrap: wrap; min-height: 0; gap: 0; padding: 14px 20px 0; }
  .companion-first .brand { margin-right: auto; }
  .companion-first .brand-name { font-size: 29px; }
  .companion-first .brand img { width: 35px; height: 43px; }
  .companion-first .brand-name small { font-size: 12px; }
  .companion-first .header-tools { margin-left: 10px; }
  .companion-first nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 25px; margin: 7px 0 0; border-top: 0; padding: 0; }
  .companion-first nav > button,
  .companion-first nav > button:last-child,
  .companion-first nav > a { display: inline-flex; font-size: 14px; }
  .companion-first .calm-welcome { display: block; padding: 28px 0 24px; }
  .companion-first .welcome-aside { display: none; }
  .companion-first .calm-welcome h1 { font-size: clamp(2.1rem, 5.8vw, 2.8rem); margin-top: 10px; }
  .companion-first .calm-welcome p { max-width: 510px; }
  .companion-first .world-frame { grid-template-columns: minmax(0, 1fr); border-radius: 12px; }
  .companion-first .world-main { display: block; }
  .companion-first .scene { display: block; min-height: 0; aspect-ratio: 3/2; }
  .companion-first .scene-art { position: absolute; height: 100%; aspect-ratio: auto; }
  .companion-first .scene-heading { left: 20px; right: 16px; top: 18px; }
  .companion-first .scene-heading h2 { font-size: 25px; }
  .companion-first .scene-tool span { display: inline; }
  .companion-first .scene-weather { bottom: 13px; right: 15px; font-size: 12px; }
  .companion-first .room-tab { min-height: 112px; padding: 12px 5px; }
  .companion-first .calm-companion { display: flex; flex-direction: column; padding: 27px 26px; gap: 0; }
  .companion-first .companion-avatar { width: 55px; height: 63px; }
  .companion-first .companion-intro h2 { font-size: 28px; }
  .companion-first .calm-companion > .mood { font-size: 16px; }
  .companion-first .calm-companion .scene-bubble { margin-top: 18px; padding: 21px 0 18px; min-height: 0; }
  .companion-first .calm-companion .scene-bubble p,
  .companion-first .calm-companion .scene-bubble.is-greeting p { font-size: 19px; line-height: 1.65; }
  .companion-first .calm-companion .on-his-mind { display: block; padding: 14px 0 0; margin: 0; border: 0; }
  .companion-first .calm-companion .on-his-mind h3 { font-size: 23px; }
  .companion-first .calm-companion .on-his-mind p { margin-bottom: 16px; font-size: 14px; }
  .companion-first .companion-memory { margin-top: 22px; }
  .companion-first .care-bar { gap: 9px; margin-top: 12px; }
  .companion-first .care-bar > button { flex-direction: column; justify-content: center; min-height: 104px; padding: 14px 7px; gap: 9px; text-align: center; }
  .companion-first .care-bar .ico { width: 24px; height: 24px; }
  .companion-first .care-bar span { font-size: 17px; white-space: normal; line-height: 1.35; }
  .companion-first .care-bar small { display: none; }
  .companion-first .house-foot { display: block; padding: 14px 2px; text-align: center; }
  .companion-first .house-foot > span { display: block; }
  .companion-first .house-foot > span:last-child { justify-content: center; margin-top: 5px; font-size: 12px; }
  .companion-first .gentle-note { padding: 22px 8px 26px; }
  .companion-first .gentle-note > p { font-size: 18px; }
  .companion-first .site-footer { flex-wrap: wrap; gap: 13px; padding: 21px 0 24px; }
  .companion-first .site-footer > span:nth-child(2) { margin-left: 0; }
  .companion-first .site-footer > button { margin-left: auto; }
  .companion-first .quiet-visit-panel { flex-direction: column; align-items: flex-start; padding: 20px; gap: 14px; }
  .companion-first #endQuiet { align-self: stretch; }
  .companion-first .reading-bar { flex-wrap: wrap; padding: 18px; gap: 13px; }
  .companion-first .reading-bar > div { flex-basis: calc(100% - 45px); }
  .companion-first .reading-bar #readingClock { margin-right: auto; }
  .companion-first .reading-bar .small-button,
  .companion-first .reading-bar .text-button { font-size: 14px; min-height: 44px; }
  .companion-first .dialog { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .companion-first .shelf-dialog,
  .companion-first .conversation-dialog { padding: 29px 23px; }
  .companion-first .shelf-dialog h2,
  .companion-first .conversation-dialog h2 { font-size: 32px; padding-right: 23px; }
  .companion-first .shelf-links { grid-template-columns: 1fr; gap: 10px; margin: 22px 0; }
  .companion-first .shelf-links > button { min-height: 94px; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 15px; row-gap: 3px; align-items: center; padding: 16px 19px; }
  .companion-first .shelf-links > button > .ico { grid-row: 1/3; }
  .companion-first .shelf-links > button > strong,
  .companion-first .shelf-links > button > small { grid-column: 2; }
  .companion-first .shelf-links > button > span { grid-column: 2; }
  .companion-first .shelf-entry { display: grid; grid-template-columns: 29px minmax(0, 1fr); column-gap: 15px; row-gap: 4px; padding: 16px 19px; }
  .companion-first .shelf-entry > .ico { grid-row: 1/3; margin-top: 9px; margin-bottom: 0; }
  .companion-first .shelf-entry .text-link { display: block; grid-column: 2; padding: 3px 0; min-height: 44px; }
  .companion-first .shelf-entry p { grid-column: 2; margin-top: 0; }
  .companion-first .shelf-corner > summary { min-height: 66px; font-size: 18px; }
  .companion-first .conversation-questions button { font-size: 18px; padding: 15px 16px; }
  .companion-first .conversation-response { padding: 20px; font-size: 21px; }
  .companion-first .collection-dialog .curio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .companion-first .collection-dialog .section-heading { display: block; }
  .companion-first .collection-dialog .section-heading h2 { font-size: 31px; }
  .companion-first.is-quiet .calm-companion .on-his-mind,
  .companion-first.is-reading .calm-companion .on-his-mind,
  .companion-first.is-napping .calm-companion .on-his-mind { display: none; }
  .companion-first.is-napping .care-bar > button { min-height: 66px; flex-direction: row; gap: 13px; }
}
@media (max-width: 400px) {
  .companion-first .wrap { padding-inline: 14px; }
  .companion-first .header-inner { padding-inline: 14px; }
  .companion-first .header-tools { gap: 0; margin-left: 4px; }
  .companion-first .brand-name { font-size: 27px; }
  .companion-first .brand-name small { display: none; }
  .companion-first .brand img { width: 31px; height: 40px; }
  .companion-first .brand { gap: 7px; }
  .companion-first .calm-welcome h1 { font-size: 32px; }
  .companion-first .calm-welcome p { font-size: 16px; }
  .companion-first .scene-heading h2 { font-size: 22px; }
  .companion-first .scene-heading { left: 16px; top: 14px; right: 12px; }
  .companion-first .scene-tool span { display: none; }
  .companion-first .scene-weather { font-size: 12px; max-width: calc(100% - 25px); }
  .companion-first .calm-companion { padding: 25px 21px; }
  .companion-first .companion-intro h2 { font-size: 26px; }
  .companion-first .care-bar span { font-size: 16px; }
  .companion-first .room-tab strong { font-size: 14px; }
  .companion-first .room-tab img { width: 48px; height: 36px; }
  .companion-first .touch-note { font-size: 14px; }
  .companion-first .gentle-note button { margin-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .companion-first *, .companion-first *:before, .companion-first *:after { scroll-behavior: auto; }
}

/* The Between: one lived-in picture, one unfolding page beside it. */
.living-nook {
  --nook-cloth: #4b2c3b;
  --nook-cloth-edge: #704756;
  --nook-page: #fff9ee;
  --nook-page-shade: #f4e9d8;
  --nook-rule: #c9af8c6b;
  --nook-accent: #704253;
  font-size: 16px;
  background: radial-gradient(ellipse at 44% 0, #fff9ee 0, transparent 66%), var(--paper);
}
.living-nook[data-theme="midnight"], [data-theme="midnight"] .living-nook {
  --nook-cloth: #21121e;
  --nook-cloth-edge: #664253;
  --nook-page: #332431;
  --nook-page-shade: #2c202a;
  --nook-rule: #b5977852;
  --nook-accent: #e5b897;
  background: radial-gradient(ellipse at 44% 0, #3a2635 0, transparent 66%), var(--paper);
}
.living-nook .wrap,
.living-nook .header-inner { max-width: 1336px; padding-inline: 34px; }
.living-nook .header-inner { min-height: 76px; padding-block: 11px; gap: 24px; }
.living-nook .brand { gap: 9px; }
.living-nook .brand img { width: 37px; height: 45px; }
.living-nook .brand-name { font-size: 29px; }
.living-nook .brand-name small { font-size: 11px; letter-spacing: .105em; margin-top: 6px; }
.living-nook nav { display: flex; margin-left: auto; margin-right: 10px; gap: 22px; }
.living-nook nav > button,
.living-nook nav > button:last-child { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 0; font-size: 14px; text-align: left; }
.living-nook nav > button > span { min-width: 0; line-height: 1.4; }
.living-nook nav .ico { width: 17px; height: 17px; }
.living-nook .header-tools { display: flex; gap: 2px; margin-left: 0; }
.living-nook .header-tools .icon-button { width: 44px; height: 44px; }
.living-nook .nook-intro { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 23px 2px 24px; }
.living-nook .nook-intro .eyebrow { font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.living-nook .nook-intro h1 { margin: 3px 0 0; font: 400 37px/1.12 var(--serif); letter-spacing: -.045em; }
.living-nook .nook-intro > p { margin: 0; font: italic 16px/1.55 var(--serif); text-align: right; color: var(--muted); }

/* A cloth cover and a fine fold, rather than a collection of cards. */
.living-nook .living-book {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 7px solid var(--nook-cloth);
  border-radius: 10px 12px 12px 10px;
  background: var(--nook-page);
  box-shadow: 0 0 0 1px var(--nook-cloth-edge), 0 3px 0 #dfc9a6, 0 6px 0 var(--nook-cloth), 0 18px 36px var(--shadow);
  isolation: isolate;
}
.living-nook .living-book:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 8px;
  right: 8px;
  height: 1px;
  background: #9479558c;
  pointer-events: none;
}
.living-nook .nook-world { min-width: 0; display: flex; flex-direction: column; background: var(--nook-page); border-radius: 3px 0 0 3px; overflow: hidden; }
.living-nook .scene {
  display: block;
  position: relative;
  grid-area: auto;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 0;
  background: #38201b;
  isolation: isolate;
}
.living-nook .scene-art { position: absolute; inset: 0; grid-area: auto; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; object-position: center; border-radius: 0; animation: none; }
.living-nook .scene.pet-reaction .scene-art { animation: none; }
.living-nook .scene-vignette { position: absolute; inset: 0; background: linear-gradient(180deg, #190b185c, transparent 23%, transparent 85%, #190b183c); pointer-events: none; }
.living-nook .scene-heading { position: absolute; inset: 20px 20px auto; display: flex; align-items: flex-start; justify-content: flex-end; gap: 15px; }
.living-nook .scene-heading h2 { margin: 1px 0 0; font: 400 26px/1.25 var(--serif); letter-spacing: -.03em; text-shadow: 0 2px 7px #210712cc; }
.living-nook .scene-eyebrow { display: none; }
.living-nook .scene-tool { display: inline-flex; flex: 0 0 auto; min-height: 44px; padding: 9px 12px; gap: 6px; font-size: 13px; border-color: #f5dcac66; background: #2c1926d6; }
.living-nook .scene-tool .ico { width: 16px; height: 16px; }
.living-nook .scene-pet { position: absolute; left: 30%; top: 22%; width: 43%; height: 52%; min-height: 0; border-radius: 44%; }
.living-nook .scene-pet:focus-visible { outline: 3px solid #ffe3a7; outline-offset: 3px; background: #ffe8bc10; }
.living-nook .scene-weather { position: absolute; grid-area: auto; inset: auto 16px 10px auto; padding: 0; font: 12px/1.35 var(--sans); color: #fff0d6; text-shadow: 0 1px 6px #180f13; }
.living-nook .room-display { bottom: 19%; right: 17px; gap: 6px; }
.living-nook .scene.hide-spots .room-display { display: none; }
.living-nook .scene-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 18px; min-height: 42px; padding: 9px 23px; border-bottom: 1px solid var(--nook-rule); color: var(--muted); }
.living-nook .pet-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.5; }
.living-nook .pet-hint .ico { width: 14px; height: 14px; color: var(--rust); }
.living-nook .scene-caption .mood { margin: 0; font: italic 13px/1.5 var(--serif); color: var(--muted); }
.living-nook .scene-bubble {
  position: relative;
  inset: auto;
  grid-area: auto;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 115px;
  margin: 0;
  padding: 17px 25px 23px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--ink);
  backdrop-filter: none;
  pointer-events: auto;
  z-index: auto;
}
.living-nook .scene-bubble:before,
.living-nook .scene-bubble:after { display: none; }
.living-nook .scene-bubble .bubble-name { display: block; margin-bottom: 7px; font: 12px/1.4 var(--sans); letter-spacing: .12em; color: var(--nook-accent); }
.living-nook .scene-bubble p,
.living-nook .scene-bubble.is-greeting p { display: block; margin: 0; font: 19px/1.5 var(--serif); letter-spacing: -.012em; -webkit-line-clamp: unset; max-height: none; height: auto; overflow: visible; }
.living-nook .scene-bubble.speak,
.living-nook .scene-bubble.is-speaking { animation: none; box-shadow: none; }
.living-nook .scene-bubble.is-speaking .bubble-name { color: var(--rust); }

/* Traces of the visit belong inside the picture, away from Inkwig's face. */
.living-nook .word-jar { position: absolute; left: 4.1%; bottom: 6.4%; z-index: 5; width: 112px; max-width: 25%; min-height: 84px; padding: 17px 9px 11px; border: 1px solid #f1d79fbd; border-radius: 11px 11px 18px 18px; background: linear-gradient(90deg, #e9be686b, #fae5b2ba 16%, #e5c58dc9 80%, #a46b3a91); box-shadow: inset 3px 0 2px #fff6d045, 2px 5px 8px #20101766; color: #4d302b; text-align: center; transform: rotate(-3deg); pointer-events: none; }
.living-nook .jar-lid { position: absolute; height: 10px; left: 7px; right: 7px; top: -5px; border: 1px solid #66472b; border-radius: 3px; background: repeating-linear-gradient(90deg, #997443 0 3px, #c09a61 3px 5px); box-shadow: 0 2px 1px #7c512b55; }
.living-nook .word-jar small { display: block; font: 10px/1.35 var(--sans); letter-spacing: .035em; }
.living-nook .word-jar strong { display: block; margin-top: 5px; font: italic 17px/1.25 var(--serif); overflow-wrap: anywhere; }
.living-nook .scene-bookmark { position: absolute; left: 50%; bottom: 6.4%; z-index: 5; display: flex; align-items: flex-start; gap: 8px; width: 35%; max-width: 225px; padding: 10px 12px; border: 1px solid #f1d8aa; border-radius: 2px; background: #fcf0d4ee; box-shadow: 0 3px 7px #29121a55; color: #513237; transform: translateX(-50%) rotate(2deg); pointer-events: none; }
.living-nook .scene-bookmark > .ico { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; color: #965944; }
.living-nook .scene-bookmark > span { min-width: 0; }
.living-nook .scene-bookmark strong { display: block; font: italic 14px/1.3 var(--serif); overflow-wrap: anywhere; }
.living-nook .scene-bookmark small { display: block; font: 12px/1.4 var(--sans); margin-top: 3px; color: #765949; overflow-wrap: anywhere; }
.living-nook .scene-memento { position: absolute; bottom: 8%; right: 5.4%; z-index: 5; width: 61px; height: 61px; padding: 4px; background: #f3dfba; border: 1px solid #b5905b; border-radius: 50%; box-shadow: 0 4px 8px #21101f66; transform: rotate(5deg); pointer-events: none; }
.living-nook .scene-memento .curio-sprite { width: 100%; height: 100%; border-radius: 50%; }
.living-nook .word-offering { position: absolute; left: 18%; top: 69%; z-index: 8; max-width: 70%; padding: 7px 14px; border: 1px solid #eacb8e; border-radius: 3px; background: #fff0d2; color: #5e3240; font: italic 23px/1.35 var(--serif); box-shadow: 0 4px 12px #25142155; pointer-events: none; overflow-wrap: anywhere; animation: nook-word-offer 1.75s ease-in-out both; }
@keyframes nook-word-offer { 0% { opacity: 0; transform: translate(-15px, 14px) rotate(-8deg) scale(.7); } 15% { opacity: 1; } 46% { opacity: 1; transform: translate(45px, -38px) rotate(3deg) scale(1); } 80% { opacity: 1; transform: translate(130px, -85px) rotate(-3deg) scale(.7); } 100% { opacity: 0; transform: translate(150px, -100px) scale(.35); } }

/* The right page changes purpose, not merely the wording of a button. */
.living-nook .nook-workbench { position: relative; min-width: 0; padding: 22px 27px 24px 31px; border-left: 1px solid #9479544d; border-radius: 0 4px 4px 0; background: linear-gradient(90deg, #66452e16 0, #fff8e700 22px), linear-gradient(110deg, var(--nook-page), var(--nook-page-shade)); }
.living-nook .nook-workbench:before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--nook-rule); opacity: .6; pointer-events: none; }
.living-nook .nook-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 0 0 12px; margin: 0 0 25px; border-bottom: 1px solid var(--nook-rule); }
.living-nook .nook-tabs > button { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: row; gap: 7px; padding: 10px 5px; min-width: 0; min-height: 44px; border: 1px solid transparent; border-radius: 4px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.living-nook .nook-tabs > button .ico { width: 16px; height: 16px; flex: 0 0 auto; }
.living-nook .nook-tabs > button:hover { color: var(--ink); background: var(--paper-dark); }
.living-nook .nook-tabs > button[aria-selected="true"] { color: #fff1df; background: var(--nook-cloth); border-color: var(--nook-cloth-edge); }
.living-nook .nook-tabs > button[aria-selected="true"]:after { content: ''; position: absolute; bottom: -7px; left: calc(50% - 3px); width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.living-nook .activity-panel { display: flex; flex-direction: column; min-width: 0; min-height: 425px; margin: 0; padding: 0; }
.living-nook .activity-panel > .eyebrow { display: block; margin: 0 0 10px; font: 12px/1.5 var(--sans); letter-spacing: .1em; color: var(--nook-accent); }
.living-nook .activity-panel h2 { margin: 0 0 14px; font: 400 29px/1.17 var(--serif); letter-spacing: -.035em; color: var(--ink); }
.living-nook .activity-panel h2 em { font-weight: 400; }
.living-nook .activity-panel p { margin: 0 0 19px; font-size: 16px; line-height: 1.65; color: var(--muted); overflow-wrap: anywhere; }
.living-nook .activity-panel label { display: block; margin: 0 0 9px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.living-nook .activity-panel label small { margin-left: 5px; font-size: 12px; color: var(--muted); }
.living-nook .activity-panel input,
.living-nook .activity-panel select { min-width: 0; min-height: 46px; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: 16px/1.4 var(--sans); }
.living-nook .activity-panel input::placeholder { color: var(--muted); opacity: .9; }
.living-nook .activity-panel .btn { min-height: 46px; padding: 12px 16px; font-size: 14px; border-radius: 4px; background: var(--nook-cloth); border-color: var(--nook-cloth-edge); color: #fff1df; }
.living-nook .activity-panel .btn:hover { background: #64394c; }
.living-nook .activity-panel .btn.wide { width: 100%; }
.living-nook .activity-panel .small-button { min-height: 44px; padding: 9px 12px; border-color: var(--line); background: var(--surface); color: var(--ink); font-size: 14px; }
.living-nook .activity-panel .text-button,
.living-nook .activity-panel .text-link { min-height: 44px; font-size: 14px; color: var(--nook-accent); text-underline-offset: 4px; }
.living-nook .activity-panel .text-link { align-self: flex-start; padding-block: 10px; }
.living-nook .visit-choices { display: grid; gap: 10px; margin: 4px 0 0; }
.living-nook .visit-choice { position: relative; width: 100%; min-height: 64px; padding: 16px 39px 16px 16px; border: 1px solid var(--nook-rule); border-radius: 4px; background: color-mix(in srgb, var(--surface) 76%, transparent); color: var(--ink); text-align: left; font: 16px/1.5 var(--sans); transition: border-color .15s, background .15s; }
.living-nook .visit-choice:after { content: ''; position: absolute; top: 50%; right: 15px; color: var(--nook-accent); transform: translateY(-50%); }
.living-nook .visit-choice:hover:not(:disabled) { background: var(--surface); border-color: var(--nook-accent); }
.living-nook .visit-choice:disabled { cursor: default; opacity: .52; }
.living-nook .visit-choice.chosen { opacity: 1; border-color: var(--nook-accent); background: var(--paper-dark); }
.living-nook .visit-choice.chosen:after { content: '✓'; font: 16px/1 var(--sans); }
.living-nook .activity-panel .visit-outcome { margin: 20px 0 2px; padding: 1px 0 1px 14px; border-left: 2px solid var(--gold); color: var(--ink); font: 17px/1.5 var(--serif); }
.living-nook .activity-panel .visit-recall { margin: auto 0 0; padding: 23px 0 0; font: italic 14px/1.6 var(--serif); color: var(--muted); }
.living-nook .visit-recall:empty { display: none; }

/* Offering a word has a visible, persistent little result. */
.living-nook .word-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 10px 0 2px; }
.living-nook .word-option { position: relative; min-width: 0; min-height: 79px; padding: 12px 8px; border: 1px solid var(--nook-rule); border-radius: 3px; background: var(--surface); color: var(--ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--line) 55%, transparent); font: italic 17px/1.4 var(--serif); overflow-wrap: anywhere; }
.living-nook .word-option:nth-child(1) { transform: rotate(-2deg); }
.living-nook .word-option:nth-child(3) { transform: rotate(2deg); }
.living-nook .word-option:hover { border-color: var(--nook-accent); background: var(--paper-dark); }
.living-nook .more-words { align-self: center; margin-bottom: 20px; }
.living-nook #wordForm { padding-top: 17px; margin-top: 0; border-top: 1px solid var(--nook-rule); }
.living-nook #wordForm .inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; margin: 0; }
.living-nook #wordForm .inline-form input { width: 100%; min-width: 0; height: 48px; margin: 0; box-sizing: border-box; }
.living-nook #wordForm .inline-form .btn { width: auto; min-width: 76px; height: 48px; min-height: 48px; margin: 0; padding: 10px 16px; align-self: stretch; box-sizing: border-box; }
.living-nook .activity-panel .reply { margin: 17px 0 0; padding: 12px 14px; border-left: 2px solid var(--gold); background: transparent; color: var(--ink); font: 16px/1.6 var(--sans); }
.living-nook .activity-panel .word-flavour { margin: 17px 0 0; font: italic 14px/1.6 var(--serif); }
.living-nook .word-flavour:empty { display: none; }

/* A reading session is an actual place to pause and leave a bookmark. */
.living-nook .read-setup > p { margin-bottom: 22px; }
.living-nook .duration-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 20px; }
.living-nook .duration-options > button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; padding: 11px 5px; min-height: 71px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); }
.living-nook .duration-options > button strong { font: 400 14px/1.4 var(--sans); }
.living-nook .duration-options > button small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.living-nook .duration-options > button.selected,
.living-nook .duration-options > button[aria-pressed="true"] { background: var(--paper-dark); border-color: var(--nook-accent); box-shadow: inset 0 -2px var(--nook-accent); }
.living-nook .reading-bar { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 7px 0 0; padding: 25px 20px 20px; border: 1px solid var(--nook-rule); border-radius: 6px; background: color-mix(in srgb, var(--surface) 65%, transparent); text-align: center; }
.living-nook .reading-bar > div { flex-basis: auto; width: 100%; }
.living-nook .reading-book-icon { width: 34px; height: 34px; margin: 0 auto 17px; color: var(--nook-accent); }
.living-nook .reading-bar #readingBook { display: block; max-width: 100%; font: 400 22px/1.35 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.living-nook .reading-bar #readingHint { margin: 9px 0 0; font-size: 14px; }
.living-nook .reading-bar #readingClock { display: block; margin: 22px 0; color: var(--nook-accent); font: 400 36px/1.2 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.living-nook .reading-controls { display: grid; grid-template-columns: 1fr 1.7fr; gap: 8px; }
.living-nook .reading-controls .btn,
.living-nook .reading-controls .small-button { width: 100%; min-height: 44px; padding: 10px 8px; font-size: 14px; }
.living-nook .reading-finish { padding: 19px 0 0; border-top: 1px solid var(--nook-rule); }
.living-nook .reading-finish #readingSummary { font: 19px/1.55 var(--serif); color: var(--ink); margin-bottom: 22px; }
.living-nook .reading-finish-actions { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 17px; }

/* The room page is the sole home for light, weather, and bedtime. */
.living-nook .room-panel h2 { font-size: 27px; margin-bottom: 19px; }
.living-nook .room-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; padding: 0; background: none; border: 0; }
.living-nook .room-tab,
.living-nook .room-tab + .room-tab { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; min-height: 64px; padding: 7px; border: 1px solid var(--nook-rule); border-radius: 4px; text-align: left; background: var(--surface); color: var(--ink); }
.living-nook .room-tab img { width: 50px; height: 43px; flex: 0 0 50px; object-fit: cover; border-radius: 2px; }
.living-nook .room-tab strong { min-width: 0; font: 400 14px/1.35 var(--sans); }
.living-nook .room-tab.selected { border-color: var(--nook-accent); background: var(--paper-dark); box-shadow: none; }
.living-nook .room-tab:hover { background: var(--paper-dark); }
.living-nook .room-tab small,
.living-nook .room-tab [data-found] { display: none; }
.living-nook .room-atmosphere { border-top: 1px solid var(--nook-rule); border-bottom: 1px solid var(--nook-rule); padding: 5px 0; }
.living-nook .room-control,
.living-nook .activity-panel label.room-control { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 53px; margin: 0; padding: 4px 0; font-size: 14px; line-height: 1.4; }
.living-nook .room-control > span { min-width: 0; }
.living-nook .room-control > button { flex: 0 0 auto; min-width: 126px; }
.living-nook .room-control .ico { width: 16px; height: 16px; }
.living-nook .room-control select { width: auto; max-width: 56%; min-width: 146px; min-height: 44px; font-size: 14px; padding: 10px 8px; }
.living-nook .room-keepsake { display: flex; align-items: center; gap: 13px; margin: 17px 0 0; }
.living-nook #roomKeepsake:empty { display: none; }
.living-nook #roomKeepsake { flex: 0 0 45px; }
.living-nook #roomKeepsake .curio-sprite { width: 45px; height: 45px; border-radius: 50%; border: 1px solid var(--nook-rule); }
.living-nook .room-keepsake #keepsakeCaption { margin: 0; font: italic 14px/1.5 var(--serif); }
.living-nook .activity-panel .room-preference { margin: 10px 0 0; font-size: 12px; line-height: 1.5; }
.living-nook .room-preference:empty { display: none; }
.living-nook .bedtime-toggle { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; width: 100%; margin-top: 19px; padding: 10px 12px; border: 1px solid var(--nook-rule); border-radius: 4px; color: var(--nook-accent); background: transparent; font-size: 14px; }
.living-nook .bedtime-toggle:hover { background: var(--paper-dark); }
.living-nook .bedtime-toggle .ico { width: 17px; height: 17px; }
.living-nook .bedtime-toggle small { display: none; }

/* Presence may quiet the scene; it never takes away the next choice. */
.living-nook.is-reading .nook-tabs,
.living-nook.is-napping .nook-tabs,
.living-nook.is-quiet .nook-tabs { display: grid; }
.living-nook.is-reading .activity-panel:not([hidden]),
.living-nook.is-napping .activity-panel:not([hidden]),
.living-nook.is-quiet .activity-panel:not([hidden]) { display: flex; }
.living-nook.is-napping .bedtime-toggle { display: flex; background: var(--nook-cloth); border-color: var(--nook-cloth-edge); color: #fff1df; }
.living-nook .house-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 20px; padding: 18px 2px 17px; font-size: 12px; line-height: 1.5; text-align: left; }
.living-nook #memoryLine { font: italic 14px/1.5 var(--serif); }
.living-nook #saveNote { margin-top: 0; font-size: 12px; color: var(--muted); }
.living-nook .site-footer { min-height: 73px; padding: 15px 2px 24px; gap: 18px; border-top-color: var(--nook-rule); }
.living-nook .footer-signature { font: italic 14px/1.5 var(--serif); }
.living-nook .footer-signature em { font-size: 20px; margin-left: 6px; }
.living-nook .site-footer > span:nth-child(2) { margin-left: auto; text-align: right; font-size: 12px; line-height: 1.6; }
.living-nook .site-footer small { font-size: 11px; }
.living-nook #secretInk { flex: 0 0 auto; width: 44px; min-height: 44px; font-size: 22px; color: var(--gold); }

@media (max-width: 1100px) {
  .living-nook .wrap, .living-nook .header-inner { padding-inline: 25px; }
  .living-nook .living-book { grid-template-columns: minmax(0, 1.32fr) minmax(350px, 1fr); }
  .living-nook .nook-workbench { padding: 19px 20px 23px 23px; }
  .living-nook .nook-tabs { margin-bottom: 22px; }
  .living-nook .scene-heading { inset: 16px 16px auto; }
  .living-nook .scene-heading h2 { font-size: 23px; }
  .living-nook .scene-tool { padding: 9px 10px; }
  .living-nook .scene-bubble { padding: 17px 22px 23px; }
  .living-nook .scene-caption { padding-inline: 20px; }
  .living-nook .scene-memento { width: 49px; height: 49px; }
  .living-nook .word-jar { width: 94px; min-height: 73px; padding: 13px 7px 9px; }
  .living-nook .word-jar strong { font-size: 15px; }
  .living-nook .scene-bookmark { width: 36%; padding: 8px 9px; }
  .living-nook .scene-bookmark > .ico { display: none; }
}
@media (max-width: 840px) {
  .living-nook .wrap, .living-nook .header-inner { padding-inline: 24px; }
  .living-nook .header-inner { min-height: 73px; gap: 16px; }
  .living-nook .nook-intro { padding: 22px 0; }
  .living-nook .nook-intro h1 { font-size: 34px; }
  .living-nook .nook-intro > p { font-size: 15px; }
  .living-nook .living-book { display: grid; grid-template-columns: minmax(0, 1fr); border-width: 6px; }
  .living-nook .nook-world { border-radius: 3px 3px 0 0; }
  .living-nook .scene { display: block; flex: 0 0 auto; width: 100%; min-height: 0; aspect-ratio: 3/2; }
  .living-nook .scene-art { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; }
  .living-nook .scene-heading { inset: 19px 19px auto; }
  .living-nook .scene-heading h2 { font-size: 26px; }
  .living-nook .scene-caption { padding: 10px 24px; }
  .living-nook .scene-bubble { min-height: 0; padding: 17px 25px 25px; }
  .living-nook .scene-bubble p, .living-nook .scene-bubble.is-greeting p { font-size: 19px; line-height: 1.55; }
  .living-nook .nook-workbench { padding: 22px 25px 28px; border-left: 0; border-top: 1px solid var(--nook-rule); background: linear-gradient(180deg, #66452e10, #fff8e700 14px), linear-gradient(110deg, var(--nook-page), var(--nook-page-shade)); }
  .living-nook .nook-workbench:before { inset: 4px 0 auto; width: 100%; height: 1px; }
  .living-nook .nook-tabs { margin: 0 0 26px; padding-bottom: 13px; gap: 6px; }
  .living-nook .nook-tabs > button { min-height: 48px; font-size: 15px; gap: 8px; }
  .living-nook .activity-panel { min-height: 0; }
  .living-nook .activity-panel h2 { font-size: 29px; }
  .living-nook .activity-panel p { font-size: 16px; }
  .living-nook .activity-panel .visit-recall { margin-top: 6px; padding-top: 19px; font-size: 14px; }
  .living-nook .visit-choice { min-height: 64px; font-size: 16px; }
  .living-nook .word-options { gap: 12px; }
  .living-nook .word-option { min-height: 80px; font-size: 19px; }
  .living-nook .duration-options > button strong { font-size: 15px; }
  .living-nook .duration-options > button small { font-size: 12px; }
  .living-nook .room-tab { min-height: 70px; }
  .living-nook .room-tab img { width: 62px; height: 48px; flex-basis: 62px; }
  .living-nook .room-tab strong { font-size: 15px; }
  .living-nook .room-control select { max-width: 62%; min-width: 185px; }
  .living-nook .room-control > button { min-width: 185px; }
  .living-nook .room-keepsake #keepsakeCaption { font-size: 15px; }
  .living-nook .word-jar { width: 112px; min-height: 84px; padding: 17px 9px 11px; }
  .living-nook .word-jar strong { font-size: 17px; }
  .living-nook .scene-memento { width: 60px; height: 60px; }
  .living-nook .scene-bookmark { max-width: 220px; padding: 10px 12px; }
  .living-nook .scene-bookmark > .ico { display: block; }
}
@media (max-width: 520px) {
  .living-nook .wrap, .living-nook .header-inner { padding-inline: 15px; }
  .living-nook .header-inner { min-height: 69px; gap: 8px; }
  .living-nook .brand { gap: 6px; }
  .living-nook .brand img { width: 30px; height: 40px; }
  .living-nook .brand-name { font-size: 25px; }
  .living-nook .brand-name small { font-size: 9px; margin-top: 5px; letter-spacing: .085em; }
  .living-nook nav { display: flex; margin: 0 1px 0 auto; }
  .living-nook nav > button, .living-nook nav > button:last-child { font-size: 13px; gap: 5px; padding: 5px; }
  .living-nook nav .ico { display: none; }
  .living-nook .header-tools { gap: 0; }
  .living-nook .header-tools .icon-button { width: 40px; min-width: 40px; height: 44px; }
  .living-nook .nook-intro { align-items: flex-end; gap: 12px; padding: 20px 1px; }
  .living-nook .nook-intro .eyebrow { font-size: 10px; letter-spacing: .13em; }
  .living-nook .nook-intro h1 { font-size: 31px; }
  .living-nook .nook-intro > p { max-width: 160px; font-size: 13px; line-height: 1.5; }
  .living-nook .living-book { border-width: 5px; border-radius: 7px; }
  .living-nook .scene { aspect-ratio: 3/2; min-height: 0; }
  .living-nook .scene-heading { inset: 12px 11px auto; gap: 9px; }
  .living-nook .scene-heading h2 { margin-top: 4px; font-size: 20px; }
  .living-nook .scene-tool { min-height: 44px; padding: 8px 9px; font-size: 12px; gap: 5px; }
  .living-nook .scene-tool .ico { width: 14px; height: 14px; }
  .living-nook .scene-weather { right: 10px; bottom: 6px; font-size: 11px; }
  .living-nook .scene-caption { gap: 3px 12px; padding: 9px 15px; }
  .living-nook .pet-hint { font-size: 12px; gap: 6px; }
  .living-nook .scene-caption .mood { font-size: 12px; }
  .living-nook .scene-bubble { padding: 16px 17px 22px; }
  .living-nook .scene-bubble .bubble-name { font-size: 12px; }
  .living-nook .scene-bubble p, .living-nook .scene-bubble.is-greeting p { font-size: 19px; line-height: 1.5; }
  .living-nook .nook-workbench { padding: 17px 17px 24px; }
  .living-nook .nook-tabs { gap: 3px; margin-bottom: 23px; }
  .living-nook .nook-tabs > button { min-height: 47px; gap: 6px; padding: 10px 4px; font-size: 14px; }
  .living-nook .nook-tabs > button .ico { width: 14px; height: 14px; }
  .living-nook .activity-panel h2 { font-size: 28px; }
  .living-nook .activity-panel > .eyebrow { font-size: 12px; letter-spacing: .08em; }
  .living-nook .activity-panel p { font-size: 16px; }
  .living-nook .visit-choice { padding: 15px 34px 15px 13px; font-size: 16px; }
  .living-nook .word-options { gap: 7px; }
  .living-nook .word-option { min-height: 78px; font-size: 17px; padding-inline: 6px; }
  .living-nook .duration-options { gap: 6px; }
  .living-nook .duration-options > button { padding-inline: 4px; }
  .living-nook .duration-options > button strong { font-size: 14px; }
  .living-nook .duration-options > button small { font-size: 12px; }
  .living-nook .room-tabs { gap: 7px; }
  .living-nook .room-tab, .living-nook .room-tab + .room-tab { gap: 7px; min-height: 65px; padding: 6px; }
  .living-nook .room-tab img { width: 42px; height: 43px; flex-basis: 42px; }
  .living-nook .room-tab strong { font-size: 14px; }
  .living-nook .room-control, .living-nook .activity-panel label.room-control { font-size: 14px; gap: 10px; }
  .living-nook .room-control select { min-width: 0; max-width: 55%; width: 55%; font-size: 13px; }
  .living-nook .room-control > button { min-width: 0; width: 55%; font-size: 14px; }
  .living-nook .word-jar { left: 3.3%; bottom: 8%; width: 83px; min-height: 62px; padding: 12px 6px 8px; border-radius: 9px 9px 13px 13px; }
  .living-nook .word-jar small { font-size: 9px; }
  .living-nook .word-jar strong { margin-top: 4px; font-size: 14px; }
  .living-nook .scene-bookmark { left: 50%; bottom: 7.4%; width: 39%; padding: 7px 8px; }
  .living-nook .scene-bookmark > .ico { display: none; }
  .living-nook .scene-bookmark strong { font-size: 13px; line-height: 1.25; }
  .living-nook .scene-bookmark small { font-size: 11px; line-height: 1.35; margin-top: 2px; }
  .living-nook .scene-memento { width: 40px; height: 40px; bottom: 11%; right: 4.5%; padding: 3px; }
  .living-nook .word-offering { font-size: 19px; padding: 6px 11px; }
  .living-nook .house-foot { gap: 5px; padding: 17px 1px 15px; }
  .living-nook #memoryLine { width: 100%; font-size: 14px; }
  .living-nook #saveNote { font-size: 11px; }
  .living-nook .site-footer { position: relative; display: flex; justify-content: flex-start; align-items: flex-start; flex-direction: column; gap: 8px; padding: 17px 46px 25px 1px; text-align: left; }
  .living-nook .site-footer > span:nth-child(2) { margin: 0; text-align: left; font-size: 12px; }
  .living-nook #secretInk { position: absolute; right: 0; top: 14px; }
}
@media (max-width: 360px) {
  .living-nook .wrap, .living-nook .header-inner { padding-inline: 10px; }
  .living-nook .brand img { width: 26px; }
  .living-nook .brand-name { font-size: 23px; }
  .living-nook .brand-name small { font-size: 8px; }
  .living-nook .nook-intro > p { max-width: 131px; font-size: 12px; }
  .living-nook .nook-intro h1 { font-size: 28px; }
  .living-nook .nook-workbench { padding-inline: 13px; }
  .living-nook .nook-tabs > button { gap: 4px; }
  .living-nook .scene-heading h2 { max-width: 135px; font-size: 19px; }
  .living-nook .scene-tool { padding-inline: 7px; }
  .living-nook .room-tab img { width: 36px; flex-basis: 36px; }
  .living-nook .room-tab strong { font-size: 13px; }
}
.living-nook.reduce-motion .word-offering { animation: none; left: 38%; top: 58%; font-size: 18px; }

/* The category menus share the illustrated cards used by Games. */
.living-nook .category-dialog { width: 1040px; padding: 36px; }
.living-nook .category-dialog > h2 { margin-top: 8px; padding-right: 18px; font-size: 36px; }
.living-nook .category-dialog > p { max-width: 760px; margin: 14px 0 25px; font-size: 16px; }
.living-nook .category-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.living-nook .category-hub-card { color: var(--ink); }
.living-nook .category-hub-card:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
.living-nook .category-hub-card .game-hub-art { display: block; }
.living-nook .game-hub-art img { object-position: var(--menu-art-position, center); }
.living-nook .game-hub-art img[data-art="card-questions"] { --menu-art-position: 56% center; }
.living-nook .category-card-title { display: block; font: 400 27px/1.15 var(--serif); letter-spacing: -.035em; }
.living-nook .category-card-description { display: block; margin: 12px 0 19px; color: var(--muted); font: 16px/1.65 var(--sans); }
.living-nook .category-hub-card .game-hub-cta { display: block; margin-top: auto; padding-top: 14px; line-height: 1.5; }
.living-nook .category-links-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.living-nook .category-links-stories .category-hub-card { display: grid; grid-template-columns: 32% minmax(0, 1fr); }
.living-nook .category-links-stories .game-hub-art { height: 100%; min-height: 238px; aspect-ratio: auto; }
.living-nook .category-links-stories .game-hub-tag { left: 13px; bottom: 15px; }
.living-nook .category-links-stories .category-card-title { font-size: 25px; }
.living-nook .category-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font: 14px/1.5 var(--sans); }
.living-nook .category-foot .materials-line { margin: 0; gap: 20px; }
.living-nook .world-back { display: block; min-height: 44px; margin: -8px 40px 10px 0; padding: 6px 0; color: var(--rust); text-align: left; text-decoration: underline; text-underline-offset: 4px; font: 14px/1.4 var(--sans); }
@media (max-width: 1100px) {
  .living-nook .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 3px; padding-block: 9px 0; }
  .living-nook .brand { grid-column: 1; grid-row: 1; }
  .living-nook .header-tools { grid-column: 2; grid-row: 1; margin: 0; justify-content: flex-end; }
  .living-nook nav { display: grid; grid-column: 1/-1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 6px 16px; margin: 0; border-top: 1px solid var(--line); }
  .living-nook nav > button, .living-nook nav > button:last-child { justify-content: center; min-height: 48px; padding: 8px 2px; gap: 8px; font-size: 14px; white-space: normal; }
  .living-nook nav .ico { display: block; width: 16px; height: 16px; }
}
@media (max-width: 700px) {
  .living-nook nav { grid-template-columns: repeat(4, minmax(44px, 1fr)); gap: 8px; padding-block: 4px; }
  .living-nook nav > button, .living-nook nav > button:last-child { position: relative; justify-content: center; min-height: 44px; padding: 10px; border-radius: 7px; }
  .living-nook nav > button > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .living-nook nav > button:hover, .living-nook nav > button:focus-visible { background: var(--paper-dark); }
  .living-nook nav .ico { display: block; width: 22px; height: 22px; }
  .living-nook .header-tools .icon-button { width: 44px; min-width: 44px; }
  .living-nook .category-dialog { width: calc(100% - 24px); padding: 29px 21px; }
  .living-nook .category-dialog > h2 { font-size: 31px; }
  .living-nook .category-links, .living-nook .category-links-stories { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .living-nook .category-hub-card, .living-nook .category-links-stories .category-hub-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); }
  .living-nook .category-hub-card .game-hub-art, .living-nook .category-links-stories .game-hub-art { min-height: 225px; }
  .living-nook .category-hub-card .game-hub-tag { left: 13px; right: 10px; bottom: 14px; writing-mode: horizontal-tb; font-size: 11px; }
  .living-nook .category-card-title { font-size: 25px; }
  .living-nook .category-card-description { margin-top: 10px; }
  .living-nook .category-foot .materials-line { gap: 16px; }
}
@media (max-width: 420px) {
  .living-nook .category-dialog { padding: 28px 17px 22px; }
  .living-nook .category-hub-card, .living-nook .category-links-stories .category-hub-card { grid-template-columns: minmax(0, 1fr); }
  .living-nook .category-hub-card .game-hub-art, .living-nook .category-links-stories .game-hub-art { height: 138px; min-height: 0; }
  .living-nook .category-hub-card .game-hub-art img { object-position: var(--menu-art-position, center); }
  .living-nook .category-hub-card .game-hub-copy { padding: 19px 18px; }
  .living-nook .category-hub-card .game-hub-tag { left: 18px; bottom: 12px; font-size: 12px; }
  .living-nook .category-hub-card .game-hub-cta { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .living-nook .category-hub-card { transition: none; }
  .living-nook .category-hub-card:hover { transform: none; }
  .living-nook .word-offering { animation: none; left: 38%; top: 58%; font-size: 18px; }
  .living-nook .scene-particles *, .living-nook .scene.is-tasting *, .living-nook .word-option { animation: none !important; transition: none !important; }
}

/* Readory is the public reading home; The Between is its curator's secret room. */
/* Keep the Readory invitation at the viewport edge without covering the page. */
:root { --readory-footer-height: calc(58px + env(safe-area-inset-bottom, 0px)); }
html { scroll-padding-bottom: calc(var(--readory-footer-height) + 20px); }
body.living-nook { padding-bottom: var(--readory-footer-height); }
.readory-ribbon { position: fixed; inset: auto 0 0; z-index: 45; background: #452b38; color: #f2e9dd; border-top: 1px solid #c4a56a55; box-shadow: 0 -2px 12px #2215220a; }
.readory-ribbon-inner { max-width: 1336px; min-height: 58px; margin: auto; padding: 7px max(34px, env(safe-area-inset-right, 0px)) calc(7px + env(safe-area-inset-bottom, 0px)) max(34px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.readory-ribbon-brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; }
.readory-ribbon-brand img { display: block; width: 94px; height: auto; }
.readory-ribbon-inner > p { margin: 0; max-width: 55ch; color: #d9cbc8; font: 13px/1.5 var(--sans); text-align: center; }
.readory-ribbon-link { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 44px; padding: 8px 10px; border-radius: 3px; color: #efe0c5; font: 500 14px/1.4 var(--sans); text-decoration: underline; text-decoration-color: #c4a56a88; text-underline-offset: 4px; }
.readory-ribbon-link:hover { color: #fff5e5; text-decoration-color: currentColor; }
.readory-ribbon a:focus-visible { outline: 3px solid #edd3a0; outline-offset: 3px; }
.living-nook .toasts { bottom: calc(var(--readory-footer-height) + 16px); }

.readory-portal { --readory-preview-paper: #f4f2e7; --readory-preview-ink: #34232f; --readory-preview-muted: #766565; --readory-preview-line: #d8d0c4; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 44px; margin: 30px 0 38px; padding: 40px; background: radial-gradient(ellipse at 8% 10%, #76505d6b, transparent 70%), #452b38; color: #fff3df; border: 1px solid #8c6256; border-radius: 12px; box-shadow: 0 10px 25px #34232f12; }
.readory-portal-copy { min-width: 0; }
.readory-portal .eyebrow { color: #e2c797; font-size: 12px; letter-spacing: .14em; }
.readory-portal-wordmark { display: block; width: 242px; max-width: 90%; height: auto; margin: 16px 0 6px; }
.readory-portal h2 { margin: 0 0 17px; font: 400 34px/1.2 var(--serif); letter-spacing: -.025em; }
.readory-portal h2 em { color: #e5c893; }
.readory-portal-copy > p { margin: 0; max-width: 45ch; color: #eadbcb; font: 16px/1.8 var(--sans); }
.readory-features { display: grid; gap: 17px; list-style: none; margin: 25px 0 27px; padding: 0; }
.readory-features > li { display: flex; align-items: flex-start; gap: 13px; }
.readory-features .ico { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 3px; color: #ddbd83; }
.readory-features strong { display: block; color: #fff3df; font: 500 16px/1.5 var(--sans); }
.readory-features span { display: block; margin-top: 2px; color: #dfcfc2; font: 14px/1.65 var(--sans); }
.readory-portal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 18px; }
.readory-enter { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 24px; border: 1px solid #f0d9a7; border-radius: 5px; background: #e9ce97; color: #34232f; font: 600 15px/1.4 var(--sans); transition: background .2s; }
.readory-enter:hover { background: #f3dfb6; }
.readory-enter:focus-visible { outline: 3px solid #fff4d8; outline-offset: 4px; }
.readory-portal-actions > span { color: #e3cfbc; font: italic 15px/1.5 var(--serif); }

.readory-preview { min-width: 0; width: 100%; margin: 0; padding: 26px 24px 22px; background: var(--readory-preview-paper); color: var(--readory-preview-ink); border: 1px solid var(--readory-preview-line); border-radius: 9px; box-shadow: 8px 14px 28px #1a0b172b; }
.readory-preview-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--readory-preview-muted); }
.readory-preview-top > span:first-child { font: 12px/1.5 var(--mono); letter-spacing: .08em; }
.readory-preview-top > span:last-child { font: 12px/1.5 var(--sans); }
.readory-preview h3 { margin: 18px 0 24px; color: var(--readory-preview-ink); font: 400 28px/1.2 var(--serif); letter-spacing: -.025em; }
.readory-preview-books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.readory-preview-book { min-width: 0; }
.readory-shelf-label { display: block; margin-bottom: 12px; color: var(--readory-preview-muted); font: 13px/1.4 var(--sans); white-space: nowrap; }
.readory-book-cover { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 200px; aspect-ratio: 2 / 3; padding: 18px 10px; border-left: 5px solid #0003; border-radius: 2px 5px 5px 2px; background: linear-gradient(115deg, #0003, transparent 75%), var(--cover-color); color: #fff2d4; text-align: center; box-shadow: 3px 5px 9px #34232f24; }
.readory-book-cover:before { content: ''; position: absolute; inset: 8px; border: 1px solid #e9d3a46b; border-radius: 1px; pointer-events: none; }
.readory-book-cover:after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0003, transparent 5%, #ffffff0d 8%, transparent 11%); pointer-events: none; }
.readory-book-cover strong { position: relative; font: 400 22px/1.16 Georgia, serif; }
.readory-cover-ornament { position: relative; font: 28px/1 Georgia, serif; color: #f2d7a4; }
.readory-book-cover > .ico { width: 28px; height: 28px; color: #f2d7a4; }
.readory-cover-rule { width: 32px; border-top: 1px solid #f2d7a4; margin-top: 8px; }
.readory-cover-pride { --cover-color: #71806d; }
.readory-cover-garden { --cover-color: #497565; }
.readory-cover-women { --cover-color: #9d6357; }
.readory-book-author { display: block; margin-top: 13px; color: var(--readory-preview-muted); font: 13px/1.5 var(--sans); }
.readory-preview figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 13px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--readory-preview-line); color: var(--readory-preview-muted); font: 13px/1.5 var(--sans); }
.site-footer > span a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }

[data-theme="midnight"] .readory-ribbon { background: #21121e; }
[data-theme="midnight"] .readory-portal { --readory-preview-paper: #2c2739; --readory-preview-ink: #f4ecdd; --readory-preview-muted: #c9bac4; --readory-preview-line: #665465; background: radial-gradient(ellipse at 8% 10%, #6240524d, transparent 70%), #251923; border-color: #795466; }

@media (max-width: 1050px) {
 .readory-ribbon-inner > p { max-width: 310px; }
 .readory-portal { gap: 28px; padding: 30px; }
 .readory-portal h2 { font-size: 30px; }
 .readory-preview { padding: 24px 18px 20px; }
 .readory-preview-books { gap: 12px; }
 .readory-book-cover { min-height: 185px; }
 .readory-book-cover strong { font-size: 20px; }
}
@media (max-width: 820px) {
 .readory-portal { grid-template-columns: minmax(0, 1fr); }
 .readory-portal-copy > p { max-width: 58ch; }
 .readory-preview { max-width: 580px; margin: 0 auto; }
}
@media (max-width: 700px) {
 .readory-ribbon-inner { min-height: 52px; gap: 12px; padding: 4px max(16px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
 .readory-ribbon-brand img { width: 88px; }
 .readory-ribbon-inner > p { display: none; }
 .readory-ribbon-link { padding: 8px 10px; }
 .readory-portal { margin: 24px 0 28px; padding: 27px 20px; gap: 26px; }
 .readory-portal-wordmark { width: 214px; }
 .readory-portal h2 { font-size: 29px; }
 .readory-features { margin-block: 22px; gap: 15px; }
 .readory-preview { padding: 22px 17px 19px; }
 .readory-preview h3 { margin: 16px 0 22px; font-size: 25px; }
 .readory-preview-books { gap: 10px; }
 .readory-book-cover { min-height: 160px; padding: 14px 8px; }
 .readory-book-cover strong { font-size: 18px; }
 .readory-shelf-label { font-size: 12px; }
 .readory-book-author { font-size: 13px; }
 .readory-preview figcaption { justify-content: flex-start; }
}
@media (max-width: 380px) {
 .readory-portal { padding-inline: 15px; }
 .readory-preview { padding-inline: 12px; }
 .readory-preview-books { gap: 8px; }
 .readory-book-cover { min-height: 151px; padding-inline: 5px; }
 .readory-book-cover strong { font-size: clamp(14px, 4vw, 16px); }
}
@media (prefers-reduced-motion: reduce) {
 .readory-ribbon-link, .readory-enter { transition: none; }
}
/* Let the introduction breathe on small screens. */
.living-nook .nook-intro-copy > span { display: block; }
.living-nook .nook-intro-copy > span + span { margin-top: .15em; }
@media (max-width: 700px) {
  .living-nook .nook-intro { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 1px 22px; }
  .living-nook .nook-intro > p { width: 100%; max-width: 38ch; text-align: left; font-size: 16px; line-height: 1.6; }
  .living-nook .nook-intro-copy > span + span { margin-top: .2em; }
}

/* Persistent navigation, shared lettering, and a quieter closing note. */
:root { --inkwig-wordmark-size: 32px; --inkwig-header-height: 80px; --readory-footer-height: calc(58px + env(safe-area-inset-bottom, 0px)); }
html { scroll-padding-top: calc(var(--inkwig-header-height) + 16px); }
.living-nook .site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--nook-rule); box-shadow: 0 3px 16px #402b2410; }
.living-nook .header-inner { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; min-height: 80px; padding: 10px max(34px, env(safe-area-inset-right, 0px)) 10px max(34px, env(safe-area-inset-left, 0px)); gap: 24px; }
.living-nook .brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; margin: 0; }
.living-nook .brand img { width: 42px; height: 52px; flex: 0 0 auto; object-fit: contain; }
.living-nook .brand-name { display: block; color: var(--ink); font: 700 var(--inkwig-wordmark-size)/1 var(--serif); font-style: normal; letter-spacing: -.055em; }
.living-nook .brand-name small { display: block; margin-top: 6px; color: var(--muted); font: 12px/1.35 var(--mono); letter-spacing: .075em; white-space: nowrap; }
.living-nook .header-tools { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 4px; margin: 0; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; }
.living-nook .header-tools .icon-button { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: transparent; color: var(--ink); }
.living-nook .header-tools .icon-button:hover { background: var(--paper-dark); }
.living-nook .header-tools .icon-button[aria-pressed="true"] { background: var(--wine); color: #fff3df; }
.living-nook .header-tools .ico { display: block; width: 21px; height: 21px; margin: 0; }
.living-nook .header-tools .icon-button:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

.readory-ribbon { border-top: 1px solid var(--nook-rule); box-shadow: 0 -4px 20px #22152214; }
.living-nook .site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; justify-content: normal; gap: 24px; margin: 0; min-height: 0; padding: 26px 4px 32px; text-align: left; border-top: 1px solid var(--nook-rule); }
.living-nook #secretInk { position: static; inset: auto; display: grid; place-items: center; grid-column: 3; grid-row: 1; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--rust); font-size: 26px; line-height: 1; }
.living-nook #secretInk:hover { background: var(--paper-dark); }
.living-nook .footer-signoff { min-width: 0; }
.living-nook .footer-signature { display: block; width: auto; margin: 6px 0 0; color: var(--muted); font: italic 15px/1.5 var(--serif); letter-spacing: 0; }
.living-nook .footer-credit { margin: 0; color: var(--muted); font: 13px/1.6 var(--sans); text-align: right; }

@media (max-width: 700px) {
  :root { --inkwig-wordmark-size: 28px; --inkwig-header-height: 72px; --readory-footer-height: calc(52px + env(safe-area-inset-bottom, 0px)); }
  .living-nook .header-inner { min-height: 72px; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); gap: 12px; }
  .living-nook .brand { gap: 9px; }
  .living-nook .brand img { width: 34px; height: 46px; }
  .living-nook .brand-name small { font-size: 11px; margin-top: 5px; letter-spacing: .045em; }
  .living-nook .site-footer { grid-template-columns: minmax(0, 1fr) 44px; gap: 8px 16px; padding: 24px 2px 30px; }
  .living-nook #secretInk { grid-column: 2; grid-row: 1; width: 44px; height: 44px; min-height: 44px; }
  .living-nook .footer-signoff { grid-column: 1; grid-row: 1; }
  .living-nook .footer-signature { margin-top: 5px; font-size: 15px; }
  .living-nook .footer-credit { display: none; }
}

/* The four illustrated categories unfold in the page, beneath Inkwig's room. */
.living-nook .activity-shelf { margin: 28px 0 0; scroll-margin-top: calc(var(--inkwig-header-height) + 16px); }
.living-nook .activity-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 12px; }
.living-nook .activity-toggle { display: flex; flex-direction: column; width: 100%; min-width: 0; min-height: 0; padding: 0; overflow: hidden; border: 1px solid var(--nook-rule); border-radius: 7px; background: var(--nook-page); color: var(--ink); text-align: left; box-shadow: 0 3px 0 var(--nook-page-shade), 0 4px 0 var(--nook-rule), 0 7px 16px var(--shadow); transition: border-color .18s ease, box-shadow .18s ease; }
.living-nook .activity-art { position: relative; display: block; flex: 0 0 auto; width: 100%; aspect-ratio: 3 / 1; overflow: hidden; border-bottom: 1px solid var(--nook-rule); background: var(--nook-page-shade); }
.living-nook .activity-art > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.living-nook .activity-label { display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; gap: 8px; flex: 1 0 auto; width: 100%; min-width: 0; min-height: 82px; padding: 13px 12px 15px; background: var(--nook-page); transition: background .18s ease, color .18s ease; }
.living-nook .activity-copy { display: block; min-width: 0; }
.living-nook .activity-title { display: block; color: inherit; font: 400 24px/1.1 var(--serif); letter-spacing: -.035em; }
.living-nook .activity-subtitle { display: block; margin-top: 4px; color: var(--muted); font: italic 14px/1.35 var(--serif); letter-spacing: 0; }
.living-nook .activity-chevron { display: block; width: 16px; height: 16px; margin: 0; color: var(--nook-accent); transition: transform .18s ease, color .18s ease; }
.living-nook .activity-toggle:hover { border-color: var(--nook-cloth-edge); box-shadow: 0 3px 0 var(--nook-page-shade), 0 4px 0 var(--nook-cloth-edge), 0 7px 16px var(--shadow); }
.living-nook .activity-toggle:hover .activity-label { background: var(--nook-page-shade); }
.living-nook .activity-toggle[aria-expanded="true"] { border-color: var(--nook-cloth-edge); }
.living-nook .activity-toggle[aria-expanded="true"] .activity-label { background: var(--nook-cloth); color: #fff3df; }
.living-nook .activity-toggle[aria-expanded="true"] .activity-subtitle { color: var(--gold-light); }
.living-nook .activity-toggle[aria-expanded="true"] .activity-chevron { color: var(--gold-light); transform: rotate(180deg); }
.living-nook .activity-toggle:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
@media (min-width: 701px) and (max-width: 1000px) {
  .living-nook .activity-title { font-size: 22px; }
  .living-nook .activity-label { grid-template-columns: minmax(0, 1fr) 14px; gap: 6px; }
  .living-nook .activity-chevron { width: 14px; height: 14px; }
}
.living-nook .inline-hub { position: relative; inset: auto; display: block; width: 100%; max-width: none; height: auto; max-height: none; margin: 18px 0 0; padding: 28px; overflow: visible; border: 1px solid var(--nook-rule); border-left: 3px solid var(--nook-cloth-edge); border-radius: 7px; background: var(--nook-page); color: var(--ink); box-shadow: 0 3px 0 var(--nook-page-shade), 0 4px 0 var(--nook-rule); }
.living-nook .inline-hub > .eyebrow { font-size: 12px; }
.living-nook .inline-hub > h2 { margin: 9px 0 14px; padding-right: 0; font: 400 34px/1.2 var(--serif); letter-spacing: -.035em; }
.living-nook .inline-hub > p { max-width: 72ch; margin: 0 0 22px; color: var(--muted); font: 16px/1.75 var(--sans); }
.living-nook .activity-collapse { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 22px 0 0 auto; padding: 8px 0 0; color: var(--rust); font: 14px/1.4 var(--sans); }
.living-nook .activity-collapse .ico { width: 16px; height: 16px; transform: rotate(180deg); }
.living-nook .activity-collapse:hover { text-decoration: underline; text-underline-offset: 4px; }
.living-nook .footer-signoff { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.living-nook .footer-signoff .footer-signature { margin: 0; white-space: nowrap; }
@media (max-width: 700px) {
  .living-nook .activity-shelf { margin-top: 22px; }
  .living-nook .activity-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .living-nook .activity-art { aspect-ratio: 2.4 / 1; }
  .living-nook .activity-label { grid-template-columns: minmax(0, 1fr) 14px; min-height: 78px; padding: 12px 11px 13px; gap: 6px; }
  .living-nook .activity-title { font-size: 22px; }
  .living-nook .activity-chevron { width: 14px; height: 14px; }
  .living-nook .inline-hub { padding: 22px 16px; margin-top: 12px; }
  .living-nook .inline-hub > h2 { font-size: 29px; }
  .living-nook .inline-hub .game-hub-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
  .living-nook .inline-hub .game-hub-art { height: 100%; min-height: 210px; aspect-ratio: auto; }
  .living-nook .inline-hub .game-hub-tag { left: 10px; right: 8px; bottom: 12px; writing-mode: horizontal-tb; font-size: 11px; }
  .living-nook .inline-hub .game-hub-copy { padding: 18px 14px; }
  .living-nook .inline-hub .game-hub-copy h3,
  .living-nook .inline-hub .category-card-title { font-size: 24px; }
  .living-nook .footer-signoff { column-gap: 12px; }
}
@media (max-width: 380px) {
  .living-nook .activity-label { padding-inline: 10px; }
  .living-nook .activity-title { font-size: 20px; }
  .living-nook .inline-hub .game-hub-card { grid-template-columns: 80px minmax(0, 1fr); }
  .living-nook .inline-hub .game-hub-copy { padding-inline: 12px; }
  .living-nook .footer-signoff { column-gap: 10px; }
  .living-nook .footer-signoff .footer-signature { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .living-nook .activity-toggle,
  .living-nook .activity-label,
  .living-nook .activity-chevron { transition: none; }
}
