:root{color-scheme:light;--paper:#f5f0e5;--ink:#393e38;--muted:#777d71;--line:#d6d5c8;--rust:#a74e37;--green:#4d6258}*{box-sizing:border-box}body{margin:0;background:#e8e8db;color:var(--ink);font:16px/1.85 system-ui,-apple-system,'PingFang SC',sans-serif}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:1px dotted #397fa5;outline-offset:2px}button{border:1px solid var(--line);background:var(--paper);padding:8px 18px}a{color:inherit}.serif,h1,h2,h3{font-family:'Noto Serif SC','Songti SC',serif}h1,h2,h3,p{margin-top:0}.shell{max-width:1240px;margin:auto;padding:0 40px}.utility{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:13px 0;font-size:12px;letter-spacing:1.8px;color:var(--muted)}.masthead{position:relative;display:flex;justify-content:space-between;align-items:center;padding:44px 0 35px;gap:25px}.masthead h1{font-size:40px;letter-spacing:6px;margin:0 0 5px;font-weight:600}.masthead p{font-size:13px;letter-spacing:4px;color:var(--muted);margin:0}.stamp{border:1px solid #af6954;color:#af6954;width:75px;height:75px;border-radius:50%;display:grid;place-content:center;transform:rotate(-13deg);font-family:serif;text-align:center;line-height:1.5;font-size:14px;margin-right:20px}.nav{display:flex;align-items:center;gap:26px;border-top:2px solid var(--ink);border-bottom:1px solid var(--line);padding:13px 0;font-size:14px}.nav button{border:0;background:none;padding:0}.nav .active{color:var(--rust)}.nav span{margin-left:auto;color:var(--muted);font-size:12px}.layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:40px;padding-top:32px;padding-bottom:80px}.side-title{font-size:12px;letter-spacing:2px;color:var(--muted);margin:0 0 15px}.sea{height:133px;position:relative;overflow:hidden;background:linear-gradient(#d9d5bd 0 58%,#99aaa0 58%);margin-bottom:12px}.sea:before{content:'';position:absolute;width:40px;height:40px;background:#e9c9a4;border-radius:50%;top:30px;left:105px}.sea:after{content:'夕 浜';position:absolute;bottom:12px;left:15px;letter-spacing:5px;color:#edf0da}.side-copy{font-family:serif;font-size:14px;color:var(--muted);line-height:2.1}.side-rule{border-top:1px solid var(--line);margin:25px 0}.ad{font-size:12px;margin-bottom:20px;color:#7c8076;line-height:1.7}.broken{border:1px dashed #bec3b4;background:#dfe2d5;padding:5px 9px;font:12px monospace;margin-bottom:5px;color:#87907e}.notice{padding:14px 18px;border:1px solid #d9c7b4;background:#f1e8d7;font-size:14px;display:flex;gap:12px}.notice b{color:var(--rust);white-space:nowrap}.search{display:flex;margin:24px 0 9px;border-bottom:2px solid var(--green);background:#f8f5ee}.search input{width:100%;min-width:0;border:0;background:none;padding:14px 16px;color:var(--ink);outline-offset:0}.search button{background:var(--green);color:#fff;border:0;min-width:94px}.search-help{color:var(--muted);font-size:12px;margin-bottom:28px}.section-line{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.section-line h2{font-size:22px;margin:0;letter-spacing:2px}.section-line span{font-size:12px;color:var(--muted)}.postlist{border-top:1px solid var(--ink)}.postrow{display:flex;align-items:center;gap:18px;padding:20px 12px;border-bottom:1px solid var(--line)}.postrow.pinned{background:#f5efdf;cursor:pointer}.postrow.pinned:hover{background:#fff9eb}.postrow .number{font-family:serif;color:#909589;font-size:14px}.postrow .rowtext{flex:1}.postrow h3{font-family:inherit;font-size:16px;font-weight:400;margin:0 0 5px}.postrow p{font-size:12px;color:var(--muted);margin:0}.tag{color:var(--rust);font-size:12px;margin-right:8px}.last{font-size:12px;text-align:right;color:var(--muted);white-space:nowrap}.last em{color:var(--rust);font-style:normal}.footnote{text-align:center;color:var(--muted);font-size:12px;margin:27px 0;letter-spacing:2px}.breadcrumb{font-size:13px;color:var(--muted);margin:0 0 15px}.breadcrumb button{border:0;padding:0;background:none}.thread-title{font-size:27px;line-height:1.6;margin:8px 0 20px}.entry{padding:26px 30px;background:var(--paper);border:1px solid var(--line);margin-bottom:15px}.entry header{display:flex;justify-content:space-between;margin-bottom:20px;font-size:14px}.entry time{font-size:12px;color:var(--muted)}.entry p{white-space:pre-wrap;margin-bottom:12px}.entry p:last-child{margin-bottom:0}.entry details{border-top:1px dashed var(--line);margin-top:20px;padding-top:12px;font-size:14px}.entry summary{cursor:pointer;color:var(--muted)}.reply{padding:13px 0 8px;border-bottom:1px solid var(--line)}.reply:last-child{border-bottom:0}.secret{font:inherit;color:inherit;background:none;border:0;padding:0;display:inline;text-align:left}.secret.found{color:var(--character)!important}.secret:hover{text-decoration:underline;text-decoration-style:dotted;text-underline-offset:5px}pre{font:12px/1.1 monospace;overflow:auto}.attachment{display:flex;align-items:center;justify-content:center;flex-direction:column;width:230px;max-width:100%;min-height:110px;background:#dfdfd8;border:1px solid #cbcfc4;color:#737d70;font-size:13px;gap:10px}.attachment span{font-size:25px}.chat-launch{position:fixed;bottom:26px;right:30px;width:62px;height:62px;border-radius:50%;border:3px solid #e9f4fc;background:#85c5fa;color:white;font-size:27px;box-shadow:0 4px 20px #43564d30;z-index:8}.chat-launch.unread:after{content:'';position:absolute;right:0;top:0;background:#efd080;border:3px solid #f5f0e5;width:10px;height:10px;border-radius:50%}.chat{position:fixed;right:28px;bottom:100px;width:360px;max-width:calc(100vw - 28px);height:480px;max-height:70vh;background:#f6f8f6;border:1px solid #a2b9c3;box-shadow:0 10px 60px #273a3330;z-index:9;display:flex;flex-direction:column;line-height:1.7}.chat header{display:flex;justify-content:space-between;padding:13px 16px;background:#e0edf2;font-size:14px}.chat header button{padding:0;border:0;background:none;font-size:22px}.messages{overflow:auto;flex:1;padding:17px;min-height:100px}.bubble{padding:11px 13px;background:#e5edf0;margin:0 25px 12px 0;font-size:14px;white-space:pre-wrap}.bubble.user{margin:0 0 12px 25px;background:#e8eddf}.choices{padding:12px;display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #d1dfe1}.choices button,.choices select{font-size:13px;background:white;padding:7px 10px;border:1px solid #ccd8dc}.choices button{width:100%;text-align:left}.choices select{flex:1;min-width:0}.collection{display:flex;flex-wrap:wrap;gap:8px}.token{width:39px;height:39px;border:1px solid var(--line);display:grid;place-content:center;border-radius:50%;font:13px monospace;color:var(--muted)}.token.collected{color:var(--character);background:#f5f2e8;border-color:var(--character)}dialog{border:1px solid #aaa998;background:var(--paper);color:var(--ink);width:500px;max-width:calc(100vw - 32px);padding:30px;max-height:85vh;overflow:auto;box-shadow:0 20px 100px #17282350}dialog::backdrop{background:#283c3260;backdrop-filter:blur(3px)}.modal-close{float:right;border:0;background:none;padding:0;font-size:22px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.primary{background:var(--green);color:#fff;border-color:var(--green)}.character-art{height:170px;display:grid;place-content:center;font:50px monospace;color:var(--character);background:#e6e5db;margin:24px 0}.welcome h2{font-size:27px}.welcome .eyebrow{font-size:12px;letter-spacing:3px;color:var(--rust)}.welcome p{font-size:14px}.welcome .duration{border-top:1px solid var(--line);padding-top:13px;color:var(--muted)}.no-results{padding:45px 24px;text-align:center;border:1px dashed var(--line)}
.shop-mode{background:#222121;color:#dddcd2;--paper:#222523;--ink:#dddcd2;--line:#414640;--muted:#979d93;--green:#687969}.shop{max-width:1150px;margin:auto;padding:30px 40px 80px}.shopbar{display:flex;justify-content:space-between;border-bottom:1px solid #56594f;padding-bottom:25px;gap:15px;flex-wrap:wrap}.shopbar button{border:0;background:none;color:#c6c7bc;padding:0;margin-left:20px;font-size:14px}.shoplogo{font-family:serif;font-size:22px;letter-spacing:5px}.shopintro{padding:55px 0 35px;max-width:680px}.shopintro h1{font-size:40px;font-weight:400;letter-spacing:7px}.shopintro p{color:#969e93;font-size:15px}.goods{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.good{padding:0;text-align:left;background:none;border:0}.good-art{height:170px;background:#2c302c;display:grid;place-content:center;font:60px Georgia;color:#6f7668}.good h3{font-weight:400;font-size:17px;margin:12px 0 0}.good p{font-size:12px;color:#909788}.drawer{position:fixed;right:0;top:0;bottom:0;width:50%;padding:35px;background:#252925;border-left:1px solid #555c50;z-index:12;display:flex;flex-direction:column}.drawer button:last-child{margin-top:auto}.faq{max-width:780px;margin:40px auto}.faq details{border-bottom:1px solid #464d42;padding:22px 0}.faq summary{cursor:pointer}.faq p{color:#adb5a6;white-space:pre-wrap;padding:20px 0 0}.tvwall{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.tv{background:#242a27;border:8px solid #393e38;border-radius:12px;color:#9ea99b;aspect-ratio:1.5;font-size:13px;box-shadow:inset 0 0 35px #000}.tv:last-child{border-color:#3b454c;color:#8ab6ce}.flowers{display:flex;justify-content:center;gap:15px;margin:30px 0}.flowers button{font-size:30px;border:0;background:none;color:#7a956a}.room-mode{background:#242728;color:#c6d0d1}.room{max-width:800px;margin:auto;padding:60px 30px;text-align:center}.room .lead{font-size:12px;letter-spacing:4px;color:#7f999d}.room p{opacity:0;animation:appear 1.5s forwards;text-align:left;line-height:2.2}.room p:nth-of-type(2){animation-delay:2s}.room p:nth-of-type(3){animation-delay:4s}.room p:nth-of-type(4){animation-delay:6s}@keyframes appear{to{opacity:1}}.monitor{width:400px;max-width:100%;margin:50px auto 25px;border:16px solid #393e41;border-bottom-width:30px;border-radius:8px;aspect-ratio:1.5;background:linear-gradient(165deg,#85bddd 0 60%,#81934f 60%);box-shadow:0 0 60px #85c5fa20;display:grid;place-content:center;color:white;font:30px monospace}.leds{font:12px monospace;color:#88b7a6;letter-spacing:7px}.ending-card{text-align:center}.ending-card .collection{justify-content:center}.toast{position:fixed;top:25px;left:50%;transform:translateX(-50%);background:#343e35;color:#f0f1e5;padding:15px 25px;z-index:20;font-size:14px;max-width:90vw;box-shadow:0 4px 30px #0003}.visited{display:block;padding:4px 0;border:0;background:none;font-size:13px;color:var(--green)}@media(max-width:760px){.shell{padding:0 20px}.masthead{padding:27px 0}.masthead h1{font-size:27px;letter-spacing:3px}.masthead p{font-size:11px;letter-spacing:2px}.stamp{display:none}.utility{font-size:10px;letter-spacing:.5px}.layout{grid-template-columns:1fr;padding-top:20px;gap:15px}.sidebar{display:none}.nav{gap:20px}.notice{font-size:13px}.postrow{gap:10px;padding:17px 5px}.postrow h3{font-size:14px}.last{font-size:11px}.entry{padding:20px 17px}.thread-title{font-size:23px}.shop{padding:25px 20px 90px}.goods,.tvwall{grid-template-columns:repeat(2,1fr);gap:15px}.good-art{height:130px}.shopintro h1{font-size:30px}.drawer{width:90%}.chat{right:14px}.chat-launch{right:20px}.section-line h2{font-size:20px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-delay:0ms!important;scroll-behavior:auto!important}}

.character-image{display:block;width:100%;height:min(42vh,330px);object-fit:contain;background:#fff;border-radius:3px;margin:12px 0 20px}.flower{min-width:24px;min-height:24px;line-height:1;color:#526f44}.flower:hover{color:#a74e37;transform:translateY(-2px)}

.group-art{display:flex;flex-wrap:wrap;justify-content:center;background:white}.group-art img{width:25%;height:auto;object-fit:contain;transform-origin:center center}.entry pre{font-size:13px;line-height:1.4}.entry .flower{font:inherit;min-width:0;min-height:0;border:0}.nav span[data-count]{margin-left:0;color:inherit;font-size:inherit}

.shopbar{position:relative;z-index:11;background:#222121}.drawer{padding-top:120px}

.secret.found .name-part{color:var(--part)}.aside-text{font-size:.5em;opacity:.5}

/* All interface and story text uses Source Han Sans. Only headings and
   manuscript-derived <strong> spans receive bold weight. */
@font-face{font-family:"Twilight Source Han Sans";src:url("assets/fonts/SourceHanSansCN-Regular.otf") format("opentype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Twilight Source Han Sans";src:url("assets/fonts/SourceHanSansCN-Bold.otf") format("opentype");font-weight:700;font-style:normal;font-display:swap}
html,body,body *,body *::before,body *::after{font-family:"Twilight Source Han Sans",sans-serif!important;font-weight:400;font-style:normal}
h1,h2,h3,h4,h5,h6,h1 *,h2 *,h3 *,h4 *,h5 *,h6 *{font-weight:700}
.entry strong,.entry strong *{font-weight:700}

/* UI reference: TwilightBayBBS-4.html. Narrative remains in content.js. */
body:not(.shop-mode):not(.room-mode){--paper:#edfaff;--ink:#183445;--muted:#66818e;--line:#93bed0;--green:#397fa5;background:repeating-linear-gradient(0deg,#c8edfa 0,#c8edfa 1px,#bfe8f7 1px,#bfe8f7 4px);color:#183445;font-size:14px;line-height:1.55}
.shell{width:min(980px,96vw);max-width:980px;margin:12px auto;padding:0;background:#edfaff;border:1px solid #397fa5;box-shadow:2px 2px 0 #7dbbd5}
.masthead{min-height:92px;padding:13px 16px;gap:15px;background:linear-gradient(#dff7ff,#9ddcf3);border-bottom:3px double #397fa5}
.masthead h1{font-size:27px;letter-spacing:2px;color:#185f88;text-shadow:1px 1px #fff;margin:0;line-height:1.5}
.brand-en{font-size:11px;letter-spacing:2px;color:#4b819b}
.utility{display:flex;flex-direction:column;flex-shrink:0;gap:0;text-align:right;font-size:12px;letter-spacing:0;line-height:1.6;background:#eefbff;border:1px solid #79b7d1;padding:6px 9px;color:#183445}
.nav{justify-content:center;gap:9px;background:#75c4e6;border:0;border-bottom:1px solid #397fa5;padding:5px 8px;font-size:13px;line-height:1.5}
.nav button{color:#0645ad;text-decoration:underline}
.nav .nav-separator{margin:0;color:#1e607d;font-size:13px}
.layout{gap:10px;padding:10px;align-items:start}
.home-layout{grid-template-columns:210px minmax(0,1fr)}
.thread-layout{display:block}
.bbs-panel,.home-layout main{border:1px solid #6ca7c0;background:#fff;min-width:0}
.bbs-panel+.bbs-panel{margin-top:10px}
.panel-title{padding:4px 7px;margin:0;font-size:14px;letter-spacing:0;line-height:1.55;background:#8fd2ed;color:#174f69;border-bottom:1px solid #6ca7c0;font-weight:700}
.panel-body{padding:8px}
.search{display:flex;gap:4px;margin:0;border:0;background:none}
.search input{width:100%;border:1px inset #aaa;background:#fff;padding:4px;line-height:1.5;font-size:13px;color:#183445}
.search button,.bbs-footer button{border:1px outset #aaa;background:#eee;color:#183445;min-width:0;padding:2px 9px;font-size:13px}
.thread-layout main>.search{max-width:340px;margin-bottom:10px}
.ad{display:flex;align-items:center;gap:5px;padding:7px 3px;border-bottom:1px dotted #aaa;font-size:13px;margin:0;line-height:1.55;color:#6d7d86}
.ad:last-child{border-bottom:0}.ad>span:last-child{text-decoration:underline;cursor:not-allowed}
.broken{display:inline-block;flex-shrink:0;width:34px;height:28px;border:1px solid #aaa;background:#f7f7f7;margin:0;padding:0;color:#c33;font-size:9px;text-align:center;line-height:13px}
.postlist{border-top:0;padding:0 8px 8px}
.postrow{padding:8px 5px;gap:8px;border-bottom:1px solid #c8dfe8;align-items:center;min-height:48px}
.postrow.pinned{background:#fffde4;border:0;border-bottom:1px solid #c8dfe8;box-shadow:none}
.postrow.pinned:hover{background:#fff9cc}.postrow:not(.pinned):hover{background:#f4fcff}
.postrow .number{display:none}.postrow .rowtext{min-width:0}.postrow h3{font-size:14px;line-height:1.6;margin:0;color:#6d7d86;font-weight:400}
.postrow.pinned h3{color:#0645ad;text-decoration:underline;font-weight:700}
.postrow p{font-size:12px;margin:3px 0 0;color:#66818e}
.tag{font-size:11px;border:1px solid #d7a82e;background:#fff4a5;color:#674f0d;padding:1px 3px;white-space:nowrap;margin:0}
.last{min-width:70px;flex-shrink:0;font-size:12px;color:#777;line-height:1.6}.last em{color:#183445}
.breadcrumb{font-size:12px;color:#668;margin:0 0 8px}.breadcrumb button{color:#0645ad;text-decoration:underline}
.thread-title{font-size:18px;line-height:1.6;margin:0 0 8px;color:#183445;letter-spacing:0}
.entry{display:grid;grid-template-columns:115px minmax(0,1fr);padding:0;background:#fff;border:1px solid #93bed0;margin:0 0 8px;line-height:1.55}
.entry>header{display:block;background:#e6f6fc;border-right:1px solid #b6d5e1;padding:8px;margin:0;font-size:14px;overflow-wrap:anywhere}
.post-body{padding:9px;min-width:0;min-height:70px}
.entry p{margin:0 0 7px;font-size:14px;overflow-wrap:anywhere}.entry p:last-child{margin:0}
.post-time{text-align:right;color:#888;font-size:12px;margin-top:8px}
.entry details{border:0;margin-top:9px;padding:0;font-size:13px}
.entry summary{display:list-item;list-style-position:inside;width:fit-content;border:1px outset #aaa;background:#eee;padding:2px 7px;color:#183445;font-size:12px}
.reply{padding:9px;border:1px solid #93bed0;border-bottom:0;background:#fff;margin:0;font-size:14px}
.reply:first-of-type{margin-top:8px}.reply:last-child{border-bottom:1px solid #93bed0}
.entry pre{margin:7px 0;font-size:12px;line-height:1.4;color:#183445}
.attachment{background:#ddd;border:1px solid #aaa;border-radius:0;min-height:100px;width:220px;box-shadow:none}
.bbs-footer{text-align:center;padding:12px;border-top:3px double #7eb4ca;background:#dff4fc;font-size:11px;color:#7092a2}
.bbs-footer button{margin:0 4px 9px}
body:not(.shop-mode):not(.room-mode) dialog{background:#e9f8fe;color:#183445;border:2px outset #b8dce9;box-shadow:5px 5px 0 #0003;padding:42px 15px 15px;line-height:1.55}
body:not(.shop-mode):not(.room-mode) dialog::before{content:'夕浜镇网络告示板';display:block;position:absolute;top:0;left:0;right:0;padding:4px 7px;background:#4c9fc5;color:#fff;font-size:13px;text-align:left}
dialog::backdrop{background:rgba(18,49,63,.48);backdrop-filter:none}
dialog h2,.welcome h2{font-size:18px}.welcome p{font-size:14px;line-height:1.55}
body:not(.shop-mode):not(.room-mode) .modal-close{position:absolute;right:6px;top:1px;color:white;font-size:20px;z-index:1;line-height:1.4}
body:not(.shop-mode):not(.room-mode) .modal-actions button{border:2px outset #aaa;background:#eee;padding:4px 18px;color:#183445;font-size:13px}
.chat{right:18px;bottom:90px;width:min(350px,calc(100vw - 24px));height:470px;background:#f4fbfe;border:2px outset #a9d4e4;box-shadow:4px 4px 0 #0003;line-height:1.55;color:#183445}
.chat header{background:#4c9fc5;color:#fff;padding:4px 7px;font-size:14px}.chat header b{font-weight:400}.chat header button{color:#fff;font-size:18px;line-height:1.2}
.messages{padding:9px;background:#eaf7fc}
.bubble{max-width:86%;margin:6px 0;padding:7px 9px;border:1px solid #a8cad8;background:#fff;border-radius:2px 10px 10px 10px;font-size:14px;line-height:1.55}
.bubble.user{margin:6px 0 6px auto;background:#d2effa;border-radius:10px 2px 10px 10px}
.choices{min-height:70px;border-top:1px solid #9fc4d3;background:white;padding:7px;gap:4px}
.choices button{border:1px outset #9aa;background:#eef8fc;padding:6px;font-size:13px;border-radius:0}
.choices select{border:1px inset #aaa;padding:3px;font-size:13px}
.chat-launch{right:18px;bottom:18px;width:62px;height:62px;border:3px solid white;background:#85c5fa;color:white;box-shadow:0 2px 8px #487b91;font-size:24px;font-weight:400;line-height:1;padding:0}
.toast{background:#ffffdc;color:#183445;border:1px solid #a78e39;padding:7px 12px;box-shadow:2px 2px #aaa;font-size:13px}
@media(max-width:650px){.shell{width:100%;margin:0;border-left:0;border-right:0}.masthead{padding:12px 10px;flex-wrap:wrap;gap:8px}.masthead h1{font-size:21px;letter-spacing:1px}.brand-en{font-size:10px;letter-spacing:1px}.utility{font-size:11px}.layout{padding:6px}.home-layout{grid-template-columns:minmax(0,1fr)}.home-layout .sidebar{display:block;order:2}.home-layout main{order:1}.entry{grid-template-columns:88px minmax(0,1fr)}.entry>header{font-size:13px;padding:7px}.post-body{padding:8px}.postrow h3{font-size:13px}.postrow{gap:5px}.last{min-width:58px;font-size:11px}.nav{gap:7px;flex-wrap:wrap}.chat{right:6px;bottom:78px}.chat-launch{right:10px;bottom:10px}.thread-title{font-size:17px}}

.search button{flex-shrink:0;white-space:nowrap}.reply{display:grid;grid-template-columns:115px minmax(0,1fr);padding:0}.reply-author{background:#e6f6fc;border-right:1px solid #b6d5e1;padding:8px;overflow-wrap:anywhere}.reply-body{padding:9px;min-width:0}.reply p{font-size:14px}.reply-body:empty{display:none}.reply:has(.reply-body:empty){grid-template-columns:1fr}
@media(max-width:650px){.reply{grid-template-columns:88px minmax(0,1fr)}}

.bbs-marquee{overflow:hidden;white-space:nowrap;background:#ffffc5;border-bottom:1px solid #8dbbd0;color:#315d73;height:26px;line-height:26px;font-size:13px}.bbs-marquee span{display:inline-block;padding-left:100%;animation:bbs-scroll 22s linear infinite}@keyframes bbs-scroll{to{transform:translateX(-100%)}}.board-heading{display:flex;justify-content:space-between;margin:8px 8px 0;padding:5px;background:#cbeefa;border:1px solid #8bbdd0;font-size:13px}.board-heading span:last-child{width:70px;text-align:right}@media(prefers-reduced-motion:reduce){.bbs-marquee span{animation:none;padding-left:9px}}

.attachment .image-open-label,.good-art .image-open-label,.tv .image-open-label{font-size:14px;font-weight:400;line-height:1.5;text-align:center}.good-art .image-open-label{color:#b7bdb1}.tv{display:grid;place-items:center}.attachment,.good-art{position:relative}

body .entry pre.garden-ascii,body .entry pre.garden-ascii *{font-family:"Helvetica Neue",Helvetica,sans-serif!important;font-weight:400;font-style:normal;white-space:pre}.garden-ascii{overflow-x:auto}.garden-ascii .flower{display:inline;padding:0;min-width:0;min-height:0}

.nav .nav-progress{margin:0;color:#1e607d;font-size:13px;text-decoration:none;cursor:pointer}

@keyframes qq-shake {
  0% { transform: translateY(0); }
  11% { transform: translateY(-6px); }
  22% { transform: translateY(5px); }
  34% { transform: translateY(-5px); }
  46% { transform: translateY(4px); }
  59% { transform: translateY(-3px); }
  72% { transform: translateY(2px); }
  85% { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}
.chat-launch.shake { animation: qq-shake 310ms linear; }
@keyframes qq-attention {
  0.00000000% { transform: translateY(0px); }
  2.60305344% { transform: translateY(-6px); }
  5.20610687% { transform: translateY(5px); }
  8.04580153% { transform: translateY(-5px); }
  10.88549618% { transform: translateY(4px); }
  13.96183206% { transform: translateY(-3px); }
  17.03816794% { transform: translateY(2px); }
  20.11450382% { transform: translateY(-1px); }
  23.66412214% { transform: translateY(0px); }
  100% { transform: translateY(0); }
}
.chat-launch.attention { animation: qq-attention 1310ms linear infinite; }
@media(prefers-reduced-motion:reduce){.chat-launch.shake,.chat-launch.attention{animation:none}}

body .entry pre.repair-ascii,body .entry pre.repair-ascii *{font-family:Menlo,monospace!important;font-weight:400;white-space:pre}

.bbs-pagination{text-align:center;padding:15px 8px}.bbs-pagination button{border:1px outset #aaa;background:#eee;padding:2px 10px;color:#888;font-size:13px}.nav button[aria-disabled="true"]{color:#537888;opacity:1;cursor:not-allowed}
.search-result{padding:28px 18px;border:0;background:#fff;line-height:1.5}.search-result p{margin:0 0 8px;color:#66818e;font-size:14px}.search-result-link{border:0;background:none;color:#0645ad;text-decoration:underline;font-size:14px;padding:0;cursor:pointer;text-align:left}
.no-results{border:0}

[data-unavailable]{cursor:not-allowed}.unavailable-tip{position:fixed;z-index:10000;padding:7px 12px;border:1px solid #7eb4ca;background:#f4fbff;color:#37586a;font-size:13px;font-weight:400;box-shadow:2px 3px 8px #0002;pointer-events:none;max-width:calc(100vw - 16px)}

/* Compact topic rows: text line + 6px top/bottom padding + 1px border. */
.entry{line-height:1.5}
.postrow{padding-top:6px;padding-bottom:6px;min-height:34px}
.postrow h3,.postrow .last{line-height:1.5}
@media(max-width:650px){.postrow{min-height:32.5px}}

.ad{font-size:12px;padding:5px 3px;line-height:1.55}

.home-layout{grid-template-columns:180px minmax(0,1fr)}
.ad{flex-direction:column;align-items:stretch;gap:5px}
.ad-image-placeholder{display:grid;place-items:center;width:100%;aspect-ratio:3 / 2;background:#d8d8d8;border:1px solid #bcbcbc;color:#666;text-align:center}
.ad-image-placeholder>span{font-size:10px;line-height:1.5;font-weight:400}
@media(max-width:650px){.home-layout{grid-template-columns:minmax(0,1fr)}.ad-image-placeholder{max-width:156px;align-self:center}}

.sidebar .bbs-panel:has(.ad){text-align:center}

.sidebar .bbs-panel:has(.ad)>.panel-title{text-align:left}
.ad-image-placeholder{width:100%;height:auto;aspect-ratio:3 / 2;align-self:center}

.utility{border:0;background:none}
.home-layout .panel-title{background:linear-gradient(#dff7ff,#9ddcf3)}
.nav{padding-top:3px;padding-bottom:3px}
.welcome-copy{font-size:12px;line-height:1.55;white-space:pre-wrap;font-weight:400}

.board-heading,.board-heading span{font-weight:700}

.welcome-copy>strong{font-weight:700}
body:not(.shop-mode):not(.room-mode) dialog:has(.welcome-copy) .modal-actions button{font-size:12px;border-width:1px;padding:2px 10px;line-height:1.5}

body:not(.shop-mode):not(.room-mode) dialog::before{font-weight:700}

.welcome-copy .keep-together{white-space:nowrap}

@media(max-width:650px){.welcome-copy .wide-only-break{display:none}}

/* Keep the sidebar visible between the legacy 760px and current 650px breakpoints. */
.home-layout .sidebar{display:block}

.chat header b,.chat-launch{font-weight:700}
.username-setup{align-items:center}
.username-label{width:100%;margin:0 0 4px;font-size:12px}
.username-actions{width:100%;display:flex;justify-content:flex-end;margin-top:4px}
.choices .username-actions button{width:auto;font-size:12px;line-height:1.5;padding:2px 10px;border-width:1px;text-align:center}

.choices:has([data-action="chat-back"]){justify-content:flex-end;align-items:flex-end}
.choices button[data-action="chat-back"]{width:auto;margin-left:auto;font-size:12px;line-height:1.5;padding:2px 10px;border-width:1px;text-align:center}

.test-controls{display:flex;justify-content:flex-end;padding:6px 8px 0}.test-controls button{font-size:12px;line-height:1.5;padding:2px 8px;border:1px outset #aaa;background:#eee}

.bbs-pagination button[data-action="navigate"]{color:#183445;cursor:pointer}

.welcome-copy{font-size:14px}
body:not(.shop-mode):not(.room-mode) dialog:has(.welcome-copy)::before,body:not(.shop-mode):not(.room-mode) dialog:has(.welcome-copy) .modal-actions button{font-size:14px}

.entry>header,.entry>header *,.reply-author,.reply-author *{font-weight:700}
.cafe-entry .aside-text{font-size:10px}
.choices{min-height:0;align-content:flex-start;align-items:flex-start}
.choices button[data-action="hint"]{padding-top:6px;padding-bottom:6px}
@keyframes qq-message {
 0.00000000%{transform:translateY(0px)}
 2.10493827%{transform:translateY(-6px)}
 4.20987654%{transform:translateY(5px)}
 6.50617284%{transform:translateY(-5px)}
 8.80246914%{transform:translateY(4px)}
 11.29012346%{transform:translateY(-3px)}
 13.77777778%{transform:translateY(2px)}
 16.26543210%{transform:translateY(-1px)}
 19.13580247%{transform:translateY(0px)}
 80.86419753%{transform:translateY(0px)}
 82.96913580%{transform:translateY(-6px)}
 85.07407407%{transform:translateY(5px)}
 87.37037037%{transform:translateY(-5px)}
 89.66666667%{transform:translateY(4px)}
 92.15432099%{transform:translateY(-3px)}
 94.64197531%{transform:translateY(2px)}
 97.12962963%{transform:translateY(-1px)}
 100.00000000%{transform:translateY(0px)}
}
.chat-launch.shake{animation:qq-message 1620ms linear}
@media(prefers-reduced-motion:reduce){.chat-launch.shake{animation:none}}





.entry .post-body,.entry .reply-body{line-height:1.5}
.entry .post-body p,.entry .reply-body p{line-height:1.5;margin-bottom:3px}
.entry .post-body p:last-child,.entry .reply-body p:last-child{margin-bottom:0}

.thread-layout main>.search{margin-left:auto;margin-right:0}

.home-layout{grid-template-columns:minmax(0,1fr) 180px}
.home-layout main{grid-column:1;grid-row:1}
.home-layout .sidebar{grid-column:2;grid-row:1}
.nav>.search{margin:0 0 0 auto;width:210px;max-width:100%;flex-shrink:0}
.nav>.search input,.nav>.search button{font-size:13px;line-height:1.5}
.nav>.search input{padding:2px 4px}
.nav>.search button{border:1px outset #aaa;background:#eee;padding:2px 8px;color:#183445;text-decoration:none}
@media(max-width:650px){.home-layout{grid-template-columns:minmax(0,1fr)}.home-layout main{grid-column:1;grid-row:1}.home-layout .sidebar{grid-column:1;grid-row:2}.nav>.search{margin-left:0}}

.nav{flex-wrap:wrap}

.nav{justify-content:flex-start;padding-left:16px;padding-right:25px}
.nav>.search{margin-left:auto}
@media(max-width:650px){.nav{padding-left:10px;padding-right:19px}.nav>.search{margin-left:auto}}
.nav>.search{width:154px;max-width:calc(100vw - 40px);margin-left:auto;margin-right:0}
.home-layout{grid-template-columns:minmax(0,70%) minmax(0,30%)}
@media(max-width:650px){.home-layout{grid-template-columns:minmax(0,70%) minmax(0,30%);gap:10px}.home-layout main{grid-column:1;grid-row:1}.home-layout .sidebar{grid-column:2;grid-row:1;display:block}}

.bakery-broken{display:inline-grid;width:156px;max-width:100%;vertical-align:top;margin:0 6px 6px 0}
body:not(.shop-mode):not(.room-mode) dialog.image-modal::before{content:'';height:28px}

body:not(.shop-mode):not(.room-mode) dialog.image-modal::before{height:24px;padding:0}
body:not(.shop-mode):not(.room-mode) dialog.image-modal .modal-close{top:2px;height:20px;line-height:20px;padding:0}
body:not(.shop-mode):not(.room-mode) dialog.image-modal{padding-top:34px}
body:not(.shop-mode):not(.room-mode) dialog.image-modal{width:400px;max-width:calc(100vw - 32px)}
body:not(.shop-mode):not(.room-mode) dialog.image-modal p{width:min(360px,100%);max-width:360px;margin-left:auto;margin-right:auto;text-align:left}

body:not(.shop-mode):not(.room-mode) dialog:has(.character-image){text-align:center;padding-top:34px}
body:not(.shop-mode):not(.room-mode) dialog:has(.character-image)::before{content:'';height:24px;padding:0}
body:not(.shop-mode):not(.room-mode) dialog:has(.character-image) .modal-close{position:absolute;right:6px;top:2px;height:20px;font-size:20px;line-height:20px;padding:0}
body:not(.shop-mode):not(.room-mode) dialog:has(.character-image) .modal-actions{justify-content:center}
.character-image{background:transparent;border:0;border-radius:0}

dialog:has(.character-image)>h2{display:none}

.reply-author [data-action="admin"],.reply-author [data-action="admin"] *{color:#85C5FA}

.thread-layout .breadcrumb,.thread-layout .thread-title{margin-left:6px}
@media(max-width:650px){.thread-layout .breadcrumb,.thread-layout .thread-title{margin-left:4px}}

.thread-layout .breadcrumb{margin-bottom:2.5px}
.thread-layout .thread-title{margin-bottom:5px}
.nav{gap:0}
.chat-auto-open{transform-origin:bottom right;animation:chat-auto-open .3s ease-out both}
@keyframes chat-auto-open{from{transform:scale(.15);opacity:0}to{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.chat-auto-open{animation:none}}
.typing-indicator::after{content:'…';display:inline-block;animation:typing-dots .6s steps(1,end) infinite}
@keyframes typing-dots{0%,49%{content:'…'}50%,100%{content:'……'}}

.bubble.arrival{position:relative;border-top:1px solid #a8cad8;padding-top:7px;margin-top:28px}
.bubble.arrival::before{content:'';position:absolute;left:0;right:-16.3%;top:-14px;border-top:1px dashed #93bed0}

/* FAQ effects are isolated from the shared dialog and chat styles. */
.faq-blackout{position:fixed;inset:0;z-index:10000;background:#000;opacity:1;pointer-events:none}
.faq-blackout.is-fading{transition:opacity 1s linear}
.faq-special-pending .shop{filter:blur(0);transition:filter 1s ease}
.faq-special-pending .shop{filter:blur(5px)}
#camera-invite{opacity:1}
#camera-invite[hidden]{display:none}
#camera-invite.is-revealing{animation:faqInviteFade .8s ease both}
@keyframes faqInviteFade{from{opacity:0}to{opacity:1}}
.shop-test-controls{display:flex;justify-content:flex-end;margin-top:10px}
.shop-test-controls button{font-size:12px;line-height:1.5;padding:2px 8px;border:1px solid #56594f;background:none;color:#c6c7bc}


.welcome-copy .promo-note{display:block;font-size:10px;line-height:1.5;margin:0;opacity:.5}

.welcome-copy .notice-note{display:block;font-size:10px;line-height:1.5;opacity:.5}

body:not(.shop-mode):not(.room-mode) dialog:has(.welcome-copy) .modal-actions{justify-content:center}
body:not(.shop-mode):not(.room-mode) dialog:has(.welcome-copy){width:min(500px,80vw);max-width:500px}

body:not(.shop-mode):not(.room-mode) dialog:has(.welcome-copy)::before{content:'游玩须知'}

.key-symbol{font-size:40px;line-height:1;border:0;background:none;padding:0;cursor:pointer}

body:not(.shop-mode):not(.room-mode) dialog strong{font-weight:700!important}
body:not(.shop-mode):not(.room-mode) dialog.flower-modal::before{content:'花苞中的是…'}

/* Alice Antique Shop redesign v2 */
.shop-mode{background:#0e0e0e;color:#e8e5df;--paper:#151515;--ink:#e8e5df;--line:#30302f;--muted:#8e8b86;--green:#a3262c}
.shop{max-width:1180px;margin:auto;padding:0 42px 90px}
.shop:before{content:none;display:none}
.shopbar{border-bottom:0;padding:10px 0 0;justify-content:center;gap:15px}
.shop-links{display:flex;align-items:center;justify-content:center;gap:10px}.shop-links span{color:#77736e}.shop-links button{margin-left:0}
.shoplogo{display:none}.shopbar button{color:#8e8b86;margin-left:20px;font-size:12px;letter-spacing:.04em}.shopbar button:hover{color:#e8e5df}
.shopintro{padding:72px 0 62px;max-width:780px}
.shopintro h1{font-family:inherit;font-size:27px;line-height:1.5;font-weight:900;letter-spacing:.08em;margin:0 0 32px;color:#f1eee8}
.shopintro p{max-width:650px;color:#a29e98;font-size:14px;margin:0 0 8px}.shopintro p:last-child{margin-top:25px;padding-left:13px;border-left:2px solid #a3262c;color:#c0b8b4;font-size:12px}
.shop>h2{font-size:20px!important;font-weight:700!important;letter-spacing:1px;color:#aaa5a0;margin:60px 0 18px;padding-bottom:13px;border-bottom:1px solid #b4afa9;text-align:center}
.goods{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-left:1px solid #30302f}
.good{position:relative;min-height:135px;padding:20px 20px 18px;text-align:left;background:#151515;border:0;border-right:1px solid #30302f;border-bottom:1px solid #30302f;color:inherit;cursor:pointer;transition:background .22s ease,color .22s ease}
.good:before{content:'';position:absolute;left:0;top:0;width:0;height:2px;background:#a3262c;transition:width .24s ease}.good:after{content:'↗';position:absolute;right:18px;bottom:16px;color:#5f5d59;font-size:15px;transition:transform .22s ease,color .22s ease}
.good:hover,.good:focus-visible{background:#1a1919;outline:none}.good:hover:before,.good:focus-visible:before{width:100%}.good:hover:after,.good:focus-visible:after{color:#a3262c;transform:translate(2px,-2px)}
.good-art{height:auto;background:none;display:block;color:inherit;border:0}.good .image-open-label{font-size:10px;color:#65625f;letter-spacing:.12em}.good:hover .image-open-label{color:#a19c96}
.good h3{font-weight:400;font-size:16px;letter-spacing:.04em;margin:44px 35px 0 0;color:#e7e3dd;transition:transform .22s ease}.good:hover h3{transform:translateX(3px)}
.good p,.good small{display:none}
.shop-test-controls{display:flex;justify-content:flex-end;margin-top:10px}
.shop-test-controls button{font-size:12px;line-height:1.5;padding:2px 8px;border:1px solid #56594f;background:none;color:#c6c7bc}
.faq{max-width:780px;margin:40px auto}.faq h1{font-family:inherit;font-size:32px;font-weight:400;letter-spacing:.08em}.faq details{border-bottom:1px solid #464d42;padding:22px 0}.faq summary{cursor:pointer;color:#e8e5df}.faq p{color:#adb5a6;white-space:pre-wrap;padding:20px 0 0}
.tvwall{gap:20px}.tv{background:#151515;border:1px solid #30302f;border-radius:2px;color:#9ea99b;box-shadow:inset 0 0 35px #000}
.shop-mode dialog{width:min(460px,calc(100vw - 36px));max-height:80vh;overflow:auto;background:#121212;color:#e8e5df;border:1px solid #373533;padding:0;box-shadow:0 24px 80px #000b;border-radius:2px}
.shop-mode dialog::backdrop{background:#0009;backdrop-filter:blur(2px)}.shop-mode dialog h2{font-family:inherit;font-size:25px;font-weight:400;letter-spacing:.06em;line-height:1.2;margin:0;padding:48px 32px 16px;max-width:390px}
.shop-mode dialog .modal-close{position:sticky;z-index:3;float:right;top:0;margin:18px 18px 0 0;border:1px solid #3b3937;background:#171616;color:#c7c2bc;width:36px;height:36px;padding:0;font-size:20px;line-height:1}
.shop-mode dialog .character-art{height:auto;display:block;background:none;margin:0;padding:0 32px 10px}.shop-mode dialog .character-art .image-open-label{display:none}
.shop-mode dialog p{font-size:13px;color:#b4afa9;max-width:390px;margin:0;padding:6px 32px 32px}.shop-mode dialog .modal-actions{padding:0 32px 24px}.shop-mode dialog .buy{width:100%;margin:0;border:1px solid #681b20;background:#241517;color:#8e6264;padding:14px 16px;text-align:left}
@media(max-width:760px){.shop{padding:0 18px 60px}.shopintro{padding:62px 0 54px}.shopintro h1{font-size:32px;margin-bottom:24px}.shopintro p{font-size:13px}.goods{grid-template-columns:repeat(2,1fr)}.good{min-height:118px;padding:16px}.good h3{font-size:15px;margin-top:34px}.good:after{right:16px;bottom:16px}.shop-mode dialog{width:min(420px,calc(100vw - 28px))}.shop-mode dialog h2{padding:44px 24px 14px;font-size:23px}.shop-mode dialog .character-art{padding:0 24px 8px}.shop-mode dialog p{padding:6px 24px 28px;font-size:13px}.shop-mode dialog .modal-actions{padding:0 24px 24px}}

/* WritingDesk_Vintage and WritingDesk_Camera use Source Han Serif styling. */
.shop-mode,.shop-mode *{font-family:"Source Han Serif SC","思源宋体","Noto Serif SC","Songti SC",serif!important}
.shop-mode{font-size:14px;line-height:1.5}
.shop-mode p,.shop-mode .shopintro p,.shop-mode .faq p,.shop-mode .muted{font-size:14px!important;line-height:1.5}
.shopbar{position:relative;justify-content:center;background:transparent;border-top:1px solid #b4afa9;border-bottom:1px solid #b4afa9;padding:6px 0;margin:54px 0 10px}.shoplogo{display:none}.shop-links{margin:0 auto}
@font-face{font-family:'Lombard';src:url('assets/Lombard-regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
.shopintro{background:transparent}
.shopintro h1{font-size:27px!important;font-weight:900;line-height:1.2;margin-bottom:60px}
.shopintro:before{content:'Welcome';display:block;font-family:'Lombard',serif!important;color:#A3262C;font-size:54px;line-height:1.2;letter-spacing:1px;margin-bottom:8px;white-space:nowrap}
.shopintro{isolation:isolate}
.shopintro h1{position:relative;z-index:1;display:inline-block}
.shopintro h1::after{content:none;display:none}
.shopintro p:first-of-type{line-height:2}
.shopintro{text-align:center}
.shopintro p,.shopintro p:last-child{margin-left:auto;margin-right:auto;padding-left:0;border-left:0}
.shop{padding-bottom:0}
.shop-mode{background:#151515;color:#dddcd2}
.shop-mode .good-art,.shop-mode .good{background:#202020;border-color:#3a3a3a}
.shop-mode .drawer{background:#1b1b1b;border-left-color:#444}
.shop-mode .shopbar{border-color:#444}
.shopbar button{margin-left:0}
.shop-links{display:flex;align-items:center;gap:0}
.shop-links span{margin:0 8px;color:#8e8b86}
.shop-links,.shop-links button,.shop-links span{font-size:14px!important;font-weight:700}
.shop-links,.shop-links button,.shop-links span{font-weight:400}
.shop-links{position:relative;padding-top:0}
.shop-links:before{content:none;display:none}
.shopbar:before{content:'ALICE ANTIQUE';position:absolute;left:50%;top:-44px;transform:translateX(-50%);font-family:'Lombard',serif!important;font-size:20px;line-height:20px;padding:10px 0;color:#A3262C;white-space:nowrap;box-sizing:content-box}
.shopintro p:last-child{font-size:10px!important;color:#A3262C!important}
.shop{min-height:calc(100vh - 40px);display:flex;flex-direction:column}
.shop-footer{margin:48px 0 24px;padding:10px 0 12px;border-top:1px solid #b4afa9;text-align:center;color:#b4afa9;font-size:11px;line-height:1.5}
.shop-mode .shop{padding-bottom:120px}
.shop-mode .shop{padding-top:150px}
.shop-mode .shopbar{position:fixed;top:0;left:50%;transform:translateX(-50%);z-index:11;width:min(1150px,calc(100% - 80px));padding:10px 0 12px;background:#222121}
.shop-mode .shopbar:before{content:'ALICE ANTIQUE';display:block;text-align:center;font-family:'Lombard',serif;font-size:27px;line-height:1.2;color:#a3262c;margin-bottom:10px}
.shop-mode .shopintro:before{display:none}
.shop-mode .shop-footer{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:10;width:min(1150px,calc(100% - 80px));margin:0;background:#222121}
.shop-mode .shop-footer:after{content:'';position:absolute;left:0;right:0;top:100%;height:100vh;background:#222121;pointer-events:none}
.shop-mode .product-modal-marker{display:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important}
.shop-mode .product-modal-art:not(.product-modal-marker){margin-top:20px!important}
.shop-mode dialog .product-modal-marker{display:none!important;height:0!important;margin:0!important;padding:0!important}
.shop-mode dialog .product-modal-marker + p{margin-top:0!important}

/* Homepage post separators use a light dashed rule. */
.postrow,.postrow.pinned{border-bottom:1px dashed #c8dfe8}
.lighthouse-results .postrow{margin:0;border-bottom:0}.lighthouse-results{padding-bottom:8px}.bbs-pagination{display:flex;justify-content:center;gap:12px}
.lighthouse-results .lighthouse-link{display:block;margin:0 0 6px;background:transparent;color:#0645ad;text-decoration:underline}
.shop-mode .mirror-ascii{
  display:inline-block;
  width:max-content;
  max-width:none;
  white-space:pre;
  overflow:visible;
  font-family:Menlo,monospace!important;
  font-size:7px;
  font-weight:400;
  line-height:1.2;
  letter-spacing:normal!important;
  font-kerning:none!important;
  font-variant-ligatures:none!important;
  font-feature-settings:'liga' 0,'calt' 0!important;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  text-align:left;
}

/* Product names stay as plain links; artwork appears only inside the item modal. */
.shop-mode .goods{display:flex;flex-direction:column;gap:8px}
.shop-mode .good{
  min-height:0;
  padding:0;
  background:transparent!important;
  border:0!important;
  text-align:left;
  color:inherit;
}
.shop-mode .good:before,.shop-mode .good:after{content:none!important;display:none!important}
.shop-mode .good-art{display:none!important}
.shop-mode .good h3{
  margin:0;
  font-size:16px;
  font-weight:400;
  color:inherit;
  text-decoration:underline;
  text-underline-offset:3px;
}
.shop-mode .product-modal-art{
  display:block;
  width:max-content;
  max-width:100%;
  margin:0 auto 18px;
  padding:0;
  border:0;
  background:transparent;
  white-space:pre;
  overflow:auto;
  font-family:Menlo,monospace!important;
  font-size:14px;
  line-height:1.2;
  font-weight:400;
  text-align:left;
}

/* 商品弹窗正文与告示版帖子正文保持一致的行间距 */
.shop-mode dialog{line-height:1.5}
.shop-mode dialog p{line-height:1.5;white-space:pre-line;width:100%;max-width:none}
.shop-mode .product-modal-title{margin:0 0 1em;text-align:center;font-size:inherit;line-height:1.5;font-weight:700}
.shop-mode .product-modal-delivery{text-align:center}
.shop-mode .product-modal-art{font-size:10px;margin-top:24px}
.shop-mode .product-buy{display:block;width:calc(100% - 64px);margin:0 32px 0;padding:6px 12px;background:#3a3938;color:#aaa;border:1px solid #555;cursor:not-allowed}
.shop-mode .product-modal-delivery{font-size:11px!important;opacity:.7}
.shop-mode dialog:has(.product-modal-art) .modal-actions{display:none}
.shop-mode dialog:has(.product-modal-art) .product-modal-delivery{margin-bottom:0;padding-bottom:24px}
.shop-mode dialog:has(.product-modal-art){width:80vw;max-width:80vw;margin:auto}
.shop-mode dialog:has(.product-modal-art) .modal-close{border:0;background:#121212;color:#c7c2bc}
.shop-mode dialog{position:relative}
.shop-mode dialog .modal-close{position:absolute;top:10px;right:10px;float:none;margin:0;width:28px;height:14px;font-size:18px;line-height:14px;padding:0;z-index:4}
.shop-mode dialog:has(.product-modal-marker) .modal-close{height:28px;line-height:28px}
.shop-mode .product-modal-art{margin-top:40px;margin-bottom:18px}
.shop-mode dialog:has(.product-modal-art) .product-modal-art{width:calc(100% - 64px);max-width:none;text-align:center;margin-left:auto;margin-right:auto}
.shop-mode dialog:has(.product-modal-art) .product-modal-art + p{box-sizing:border-box;width:calc(100% - 64px);margin:0 32px;padding:12px 16px 18px;border:1px solid #373533;text-align:left}
.shop-mode dialog:has(.product-modal-art) .product-modal-art{text-align:left}
.shop-mode dialog:has(.product-modal-art) .product-modal-art{box-sizing:border-box!important;width:calc(100% - 64px)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important;border:1px solid transparent!important;text-align:left!important}
.shop-mode dialog:has(.product-modal-art) .product-modal-art + p{text-align:left!important}
.shop-mode .product-art-box{box-sizing:border-box;width:calc(100% - 64px);margin:40px auto 18px;border:1px solid transparent;text-align:left;overflow:auto}
.shop-mode .product-art-box .product-modal-art{width:100%!important;margin:0!important;border:0!important}
.shop-mode dialog:has(.product-modal-art) .product-modal-art + p{border-color:transparent}
.shop-mode dialog:has(.product-modal-art) .product-modal-art{display:block!important;position:relative!important;box-sizing:border-box!important;width:max-content!important;max-width:calc(100% - 64px)!important;margin:40px auto 18px!important;text-align:left!important;white-space:pre!important;overflow:auto!important}
.shop-mode dialog:has(.product-modal-art) .product-modal-art + p{box-sizing:border-box!important;width:calc(100% - 64px)!important;margin-left:32px!important;margin-right:32px!important}
.shop-mode dialog:has(.product-modal-art) .product-modal-art + p{font-size:12px!important}
.shop-mode dialog:has(.product-modal-art) .product-modal-art{font-size:8px!important}
.shop-mode .product-modal-marker{display:none!important}
.shop-mode dialog:has(.product-modal-marker) .product-modal-marker + p{text-align:center!important}
@media(max-width:760px){.shop-mode dialog:has(.product-modal-art) .product-modal-art + p{width:calc(100% - 48px)!important;margin-left:24px!important;margin-right:24px!important}}
.shop-mode .product-modal-title{margin:0 auto 1em;padding:0 10px 6px;border:0;width:100%;max-width:100%;position:relative}
.shop-mode .product-modal-title:before,.shop-mode .product-modal-title:after{content:'';display:block;width:calc(100% - 64px);margin-left:auto;margin-right:auto;border-top:1px solid currentColor}
.shop-mode .product-modal-title:before{margin-bottom:10px}
.shop-mode .product-modal-title:after{margin-top:10px}
@media(max-width:760px){.shop-mode .product-modal-title:before,.shop-mode .product-modal-title:after{width:calc(100% - 48px)}}
@media(max-width:760px){.shop-mode .product-buy{width:calc(100% - 48px);margin-left:24px;margin-right:24px}}
.shop-mode .goods{display:flex;flex-direction:column;align-items:center;gap:0;text-align:center}
.shop-mode .goods .good{width:100%;max-width:680px;text-align:center}
.shop-mode .goods .good{border:0;transition:none}
.shop-mode .goods .good:hover,.shop-mode .goods .good:focus-visible{background:transparent;color:inherit}
.shop-mode .goods .good h3{transition:none}
.shop-mode .goods .good:hover h3{transform:none}
.shop-mode{background:#211a17;color:#ddd6ce;--paper:#2a211d;--ink:#ddd6ce;--line:#4a3931;--muted:#a2968d;--green:#76584a}
.shop-mode .shop,.shop-mode .shopbar,.shop-mode .shop-footer{background:#211a17}
.shop-mode .good,.shop-mode .good:hover,.shop-mode .good:focus,.shop-mode .good:focus-visible{border:0!important;outline:none!important;box-shadow:none!important;background:transparent!important}
.shop-mode .good:before,.shop-mode .good:after{content:none!important;display:none!important}
.shop-mode .shopintro:before{display:block;content:'Welcome';font-family:'Lombard',serif!important;color:#A3262C;font-size:54px;line-height:1.2;letter-spacing:1px;margin-bottom:8px;white-space:nowrap}
.shop-mode{background:#222121;color:#dddcd2}
.shop-mode,.shop-mode .shop,.shop-mode .shopbar,.shop-mode .shop-footer,.shop-mode .good,.shop-mode .drawer{background-color:#222121!important}
.shop-mode .shop>h2{border:0!important;border-bottom:0!important;text-decoration:none;font-family:inherit;font-size:17px!important;font-weight:400!important;line-height:1.5;margin:0 0 20px;padding:0;color:#dddcd2}
.shop-mode .faq>h2{font-family:inherit;font-size:17px!important;font-weight:400!important;line-height:1.5;margin:0 0 20px;padding:0;color:#dddcd2}
.shop-mode .shop>h2,.shop-mode .faq>h1{font-family:inherit;font-size:18px!important;font-weight:700!important;line-height:1.5;text-align:center;margin:20px 0 20px;padding:0;color:#dddcd2;border:0}
.shop-mode .shop>h2,.shop-mode .faq>h1{display:none!important}
.shop-mode .goods{border-left:0!important}
.shop-mode .goods,.shop-mode .faq{margin-top:20px}
.shop-mode .shop-test-controls{position:fixed;top:118px;right:24px;z-index:12;margin:0}
@media(max-width:760px){.shop-mode .shopbar{width:calc(100% - 36px)}.shop-mode .shopbar:before{font-size:22px}.shop-mode .shop{padding-top:130px}}
.shop-mode .drawer button{background:#222121!important;color:#dddcd2;border-color:#4a4a4a}
.shop-mode .drawer{width:40vw;max-width:460px}
.shop-mode .drawer>button[data-action="cart"]{position:absolute;top:20px;left:20px;margin:0;padding:0;font-size:28px;line-height:1;border:0;box-shadow:none}
.shop-mode .drawer>h2{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:calc(100% - 32px);margin:0;padding:0;text-align:center;font-family:inherit;font-size:14px;font-weight:400;line-height:1.5;letter-spacing:normal}
.shop-mode .tv{background:#222121!important}
.shop-mode .goods .good h3{margin:10px 0}
.shop-mode .goods-separator{display:block;color:#b4afa9;font-size:14px;line-height:1.5;height:1.5em}
.shop-mode .camera-view .shop-links,.shop-mode .camera-view .shop-test-controls{display:none!important}
.shop-mode .camera-view .shopintro{display:none!important}
.shop-mode .camera-view .shopbar{display:none!important}
.shop-mode .camera-view .shopbar:before{display:none!important}
.shop-mode .camera-view:before{content:'ALICE ANTIQUE';position:fixed;top:0;left:50%;transform:translateX(-50%);z-index:11;width:min(1150px,calc(100% - 80px));padding:10px 0 12px;background:#222121;text-align:center;font-family:'Lombard',serif;font-size:27px;line-height:1.2;color:#a3262c}
.shop-mode .camera-view:before{display:block!important}
.shop-mode .camera-view{padding-top:90px}
.shop-mode .camera-view .shop-test-controls{display:flex!important;top:48px}
.room-music-toggle{position:fixed;top:12px;right:24px;z-index:13;padding:0;border:0;background:none;color:inherit;font-size:12px;line-height:1.5;opacity:.5;text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:3px;cursor:pointer}
.room-test-controls{position:fixed;top:40px;right:24px;z-index:12}
.room-test-controls button{font-size:12px;line-height:1.5;padding:2px 8px;background:#222121;color:#dddcd2;border:1px solid #777}
@media(max-width:760px){.shop-mode .camera-view:before{width:calc(100% - 36px);font-size:22px}.shop-mode .camera-view{padding-top:75px}}
.shop-slide-from-right{animation:shop-slide-from-right .28s ease-out both}
.shop-slide-from-left{animation:shop-slide-from-left .28s ease-out both}
@keyframes shop-slide-from-right{from{opacity:0;transform:translateX(36px)}to{opacity:1;transform:translateX(0)}}
@keyframes shop-slide-from-left{from{opacity:0;transform:translateX(-36px)}to{opacity:1;transform:translateX(0)}}

/* Keep fixed chrome outside the content transition and reset old logo offsets. */
.shop-mode .shopbar{display:flex;flex-direction:column;align-items:center;gap:0;top:0;margin:0;padding:0;border:0}
.shop-mode .shopbar:before{position:static;transform:none;box-sizing:border-box;margin:0;width:100%;padding:10px 0;font-family:'Lombard',serif!important;font-size:20px!important;font-weight:400;line-height:1.2;letter-spacing:normal;color:#A3262C}
.shop-mode .shopbar .shop-links{width:100%;justify-content:center;border-top:1px solid #b4afa9;border-bottom:1px solid #b4afa9;padding:6px 0}
.shop-mode .camera-view:before{font-family:'Lombard',serif!important;font-size:20px!important;font-weight:400;line-height:1.2;letter-spacing:normal;padding:10px 0;color:#A3262C}
.nav{justify-content:center}
.nav .nav-restart{position:fixed;top:4px;right:8px;z-index:30;margin:0}
.nav .nav-restart button{font-size:12px;line-height:1.5;padding:2px 8px;border:1px outset #aaa;background:#eee;color:#183445}
.home-search{display:flex;justify-content:flex-end;margin:0 8px 8px}
.home-search .search{width:min(320px,100%);margin:0}
@media(max-width:650px){.nav .nav-restart{position:static;margin-left:auto}.home-search{justify-content:stretch}.home-search .search{width:100%}}
.home-layout main>.panel-title{display:flex;align-items:center;justify-content:space-between}
.home-layout main>.panel-title .search{width:220px;margin:0 0 0 auto;border:0;background:transparent;font-weight:400}
.home-layout main>.panel-title .search input{padding:2px 6px;font-size:12px;font-weight:400;line-height:1.4;height:24px}
.home-layout main>.panel-title .search button{min-width:42px;padding:2px 6px;font-size:12px;font-weight:400;height:24px}
@media(max-width:650px){.home-layout main>.panel-title .search{width:150px}}
.bbs-marquee{position:relative}
.top-restart{position:absolute;right:8px;bottom:calc(100% + 2px);font-size:12px;line-height:1.5;padding:2px 8px;border:1px outset #aaa;background:#eee;color:#183445}
.top-restart-wrap{height:0;position:relative;z-index:20}
.top-restart{position:absolute;right:8px;top:-28px;font-size:12px;line-height:1.5;padding:2px 8px;border:1px outset #aaa;background:#eee;color:#183445}
@media(max-width:650px){.admin-id{white-space:normal!important}.admin-id span{white-space:nowrap}.admin-id span+span{display:block}}
@media(max-width:650px){.admin-id{white-space:normal!important}.admin-id span{white-space:nowrap}.admin-id span+span{display:block}}
.shop-mode dialog:has(.shop-welcome-copy) .modal-actions{justify-content:center}
.shop-mode dialog .shop-welcome-copy p{text-align:center;white-space:pre-line}
.shop-mode dialog:has(.shop-welcome-copy) .modal-actions{display:none}
.shop-mode dialog:has(.shop-welcome-copy){width:min(460px,calc(100vw - 162px));position:relative}
.shop-mode dialog:has(.shop-welcome-copy) .modal-close{position:absolute;top:6px;right:6px;z-index:2;float:none;margin:0;border:0;background:#121212;color:#c7c2bc;height:18px;line-height:18px}
.shop-mode dialog:has(.shop-welcome-copy) .shop-welcome-copy p{padding:32px 32px 32px}
.shop-mode dialog:has(.faq-transition-copy){width:min(460px,calc(100vw - 162px));position:relative}
.shop-mode dialog:has(.faq-transition-copy) .faq-transition-copy p{padding:32px;text-align:center;white-space:pre-line}
.shop-mode dialog:has(.faq-transition-copy) .modal-actions{display:none}
.shopbar:before{content:'ALICE in ANTIQUE'}
.shop-mode .shopbar:before{content:'ALICE in ANTIQUE'}
.shop-mode .camera-view:before{content:'ALICE in ANTIQUE'}
.shop-mode .shopintro h1{margin-bottom:100px!important}
@media(max-width:760px){.shop-mode .shopintro h1{margin-bottom:64px!important}}
.shop-mode .shopintro p:last-child{margin-top:12.5px!important}
/* Keep the shop viewport-sized when its content fits; real overflow remains scrollable. */
.shop-mode .shop{box-sizing:border-box;min-height:100vh}
@media(max-width:760px){.shop-mode .shop{padding-bottom:80px}}
.shop-mode .drawer button[data-unavailable]{background:#666!important;color:#c8c8c8!important;border-color:#666!important;cursor:not-allowed;opacity:.65;pointer-events:none}
.shop-mode .drawer{transform:translateX(0);transition:transform .28s cubic-bezier(.22,.8,.3,1)}
.shop-mode .drawer{top:156px;bottom:80px}
.shop-mode .drawer.drawer-enter{transform:translateX(100%)}
.shop-mode .drawer.drawer-closing{transform:translateX(100%);transition-duration:.22s}
.shop-mode .drawer .continue-shopping{position:absolute!important;top:calc(50% + 34px)!important;left:50%!important;transform:translateX(-50%)!important;margin:0!important;width:calc(100% - 64px)!important;background:#3a3938!important;color:#aaa!important;border:1px solid #555!important;padding:6px 12px!important;font-size:14px!important;line-height:1.5!important;font-weight:400!important;z-index:2}
.shop-mode .drawer>h2{opacity:.6}
.shop-mode .drawer .continue-shopping{display:block!important;width:auto!important;height:auto!important;line-height:1.5!important;cursor:pointer!important;opacity:1!important;font-size:16px!important;font-weight:400!important;white-space:nowrap!important}
.shop-mode .drawer .cart-empty{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;text-align:center;font-size:14px;line-height:1.5;opacity:.6}
@media(max-width:760px){.shop-mode .drawer .continue-shopping{width:calc(100% - 48px)!important}}
.shop-mode .shop.intro-view{height:auto;min-height:100vh;overflow:visible}
.shop-mode .intro-view .shopintro{text-align:center}
.shop-mode .intro-view .shopintro h1{display:block;width:100%;text-align:center}
.shop-mode .intro-view .shopintro p{width:100%;text-align:center}
.shop-mode .goods .good h3{text-decoration:none!important;font-weight:700!important}
.shop-mode .faq{max-width:none;margin:20px 32px;text-align:left}
.shop-mode .faq h1,.shop-mode .faq summary,.shop-mode .faq p{text-align:left}
.shop-mode .faq summary{color:#E8E5E0}
.shop-mode .faq p{color:#B3AFAA}
.shop-mode .faq details{border:0}
.shop-mode .faq details{padding:12px 0}
.shop-mode .faq-answer-row{display:flex;align-items:flex-start;gap:0;margin-left:0}
.shop-mode .faq-id{flex:0 0 3em}
.shop-mode .faq-id{font-weight:400}
.shop-mode .faq-answer-row{line-height:1.5}
.shop-mode .faq summary{font-weight:700}
.shop-mode .faq summary{list-style:none}
.shop-mode .faq summary::-webkit-details-marker{display:none}
.shop-mode .faq summary:before{content:'';display:inline-block;width:1em;margin-right:.25em}
.shop-mode .faq summary{list-style:revert}
.shop-mode .faq summary::-webkit-details-marker{display:inline-block}
.shop-mode .faq summary:before{content:none;display:none}
.shop-mode .faq summary{padding-left:0;text-indent:1em}
.shop-mode .faq summary{list-style:none;text-indent:0}
.shop-mode .faq summary::-webkit-details-marker{display:none}
.shop-mode .faq summary:before{content:'▶';display:inline-block;width:1em;margin-right:1em;font-size:.8em}
.shop-mode .faq details[open] > summary:before{content:'▼'}
.shop-mode .faq-answer-row{margin-left:2em!important;text-align:left}
.shop-mode .faq-answer-row{display:block;line-height:1.75}
.bbs-pagination{margin-top:48px;padding-bottom:24px}
.shop-mode .shop-test-controls{top:auto!important;bottom:100px!important}
.shop-mode .shop{padding-top:100px}
.shop-mode .goods,.shop-mode .faq{margin-top:10px}
@media(max-width:760px){.shop-mode .shop{padding-top:90px}}
.shop-mode .faq-id{text-align:left}
.shop-mode button[data-page="camera"]{display:block;width:calc(100% - 64px);margin:0 32px;padding:6px 12px;background:#3a3938;color:#aaa;border:1px solid #555;font-size:14px;line-height:1.5}
@media(max-width:760px){.shop-mode button[data-page="camera"]{width:calc(100% - 48px);margin-left:24px;margin-right:24px}}
.shop-mode .faq-answer{flex:1;min-width:0}
.shop-mode .faq-answer{position:relative;left:0}

/* 用户名设置下拉栏 */
.username-setup select{background:#EDF7FC;border-color:#5695D8;color:#1f3f55}

/* 搜索框右侧与热门搜索栏右侧对齐 */
.nav>.search{margin-left:auto;margin-right:0;align-self:flex-end}

/* 搜索框与热门搜索栏使用同一列宽 */
.nav>.search{width:30%;max-width:30%;min-width:0}

/* 恢复搜索框宽度，仅对齐整个搜索组合的右侧 */
.nav>.search{width:154px;max-width:calc(100vw - 40px);min-width:0;margin-left:auto;margin-right:0}

.nav>.search{transform:translateX(4px)}

.nav>.search{transform:translateX(8px)}

.nav>.search{transform:translateX(10px)}

.nav>.search{transform:translateX(12px)}

/* 搜索组合与热门搜索栏等宽并置于其正上方 */
.nav>.search{width:calc((100% - 40px) * .3);max-width:none;transform:none;margin-left:auto;margin-right:0}
@media(max-width:650px){.nav>.search{width:calc((100% - 10px) * .3);max-width:none}}

/* The content grid reaches the shell edge; keep the search group on that edge too. */
.nav{padding-right:0}
@media(max-width:650px){.nav{padding-right:0}}

/* Share one grid with the home columns so the search group and sidebar align exactly. */
.home-layout{grid-template-columns:minmax(0,7fr) minmax(0,3fr)}
.nav{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,3fr);gap:10px;padding-left:10px;padding-right:10px}
.nav-links{display:flex;align-items:center;min-width:0;gap:0}
.nav-links span{margin-left:0}
.nav>.search{width:100%;max-width:none;min-width:0;margin:0;transform:none}
@media(max-width:650px){
  .home-layout{grid-template-columns:minmax(0,7fr) minmax(0,3fr)}
  .nav{grid-template-columns:minmax(0,7fr) minmax(0,3fr);gap:10px;padding-left:6px;padding-right:6px}
  .nav>.search{width:100%;max-width:none;margin:0}
}

.chat-launch{font-weight:900}
.chat-launch.unread:after{border:3px solid #EFD080}
.chat-launch{width:60px;height:60px;right:24px;bottom:24px;font-size:24px;padding:3px 0}
@media(max-width:650px){.chat-launch{right:16px;bottom:16px}}

/* Keep the full antique-shop navigation on the TV-wall page. */
.shop-mode .camera-view .shopbar{display:flex!important}
.shop-mode .camera-view .shop-links{display:flex!important}
.shop-mode .camera-view .shopbar:before{display:block!important}
.shop-mode .camera-view:before{display:none!important}

/* TV-wall layout and camera imagery use the product-modal spacing. */
.shop-mode .tvwall{grid-template-columns:1fr}
.shop-mode dialog:not(:has(.product-modal-art)):not(:has(.shop-welcome-copy)){width:min(460px,80vw);max-width:460px;margin:auto}
.shop-mode dialog:not(:has(.product-modal-art)):not(:has(.shop-welcome-copy)) p{box-sizing:border-box;width:calc(100% - 64px);margin:40px 32px 0;padding:12px 16px 18px}
.shop-mode dialog:not(:has(.product-modal-art)):not(:has(.shop-welcome-copy)) .modal-actions{padding:0 32px 24px}
@media(max-width:760px){
  .shop-mode .camera-view .tvwall{width:calc(100% - 44px);margin-left:auto;margin-right:auto}
  .shop-mode dialog:not(:has(.product-modal-art)):not(:has(.shop-welcome-copy)) p{width:calc(100% - 48px);margin-left:24px;margin-right:24px}
  .shop-mode dialog:not(:has(.product-modal-art)):not(:has(.shop-welcome-copy)) .modal-actions{padding-left:24px;padding-right:24px}
}

/* A modal owns scrolling while it is open; the page beneath stays still. */
html:has(dialog[open]){overflow:hidden}
body.modal-open{position:fixed;width:100%;overflow:hidden}
@media(max-width:760px){body.modal-open{position:fixed;top:var(--modal-scroll-top,0);width:100%;overflow:hidden}}
.shop-mode dialog p{line-height:1.75}
.shop-mode dialog:not(:has(.product-modal-art)):not(:has(.shop-welcome-copy)) p{color:#B3AFAA}
.shop-mode dialog .modal-close{border:0!important}
.shop-mode .tv .image-open-label{color:#B3AFAA}

/* Writing Desk keeps the shared QQ-character card layout in the antique-shop palette. */
.shop-mode dialog:has(.character-image[alt="写字台"]){width:500px;max-width:calc(100vw - 32px);padding:30px;text-align:center;background:#222121;color:#DDDCD2;border:1px solid #414640}
.shop-mode dialog:has(.character-image[alt="写字台"]) .character-image{height:min(42vh,330px);margin:12px 0 20px}
.shop-mode dialog:has(.character-image[alt="写字台"]) p{width:100%;margin:0 0 12px;padding:0;text-align:center;color:#B3AFAA}
.shop-mode dialog:has(.character-image[alt="写字台"]) p:last-of-type{margin-bottom:0}
.shop-mode dialog:has(.character-image[alt="写字台"]) .modal-actions{justify-content:center;padding:0}
.shop-mode dialog:has(.character-image[alt="写字台"]) .modal-close{top:2px;right:6px;width:auto;height:20px;font-size:20px;line-height:20px;background:#222121;color:#DDDCD2}

/* Antique-shop action buttons use the page's deep gray, never the old brown accent. */
.shop-mode .primary{background:#3A3938;color:#AAA;border-color:#555}
.shop-mode dialog:has(.modal-actions .primary[data-page="room"]) .modal-actions{justify-content:center}
.character-name.found{color:var(--character)}
.character-name.found .name-part{color:var(--part)}
.shop-mode .tv:last-child{border-color:#30302F}
.room-mode{background:#171719;color:#FFF}
.room,.room p{font-size:14px;color:#FFF}
.room p{line-height:1.5;white-space:pre-line}

/* Generator Room monitor: reveal the blue-green light with the third narration line. */
.monitor{position:fixed;left:50%;bottom:89px;transform:translateX(-50%) scale(1.5);transform-origin:center bottom;z-index:1;width:134px;margin:0;border-width:6px;border-bottom-width:10px;overflow:hidden}
.monitor:before{content:'';position:absolute;inset:0;background:#171719;z-index:1;animation:monitor-light-reveal 1s ease 4s forwards}
@keyframes monitor-light-reveal{to{opacity:0}}

/* Keep every QQ-character card compact and consistent. */
dialog:has(.character-image){width:min(400px,80vw)!important;max-width:80vw;padding:20px!important;text-align:center}
dialog:has(.character-image) .character-image{height:min(42vh,330px)!important;margin:4px 0 12px}
dialog:has(.character-image) p{box-sizing:border-box;width:100%;max-width:none;margin:0 0 6px!important;padding:0!important;text-align:center}
dialog:has(.character-image) p:last-of-type{margin-bottom:0!important}
dialog:has(.character-image) .modal-actions{justify-content:center;padding:0!important}
body:not(.shop-mode):not(.room-mode) dialog:has(.character-image){padding-top:34px!important}

/* The antique-shop FAQ introduction is a standalone notice, not a camera modal. */
.shop-mode dialog:has(.faq-transition-copy){width:min(460px,80vw);max-width:80vw}
.shop-mode dialog:has(.faq-transition-copy) .faq-transition-copy p{box-sizing:border-box;width:calc(100% - 64px);margin:0 auto!important;padding:30px 16px!important;text-align:center}
@media(max-width:760px){.shop-mode dialog:has(.faq-transition-copy) .faq-transition-copy p{width:calc(100% - 48px)}}

/* The Meodem character popup keeps the BBS character-popup window inside the generator room. */
.room-mode dialog:has(.character-image){background:#e9f8fe;color:#183445;border:2px outset #b8dce9;box-shadow:5px 5px 0 #0003;padding:34px 15px 15px!important;line-height:1.55;text-align:center}
.room-mode dialog:has(.character-image)::before{content:'';display:block;position:absolute;top:0;left:0;right:0;height:24px;padding:0;background:#4c9fc5}
.room-mode dialog:has(.character-image) .modal-close{position:absolute;right:6px;top:2px;height:20px;padding:0;border:0;background:none;color:white;font-size:20px;line-height:20px;z-index:1}
.room-mode dialog:has(.character-image) p{font-size:14px!important}
.room-mode dialog:has(.character-image) .modal-actions{justify-content:center}
.room-mode dialog:has(.character-image) .modal-actions button{border:2px outset #aaa;background:#eee;padding:4px 18px;color:#183445;font-size:13px}

/* The ending uses the same forum-window language and a transparent ring of characters. */
.room-mode dialog:has(.group-art){background:#e9f8fe;color:#183445;border:2px outset #b8dce9;box-shadow:5px 5px 0 #0003;padding:42px 15px 15px;line-height:1.55;text-align:center;width:min(500px,80vw);max-width:500px}
.room-mode dialog:has(.group-art)::before{content:'夕浜镇网络告示板';display:block;position:absolute;top:0;left:0;right:0;padding:4px 7px;background:#4c9fc5;color:#fff;font-size:13px;text-align:left}
.room-mode dialog:has(.group-art) h2{font-size:14px;font-weight:400;margin:0 0 14px}
.room-mode dialog:has(.group-art) p{font-size:14px;margin:14px 0 0}
.room-mode dialog:has(.group-art) .modal-actions{justify-content:center;margin-top:18px}
.room-mode dialog:has(.group-art) .modal-actions button{border:2px outset #aaa;background:#eee;padding:4px 18px;color:#183445;font-size:13px}
.group-art{position:relative;width:min(340px,100%);aspect-ratio:1;margin:0 auto;background:transparent}
.group-art img{position:absolute;top:36%;left:36%;width:28%;height:28%;object-fit:contain;background:transparent}
.group-art img:nth-child(1){transform:rotate(0deg) translateY(-128%) rotate(0deg) scale(1.2)}
.group-art img:nth-child(2){transform:rotate(51.43deg) translateY(-128%) rotate(-51.43deg) scale(1.2)}
.group-art img:nth-child(3){transform:rotate(102.86deg) translateY(-128%) rotate(-102.86deg) scale(1.2)}
.group-art img:nth-child(4){transform:rotate(154.29deg) translateY(-128%) rotate(-154.29deg) scale(1.2)}
.group-art img:nth-child(5){transform:rotate(205.72deg) translateY(-128%) rotate(-205.72deg) scale(1.2)}
.group-art img:nth-child(6){transform:rotate(257.15deg) translateY(-128%) rotate(-257.15deg) scale(1.2)}
.group-art img:nth-child(7){transform:rotate(308.58deg) translateY(-128%) rotate(-308.58deg) scale(1.2)}
.group-art img.uncollected{filter:brightness(0);opacity:.3}
.group-art-title{position:absolute;top:50%;left:50%;width:54%;transform:translate(-50%,-50%);font-size:14px;font-weight:400;line-height:1.5;text-align:center;color:#183445}
.group-art-title .ending-progress{display:inline-block;font:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ending-progress{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
.ending-progress:focus:not(:focus-visible){outline:none}
.ending-progress:focus-visible{outline:1px dotted currentColor;outline-offset:3px}
.garden-ascii button[data-action="flower"],.garden-ascii button[data-action="flower"]:hover{color:#f0d0d8}
.flower-modal .key-use-hint{display:block;font-size:10px;font-weight:400;opacity:.5;line-height:15px}
body:not(.shop-mode):not(.room-mode) dialog.flower-modal:has(.key-use-hint){padding-bottom:42px}
.flower-modal:has(.key-use-hint)>p{margin-bottom:0}
.flower-modal:has(.key-use-hint)>.modal-actions{display:none}

.room-mode dialog:has(.thanks-copy){background:#e9f8fe;color:#183445;border:2px outset #b8dce9;box-shadow:5px 5px 0 #0003;padding:42px 15px 15px;line-height:1.55;width:min(500px,80vw);max-width:500px}
.room-mode dialog:has(.thanks-copy)::before{content:'夕浜镇网络告示板';display:block;position:absolute;top:0;left:0;right:0;padding:4px 7px;background:#4c9fc5;color:#fff;font-size:13px;text-align:left}
.room-mode dialog:has(.thanks-copy) .modal-close{position:absolute;right:6px;top:2px;height:20px;padding:0;border:0;background:none;color:#fff;font-size:20px;line-height:20px;z-index:1}
.room-mode dialog:has(.thanks-copy) .thanks-copy{text-align:center;padding:0 24px}
.room-mode dialog:has(.thanks-copy) .thanks-copy p{font-size:14px;font-weight:400;line-height:1.5;text-align:center}
.room-mode dialog:has(.thanks-copy) .thanks-copy p:first-child{margin-bottom:8px}
.room-mode dialog:has(.thanks-copy) .thanks-copy p:first-child strong{font-weight:700}
.room-mode dialog:has(.thanks-copy) .thanks-copy p:last-child{margin-bottom:24px}
.room-mode dialog:has(.thanks-copy) .thanks-copy p:last-child{font-size:12px;line-height:1.5}
.room-mode dialog:has(.thanks-copy) .modal-actions{justify-content:center;margin-top:18px}
.room-mode dialog:has(.thanks-copy) .modal-actions button{border:2px outset #aaa;background:#eee;padding:4px 18px;color:#183445;font-size:13px}
.modem-photo{display:block;width:220px;max-width:100%;height:auto;margin:0 auto;border:0}
.bgm-toggle{border:0;background:none;padding:0;color:inherit;font-size:inherit;white-space:nowrap}.postrow.pinned{color:inherit;text-decoration:none}
.nav-progress{color:#0645ad!important;text-decoration:underline;cursor:pointer}
.nav .nav-progress{text-decoration:underline!important;color:#0645ad!important}
dialog:focus,.shop-mode dialog:focus-visible{outline:none}
.shop-mode .shopintro{margin-left:auto;margin-right:auto;text-align:center}
.shop-mode .shopintro{padding-top:0;padding-bottom:0}
.shop-mode .intro-view{min-height:100vh;display:flex;flex-direction:column}
.shop-mode .intro-view .shopintro{margin-top:auto;margin-bottom:auto}
.shop-mode .intro-view .shopintro h1{margin-bottom:50px!important}
.shop-mode dialog:has(.product-modal-art){width:min(80vw,430px);max-width:calc(100vw - 28px)}
.shop-mode dialog:has(.product-modal-art) .product-modal-art + p{font-size:14px!important}
.shop-mode .faq{width:min(430px,calc(100% - 48px));max-width:430px;margin-left:auto;margin-right:auto;text-align:left}
.home-layout main .search-result{text-align:center}
.home-layout main .search-result{width:min(500px,calc(100% - 48px));margin-left:auto;margin-right:auto}
.home-layout main .search-result p{text-align:left;font-weight:700}
.home-layout main .search-result-link{text-align:center}
body:not(.shop-mode):not(.room-mode) dialog:has(.bgm-prompt){width:min(400px,80vw);max-width:400px}
body:not(.shop-mode):not(.room-mode) dialog:has(.bgm-prompt)::before{content:'背景音乐设置'}
body:not(.shop-mode):not(.room-mode) dialog:has(.bgm-prompt)>h2{display:none}
body:not(.shop-mode):not(.room-mode) dialog:has(.bgm-prompt) .bgm-prompt{text-align:center;font-size:14px}
body:not(.shop-mode):not(.room-mode) dialog:has(.bgm-prompt) .bgm-prompt p{margin:0 0 12px}
body:not(.shop-mode):not(.room-mode) dialog:has(.bgm-prompt) .modal-actions{justify-content:center;margin-top:0}
.shop-links .shop-music-toggle{text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:3px}
/* Keep navigation labels intact; very narrow screens can scroll the row. */
.shop-mode .shopbar .shop-links{flex-wrap:nowrap;justify-content:flex-start;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.shop-mode .shopbar .shop-links>button,.shop-mode .shopbar .shop-links>span{flex:0 0 auto;white-space:nowrap}
.shop-mode .shopbar .shop-links>span:first-child{margin-left:auto}
.shop-mode .shopbar .shop-links>span:last-child{margin-right:auto}
@media(max-width:480px){.shop-mode .shopbar .shop-links>span{margin-left:4px;margin-right:4px}.shop-mode .shopbar .shop-links>span:first-child{margin-left:auto}.shop-mode .shopbar .shop-links>span:last-child{margin-right:auto}}
/* Center the generator-room opening narration in the space above the monitor. */
.room{min-height:100vh;padding:0 30px 180px;display:flex;flex-direction:column;justify-content:center}
.room p{width:min(680px,100%);margin:0 auto 12px}
.room p:last-of-type{margin-bottom:0}
.room p:nth-of-type(5){animation-delay:8s}
.room.room-intro-complete p{opacity:1;animation:none}
.room.room-intro-complete .monitor:before{opacity:0;animation:none}

/* Keep brief floating notices readable on wide displays as well. */
.unavailable-tip{max-width:min(360px,calc(100vw - 16px))}
.toast{max-width:min(500px,90vw)}
/* Ending dialogue can finish on any page after the player uses Back. */
#modal:is(:has(.group-art),:has(.thanks-copy)){width:min(500px,80vw);max-width:500px}
