/* Shared finish of the night-study world. Reading and playing keep their own density. */
@font-face{font-family:Chivo;src:url('assets/fonts/chivo-display-latin-600-700.woff2') format('woff2');font-weight:600 700;font-style:normal;font-display:swap}
@font-face{font-family:'Noto Serif SC';src:url('assets/fonts/noto-serif-sc-display-600.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
:root{--display-latin:Chivo,sans-serif;--display-cjk:'Noto Serif SC',serif;--craft-ease:cubic-bezier(.16,1,.3,1);--craft-space:clamp(3rem,7vw,6rem)}
[hidden]{display:none!important}
h1,h2{text-wrap:balance}h1{letter-spacing:-.03em}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--cyan);outline-offset:5px}
.nav a,.notes-header nav a,.arcade-nav a,.lab-header nav a,.jot-header nav a{display:inline-flex;align-items:center;min-height:44px}
.brand-mark{box-shadow:none!important;background:#242035;border:1px solid #766483;font-family:var(--display-latin);font-weight:700}
.brand,.arcade-brand{font-family:var(--display-latin)}
.pixel-link,.game-button,.control-button,.play-link,.room-button,.room-hotspot,.scene-choice,.scene-surprise,.buddy-name,.kaka figcaption,.external-links a,.journal-entry,.board-shell,.game-card{box-shadow:none}
.pixel-link,.game-button,.room-button,.scene-choice,.scene-surprise,.play-link{transition:color .18s,border-color .18s,background .18s;min-height:44px}
.pixel-link:hover{box-shadow:none;background:#443044}.pixel-link:active,.room-button:active{transform:translateY(1px)}
.eyebrow,.notes-eyebrow,.overlay-kicker{display:none}
.game-intro h1{font-family:var(--display-cjk);font-weight:600;font-size:clamp(1.55rem,3vw,2.2rem);line-height:1.5}
.game-intro p{max-width:65ch}.back-link,.arcade-footer a,.notes-footer a,.jot-footer a,.lab-footer a{display:inline-flex;align-items:center;min-height:44px}
.header{background:#090b19f5;backdrop-filter:none}.header-inner{min-height:80px}.nav{gap:clamp(.85rem,1.7vw,1.65rem)}.nav a[aria-current]{color:var(--amber);text-decoration:underline;text-underline-offset:8px}
.site-menu{align-items:center;gap:8px;min-width:64px;min-height:44px;color:var(--text);background:transparent;border:1px solid var(--line);padding:8px 12px;font:inherit;cursor:pointer}.site-menu svg{width:18px;height:18px}
.chapter-home h1{font-family:var(--display-latin);font-size:clamp(3.2rem,6.5vw,6rem);font-weight:700;line-height:1.04;letter-spacing:-.035em;margin-bottom:2rem}.chapter-home h1 span{color:var(--amber)}
.chapter-home .chapter-inner{min-height:max(720px,calc(100svh - 80px));padding-block:5rem 8rem}.intro-copy{width:56%;max-width:680px}.intro-copy .lead{font-size:1.2rem}.intro-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px 24px}.intro-actions .quiet-link{min-height:44px;display:inline-flex;align-items:center}.intro-tags{font-size:.8125rem;letter-spacing:0;color:var(--faint)}
.chapter-home .scene{animation:study-arrival .85s var(--craft-ease) both}
@keyframes study-arrival{from{clip-path:inset(0 0 0 18%);filter:brightness(.78)}to{clip-path:inset(0);filter:brightness(1)}}
.kaka-home{right:11%;bottom:6.6rem;gap:0}.kaka-guide{display:flex;flex-direction:column;align-items:center;gap:8px;border:0;background:transparent;color:var(--text);padding:8px;font:inherit;cursor:pointer}.kaka-guide .pet-sprite{--pet-size:154px}.kaka-guide>span:last-child{min-height:44px;display:flex;align-items:center;border-bottom:1px solid #98839a;font-size:.875rem;background:#090b19cf;padding:0 10px}.kaka-guide:hover>span:last-child{color:var(--amber);border-color:var(--amber)}
.guide-bubble{position:absolute;bottom:100%;right:-20px;width:270px;background:#101427f5;border:1px solid #77647e;padding:18px 20px;font-size:.9375rem;line-height:1.7}.guide-bubble::after{content:'';position:absolute;width:10px;height:10px;bottom:-6px;right:94px;transform:rotate(45deg);background:#101427;border-right:1px solid #77647e;border-bottom:1px solid #77647e}.guide-bubble p{margin:0 0 8px;color:var(--muted)}.guide-bubble a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;color:var(--amber)}.guide-bubble svg{width:20px;height:20px;flex-shrink:0}.guide-bubble strong{font-weight:550;line-height:1.6}.guide-bubble small{color:var(--faint);display:block;margin-top:8px}.guide-bubble [data-guide-close]{position:absolute;top:3px;right:3px;width:44px;height:44px;background:transparent;border:0;color:var(--muted);cursor:pointer}.guide-bubble [data-guide-close] svg{width:16px;height:16px}.guide-bubble p{padding-right:20px}
.chapter-next .chapter-count,.scene-caption,.link-number,.item-index{display:none}.scroll-track{border:0;width:20px;height:20px}.scroll-track::after{width:8px;height:8px;border-right:1px solid var(--amber);border-bottom:1px solid var(--amber);background:none;transform:rotate(45deg);top:4px;left:4px;animation:none}
.chapter h2,.desk-update h2{font-family:var(--display-cjk);font-weight:600;line-height:1.45;letter-spacing:-.025em}.chapter-focus .chapter-inner{min-height:760px}.focus-item{grid-template-columns:minmax(0,1fr);gap:0}.focus-item h3{font-weight:600}.topic-tags{letter-spacing:0}
.desk-update{padding-block:var(--craft-space)}.desk-update-inner{padding-block:0!important}.update-heading{align-items:start}.update-date{max-width:220px}.update-lab{box-shadow:none!important}.update-play{border-width:1px!important}.update-play span:last-child{font-size:0}.update-play span:last-child::after{content:'';display:block;width:10px;height:10px;border-top:1px solid var(--amber);border-right:1px solid var(--amber);transform:rotate(45deg)}
.chapter-journal .chapter-inner{min-height:0;padding-block:var(--craft-space)}.journal-copy{padding-right:30%}.journal-shelf{gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.journal-entry{background:#0e1222e8;border:0;border-right:1px solid var(--line);padding:30px}.journal-entry:last-child{border-right:0}.journal-index{font:inherit;font-size:.875rem;letter-spacing:0;color:var(--faint);margin-bottom:20px}.journal-entry h3{font-family:var(--display-cjk);font-size:1.35rem;line-height:1.7}.journal-entry:hover{background:#17192c}.journal-open{display:flex;align-items:center;min-height:44px}.kaka-journal{right:4%;top:4rem}.kaka-journal .pet-sprite{--pet-size:112px}.chapter-journal .chapter-next{position:static;grid-column:1/-1;margin-top:10px}
.scene-choice[aria-pressed=true],.buddy-name,.kaka figcaption{box-shadow:none}.companion-message{border-left-width:1px}.external-links a{background:#111529cc;padding:20px 0;border:0;border-bottom:1px solid var(--line);gap:20px}.external-links a:hover{background:#1b1b30}.outro-signature{font-family:var(--display-latin);font-weight:600;letter-spacing:-.02em;text-shadow:none;color:#d2c8e4}.chapter-links .chapter-inner{min-height:650px}
@media(max-width:1080px){.header-inner{gap:20px}.brand-sub{font-size:.6875rem}.nav{gap:0 18px}.intro-copy{width:60%}.kaka-home{right:5%}.chapter-home h1{font-size:clamp(3rem,6.5vw,5.3rem)}}
@media(max-width:760px){.header{position:sticky;top:0}.header-inner{position:relative;min-height:68px;flex-wrap:wrap;gap:8px;justify-content:space-between;padding-block:8px}.brand-sub{display:none}.brand-mark{width:36px;height:36px}.brand{font-size:1.0625rem}.site-menu:not([hidden]){display:inline-flex}.header .nav{flex:0 0 100%;display:grid;grid-template-columns:1fr 1fr;gap:0 18px;padding-block:8px;font-size:.9375rem}.header .nav a{padding:10px 0;border-top:1px solid var(--line)}html{scroll-padding-top:80px}.chapter-home .chapter-inner{min-height:760px;min-height:max(720px,calc(100svh - 68px));padding-block:52px 345px}.intro-copy{width:100%;max-width:none}.chapter-home h1{font-size:clamp(2.6rem,10.8vw,4.2rem);line-height:1.08;margin-bottom:24px}.intro-copy .lead{font-size:1.0625rem}.intro-detail{font-size:1rem;line-height:1.85;margin-bottom:20px}.intro-tags{margin-top:22px;gap:12px}.intro-tags span+span::before{margin-right:12px}.chapter-home .scene{height:390px;object-position:78% center}.chapter-home .shade{background:linear-gradient(180deg,var(--night) 0%,var(--night) 39%,#090b19e8 51%,#090b1940 78%,#090b1920)}.kaka-home{right:2%;bottom:72px}.kaka-guide .pet-sprite{--pet-size:112px}.kaka-guide>span:last-child{font-size:.8125rem}.guide-bubble{bottom:86px;right:118px;width:min(215px,calc(100vw - 160px));padding:15px;font-size:.875rem}.guide-bubble::after{right:-6px;bottom:22px;transform:rotate(-45deg)}.guide-bubble small{font-size:.75rem}.guide-bubble p{margin-bottom:4px}.chapter-home .chapter-next{bottom:24px;font-size:.8125rem}.chapter h2,.desk-update h2{font-size:clamp(1.8rem,7.2vw,2.65rem);line-height:1.5}.desk-update{padding-block:50px}.update-date{max-width:none}.chapter-focus .chapter-inner{min-height:0}.journal-copy{padding-right:0}.journal-shelf{grid-template-columns:1fr;margin-top:24px;gap:0}.journal-entry{padding:26px 20px;border-right:0;border-bottom:1px solid var(--line)}.journal-entry:last-child{border-bottom:0}.journal-index{margin-bottom:10px}.journal-entry h3{font-size:1.25rem;margin-bottom:12px}.journal-entry p{margin-bottom:12px}.chapter-journal .chapter-inner{padding-bottom:50px}.chapter-journal .chapter-next{margin-top:24px}.outro-signature{position:static;margin-top:40px}.chapter-links .chapter-inner{min-height:0;padding-block:52px 88px}.chapter-links .chapter-end{position:static;margin-top:40px}.game-intro h1{font-size:1.6rem}.arcade-header .arcade-nav{gap:0 18px}.arcade-nav a{padding-block:8px}}
@media(max-width:360px){.header-inner{width:calc(100% - 32px)}.chapter-home h1{font-size:2.6rem}.guide-bubble{right:110px;width:175px}.kaka-guide .pet-sprite{--pet-size:100px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.chapter-home .scene{animation:none}*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

.guide-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.scene-surprise{display:inline-flex;align-items:center;gap:8px}
