/* One painted world, screen-sized rooms. Scrolling is reserved for open books. */
:root{--ink:#f9ecd8;--gold:#e9c991;--night:#061c24;--line:#e6c99348;color-scheme:dark}
html{height:100%;overflow:hidden;overscroll-behavior:none}
body{height:100vh;height:100dvh;min-height:0;margin:0;overflow:hidden;display:flex;flex-direction:column;color:var(--ink);background:#081d28;font-family:Inter,Arial,sans-serif}
body::before{content:"";position:fixed;inset:0;z-index:-2;background:linear-gradient(#061622a8,#071c2bb8),url('assets/wonderland-science.webp') center/cover}
body.home-page::before{background:linear-gradient(180deg,#06132340 0%,transparent 43%,#04182155 75%,#031920e8 100%),url('assets/wonderland-science.webp') center 52%/cover}
a{color:inherit}button,a,summary{-webkit-tap-highlight-color:transparent}button{font:inherit}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #f6dfab;outline-offset:4px}
[hidden]{display:none!important}.wonder-header{flex:none;display:flex;align-items:center;justify-content:space-between;padding:7px clamp(18px,4vw,64px);min-height:58px;border-bottom:1px solid #ecd6a824;background:#06172370;backdrop-filter:blur(9px);z-index:3}
.wonder-brand{display:flex;align-items:center;gap:10px;text-decoration:none;line-height:1.15;font-family:Georgia,serif;font-size:21px;letter-spacing:.01em}.brand-star{font-size:31px;color:var(--gold)}.wonder-brand small{display:block;font-family:Arial,sans-serif;font-size:9px;letter-spacing:.21em;text-transform:uppercase;margin-top:4px;color:#e5d7ba}
.wonder-menu-button{display:flex;align-items:center;gap:14px;border:1px solid var(--line);background:#08233288;color:var(--ink);border-radius:30px;min-height:44px;padding:9px 18px;font-size:13px}.wonder-menu-button span{font-size:20px}.wonder-footer{display:flex;flex:none;align-items:center;justify-content:space-between;gap:10px;padding:5px clamp(18px,4vw,64px);font-size:10px;letter-spacing:.04em;min-height:32px;color:#ddd2bd;background:#06182296;border-top:1px solid #ecd6a81c}.wonder-footer p{margin:0}.wonder-footer button{border:0;background:none;color:inherit;font-size:11px;min-height:32px;padding:0 7px}.wonder-footer a{text-decoration:none}.wonder-footer .motion-toggle{font-size:10px;min-height:32px;padding:0 7px}
.wonder-home{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;padding:clamp(14px,3vh,38px) 24px 7px;overflow:hidden}.wonder-sky{text-align:center;text-shadow:0 2px 22px #03101f,0 1px 4px #03101f}.wonder-kicker{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.3em;color:#e5cf9e}.wonder-sky h1{margin:9px 0 7px;font:clamp(44px,6.5vw,90px)/.96 Georgia,serif;letter-spacing:-.04em;color:#fff1d9}.wonder-sky h1 span{display:block;font:italic clamp(21px,2.4vw,34px)/1.3 Georgia,serif;letter-spacing:0;color:#f5dfbd;margin-top:12px}.wonder-sky p{font-size:12px;letter-spacing:.08em;margin:12px 0;color:#e7dfcf}.world-doors{margin-top:auto;width:min(910px,100%);display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:10px}.world-door{display:flex;align-items:center;gap:12px;min-height:78px;padding:14px 18px;border:1px solid #c6c7ad66;border-radius:14px;background:linear-gradient(110deg,#082b2ce8,#092c35c4);backdrop-filter:blur(14px);text-decoration:none;box-shadow:0 8px 35px #00101888,inset 0 1px #fff1}.world-door:hover{background:#123d43f0;border-color:#ebd1a8}.stories-door{background:linear-gradient(120deg,#52362eea,#213a39de);border-color:#eac598a1}.door-symbol{font-size:34px;color:#e2c28a}.world-door>span:nth-child(2){flex:1}.world-door small{display:block;font-size:10px;letter-spacing:.04em;color:#d4d2bb;margin-bottom:5px}.world-door strong{font:20px Georgia,serif}.world-signature{margin:10px 0 0;font-size:9px;letter-spacing:.1em;color:#d3cbb9}
.world-menu{width:min(660px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:hidden;border:1px solid var(--line);border-radius:20px;padding:24px;background:linear-gradient(135deg,#102e39,#0c202c);color:var(--ink)}.world-menu::backdrop{background:#020b13b8;backdrop-filter:blur(12px)}.menu-top{display:flex;align-items:center;justify-content:space-between}.menu-top h2{font:30px Georgia,serif;margin:0}.menu-close{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:50%;background:none;color:inherit;font-size:24px}.menu-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.menu-links a{padding:15px;border:1px solid #d2c7a12e;border-radius:10px;text-decoration:none;min-height:50px;font-size:14px;background:#b8b18508}.menu-links a:hover{background:#b8b18518}.menu-private{display:flex;gap:20px;font-size:12px;border-top:1px solid var(--line);padding-top:17px}.menu-private a{min-height:44px;display:flex;align-items:center}.question-dialog{max-height:calc(100dvh - 30px);overflow:hidden}
.wonder-browse{flex:1;min-height:0;width:min(900px,calc(100% - 48px));margin:auto;display:flex;flex-direction:column;padding:20px 0 14px}.browse-heading{flex:none}.back-link{font-size:11px;letter-spacing:.08em;text-decoration:none;color:var(--gold)}.browse-heading h1{font:clamp(29px,4vw,48px)/1.1 Georgia,serif;margin:12px 0 18px;letter-spacing:-.02em}.scene-deck{min-height:0;flex:1;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:18px;background:linear-gradient(120deg,#0e2d38ed,#0b2234e6);box-shadow:0 20px 60px #0004;overflow:hidden}.scene-window{flex:1;min-height:0;overflow:hidden;margin:clamp(18px,3vh,32px) clamp(20px,4vw,48px) 0}.scene-content{height:100%}.scene-page{display:flow-root}.scene-page>*:first-child{margin-top:0}.scene-page p,.scene-page li{font-size:17px;line-height:1.6}.scene-page p{margin:0 0 18px}.scene-page h2{font:27px Georgia,serif;margin:14px 0 14px}.scene-page h3{font:23px Georgia,serif;margin:14px 0 10px}.scene-page .meta{font-size:12px;color:#d2c0a1}.scene-page ul{list-style:none;margin:0 0 16px;padding:0}.scene-page ul:not(.works):not(.research-list) li{padding-left:16px;position:relative}.scene-page ul:not(.works):not(.research-list) li::before{content:'✧';position:absolute;left:0;color:var(--gold)}.scene-page .works li,.scene-page .research-list li{padding:16px 18px;margin:0;border:1px solid #e6c99330;border-radius:12px;background:#ffffff04;display:block;box-shadow:none}.scene-page .works a,.scene-page .research-list a{font:22px/1.3 Georgia,serif;color:#f1d7a9}.scene-page .works .paper-letter{display:none}.scene-page .works li span:not(.paper-letter){font-size:13px}.scene-page .research-list p{font-size:15px;margin:8px 0}.scene-page .draft-kind{font-size:11px}.scene-page .letter-bar{padding:0;margin:0 0 16px;display:block;background:none;border:0}.scene-page .letter-bar .label{display:none}.scene-page .letters{display:flex;flex-wrap:wrap;gap:4px}.scene-page .letters>*{min-width:25px;min-height:28px;font-size:11px}.scene-page .all-link{display:none}.scene-controls{display:flex;align-items:center;justify-content:center;gap:22px;flex:none;height:62px;border-top:1px solid #e6c99325;background:#09212c66}.scene-controls button{min-width:48px;min-height:44px;border:1px solid var(--line);border-radius:22px;background:#ffffff08;color:var(--ink);font-size:22px}.scene-controls button:disabled{opacity:.3}.scene-controls output{font-size:12px;font-variant-numeric:tabular-nums;color:#e5d7ba}.scene-page .notice{font-size:14px;background:#ffffff04;padding:14px 16px;border-left:2px solid #c1a679}
/* Story shelves are rooms, not long documents. */
.story-main{width:min(1100px,calc(100% - 48px));flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:13px 0!important;margin:0 auto}.story-main::before{display:none}.story-main .breadcrumb{flex:none;margin:0 0 8px;font-size:11px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.story-library{display:flex;flex-direction:column;flex:1;min-height:0;padding:20px 26px;border:1px solid var(--line);border-radius:18px;background:#0c2836df;box-shadow:0 15px 60px #0005;overflow:hidden}.story-library>.eyebrow{font-size:9px;margin:0 0 5px}.story-library>h1{font:clamp(27px,3.4vw,43px)/1.08 Georgia,serif;margin:0 0 8px;max-width:none}.story-intro{font-size:13px;line-height:1.45;margin:0 0 14px;max-width:none}.story-categories{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}.story-category{display:flex;flex-direction:column;justify-content:center;padding:14px 18px;min-height:0;border:1px solid #d1c29850;border-radius:12px;background:linear-gradient(130deg,#23474b8a,#162c418a);text-decoration:none;position:relative;overflow:hidden}.story-category:nth-child(2){background:linear-gradient(130deg,#263d5c88,#102941bb)}.story-category:nth-child(3){background:linear-gradient(130deg,#693b4b66,#2c2b4599)}.story-category:nth-child(4){background:linear-gradient(130deg,#4b523b88,#133b41aa)}.story-category h2{font:clamp(19px,2.2vw,26px)/1.15 Georgia,serif;margin:3px 0 7px}.story-category p{font-size:12px;line-height:1.35;margin:0;color:#d7daca;max-width:34ch}.story-number{font-size:9px;color:#dcc69c}.story-arrow{font-size:10px;margin-top:8px}.story-coming{margin:12px 0 0;padding:8px 0 0;border:0;border-top:1px solid #d1c29844;background:none;min-height:0;gap:12px}.story-coming h2{font-size:11px;letter-spacing:.08em;margin:0}.story-coming p{font-size:11px;margin:3px 0 0}.story-coming>span{font-size:24px}.story-prayer{padding:6px 0 0;margin:7px 0 0;border:0;border-top:1px solid #d1c29822;display:flex;align-items:baseline;gap:12px}.story-prayer>.eyebrow{display:none}.story-prayer h2{font:14px Georgia,serif;margin:0}.story-prayer p{font-size:11px;margin:0}.story-shelf{flex:1;min-height:0;display:flex;margin:0}.story-book{display:flex;width:100%;min-height:0;padding:16px 0;gap:clamp(20px,4vw,50px);border:0;box-shadow:none;background:none;align-items:center}.story-book .story-cover{height:100%;width:auto;max-width:45%;aspect-ratio:850/1100;flex:none}.story-cover img{display:block;width:100%;height:100%;object-fit:contain;border-radius:8px;box-shadow:0 12px 30px #0008}.story-book h2{font:clamp(26px,4vw,46px)/1.1 Georgia,serif}.story-book p{font-size:14px;line-height:1.5}.story-empty{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:18px;margin:0;border:0;background:none}.story-empty h2{font:28px Georgia,serif;margin:14px 0}.story-empty>span{font-size:60px}.story-fan-note{font-size:10px;margin:5px 0}.story-feature{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;min-height:0;flex:1;align-items:center}.story-feature>.story-cover{height:100%;min-height:0;max-width:100%;width:auto;justify-self:center;aspect-ratio:850/1100;display:block}.story-feature-copy h1{font:clamp(30px,4vw,54px)/1 Georgia,serif;margin:12px 0}.story-feature-copy .eyebrow{font-size:10px}.story-feature-copy .story-info{margin:18px 0}.story-info summary{min-height:44px;font-size:14px;padding:10px 14px}.story-info p{font-size:14px;line-height:1.5;margin:0}.story-info>div{padding:0 14px 14px}.story-cover-hint{font-size:11px;line-height:1.4}.button{min-height:44px;padding:11px 17px;font-size:12px;border-radius:9px}.book-page .wonder-header{min-height:58px}.book-page .book-leaves .wonder-footer{display:flex;position:static;padding:12px 0;background:none}.book-page .wonder-footer{flex-wrap:wrap}.book-page .book-leaves .wonder-footer .motion-toggle{display:none}
@media(max-width:600px){
 .wonder-header{min-height:56px;padding:6px 16px}.wonder-brand{font-size:18px;gap:7px}.wonder-brand small{font-size:8px}.brand-star{font-size:27px}.wonder-menu-button{padding:8px 13px;font-size:12px;gap:8px}.wonder-footer{padding:3px 13px;font-size:9px;min-height:28px}.wonder-footer .motion-toggle{display:none}.wonder-footer button{font-size:10px;min-height:28px}.wonder-home{padding:22px 17px 6px}.wonder-kicker{font-size:8px;letter-spacing:.2em}.wonder-sky h1{font-size:50px;margin-top:12px}.wonder-sky h1 span{font-size:23px;margin-top:11px}.wonder-sky p{font-size:10px;margin-top:10px;letter-spacing:.04em}.world-doors{grid-template-columns:1fr 1fr;gap:7px}.stories-door{grid-column:span 2}.world-door{min-height:62px;padding:11px 12px;gap:9px;border-radius:12px}.world-door strong{font-size:17px}.world-door small{font-size:8px;margin-bottom:3px}.door-symbol{font-size:25px}.world-door:not(.stories-door)>.door-symbol{display:none}.world-door>span:last-child{font-size:14px}.world-signature{font-size:8px;margin-top:8px}.menu-top h2{font-size:25px}.world-menu{padding:20px}.menu-links{gap:7px;margin:14px 0}.menu-links a{padding:12px;font-size:12px;min-height:48px}.menu-private{gap:14px;font-size:11px;padding-top:6px}.wonder-browse{width:calc(100% - 28px);padding:13px 0 10px}.browse-heading h1{font-size:30px;margin:10px 0 14px}.scene-window{margin:20px 20px 0}.scene-page p,.scene-page li{font-size:16px;line-height:1.5}.scene-page .works a,.scene-page .research-list a{font-size:20px}.scene-page h2{font-size:24px}.scene-page .works li,.scene-page .research-list li{padding:13px}.scene-page .research-list p{font-size:14px}.scene-controls{height:56px}.story-main{width:calc(100% - 24px);padding:9px 0!important}.story-library{padding:16px 14px;border-radius:15px}.story-library>h1{font-size:29px}.story-library>.story-intro{font-size:11px;margin-bottom:10px}.story-categories{gap:7px}.story-category{padding:10px 11px}.story-category h2{font-size:19px}.story-category p{font-size:10px}.story-arrow{font-size:9px;margin-top:5px}.story-coming{margin-top:9px;padding-top:7px}.story-coming h2{font-size:10px}.story-coming p{font-size:10px}.story-prayer{display:block;padding-top:5px;margin-top:6px}.story-prayer h2{font-size:13px}.story-prayer p{font-size:10px;margin-top:2px}.story-book{flex-direction:column;gap:12px;padding:3px 0;align-items:center}.story-book .story-cover{max-width:none;max-height:60%;flex:1;min-height:0}.story-book>div{text-align:center;flex:none}.story-book>div>.eyebrow,.story-book>div>p{display:none}.story-book h2{font-size:25px;margin:6px 0 9px}.story-feature{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:12px}.story-feature>.story-cover{height:100%;width:auto;max-width:100%;max-height:100%;min-height:0;justify-self:center}.story-feature-copy{text-align:center}.story-feature-copy>.eyebrow,.story-feature-copy>.story-intro,.story-cover-hint{display:none}.story-feature-copy h1{font-size:27px;margin:0 0 10px}.story-feature-copy .story-info{margin:0 0 10px;text-align:left}.story-info summary{font-size:12px;min-height:44px}.story-info p{font-size:12px}.story-info>div{padding:0 12px 10px}.story-empty h2{font-size:25px}.story-empty p{font-size:13px}.story-empty a{font-size:12px}.question-dialog{padding:20px}.question-dialog h2{font-size:27px}.question-dialog p{font-size:14px}
}
@media(max-height:620px){.wonder-home{padding-top:12px}.wonder-sky h1{font-size:40px}.wonder-sky h1 span{font-size:20px;margin-top:7px}.wonder-sky p{margin:6px 0}.wonder-kicker{font-size:8px}.world-door{min-height:53px;padding:8px 11px}.world-signature{margin-top:5px}.story-library{padding:10px 12px}.story-library>h1{font-size:24px;margin-bottom:5px}.story-library>.eyebrow{display:none}.story-category h2{font-size:17px}.story-category p{display:none}.story-arrow{font-size:9px}.story-prayer{margin-top:4px}.story-coming{margin-top:6px}.story-coming p{display:none}.story-main .breadcrumb{font-size:10px}.browse-heading h1{font-size:25px;margin:6px 0 9px}.wonder-browse{padding-top:8px}.scene-window{margin-top:16px}.scene-page p{margin-bottom:12px}.scene-controls{height:50px}.world-menu{padding:15px}.menu-links{margin:8px 0;gap:5px}.menu-links a{min-height:43px;padding:9px 12px}.menu-top h2{font-size:24px}}
@media(max-height:460px) and (min-width:601px){.wonder-header{min-height:48px;padding-top:2px;padding-bottom:2px}.wonder-home{padding-top:8px}.wonder-kicker,.wonder-sky p{display:none}.wonder-sky h1{font-size:38px;margin:2px}.wonder-sky h1 span{font-size:20px;margin:4px}.world-door{min-height:55px}.world-signature{margin:5px}.wonder-footer{min-height:25px;padding-top:0;padding-bottom:0}.story-library>h1{font-size:23px}.story-library>.story-intro{margin-bottom:5px}.story-category{padding:6px 12px}.story-categories{gap:5px}.story-coming,.story-prayer{display:inline-flex;flex:none}.story-prayer p{font-size:10px}.story-library>.eyebrow{display:none}.story-feature-copy h1{font-size:32px}.story-feature-copy .story-info{margin:8px 0}.story-cover-hint{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
body{isolation:isolate}body::before{z-index:-1}
/* The painting only breathes when motion is explicitly available, never under reduced motion. */
html[data-motion="on"] .home-page::before{animation:wonder-breath 26s ease-in-out infinite alternate;transform-origin:center}
@keyframes wonder-breath{from{transform:scale(1)}to{transform:scale(1.025)}}
@media(max-height:460px) and (min-width:601px){
 .browse-heading{display:flex;align-items:center;gap:24px;min-height:34px;padding-bottom:7px}.browse-heading h1{font-size:25px;margin:0}.wonder-browse{padding:6px 0 8px}.scene-window{margin:14px 26px 0}.scene-page p,.scene-page li{line-height:1.4}.scene-page .research-list p{margin:6px 0!important}.scene-page .research-list a{padding:0;font-size:20px}.scene-page .works li,.scene-page .research-list li{padding:10px 14px}.scene-page ul{margin-bottom:10px}.scene-controls{height:48px}
}
body::before{opacity:1;pointer-events:none}
.scene-page .letters a{min-width:36px;min-height:44px}
/* Wonderland shelf: all four complete covers fit the available screen. */
.quadrant-shelf .story-main{min-height:0;flex:1;width:min(1100px,calc(100% - 32px));padding:12px 0!important}
.quadrant-shelf .story-library{min-height:0;height:100%;padding:8px 14px;display:flex;flex-direction:column;overflow:hidden}
.quadrant-shelf .story-library>h1{flex:none;font:italic clamp(23px,3vw,38px)/1.1 Georgia,serif;margin:7px 0}
.quadrant-shelf .story-library>.eyebrow{flex:none;font-size:9px}
.quadrant-shelf .story-intro{flex:none;font-size:12px;margin:0 0 12px}
.wonderland-quadrant{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:14px 24px;width:100%;max-width:850px;align-self:center}
.quadrant-book{display:flex;flex-direction:column;align-items:center;min-width:0;min-height:0;text-decoration:none;gap:6px;padding:0 3px}
.quadrant-book img{min-height:0;max-height:calc(100% - 34px);flex:1;width:100%;object-fit:contain;filter:drop-shadow(0 6px 10px #0008)}
.quadrant-book span{flex:none;font:clamp(13px,1.6vw,19px)/1.1 Georgia,serif;text-align:center;max-width:26ch;min-height:2.2em;display:flex;align-items:center;justify-content:center}
.quadrant-book:hover img{filter:drop-shadow(0 0 9px #e8c88a66)}
@media(max-width:600px){.quadrant-shelf .story-main{width:calc(100% - 16px);padding:4px 0!important}.quadrant-shelf .story-library{padding:8px}.quadrant-shelf .story-library>h1{font-size:25px;margin:5px 0 7px}.quadrant-shelf .story-intro{font-size:10px;line-height:1.35;margin-bottom:9px}.quadrant-shelf .story-library>.eyebrow{font-size:7px;letter-spacing:.12em}.wonderland-quadrant{gap:12px 14px}.quadrant-book span{font-size:13px}.quadrant-book img{max-height:calc(100% - 34px)}}
@media(max-height:500px){.quadrant-shelf .story-intro,.quadrant-shelf .story-library>.eyebrow{display:none}.quadrant-shelf .story-library>h1{font-size:21px;margin:0 0 6px}.wonderland-quadrant{gap:5px 16px}.quadrant-book span{font-size:11px}.quadrant-book img{max-height:calc(100% - 28px)}}

.home-page .posted-up-icon{width:64px;height:64px;object-fit:contain;display:block;border-radius:10px}

/* Four equal home options. The mailbox tile shows the full illustrated square; only the black letterboxing is outside the tile. */
.home-page .world-doors { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:1fr; }
.home-page .world-door { min-width:0; }
.home-page .stories-door { grid-column:auto; }
.home-page .posted-up-door {
 display:grid; grid-template-columns:minmax(0,clamp(112px,17.5dvh,174px)) auto; justify-content:start;
 gap:clamp(5px,1vw,14px); padding:6px clamp(6px,1.7vw,18px);
}
.home-page .posted-up-mailbox {
 display:block; width:100%; aspect-ratio:851 / 855; justify-self:start;
 border-radius:9px;
 background:#191724 url('/posted-up/icon.png') center / 100% auto no-repeat;
}
.home-page .posted-up-door strong { text-align:left; }
@media(max-width:600px) {
 .home-page .wonder-home { padding-top:14px; }
 .home-page .world-doors .posted-up-door {
  position:relative; display:block; width:100%; padding:0 0 13px;
 }
 .home-page .posted-up-mailbox { width:min(100%,20.5dvh,174px); }
 .home-page .world-doors .posted-up-door strong {
  position:absolute; left:0; bottom:-5px; transform:rotate(-4deg);
  font-family:system-ui,sans-serif; font-weight:900; font-style:normal; font-size:clamp(11px,3.2vw,14px);
  text-transform:uppercase; letter-spacing:.035em;
  color:#a1121a; background:#fff3d5; border:2px solid #a1121a; border-radius:3px;
  padding:4px 7px; white-space:nowrap; text-shadow:none; -webkit-text-stroke:0;
 }
}

/* Keep the homepage byline inside short desktop and tablet viewports. */
.home-page .wonder-home .world-doors { row-gap:clamp(5px,2vh,15px); }
/* Fit the uncropped badge without losing the existing byline on phones. */
@media(max-width:600px) {
 .home-page.scene-room .wonder-home { padding-top:12px; }
 body.home-page.scene-room .wonder-home p.world-signature { font-size:14px !important; text-align:center; line-height:1.2 !important; flex:none; }
 .home-page .wonder-home .world-doors { row-gap:5px; }
}

/* A small release card outside the four-cover Wonderland layout. */
.wonderland-special{display:flex;align-items:center;align-self:center;flex:none;gap:10px;margin:8px 0 0;padding:4px 12px 4px 5px;border:1px solid #d5ad686b;border-radius:9px;color:#fff1d1;background:#11111de8;text-decoration:none;line-height:1.15}
.wonderland-special img{width:28px;height:42px;object-fit:contain;border-radius:2px}
.wonderland-special strong,.wonderland-special small{display:block}
.wonderland-special strong{font-size:1rem}.wonderland-special small{margin-top:3px;font-size:.875rem}
.wonderland-special:hover,.wonderland-special:focus-visible{outline:2px solid #eec383;outline-offset:2px}
.works-shelf{width:min(100% - 1rem,67rem);margin:1.7rem auto 2.8rem}.works-shelf h2{font-size:1.65rem}.works-shelf ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:1rem;padding:0;list-style:none}.works-shelf a{display:flex;align-items:center;gap:1rem;height:100%;min-height:4.8rem;padding:1rem;border:1px solid #aa8155;border-radius:.65rem;background:#142435;color:#fff2d9;text-decoration:none;line-height:1.35}.works-shelf a:focus-visible{outline:2px solid #ffe4b4;outline-offset:4px}.works-shelf a:hover strong,.works-shelf a:focus-visible strong{text-decoration:underline}.works-shelf strong{font-size:1.22rem}.works-shelf small{display:block;color:#e5c698;font-size:.9rem;padding-top:.2rem}.works-shelf img{height:auto;width:2.65rem;border-radius:.2rem}

.quadrant-shelf .story-library{height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}
.quadrant-shelf .story-library:focus-visible{outline:2px solid #ffe4b4;outline-offset:-3px}
.quadrant-shelf .wonderland-quadrant{flex:none;height:clamp(18rem,calc(100dvh - 12rem),45rem);grid-template-rows:repeat(2,minmax(0,1fr));gap:clamp(.7rem,2vh,1.15rem)}
.quadrant-shelf .story-intro{font-size:.95rem;line-height:1.4}.quadrant-shelf .story-library>.eyebrow{font-size:.75rem}.quadrant-shelf .story-library>h1{font-size:clamp(1.5rem,4vw,2.5rem)}
.quadrant-shelf .works-shelf{flex:none}.quadrant-shelf .works-shelf ul{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:430px){.quadrant-shelf .works-shelf a{flex-direction:column;align-items:flex-start;gap:.45rem;padding:.7rem}.quadrant-shelf .works-shelf strong{font-size:1.05rem}.quadrant-shelf .works-shelf small{font-size:.85rem}}

/*
 * FSS attention light: the site behaves like a magic box without watching the
 * visitor. Pointer position, keyboard focus, and a real thumb tap wake
 * the words; the words remain solid and readable beneath every glow.
 */
:where(.world-door,.story-category,.quadrant-book,.game-card){
 --attention-color:var(--glow,#f3d59b);
 --attention-x:50%;--attention-y:50%;--attention-strength:0;
 position:relative;isolation:isolate;
}
:where(.world-door,.story-category,.quadrant-book,.game-card)::after{
 content:"";position:absolute;inset:-1px;z-index:0;pointer-events:none;border-radius:inherit;
 background:radial-gradient(circle at var(--attention-x) var(--attention-y),color-mix(in srgb,var(--attention-color) 24%,transparent) 0,transparent 66%);
 opacity:calc(var(--attention-strength) * .34);transition:opacity .38s ease,background-position .12s linear;
}
:where(.world-door,.story-category,.quadrant-book,.game-card)>*{position:relative;z-index:1}
.world-door:nth-child(1),.story-category:nth-child(1),.quadrant-book:nth-child(1){--attention-color:#ffd996}
.world-door:nth-child(2),.story-category:nth-child(2),.quadrant-book:nth-child(2){--attention-color:#8fe7ff}
.world-door:nth-child(3),.story-category:nth-child(3),.quadrant-book:nth-child(3){--attention-color:#ff9dcc}
.world-door:nth-child(4),.story-category:nth-child(4),.quadrant-book:nth-child(4){--attention-color:#aef2bd}
:where(.world-door small,.world-door strong,.story-category .story-number,.story-category h2,.story-category p,.story-category .story-arrow,.quadrant-book>span,.game-card h2,.game-card p,.game-card small,.game-card .play-label,.game-card .mini-marquee,.game-card .mini-base){
 transition:color .3s ease,text-shadow .38s ease,filter .38s ease;
}
:where(.world-door,.story-category,.quadrant-book,.game-card):is(:hover,:focus-visible,[data-attention="true"])
 :where(small,strong,.story-number,h2,p,.story-arrow,.play-label,.mini-marquee,.mini-base),
.quadrant-book:is(:hover,:focus-visible,[data-attention="true"])>span{
 color:#fffdf5;
 filter:brightness(1.04);
}
:where(.world-door,.story-category,.game-card):is(:hover,:focus-visible,[data-attention="true"])
 :where(strong,h2,.play-label,.mini-marquee),
.quadrant-book:is(:hover,:focus-visible,[data-attention="true"])>span{
 text-shadow:0 0 1px #fff,0 0 8px color-mix(in srgb,var(--attention-color) 55%,transparent);
}
.quadrant-book:is(:hover,:focus-visible,[data-attention="true"]) img{
 filter:drop-shadow(0 7px 12px #0008) drop-shadow(0 0 7px color-mix(in srgb,var(--attention-color) 32%,transparent));
}
@media(prefers-reduced-motion:reduce){
 :where(.world-door,.story-category,.quadrant-book,.game-card)::after,
 :where(.world-door small,.world-door strong,.story-category .story-number,.story-category h2,.story-category p,.story-category .story-arrow,.quadrant-book>span,.game-card h2,.game-card p,.game-card small,.game-card .play-label,.game-card .mini-marquee,.game-card .mini-base){transition:none}
}
@media(forced-colors:active){
 :where(.world-door,.story-category,.quadrant-book,.game-card)::after{display:none}
 :where(.world-door,.story-category,.quadrant-book,.game-card):is(:hover,:focus-visible,[data-attention="true"]) *{color:CanvasText;filter:none;text-shadow:none}
 .quadrant-book:is(:hover,:focus-visible,[data-attention="true"]) img{filter:none}
}

/* The site frame is one calm room; the art keeps its own color inside it. */
@media screen{
 :root{--ink:#fff;--gold:#d8b46a;--night:#000;--line:#d8b46a80}
 html,body{background:#000;color:#fff}
 .wonder-header{
  min-height:60px;background:#000e;border-bottom:3px double var(--gold);
  padding-top:max(7px,env(safe-area-inset-top));
  padding-right:max(clamp(18px,4vw,64px),env(safe-area-inset-right));
  padding-left:max(clamp(18px,4vw,64px),env(safe-area-inset-left));
 }
 .wonder-footer{
  min-height:44px;background:#000e;border-top:3px double var(--gold);color:#fff;
  padding-right:max(clamp(18px,4vw,64px),env(safe-area-inset-right));
  padding-bottom:max(7px,env(safe-area-inset-bottom));
  padding-left:max(clamp(18px,4vw,64px),env(safe-area-inset-left));
 }
 .wonder-menu-button,.menu-close,.menu-links a,.menu-private a,.back-link,.scene-controls button,.world-door,.story-category,.quadrant-book,.button{min-height:44px}
 .wonder-brand small,.wonder-menu-button,.wonder-footer,.wonder-footer button,.wonder-footer .motion-toggle,.wonder-kicker,.wonder-sky p,.world-door small,.world-signature,.menu-links a,.menu-private,.back-link,.scene-page .meta,.scene-page .works li span:not(.paper-letter),.scene-page .draft-kind,.scene-page .letters>*,.scene-controls output,.story-library>.eyebrow,.story-intro,.story-category p,.story-number,.story-arrow,.story-coming h2,.story-coming p,.story-prayer h2,.story-prayer p,.story-fan-note,.story-book p,.story-feature-copy .eyebrow,.story-info summary,.story-info p,.story-cover-hint,.button,.quadrant-book span{font-size:14px}
 .world-menu,.scene-deck,.story-library,.world-door,.stories-door,.story-category,.story-category:nth-child(2),.story-category:nth-child(3),.story-category:nth-child(4),.story-book,.story-empty{background:#050505e8;color:#fff;border-color:var(--line)}
 .world-door,.story-category,.quadrant-book{box-shadow:inset 0 0 0 1px #000,0 0 0 1px #d8b46a38}
 .world-door strong,.story-category h2,.quadrant-book span,.scene-page p,.scene-page li,.story-category p,.story-book p,.story-info p{color:#fff}
 .scene-page .works li,.scene-page .research-list li,.scene-controls button{background:#050505;border-color:var(--line)}
 .scene-controls{background:#000;border-top-color:var(--line)}
 .quadrant-shelf .story-library{overflow:hidden;scrollbar-gutter:auto}
 .quadrant-shelf .wonderland-quadrant{min-height:0}
}
@media screen and (max-width:600px){
 .wonder-header{min-height:60px}
 .wonder-footer{min-height:44px;font-size:14px}
 .wonder-footer button{min-height:44px;font-size:14px}
 .wonder-brand small,.wonder-menu-button,.wonder-kicker,.wonder-sky p,.world-door small,.world-signature,.menu-links a,.menu-private,.story-library>.eyebrow,.story-intro,.story-category p,.story-number,.story-arrow,.story-coming h2,.story-coming p,.story-prayer h2,.story-prayer p,.story-info summary,.story-info p,.story-empty p,.story-empty a,.quadrant-book span{font-size:14px}
 .menu-links a,.world-door,.story-category,.quadrant-book{min-height:44px}
}
