@font-face{font-family:"DotGothic16";src:url("./fonts/DotGothic16-Regular.woff") format("woff");font-style:normal;font-weight:400;font-display:swap}
:root{color-scheme:dark;--night:#101b2c;--stone:#1c2c40;--stone-light:#314560;--ink:#f4ebd9;--muted:#adbac8;--brass:#e5bc71;--reader-font:1.0625rem;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#0c1522;color:var(--ink)}
body{background:radial-gradient(ellipse at 50% 30%,#233551 0%,#111c2e 53%,#0c1420 100%)}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #ffe4a5;outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.shell{width:min(100%,460px);height:100dvh;min-height:500px;margin:auto;display:flex;flex-direction:column;overflow:hidden;background:var(--night);border-inline:1px solid #43546b;box-shadow:0 0 64px #02060e80;position:relative}
.room-identity h1{font-size:1.0625rem;letter-spacing:.06em;font-weight:400;margin:0;white-space:nowrap}
.book-status{font-size:.8125rem;line-height:1.2;color:#d7c8a9;max-width:110px;text-align:right}
.stage{position:relative;flex:1;min-height:0;overflow:hidden;background:#25394f}
#room{width:100%;height:100%;display:block;image-rendering:pixelated;touch-action:none}
.floor-hint{position:absolute;top:12px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);border:1px solid #a38350;background:#101c31e8;border-radius:8px;box-shadow:0 4px 12px #0a111d70;padding:8px 12px;color:#f5e4c2;text-align:center;font-size:.8125rem;line-height:1.4;pointer-events:none;transition:opacity .3s}
.floor-hint.hidden{opacity:0}
.zone-label{position:absolute;top:58px;left:12px;padding:4px 9px;border-radius:4px;background:#111d30d6;border:1px solid #b99a5b;font-size:.75rem;color:#e9cc8f;pointer-events:none}
.controls{height:145px;min-height:145px;position:relative;display:flex;align-items:center;justify-content:space-between;padding:0 25px 5px 19px;border-top:2px solid #ae8a50;background:radial-gradient(ellipse at 50% -30%,#2c4159 0%,#14243b 60%,#101b2d 100%)}
.controls:after{content:"";position:absolute;inset:5px 6px auto;height:1px;background:#66809b57;pointer-events:none}
.dpad{width:132px;height:132px;display:grid;grid-template-columns:repeat(3,42px);grid-template-rows:repeat(3,42px);gap:3px;user-select:none;touch-action:none;align-content:center}
.dir{background:#213550;border:2px solid #91a6b9;color:#eef2ed;border-radius:9px;box-shadow:inset 0 2px 0 #4b6684,0 4px 0 #0b1421;font-size:16px;min-height:42px;padding:0;touch-action:none}
.dir.pressed{transform:translateY(2px);box-shadow:inset 0 2px 0 #4b6684,0 2px 0 #0b1421}
.dir.up{grid-column:2;grid-row:1}.dir.left{grid-column:1;grid-row:2}.dir.right{grid-column:3;grid-row:2}.dir.down{grid-column:2;grid-row:3}
.control-note{font-size:.75rem;color:#c5b99f;text-align:center;line-height:1.5;max-width:88px;margin:0}
.action{width:76px;height:76px;min-width:76px;border-radius:50%;border:3px solid #a3b4c5;background:radial-gradient(circle at 35% 25%,#354d70,#1b3150 70%);box-shadow:0 5px 0 #081321,inset 0 1px 1px #ffffff77;color:#f9e5bb;display:grid;place-items:center}
.action:disabled{opacity:.55;cursor:default;filter:saturate(.65)}
.action:not(:disabled):active{transform:translateY(3px);box-shadow:0 2px 0 #081321,inset 0 1px 1px #ffffff77}
dialog{color:var(--ink);border:0;padding:0}
dialog::backdrop{background:#07101dba;backdrop-filter:blur(2px)}
.picker{position:fixed;margin:auto auto 0;bottom:0;left:0;right:0;width:min(100%,460px);max-width:460px;border-radius:18px 18px 0 0;border:1px solid #a58757;background:#17263c;padding:20px 20px max(28px,env(safe-area-inset-bottom));box-shadow:0 -12px 48px #05091399}
.sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.eyebrow{margin:0 0 9px;color:#e5bc71;font-size:.8125rem;font-weight:700;letter-spacing:.08em}
.sheet-head h2{margin:0 0 23px;font-size:1.24rem;line-height:1.4}
.close-icon{border:1px solid #76889b;border-radius:50%;width:38px;height:38px;background:#263b54;color:#f5e8d7;font-size:25px;line-height:1}
.case-card{display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:15px 14px;background:#213550;color:var(--ink);border:1px solid #9a7d50;border-radius:10px;min-height:78px}
.case-card-icon{font-size:24px;color:#e9cb90}.case-card strong{display:block;font-size:1rem}.case-card small{display:block;margin-top:4px;color:#c2c8cc;font-size:.8rem}
.case-card>span:last-child{margin-left:auto;font-size:26px;color:#ebc783}
.sheet-note{font-size:.875rem;line-height:1.5;color:#d2d9da;margin:15px 2px 0}
.reader{position:fixed;inset:0;margin:auto;width:min(100%,580px);max-width:580px;height:100dvh;max-height:none;background:#f3efe6;color:#273142;display:flex;flex-direction:column}
.reader:not([open]){display:none}
.reader-head{min-height:62px;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid #d0c6b3;background:#faf7ef}
.stand{border:0;background:transparent;color:#2c4d69;font-size:.92rem;padding:11px 4px;white-space:nowrap;font-weight:700}
.reader-place{font-size:.84rem;color:#74736c;letter-spacing:.06em}.reader-head-spacer{width:80px}
.reader-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-behavior:smooth}
.article{max-width:540px;margin:0 auto;padding:27px 23px 48px;font-size:var(--reader-font);line-height:1.87;letter-spacing:.02em}
.article .eyebrow{color:#856338;font-size:.8125rem;margin-bottom:6px}
.article h2{font-size:clamp(1.55rem,5vw,1.9rem);line-height:1.45;letter-spacing:.02em;margin:0 0 8px;color:#1c3046}
.article-meta{font-size:.875rem;color:#66707b;margin:0 0 18px}
.section-title{display:flex;align-items:center;gap:11px;margin-bottom:17px}.section-title h3{font-size:1.3rem;line-height:1.4;margin:0}.section-number{font-family:Georgia,serif;color:#ad7e3b;font-size:1.45rem}
.at-a-glance{background:#fffdf8;border:1px solid #d9c99e;padding:22px 17px 20px;border-radius:9px;box-shadow:0 2px 0 #e5ddcd;margin-bottom:35px}
.flow{list-style:none;margin:0;padding:0 0 0 12px;border-left:2px solid #b78e55}
.flow li{position:relative;margin:0 0 18px;padding:0 0 0 18px;font-size:.95em;line-height:1.55}.flow li:last-child{margin:0}
.flow li:before{content:"";position:absolute;left:-18px;top:8px;width:10px;height:10px;border-radius:50%;background:#bc9051;border:2px solid #fffdf8}
.flow b,.flow span{display:block}.flow b{color:#20374d;margin-bottom:3px}.flow span{color:#495361}
.glance-caution{border-top:1px solid #e8ded0;color:#555d62;margin:19px 0 0;padding:15px 1px 0;font-size:.875em;line-height:1.65}
.story h4{font-size:1.08em;color:#243c50;margin:28px 0 5px}.story p{margin:0 0 12px}
.source{border-top:1px solid #cfba91;margin-top:37px;padding-top:20px;font-size:.875em;color:#58616a;line-height:1.75}.source h3{font-size:1.06rem;color:#243c50;margin:0 0 5px}.source p{margin:0 0 10px}.source a{color:#214b71;font-weight:700;text-underline-offset:4px}
.reader-foot{min-height:57px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:8px 21px max(8px,env(safe-area-inset-bottom));border-top:1px solid #d6cdbb;background:#fffdf8;color:#5b626b;font-size:.875rem}
.font-actions{display:flex;gap:9px}.font-actions button{min-height:39px;min-width:52px;padding:0 8px;border-radius:6px;background:#e8e2d5;border:1px solid #b6ad9e;color:#20384e;font-size:1rem}
@media(max-width:360px){.book-status{font-size:.75rem}.controls{padding-left:12px;padding-right:16px}.control-note{display:none}}
@media(max-height:650px){.controls{height:126px;min-height:126px}.dpad{transform:scale(.86);transform-origin:left center}.action{width:68px;height:68px;min-width:68px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* The approved painting is the actual walkable room, not a decorative backdrop. */
[hidden]{display:none!important}
body{background:#0d1727}
.shell{border:0;max-width:460px;background:#0d182a}
.stage{height:100%;flex:1;min-height:0;background:#162b47}
.floor-hint{top:auto;bottom:145px;border-radius:7px;font-size:.83rem;max-width:280px}
.book-status{position:absolute;top:90px;right:13px;max-width:none;padding:7px 10px;background:#101c30e8;border:1px solid #d2aa69;border-radius:7px;font-size:.78rem;color:#f4ddad}
.interaction-bubble{position:absolute;z-index:2;min-width:72px;max-width:165px;padding:8px 10px;text-align:center;background:#112038f5;color:#ffedc2;border:2px solid #e4bf7a;border-radius:7px;box-shadow:0 3px 0 #07101b,0 6px 13px #05091499;font-size:.92rem;line-height:1.15;white-space:nowrap;pointer-events:none}
.interaction-bubble:after{content:"";position:absolute;top:100%;left:var(--arrow-left,50%);margin-left:-5px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:8px solid #e4bf7a}
.controls{position:absolute;inset:auto 0 0;width:100%;height:138px;min-height:0;z-index:3;padding:0 28px max(10px,env(safe-area-inset-bottom)) 27px;pointer-events:none;border:0;background:transparent}
.controls:after{display:none}
.dpad,.action{pointer-events:auto}
.control-note{display:none}
.dir{border-color:#94a8be;background:#1c2d49ee;color:#f0f5f2;box-shadow:0 3px 0 #091523,inset 0 2px 0 #4d6381}
.action{width:82px;height:82px;min-width:82px;color:#f9eaca;border-color:#9db0c6;background:radial-gradient(circle at 35% 25%,#3b5374,#192d49 72%);box-shadow:0 5px 0 #07111e,inset 0 2px 1px #ffffff4d}
.action:disabled{opacity:.68}
@media(max-width:360px){.controls{padding-left:13px;padding-right:16px}.floor-hint{max-width:250px}}
@media(max-height:630px){.controls{height:115px}.dpad{transform:scale(.81);transform-origin:left center}.action{height:68px;width:68px;min-width:68px}.floor-hint{bottom:112px}}

/* The game stays within the visible viewport, including small landscape screens. */
.shell{min-height:0;height:100dvh}
button{touch-action:manipulation}
.dir{min-width:44px;min-height:44px}
.dpad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,44px);width:138px;height:138px}
.controls{height:154px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
.floor-hint{bottom:155px;font-size:.875rem;max-width:calc(100% - 36px);line-height:1.5;padding:8px 11px}
.book-status{top:max(68px,calc(env(safe-area-inset-top) + 54px));right:12px;font-size:.875rem}
.help-button{position:absolute;top:max(10px,env(safe-area-inset-top));right:10px;width:44px;height:44px;border-radius:50%;border:1px solid #b3996b;background:#112039d9;color:#f1dfb9;font-size:1.1rem}
.help{max-width:calc(100% - 28px);width:420px;max-height:calc(100dvh - 32px);border:1px solid #b3996b;border-radius:14px;background:#17263c;padding:22px;line-height:1.8;font-size:1rem;overflow:auto}
.help h2{font-size:1.25rem;margin:0}.help ol{padding-left:1.3em}.help li{margin-bottom:12px}.help p{border-top:1px solid #5b6070;padding-top:16px;margin-bottom:0;color:#c7d1d9;font-size:.875rem}
.loading{position:absolute;inset:0;margin:0;padding:35px;display:grid;place-content:center;text-align:center;line-height:1.8;background:#101b2c;z-index:5}
.close-icon{width:44px;height:44px;min-width:44px}
.picker{max-height:calc(100dvh - 32px);overflow:auto}
.eyebrow,.case-card small{font-size:.875rem}.case-card+.case-card{margin-top:12px}.case-card>span:last-child{margin-left:0;font-size:inherit;color:inherit}
.reader{inset:auto 0 0;height:calc(100dvh - 188px);width:min(100%,460px);max-width:460px;border-radius:18px 18px 0 0;border:1px solid #cbb990;box-shadow:0 -10px 35px #02071366}
.reader::backdrop{background:#07101d25;backdrop-filter:none}
.reader-head{padding-top:12px;min-height:62px}.reader-place{font-size:.875rem}.reader-head-spacer{display:none}
.reader-scroll{scroll-behavior:auto}.reader-foot button{min-height:44px}.font-actions button:disabled{opacity:.45;cursor:default}
.reading .controls,.reading .floor-hint,.reading .book-status,.reading .help-button{visibility:hidden}
@media(max-height:650px){
 .controls{height:145px}.dpad{transform:none}.action{width:76px;height:76px;min-width:76px}
 .floor-hint{bottom:142px;font-size:.875rem;padding:6px 9px}
 .reader{height:calc(100dvh - 120px)}.reader-head{min-height:52px;padding:5px 14px}.reader-foot{min-height:52px;padding-top:4px;padding-bottom:4px}
 .article{padding-top:20px}.book-status{top:58px}
}
@media(max-height:450px){
 .shell{max-width:680px;width:100%}.controls{padding-inline:24px}
 .floor-hint{bottom:18px;max-width:240px}.book-status{top:12px;right:64px}
 .reader{height:100dvh;border-radius:0}.reader-head{padding:5px 12px}.reader-foot{padding-top:3px;padding-bottom:3px}
}
.shell{padding-top:env(safe-area-inset-top)}
.help-button{top:10px}

/* Safari must treat the controller as buttons, not selectable text. */
.controls,.controls *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.dpad,.dpad *,.action,.action *{touch-action:none}
.dir{display:grid;place-items:center;-webkit-appearance:none;appearance:none}
.dir svg{width:18px;height:18px;display:block;pointer-events:none}
.action svg{pointer-events:none}

/* Long, approved judgments remain readable from any seat. */
.glance-intro{margin:0 0 18px;color:#344352;font-size:.95em;line-height:1.7}
.chapter-index{margin:0 0 24px;padding:0;border:1px solid #d1c7b5;background:transparent;border-radius:8px}
.chapter-index-title{min-height:44px;padding:9px 12px;font-size:.875em;font-weight:500;line-height:1.6;color:#34465a;margin:0;cursor:pointer;touch-action:manipulation}
.chapter-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 12px 12px}
.chapter-link{min-height:44px;padding:8px 9px;text-align:left;background:#fffdf8;border:1px solid #c6b89e;border-radius:6px;color:#2d4256;font-size:.84em;line-height:1.4}
.chapter-link:active{background:#f0e4cd}
.story .chapter-title{font-size:1.11em;line-height:1.55;color:#243c50;margin:34px 0 12px;padding-top:12px;border-top:1px solid #d1c7b5}
.story .chapter-title:first-child{margin-top:0;border-top:0;padding-top:0}
.story p{margin-bottom:1.2em;line-height:1.9}
.source-links{padding-left:1.2em;margin:10px 0 0}.source-links li{margin:8px 0}
.case-card:disabled{opacity:.62;cursor:wait}
@media(max-width:360px){.chapter-links{grid-template-columns:1fr}}

/* Four sections share the same three shelves and the same clear walking lanes. */
.section-tabs{position:absolute;top:max(12px,env(safe-area-inset-top));left:10px;right:10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:5px;z-index:4;background:#0e1d32f5;border:2px solid #d5ac63;border-radius:12px;box-shadow:0 2px 0 #533b1e,0 0 0 2px #142437,0 5px 13px #050b14a0}
.section-tabs button{border:1px solid #60718b;border-radius:6px;min-width:0;min-height:44px;padding:4px 1px;background:linear-gradient(#1c2d47,#111e34);color:#f1e8d6;font-size:.8125rem;font-weight:500;line-height:1.35;white-space:nowrap;touch-action:manipulation}
.section-tabs button[aria-selected=true]{background:linear-gradient(#ffdb87,#e6af4c);border-color:#ffe2a0;color:#30240e;box-shadow:0 0 9px #e9b95366,inset 0 0 0 1px #fff0b4}
.help-button{top:82px;right:8px;z-index:3;width:44px;height:44px;background:#101e32e8}
.shelf-marker{position:absolute;z-index:2;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;min-height:44px;min-width:64px;padding:0;border:0;background:transparent;color:#fce2a0;font-family:"DotGothic16","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;font-synthesis:none;font-size:.875rem;line-height:1.4;font-weight:400;letter-spacing:0;touch-action:manipulation}
.shelf-marker span{display:grid;place-items:center;width:100%;min-height:28px;padding:2px;border:1px solid #d5aa5c;background:#0e1b2efa;border-radius:1px;box-shadow:0 2px 5px #030914aa}
.shelf-marker.nearby span{border-color:#fff0c4;box-shadow:0 0 0 1px #edc777,0 0 9px #d6a44944}
.action:disabled{color:#a8b7c7}
.action:not(:disabled){color:#f9d68a;border-color:#f3c76f;box-shadow:0 4px 0 #07111e,0 0 0 2px #80602e,inset 0 1px 2px #fff3c08c}
.book-status{top:136px;right:10px;font-size:.8125rem;max-width:190px;padding:6px 8px;pointer-events:none}
.floor-hint{max-width:calc(100% - 34px);bottom:158px;font-size:.875rem;pointer-events:none}
.empty-shelf{padding:18px 5px 8px;color:#d1d9e1;font-size:1rem;line-height:1.8}.empty-shelf p{margin:0 0 12px}
.available-section{min-height:44px;width:100%;margin:5px 0;padding:10px 13px;border:1px solid #b49761;border-radius:8px;background:#243951;color:#f5e5c1;text-align:left;font-size:1rem}
.reading .section-tabs,.reading .shelf-labels{visibility:hidden}
.chapter-link{font-size:.875em}.story p{overflow-wrap:anywhere}
@media(max-width:350px){.section-tabs{left:5px;right:5px;gap:3px;padding:4px}.section-tabs button{font-size:.75rem}.shelf-marker{min-width:62px}.book-status{font-size:.75rem;max-width:158px}}
@media(max-height:450px){.section-tabs{right:63px;top:8px}.help-button{top:10px}.book-status{top:75px;right:10px}.floor-hint{bottom:18px;max-width:220px}}

.help-button{top:auto;right:125px;bottom:max(14px,env(safe-area-inset-bottom));z-index:4}
@media(max-height:450px){.help-button{top:10px;right:8px;bottom:auto}}

.section-tabs button{white-space:normal;overflow-wrap:anywhere}

.shelf-marker span{max-width:100%;overflow-wrap:anywhere}
.interaction-bubble{white-space:normal;max-width:min(230px,calc(100% - 14px))}

/* Only the physical shelf signs use pixel lettering. Reading stays in a familiar typeface. */
:root{--reader-font:1.125rem}
.section-tabs{border-radius:4px;box-shadow:0 3px 0 #4e361b,0 0 0 2px #142437,0 5px 12px #050b14a0}
.section-tabs button{border-radius:1px;letter-spacing:0}
.dir{border-radius:3px;border-width:3px;box-shadow:0 4px 0 #081320,inset 2px 2px 0 #526981,inset -2px -2px 0 #122239}
.interaction-bubble,.floor-hint,.book-status{border-radius:2px}
.picker,.help{border-radius:4px;border-width:2px}.case-card,.available-section,.chapter-link,.at-a-glance,.chapter-index{border-radius:2px}
.reader{border-radius:4px 4px 0 0}.reader-head,.reader-foot{background:#faf6e9}
.article{letter-spacing:0;line-height:2}.article h2{letter-spacing:0}
.story p{line-height:2}.article-meta,.source,.reader-place{letter-spacing:0}
.large-text .section-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
.large-text .section-tabs button{font-size:.75rem}
.large-text .interaction-bubble,.large-text .floor-hint{display:none}

/* Readers choose when to see the conclusion; the story always opens first. */
.reading-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:5px 16px 7px;background:#faf6e9;border-bottom:1px solid #d0c6b3;flex-shrink:0}
.reading-tabs button{min-width:0;min-height:44px;padding:8px 6px;border:1px solid #c9beaa;border-radius:3px;background:transparent;color:#59616a;font-size:.875rem;line-height:1.4;touch-action:manipulation}
.reading-tabs button[aria-selected=true]{background:#e9e0cd;border-color:#a88b56;color:#25384a;font-weight:700;box-shadow:inset 0 -2px 0 #a88b56}
.reading-tabs span{font-size:1em}
.reader summary:focus-visible,.reading-tabs button:focus-visible{outline-color:#365f84;outline-offset:2px}
.at-a-glance h3{margin-top:0}

/* Source PDFs open in the current page; a selectable URL covers restricted in-app viewers. */
.source-links a{display:inline-block;min-height:44px;padding:7px 0}
.source-fallback{margin:0 0 8px;font-size:.8em;line-height:1.5;color:#46576a}
.source-fallback summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer}
.source-url{display:block;width:100%;margin:5px 0 10px;padding:9px 8px;border:1px solid #bdb4a5;border-radius:3px;background:#fffefa;color:#263b50;font:inherit;font-size:.9em}
.source-copy{min-height:44px;padding:8px 12px;border:1px solid #a88b56;border-radius:3px;background:#f3e9d6;color:#25384a;font:inherit;cursor:pointer}
.article .source-copy-status{margin:8px 0 3px;font-size:.9em;line-height:1.5}
.source-links li{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:center}
.source-links .source-copy{white-space:nowrap}
.source-fallback{grid-column:1 / -1}

/* A quiet reference for names and roles, available in either reading mode. */
.reading-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:24px;align-items:start}
.reading-tools details{min-width:0;margin:0;border:1px solid #d1c7b5;border-radius:2px}
.reading-tools details[open]{grid-column:1 / -1}
.people-title{min-height:44px;padding:9px 12px;font-size:.875em;font-weight:500;line-height:1.6;color:#34465a;cursor:pointer;touch-action:manipulation}
.people-list{margin:0;padding:0 12px;font-size:.9em;line-height:1.75;overflow-wrap:anywhere}
.people-list>div{padding:10px 0;border-top:1px solid #e1d9cb}
.people-list dt{color:#243c50;font-weight:700}
.people-list dd{margin:2px 0 0;color:#44515e}
.article .people-note{margin:0;padding:6px 12px 12px;font-size:.8em;line-height:1.7;color:#626b72}

/* Search terminals are part of the painting, with accessible tap targets. */
.terminal-marker{position:absolute;z-index:2;display:block;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;touch-action:manipulation}
.terminal-marker:focus-visible{outline:2px solid #ffe4a5;border-radius:3px}
.reading .terminal-marker{visibility:hidden}
/* Two matching circles fit beside the D-pad even on a narrow phone. */
.controls{height:calc(150px + max(8px,env(safe-area-inset-bottom)));align-items:flex-end}
.action-stack{display:flex;flex-direction:column;gap:8px;pointer-events:none}
.action-stack .action,.action-stack .profile-button{position:static;display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;min-width:64px;padding:0;border:3px solid #c9a76b;border-radius:50%;background:radial-gradient(circle at 35% 25%,#354b69,#14273f 72%);color:#f8dfaa;box-shadow:0 4px 0 #07111e,inset 0 1px 2px #fff3c055;pointer-events:auto;touch-action:manipulation}
.action-stack svg{width:30px;height:30px;pointer-events:none}
.action-stack .action:disabled{border-color:#9db0c6;color:#a8b7c7;opacity:.68}
.action-stack .action:not(:disabled){border-color:#f3c76f;color:#f9d68a;box-shadow:0 4px 0 #07111e,0 0 0 2px #80602e,inset 0 1px 2px #fff3c08c}
.action-stack button:not(:disabled):active{transform:translateY(2px);box-shadow:0 2px 0 #07111e}
.page-help{display:block;width:100%;min-height:44px;margin-top:16px;padding:8px;border:1px solid #677c91;border-radius:3px;background:#1c3049;color:#e7d4b2;text-align:center;font-size:.84rem}
.catalog{position:fixed;inset:0;margin:auto;width:min(100% - 22px,460px);max-height:min(83dvh,720px);overflow:auto;padding:20px;border:2px solid #b99a68;border-radius:5px;background:#17273e;color:#f4ebd9;box-shadow:0 12px 46px #020913b0}
.catalog .sheet-head h2{margin:0 0 16px;font-size:1.24rem}
.search-catalog{border-color:#d7ad68;background:#14263d}
.search-field{display:grid;gap:7px;margin-bottom:16px;color:#e9d5ad;font-size:.85rem;font-weight:700}
.search-field input{width:100%;min-height:48px;padding:10px 12px;border:2px solid #b9955e;border-radius:3px;background:#f7f2e4;color:#182b3f;font:inherit;font-size:1rem;font-weight:400}
.search-result{display:grid;gap:3px;width:100%;min-height:62px;margin:7px 0;padding:9px 12px;border:1px solid #7e8a92;border-radius:3px;background:#20364f;color:#f7ebd4;text-align:left}
.search-result strong{font-size:.95rem}.search-result small{font-size:.75rem;color:#c5cbd0}.search-empty{font-size:.85rem;color:#c9d0d4;line-height:1.7}
.page-note{font-size:.85rem;color:#d9d6cd;line-height:1.6;margin:0 0 14px}.page-note a{color:#ffe4a3}
.profile-form{display:grid;gap:8px;padding:12px;border:1px solid #6a7282;background:#1d3049;font-size:.88rem}
.profile-form label:not(.name-check){display:grid;gap:5px}.profile-form input[type=text],.profile-form input:not([type]){width:100%;min-height:42px;padding:8px;border:1px solid #a6a8a5;background:#f8f5ec;color:#1e3042;border-radius:3px;font-size:1rem}
.name-check{display:flex;align-items:center;gap:7px;line-height:1.5}.name-check input{width:20px;height:20px;accent-color:#d0a451}
.profile-form button,.page-case button,.room-choice button{min-height:42px;padding:8px 11px;border:1px solid #bf9c61;border-radius:3px;background:#233a54;color:#f9e7c1}
.page-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:17px 0 10px}
.page-tabs button{min-height:44px;padding:6px 2px;border:1px solid #8a8d8c;background:#1e314b;color:#f5e6cc;font-size:.82rem}
.page-tabs button[aria-pressed=true]{background:#e8bf78;color:#202d3d;border-color:#ffe2a0;font-weight:700}
.page-cases{display:grid;gap:9px}.page-case{display:grid;gap:5px;padding:12px;background:#20334c;border:1px solid #696f72;border-radius:3px}
.page-case strong{font-size:.94rem}.page-case small{font-size:.73rem;color:#c9d0d3}.page-case button{justify-self:start;font-size:.8rem}
.page-case .text-button{border:0;background:transparent;color:#e9cf9b;padding:4px;text-decoration:underline;min-height:32px}
.page-empty{color:#d7d7ce;font-size:.9rem;line-height:1.7}.room-choice{display:flex;align-items:center;justify-content:space-between;gap:9px;padding-top:16px;margin-top:18px;border-top:1px solid #697586;font-size:.85rem}.room-choice button{font-size:.8rem}
.reader-head .favorite{border:0;background:transparent;color:#956f37;font-size:1.6rem;min-width:44px;min-height:44px;padding:0}
.reader-head .reader-place{margin-left:auto}.reader-head{gap:4px}
.community{border-top:1px solid #d0bd98;padding:20px 2px 0;margin:20px 0;color:#263c50;font-size:.9em;line-height:1.7}
.community h3{font-size:1.05rem;margin:0 0 5px}.community-note{font-size:.8em;color:#6d6670;margin:0 0 13px}
.like-button{min-height:44px;padding:7px 14px;border:1px solid #9a7d56;border-radius:3px;background:#faf2e0;color:#6a4052;font-size:.95em}
.comments{margin:14px 0}.comment{padding:11px 0;border-bottom:1px solid #ded6c8}.comment-heading{display:flex;align-items:center;gap:12px;font-size:.8em}.comment-heading time{color:#7a7d7e}
.comment p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.comment .text-button{border:0;background:transparent;padding:4px 0;color:#526779;font-size:.78em;text-decoration:underline}
.comment-form{display:grid;gap:7px;border-top:1px solid #d8cdbd;padding-top:14px}.comment-form label{display:grid;gap:5px;font-weight:700}
.comment-form textarea{width:100%;min-height:94px;padding:10px;border:1px solid #bcb4a8;border-radius:3px;background:#fffdf8;color:#25384b;font:inherit;font-weight:400;line-height:1.6;resize:vertical}
.comment-form button{justify-self:start;min-height:44px;padding:8px 17px;border:1px solid #9d7946;background:#e9ddc4;color:#2a3c4b;font-weight:700}.comment-form button:disabled{opacity:.45}
.comment-status{font-size:.8em;color:#6e6370;min-height:1.5em;margin:0}.comment-status a{color:#25577b}

/* The search terminal and reading record share a calm paper surface. */
#directory,#myPage{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,460px);max-height:min(77dvh,780px);overflow:auto;overscroll-behavior:contain;padding:20px 18px max(22px,env(safe-area-inset-bottom));border:1px solid #b49258;border-bottom:0;border-radius:16px 16px 0 0;background:#faf6ea;color:#24384c;box-shadow:0 -12px 40px #020a19a8}
#directory::backdrop,#myPage::backdrop{background:#0612249c;backdrop-filter:none}
#directory .sheet-head,#myPage .sheet-head{align-items:center}
#directory .sheet-head h2,#myPage .sheet-head h2{margin:0 0 16px;font-size:1.25rem;line-height:1.4;color:#1d3045}
#directory .close-icon,#myPage .close-icon{border:1px solid #c3b595;background:#fffdf7;color:#273c51;font-size:1.4rem}
#directory .search-field{display:block;margin:0 0 12px}
#directory .search-field input{width:100%;min-height:48px;padding:10px 13px;border:1px solid #a9a89b;border-radius:8px;background:#fffdf7;color:#23384c;font-size:1rem;box-shadow:0 1px 3px #413a291e}
#directory .search-field input::placeholder{color:#737b82}
.search-filters{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:13px}
.search-unread,.search-select{min-height:44px;flex:1 1 100px;display:flex;align-items:center;justify-content:center;border:1px solid #b6aa90;border-radius:6px;background:#fffdf7;color:#293d52;font-size:.875rem;line-height:1.25;white-space:nowrap}
.search-unread{position:relative;cursor:pointer}
.search-unread input{position:absolute;opacity:0;width:1px;height:1px}
.search-unread:has(input:checked){background:#f5d994;border-color:#b48437;color:#2d2b27;font-weight:700}
.search-unread:focus-within,.search-select:focus-within{outline:3px solid #9b7645;outline-offset:2px}
.search-select select{width:100%;min-height:44px;padding:5px 7px;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.search-count{margin:0 0 10px;color:#5a6670;font-size:.875rem;line-height:1.5}
.directory-list{display:grid;gap:10px}
#directory .search-result{display:grid;gap:6px;width:100%;min-height:96px;margin:0;padding:12px 13px;border:1px solid #d1c5ad;border-radius:9px;background:#fffdf7;color:#21374e;text-align:left;box-shadow:0 2px 4px #3b302218}
#directory .search-result strong{font-size:1rem;line-height:1.5}
#directory .search-result .search-intro{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#4b5865;font-size:.875rem;line-height:1.6}
#directory .search-result small{color:#5d6d7b;font-size:.8rem;line-height:1.4}
#directory .search-result:active{background:#f3ead7}
.search-more{min-height:44px;padding:8px 12px;border:1px solid #a98d62;border-radius:7px;background:#eee3ce;color:#253a50;font-size:.875rem}
#directory .search-empty{margin:8px 0;color:#4f5d69;font-size:.9375rem;line-height:1.7}
#myPage .continue-section h3{margin:5px 0 10px;color:#243950;font-size:1rem}
#myPage .continue-card{display:grid;gap:7px;padding:13px;border:1px solid #d3c3a6;border-radius:9px;background:#fffdf7;color:#263b4e}
.continue-card strong{font-size:1rem;line-height:1.5}.continue-card small{font-size:.8rem;color:#627180;line-height:1.5}
.reading-progress{width:100%;height:8px;accent-color:#264972}.reading-progress::-webkit-progress-bar{background:#e7e1d5;border-radius:8px}.reading-progress::-webkit-progress-value{background:#264972;border-radius:8px}
.continue-button{min-height:44px;justify-self:start;padding:8px 13px;border:1px solid #a57e43;border-radius:6px;background:#e9d8b5;color:#203850;font-size:.875rem;font-weight:700}
#myPage .page-empty{margin:0 0 12px;color:#626d76;font-size:.9375rem}
.record-actions{display:grid;gap:9px;margin:16px 0 10px}
.record-actions button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:55px;padding:10px 13px;border:1px solid #d0c3a9;border-radius:8px;background:#fffdf7;color:#24384d;text-align:left;font-size:1rem}
.record-actions button[aria-expanded=true]{border-color:#b78a49;background:#f3e8d1}
.record-actions button span:last-child{flex:0 0 auto;color:#67737b;font-size:.875rem}
#myPage .page-cases{display:grid;gap:8px;margin-bottom:12px}
#myPage .page-cases[hidden]{display:none}
#myPage .page-case{background:#fffdf7;border:1px solid #d2c5af;border-radius:8px;color:#24384c}
#myPage .page-case strong{font-size:.9375rem}#myPage .page-case small{font-size:.8rem;color:#66727c}
#myPage .page-case button{background:#e9d8b5;color:#273c50;border-color:#a88957;border-radius:6px;font-size:.875rem}
#myPage .page-case .text-button{background:transparent;color:#3b5670}
.page-search{display:block;width:100%;min-height:52px;margin:16px 0;border:1px solid #b98a3d;border-radius:8px;background:#142943;color:#ffe0a0;font-size:1rem;font-weight:700}
.page-settings{margin-top:16px;border-top:1px solid #d2c7b4;color:#34495c}
.page-settings summary{min-height:48px;padding:13px 0;cursor:pointer;font-size:.875rem}
#myPage .page-note{color:#536575;font-size:.875rem}#myPage .page-note a{color:#225b88}
#myPage .profile-form{border:1px solid #d1c3a9;border-radius:7px;background:#fffdf7;color:#2b4054}
#myPage .profile-form button,#myPage .room-choice button{background:#e7d7b5;color:#25394d;border-color:#aa8b58;border-radius:6px}
#myPage .room-choice{border-color:#d2c7b4;color:#425668}
#myPage .page-help{background:#e7d7b5;color:#25394d;border-color:#aa8b58;border-radius:6px}
@media(max-width:350px){.search-unread,.search-select{flex-basis:calc(50% - 7px)}#directory,#myPage{padding-inline:14px}}
@media(max-height:550px){#directory,#myPage{max-height:88dvh}}

/* Numbered case files in the same quiet pixel world as the reading room. */
.personal-shelf-entry{display:grid;grid-template-columns:1fr auto;gap:7px;width:100%;margin:0 0 20px;padding:17px 14px;border:2px solid #b18a4e;border-radius:3px;background:#192c44;color:#f6e7ca;text-align:left;box-shadow:0 3px 0 #82623d}
.personal-shelf-entry>span:first-child{font-size:1rem;font-weight:700}.personal-shelf-entry>span:nth-child(2){align-self:center;color:#ecc689;font-size:.8rem}.personal-shelf-entry small{grid-column:1/-1;font-size:.8rem;color:#c4cbd1;line-height:1.6}
.case-shelf{position:fixed;inset:0;margin:auto;width:min(100% - 16px,460px);max-width:460px;max-height:94dvh;padding:0;border:2px solid #b29159;border-radius:3px;background:#0d1b2f;color:#f5e9d0;box-shadow:0 16px 60px #020913c9}
.case-shelf[open]{display:flex;flex-direction:column}.shelf-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 12px;border-bottom:2px solid #8a6337;background:#182940}.shelf-header .eyebrow{margin-bottom:4px;font-size:.75rem}.shelf-header h2{margin:0;font-family:DotGothic16,sans-serif;font-size:1.35rem;font-weight:400;letter-spacing:.05em}.shelf-header .close-icon{flex-shrink:0}
.shelf-body{padding:14px 12px 20px;overflow:auto;overscroll-behavior:contain}.collection-count{margin:0 4px 8px;color:#edc784;font-size:.94rem}.collection-note{margin:8px 4px 12px;color:#b8c4cf;font-size:.8rem;line-height:1.7}
.shelf-pagination{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;margin:14px 4px}.shelf-pagination button,.shelf-pagination select{width:100%;min-height:44px;border:1px solid #a98a56;border-radius:2px;background:#1c3049;color:#f3dab0;font:inherit;font-size:.875rem}.shelf-pagination select{padding:8px}.shelf-pagination button:disabled{opacity:.35;cursor:default}
.collection-rows{display:grid;gap:1px;border:2px solid #493520;background:#0a1525;box-shadow:0 3px 0 #493520}.collection-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;height:clamp(126px,36vw,152px);padding:5px 14px 12px;background:url('./personal-shelf-row-v1.png') center/100% 100% no-repeat;image-rendering:pixelated}
.file-slot{position:relative;isolation:isolate;min-width:0;padding:0;border:0;background:transparent;color:#e9dabd;overflow:hidden;touch-action:manipulation}.file-slot img{position:absolute;top:0;left:-35%;width:170%;height:calc(100% - 9px);object-fit:fill;image-rendering:pixelated;pointer-events:none;filter:drop-shadow(3px 2px 0 #0006)}
.file-slot.empty::before{content:'';position:absolute;top:7px;bottom:21px;left:20%;right:20%;border:1px dashed #8193a55c;background:#12243a33;box-shadow:inset 0 0 0 3px #14253a33}.file-slot[aria-pressed=true]{outline:2px solid #f2c77a;outline-offset:-2px;background:#d9aa451b}.file-slot:focus-visible{outline:3px solid #ffe4a5;outline-offset:-3px}.file-slot:disabled{opacity:.45;cursor:default}
.file-number{position:absolute;z-index:1;top:35%;left:50%;transform:translateX(-50%);padding:3px 1px;width:36px;background:#ddd3b6;color:#162943;font-family:DotGothic16,monospace;font-size:.8rem;line-height:1.2;text-align:center;box-shadow:1px 1px 0 #362b2080}.empty .file-number{background:#112238bc;color:#aebdcb;box-shadow:none}.file-state{position:absolute;z-index:1;bottom:0;left:0;right:0;text-align:center;font-size:.65rem;line-height:1.4;color:#bbcad4}.collected .file-state{color:#f0d5a0}
.collection-detail{margin:16px 4px;padding:16px;border:1px solid #75623f;background:#192b42;min-height:88px}.collection-detail h3{margin:0 0 8px;font-size:1rem;line-height:1.7}.collection-detail .eyebrow{margin-bottom:6px;font-family:DotGothic16,monospace}.collection-detail p{font-size:.875rem;line-height:1.8;overflow-wrap:anywhere}.collection-detail .file-detail-state{color:#c5cdd2;margin:6px 0 12px}.collection-detail .continue-button{margin-bottom:9px;background:#e5bf7b;color:#172940;border:1px solid #ffdda5;border-radius:2px}.collection-detail small{display:block;color:#bcc9d2;font-size:.8rem;line-height:1.7}.collection-detail .saved-reflection{white-space:pre-wrap;padding-top:12px;border-top:1px solid #526172}
.registration{position:fixed;inset:0;margin:auto;width:min(100% - 24px,440px);max-height:88dvh;overflow:auto;padding:22px;border:2px solid #b99a68;border-radius:3px;background:#17273e;color:#f4ebd9}.registration p{font-size:.9rem;line-height:1.8}.registration .sheet-head h2{margin-bottom:10px}.registration .profile-form{margin-top:18px;gap:14px;padding:14px}.registration .profile-form input{min-height:46px}.registration .profile-form button{min-height:46px}.registration .registration-note{color:#bbc6d0;font-size:.8rem}.registration #registrationStatus:empty{display:none}
.article .read-end{margin:32px 0 20px;padding:22px 18px;border:2px solid #b49a68;background:#f7f1e2;border-radius:2px}.read-end h3{margin:0 0 8px;font-size:1.15em}.article .read-end .eyebrow{font-size:.75em;color:#785e32}.article .read-end-note{font-size:.85em;line-height:1.8;margin:8px 0 16px;color:#59636d}.collect-button{width:100%;min-height:48px;padding:12px;border:1px solid #907442;border-radius:2px;background:#23394f;color:#ffe3ac;font:inherit;font-size:.875em;line-height:1.5}.collect-button:disabled{background:#e8deca;color:#566052;border-color:#b4ac96;cursor:default}
.article .save-status{margin:10px 0;font-size:.8em;line-height:1.8;color:#4e6070}.save-status:empty{display:none}.reflection-details{border-top:1px solid #cdbf9f;margin-top:18px;padding-top:8px}.reflection-details>summary,.community>summary{min-height:48px;padding:10px 0;cursor:pointer;line-height:1.7;font-size:.875em;font-weight:700}.reflection-form{display:grid;gap:12px;margin-top:10px;font-size:.875em}.reflection-form>label:first-child{display:grid;gap:7px}.reflection-form textarea{display:block;width:100%;padding:12px;border:1px solid #ac9b78;border-radius:2px;background:#fffdf7;color:#25394c;font:inherit;resize:vertical;line-height:1.8;min-height:120px;max-height:320px}.reflection-publish{display:flex;align-items:center;gap:8px;line-height:1.7}.reflection-publish input{width:20px;height:20px;flex-shrink:0;accent-color:#816735}.article .reflection-audience{margin:0;color:#5c6a74;font-size:.875em;line-height:1.7}.reflection-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.reflection-actions button{min-height:44px;padding:10px 14px;border:1px solid #9f8353;border-radius:2px;background:#e8d5ae;color:#23394c;font:inherit}.reflection-actions .text-button{background:transparent;border:0;text-decoration:underline;font-size:.875em}.reflection-form [hidden]{display:none}.article .community{margin-top:20px}.community>summary{color:#345169}.article .comment p{white-space:pre-wrap}
@media(max-width:350px){.collection-row{padding-inline:9px}.file-number{width:31px;font-size:.75rem}.shelf-header{padding-inline:14px}.shelf-body{padding-inline:8px}.personal-shelf-entry{grid-template-columns:1fr}.personal-shelf-entry small{grid-column:auto}}
.file-state{font-size:.75rem}.reflection-form textarea{font-size:1rem}
.collected .file-number{top:auto;bottom:0;left:0;right:0;width:auto;transform:none;padding:0;background:none;box-shadow:none;color:#f0d5a0;line-height:1.4;font-size:.875rem}.file-slot.collected img{height:calc(100% - 23px)}
.page-share,.case-share-button{display:block;width:100%;min-height:46px;padding:11px 14px;border:1px solid #977640;border-radius:3px;background:#20364e;color:#f5dfb1;font:inherit;font-size:.875rem;text-align:center;line-height:1.6}.page-share{margin-top:16px}.install-guide-link{display:block;width:100%;min-height:44px;margin-top:8px;border:0;background:transparent;color:#365775;text-decoration:underline;font-size:.875rem}.collection-detail .case-share-button{margin-top:14px;border-color:#a78b56}.reading-share{margin:24px 0;padding:18px 0;border-bottom:1px solid #cbbf9f}.reading-share h3{margin:0 0 12px;font-size:1rem;line-height:1.8}.reading-share .case-share-button{font-size:1rem}
.engagement-dialog{position:fixed;inset:0;margin:auto;width:min(100% - 24px,440px);max-width:440px;max-height:90dvh;overflow:auto;overscroll-behavior:contain;padding:22px;border:2px solid #b99a68;border-radius:3px;background:#17273e;color:#f4ebd9;box-shadow:0 14px 50px #020913b0}.engagement-dialog h2{margin:0 0 16px;font-size:1.25rem;line-height:1.6;overflow-wrap:anywhere}.engagement-dialog .sheet-head h2{margin:0;align-self:center}.engagement-dialog .sheet-head{margin-bottom:18px}.engagement-dialog .close-icon{flex-shrink:0;width:44px;height:44px}.engagement-dialog p{font-size:1rem;line-height:1.85}.engagement-dialog .eyebrow{font-size:.8125rem;margin:0;align-self:center}
.engagement-dialog .share-message{white-space:pre-wrap;margin:0 0 20px;padding:16px;border:1px solid #596572;background:#102036;font-size:.9375rem;line-height:1.9;overflow-wrap:anywhere}.share-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.share-actions button,.share-actions a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:11px 8px;border:1px solid #a98a56;border-radius:2px;font:inherit;font-size:.9375rem;text-decoration:none;text-align:center;line-height:1.6;color:#f5e7cc;background:#253b53}.share-actions .share-native{grid-column:1/-1;background:#e6bd77;color:#16273d;border-color:#efce95;font-weight:700}.share-actions .share-line{background:#087d45;border-color:#24996c;color:#fff}.share-actions .share-x{background:#0b1420;border-color:#657080;color:#fff}.share-actions .share-copy{grid-column:1/-1}.share-actions [hidden]{display:none}
.share-url-label{display:grid;gap:7px;margin-top:18px;font-size:.8125rem;color:#c6ced5}.share-url-label input{width:100%;min-height:44px;padding:10px;border:1px solid #64717e;border-radius:2px;background:#102036;color:#e3e6e5;font:inherit;font-size:1rem}.engagement-dialog .engagement-status{margin:12px 0 0;font-size:.875rem;line-height:1.8;color:#ead0a1}.engagement-status:empty{display:none}
.install-guide .sheet-head img{border:1px solid #a98a56;border-radius:10px}.install-guide h2{font-family:DotGothic16,sans-serif;font-size:1.6rem;font-weight:400;line-height:1.6;margin:10px 0 14px}.install-guide .install-intro{margin:0 0 20px;color:#dfdfd6}.install-guide .install-platform{font-size:.875rem;font-weight:700;color:#e6bd77;margin:0 0 10px}.install-steps{display:grid;gap:12px;margin:0 0 22px;padding:17px 16px 17px 36px;border:1px solid #586575;background:#102036;font-size:.875rem;line-height:1.85}.engagement-primary,.engagement-secondary{display:block;width:100%;min-height:48px;padding:11px 14px;margin-top:10px;border:1px solid #ae8c53;border-radius:2px;background:#e6bd77;color:#17273e;font:inherit;font-size:1rem;line-height:1.6}.engagement-secondary{background:#263d55;color:#f1dfba;border-color:#748394}.engagement-primary[hidden]{display:none}.install-guide .install-later{font-size:.8125rem;text-align:center;color:#b9c5d0;margin:14px 0 0}.engagement-dialog .shared-case-court{font-size:.875rem;color:#c2cbd2;line-height:1.8}
@media(max-width:350px){.engagement-dialog{padding:18px}.install-guide h2{font-size:1.4rem}.share-actions{gap:8px}.share-actions button,.share-actions a{font-size:.875rem}}

/* Public shelves, quiet friendships, and a legible address within the room. */
.room-masthead{position:absolute;z-index:4;top:80px;left:14px;right:14px;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px;pointer-events:none}
.room-identity{min-width:0;padding:5px 8px;background:#101d32df;color:#f2daa9;text-shadow:0 1px 2px #07111b;font-family:DotGothic16,sans-serif;line-height:1.35}
.room-identity p{margin:2px 0 0;color:#d7c8a9;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;font-size:.6875rem;line-height:1.3}
.room-location{flex:none;min-height:44px;max-width:40%;padding:5px 7px;border:0;border-radius:2px;background:#101d32c9;color:#d2c7ae;font-family:DotGothic16,sans-serif;font-size:.75rem;line-height:1.35;pointer-events:auto}
.room-location::after{content:"⌄";margin-left:5px;color:#d9b978}
.reading .room-masthead{visibility:hidden}
@media(max-width:350px){.room-masthead{left:8px;right:8px;gap:3px}.room-identity{padding-inline:5px}.room-identity h1{font-size:1rem}.room-identity p{font-size:.625rem}.room-location{padding-inline:4px;font-size:.6875rem}}
.community-entries{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.community-entries button{min-height:60px;padding:12px 8px;border:1px solid #9d8051;border-radius:3px;background:#20364e;color:#f5dfb1;font-size:1rem;line-height:1.5}.community-entries span{display:block;font-size:.875rem;color:#f0ce8d}.friend-notice{font-size:.875rem!important;line-height:1.7;color:#43596b!important}.friend-notice:empty{display:none}
.community-dialog{width:min(100% - 24px,460px);max-width:460px}.community-dialog .community-intro{margin:0 0 18px;color:#c1ccd4;font-size:.9375rem;line-height:1.8}.reader-cards{display:grid;gap:12px}.reader-cards h3{font-size:1rem;margin:18px 0 0;color:#e5bc71}
.reader-card{display:grid;gap:10px;min-width:0;padding:16px;border:1px solid #68747c;border-radius:3px;background:#102036;color:#f5e8d1;text-align:left;margin:0 0 12px;overflow-wrap:anywhere}.reader-cards .reader-card{margin-bottom:0}.reader-card strong,.reader-card h3{font-size:1rem;line-height:1.65;margin:0}.reader-card small{font-size:.875rem;color:#bdc9d3;line-height:1.65}.reader-card-link{width:100%;min-height:86px}.reader-card-link:active{background:#263d55}.reader-card p{margin:0;font-size:1rem;line-height:1.9}.public-note p{white-space:pre-wrap}.reader-name{display:inline-block;min-height:44px;padding:8px 0;border:0;background:transparent;color:#f5d296;font:inherit;font-size:1rem;line-height:1.6;text-align:left;text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}.comment .reader-name{color:#355a75;font-size:.9375rem}
.community-button{display:block;width:100%;min-height:46px;padding:11px 14px;border:1px solid #b49a68;border-radius:3px;background:#263d55;color:#f7e5bd;font:inherit;font-size:.9375rem;line-height:1.6;white-space:normal}.community-button:disabled{opacity:.5;cursor:default}.community-button[hidden]{display:none}.quiet-link{min-height:44px;padding:9px 0;border:0;background:transparent;color:#e8ca94;font:inherit;font-size:.875rem;line-height:1.7;text-decoration:underline;text-underline-offset:3px;text-align:left}.quiet-link:disabled{opacity:.55;cursor:default}
.public-friend-actions{display:flex;flex-wrap:wrap;gap:9px;margin:0 4px 16px}.public-friend-actions p{margin:0;width:100%}.public-friend-actions>.community-button{flex:1 1 125px;width:auto}.public-friend-actions .reader-options{width:100%}.friend-label,.online-label{font-size:.9375rem!important;line-height:1.7;color:#f0cb83!important}.reader-card .online-label::before{content:'● ';color:#9dceaf}.reader-options>summary{min-height:44px;padding:9px 0;color:#c3cdd4;font-size:.875rem;line-height:1.7;cursor:pointer}.reader-options .quiet-link{display:block}
.shelf-views{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px;margin:0 4px 18px}.shelf-views button{min-height:46px;padding:8px 3px;border:1px solid #71808e;border-radius:2px;background:#14263d;color:#e7e3d6;font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}.shelf-views button[aria-pressed=true]{background:#e5bd7b;color:#18293d;border-color:#ffe1a7}.public-shelf .shelf-header h2{font-size:1.2rem;overflow-wrap:anywhere}.public-shelf .shelf-header>div{min-width:0}.public-pagination{margin:10px 4px 14px}.public-pagination select,.floor-select select{width:100%;min-height:46px;padding:8px 10px;border:1px solid #9c885e;border-radius:2px;background:#1c3049;color:#f3dab0;font:inherit;font-size:1rem}.file-favorite{position:absolute;z-index:2;top:8px;right:12%;color:#ffe4a0;font-size:1rem;text-shadow:0 1px 2px #000}.public-shelf .file-slot:disabled{opacity:.6}.public-shelf .collection-detail{margin-inline:0}.public-shelf .reader-card{margin-inline:4px}
.floor-select{display:grid;gap:7px;margin:0 0 16px;font-size:.875rem;line-height:1.7;color:#ccd1d1}.visibility-form{display:grid;gap:18px}.visibility-form>label{display:flex;align-items:flex-start;gap:12px;font-size:1rem;line-height:1.8;padding:8px 0;cursor:pointer}.visibility-form input{flex:0 0 22px;width:22px;height:22px;margin-top:4px;accent-color:#deb671}.visibility-form small{display:block;color:#c0cbd4;font-size:.875rem;line-height:1.8;margin-top:6px}.privacy-note{font-size:.875rem!important;line-height:1.85!important;color:#bdc9d3!important;overflow-wrap:anywhere}.visibility-form .privacy-note{margin:0;padding:12px;border-left:2px solid #c5a26a;background:#102036}.public-shelf .engagement-status{font-size:.875rem;line-height:1.8;color:#ecd19e;margin:0 4px 14px}.public-shelf .engagement-status:empty{display:none}
.about-room .purpose-heading{font-family:DotGothic16,sans-serif;font-size:1.35rem;line-height:1.7;color:#f1cf92;padding-bottom:18px;border-bottom:1px solid #756143}.about-room p{margin:0 0 20px;line-height:2}.install-guide .purpose-short{font-size:.875rem;line-height:1.8;color:#ecd19e;margin:0}.install-guide #installAbout{margin:2px 0 16px}
.reader-head{flex-wrap:wrap;justify-content:space-between}.reader-head .favorite{font-size:.875rem;min-height:44px;padding:7px 9px;border:1px solid #ad8a52;border-radius:3px;color:#725020;line-height:1.5}.reader-head .favorite[aria-pressed=true]{background:#f0dba5}.reader-head .reader-place{flex-basis:100%;margin:0;font-size:.875rem;line-height:1.5;text-align:center;color:#596267;padding-bottom:4px}.reader-head .stand{font-size:.875rem}
.public-shelf .file-state,.collection-note,.personal-shelf-entry small,.personal-shelf-entry>span:nth-child(2),.file-state,.collection-detail small{font-size:.875rem}
@media(max-width:350px){.community-dialog{padding:16px}.public-friend-actions{margin-inline:0}.shelf-views{margin-inline:0}.reader-card{padding:12px}.community-entries{grid-template-columns:1fr}.reader-head{padding-inline:10px}.reader-head .favorite{padding-inline:6px}}
@media(max-height:550px){.community-dialog,.public-shelf{max-height:92dvh}.reader-head .reader-place{display:none}}
.large-text .collection-row{grid-template-columns:repeat(2,minmax(0,1fr));height:auto;grid-auto-rows:190px;row-gap:16px;padding:10px 12px;background-size:100% 206px;background-repeat:repeat-y}.large-text .file-number{font-size:.875rem}.large-text .shelf-header{align-items:flex-start}.large-text .shelf-views{grid-template-columns:1fr}.large-text .community-entries{grid-template-columns:1fr}
