:root{color-scheme:light;--ink:#2f4739;--green:#496748}*{box-sizing:border-box}body{margin:0;background:#f5f7f1;color:var(--ink);font-family:'Microsoft YaHei','PingFang SC',sans-serif;font-size:16px}button,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}button:hover:not(:disabled){filter:brightness(.94)}button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #446c52;outline-offset:4px}header{height:99px;margin:0 4.4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce3d8}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#294737;font-family:serif;font-size:26px;font-weight:700;letter-spacing:3px}.sun{background:#e9eedb;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-size:26px}.brand small{display:block;font-family:sans-serif;font-size:12px;letter-spacing:2px;margin-top:2px;color:#6c7b66}header p{font-family:serif;color:#7b8678;letter-spacing:2px;font-size:14px}header button{font-size:14px;border:0;background:transparent}.workspace{max-width:1320px;margin:30px auto 0;padding:0 34px;display:grid;grid-template-columns:1.04fr 1fr;gap:30px}.eyebrow{display:flex;justify-content:space-between;margin:0 0 13px;color:#72816e;font-size:14px;letter-spacing:2px}.eyebrow span:last-child{font-size:12px}.scene{position:relative;height:570px;border-radius:19px;overflow:hidden;background:#b9d0c4}.scene>img{height:100%;width:100%;object-fit:cover;object-position:50% 36%;transition:scale .9s;display:block}.alive>img{animation:breathe 7s ease-in-out infinite}.scene.closer>img{scale:1.14}.scene.reacting>img{filter:brightness(1.06)}.shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(22,48,37,.81),transparent 42%,rgba(10,36,24,.14));pointer-events:none}.scene-top{position:absolute;top:20px;left:21px;right:21px;display:flex;justify-content:space-between;align-items:center;color:white}.scene-top>span{font-size:14px;background:#ffffff24;backdrop-filter:blur(8px);border:1px solid #ffffff4a;border-radius:20px;padding:8px 12px}.scene-top button{background:#ffffffe0;color:#344e40;border:0;border-radius:50%;height:35px;width:35px;display:grid;place-items:center}#character-hit{position:absolute;inset:70px 25% 150px;border:0;background:transparent}.speech{position:absolute;right:23px;top:112px;max-width:208px;padding:15px 18px;border-radius:16px 16px 3px 16px;background:#fffef7f0;font-family:serif;font-size:17px;line-height:1.8;box-shadow:0 4px 24px #354f3820;pointer-events:none}.speech small{display:block;text-align:right;font-size:12px;color:#758565}.caption{position:absolute;bottom:29px;left:30px;color:white;pointer-events:none}.caption>span{font-size:12px;letter-spacing:4px;color:#dce6c8}h1{font-family:serif;font-size:34px;font-weight:500;letter-spacing:4px;margin:9px 0}h1 small{font-family:sans-serif;font-size:14px;letter-spacing:1px;color:#e2e6d8}.caption p{font-size:14px;letter-spacing:2px;margin:0;color:#e4eadc}.scene-controls{display:flex;align-items:center;gap:13px;padding:16px 0;font-size:14px}.scene-controls label{color:#67765c}.scene-controls select{border:1px solid #d9e2d0;background:#fffefa;padding:8px 12px;border-radius:8px;font-size:14px}.scene-controls>span{font-size:12px;color:#738166;margin-left:auto}.chat{border:1px solid #dce3d7;background:#fffefa;border-radius:19px;display:flex;flex-direction:column;height:660px;box-shadow:0 8px 26px #394e3005}.chat-head{display:flex;gap:12px;align-items:center;padding:23px;border-bottom:1px solid #e9ede3}.avatar{height:46px;width:46px;overflow:hidden;border-radius:50%;background:#dbe5d2}.avatar img{width:100%;height:100%;object-fit:cover;object-position:center 25%;transform:scale(1.8)}h2{font-size:18px;font-weight:600;margin:0 0 6px}.chat-head p{font-size:12px;color:#69775e;margin:0}.chat-head button{margin-left:auto;border:0;background:transparent;color:#6b795f;font-size:24px;padding:7px}.chat-scroll{flex:1;min-height:0;overflow-y:auto;padding:22px 25px}.date{text-align:center;color:#7c8870;font-size:12px;letter-spacing:1px}.intro{text-align:center;font-size:13px;color:#748163;margin:26px 0}.message{margin:18px 0;max-width:86%;font-size:16px;line-height:1.85;overflow-wrap:anywhere}.message>span{font-size:12px;color:#65775c;display:block;margin:0 0 6px 3px}.message p{margin:0;padding:14px 17px;border-radius:3px 15px 15px;background:#eef2e8;color:#43523c;white-space:pre-wrap}.message.user{margin-left:auto}.message.user p{background:#47634b;color:white;border-radius:15px 3px 15px 15px}.typing{color:#748263;font-size:14px}.composer{padding:16px 21px 12px}.suggestions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:13px}.suggestions button{border:1px solid #dde5d6;background:#fffefa;border-radius:20px;color:#5e7153;padding:7px 11px;font-size:14px}form{border:1px solid #d9e1d0;border-radius:13px;padding:13px;background:#fffefb}textarea{resize:none;border:0;background:transparent;width:100%;height:53px;font:inherit;font-size:16px;outline:none;color:#344b35}textarea::placeholder{color:#79886b}.input-bottom{display:flex;align-items:center;justify-content:space-between}.input-bottom span{font-size:12px;color:#758269}.input-bottom button{border:0;background:#496748;color:white;border-radius:9px;height:36px;width:40px;display:grid;place-items:center;font-size:25px}.footnote{text-align:center;font-size:12px;color:#7a856e;margin:11px 0 0}.interactions{max-width:1252px;margin:9px auto 0;border-top:1px solid #dbe3d3;border-bottom:1px solid #dbe3d3;padding:23px 10px;display:flex;align-items:center;gap:38px}.interactions h2{font-family:serif;font-size:18px;letter-spacing:1px;font-weight:500}.interactions p{font-size:14px;color:#748166;margin:7px 0 0}.actions{display:flex;gap:12px}.actions button{display:flex;align-items:center;gap:10px;border:1px solid #dce4d4;background:#fcfdf7;border-radius:10px;padding:12px 22px;font-size:14px;color:#566b48}.actions button span{font-size:23px}.interactions em{margin-left:auto;font-family:serif;font-size:19px;letter-spacing:3px;color:#71825e}footer{max-width:1252px;margin:20px auto 25px;display:flex;justify-content:space-between;font-size:12px;color:#778468}dialog{border:1px solid #d8e1cd;border-radius:18px;padding:30px;max-width:520px;width:calc(100% - 32px);max-height:85vh;overflow:auto;background:#fffefa;color:var(--ink);box-shadow:0 25px 100px #223c3433}dialog::backdrop{background:#14271d70;backdrop-filter:blur(4px)}#close-dialog{position:absolute;right:15px;top:10px;background:transparent;border:0;font-size:28px}dialog h2{font-size:23px;padding-right:25px}dialog h3{font-size:16px;margin:20px 0 6px}dialog p{font-size:16px;line-height:1.8;color:#5c6e51;margin:8px 0}dialog a{display:block;color:#426637;font-size:14px;margin:12px 0}dialog button.setting{padding:9px 15px;border:1px solid #b8c4aa;border-radius:7px;background:#edf1e7;margin-top:10px}@keyframes breathe{0%,100%{transform:scale(1.015) translateY(0)}50%{transform:scale(1.035) translateY(-3px)}}@media(min-width:1450px){.workspace{margin-top:38px}.scene{height:620px}.chat{height:710px}}@media(max-width:1000px){.workspace{gap:20px;padding:0 22px}.interactions,footer{margin-left:22px;margin-right:22px}.scene-controls>span,header p,.interactions em{display:none}.interactions{gap:24px}.actions button{padding:12px 17px}.speech{max-width:175px}}@media(max-width:700px){header{height:80px}.brand{font-size:22px}.workspace{grid-template-columns:1fr;margin-top:22px;padding:0 16px;gap:13px}.scene{height:480px}.chat{height:610px}.scene-controls{padding:12px 0}.caption{left:23px}.speech{top:95px}.interactions{margin:25px 16px 0;display:block;padding:21px 0}.actions{margin-top:17px;gap:7px}.actions button{flex:1;padding:12px 8px;justify-content:center;font-size:14px}.interactions p{display:none}footer{margin:18px 16px;line-height:1.8}footer span:last-child{display:none}.chat-scroll{padding:18px}.composer{padding:12px 15px}.suggestions button{font-size:13px}.intro{font-size:12px}header button{font-size:14px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
header nav{display:flex;align-items:center;gap:20px}header nav button{font-size:14px;border:0;background:transparent;white-space:nowrap}.scene-picker{display:flex;gap:8px;margin:0 0 13px}.scene-picker button{flex:1;border:1px solid #d6e0d1;background:#fcfdf8;border-radius:9px;padding:9px 7px;color:#50664c;font-size:14px}.scene-picker button[aria-pressed="true"]{background:#496748;border-color:#496748;color:white}.scene-story{border-top:1px solid #dde6d7;padding:18px 2px 0;margin-top:3px}.scene-story strong{font-family:serif;font-size:18px;font-weight:500}.scene-story p{color:#64745c;font-size:14px;line-height:1.65;margin:6px 0 0}.terms-preview{max-width:1252px;margin:22px auto 0;padding:25px 10px 30px;display:grid;grid-template-columns:220px 1fr auto;gap:25px;align-items:center;border-bottom:1px solid #dbe3d3}.terms-preview .eyebrow{font-size:12px;letter-spacing:1px;margin:0 0 7px}.terms-preview h2{font-family:serif;font-size:20px;font-weight:500;margin:0 0 8px}.terms-preview p{font-size:13px;color:#72816a;margin:0}.term-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.term-card{background:#fffefa;border:1px solid #dce4d4;border-radius:12px;padding:14px;text-align:left;min-height:110px;font-size:15px;font-weight:600}.term-card small,.term-row small{display:block;color:#66785c;font-size:12px;font-weight:400;margin:6px 0}.term-card span,.term-row span{display:block;color:#687a5d;font-size:13px;font-weight:400;line-height:1.5}#all-terms{border:1px solid #b9c8af;border-radius:9px;background:#fcfdf8;padding:12px;font-size:14px;white-space:nowrap}.term-dialog>p{margin:0 0 14px}.term-dialog input{width:100%;border:1px solid #c9d6c2;border-radius:9px;padding:12px;font-size:16px;background:#fff}.term-filters{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.term-filters button{border:1px solid #d7e1d1;border-radius:20px;background:#fffefa;padding:7px 10px;font-size:13px}.term-filters button[aria-pressed="true"]{background:#496748;color:white;border-color:#496748}.term-list{display:grid;gap:8px;max-height:42vh;overflow-y:auto}.term-row{text-align:left;border:1px solid #d9e2d1;background:#fbfdf8;border-radius:10px;padding:11px 14px;font-size:16px;font-weight:600}.term-tag{display:inline-block;background:#eef2e8;color:#516b48;border-radius:20px;padding:6px 11px;font-size:13px}.about-detail a{margin:12px 0}.chat{height:705px}.scene{height:570px}.interactions{margin-top:32px}@media(min-width:1450px){.chat{height:755px}}@media(max-width:1000px){header nav{gap:10px}.terms-preview{margin-left:22px;margin-right:22px;grid-template-columns:1fr}.term-preview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#all-terms{justify-self:start}.scene-story{padding-top:12px}}@media(max-width:700px){header nav{gap:8px}header nav button{font-size:12px;padding:6px 2px}header nav button:first-child{display:none}.scene-picker{margin-bottom:10px}.scene-picker button{font-size:13px}.chat{height:610px}.scene{height:480px}.interactions{margin-top:20px}.terms-preview{margin:22px 16px 0;padding:20px 0;gap:16px}.term-preview-grid{grid-template-columns:1fr}.term-card{min-height:unset}.term-card span{line-height:1.55}.scene-story{margin-bottom:7px}.actions{flex-wrap:wrap}.actions button{flex:1 1 44%}}
.presence{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 1px 0;font-size:14px;color:#617453}.presence button{border:1px solid #cbd9bf;background:#fffefa;border-radius:18px;padding:7px 12px;font-size:13px}.presence button[aria-pressed=true]{background:#e0eacf;color:#334d2c}.scene{--look-x:0px;--look-y:0px;perspective:1200px}.scene>img{translate:var(--look-x) var(--look-y);transition:translate 1s ease-out,scale .9s,filter 1s;transform-origin:50% 78%;will-change:transform}.scene.alive>img{animation:companion-breathe 8s ease-in-out infinite}.scene.alive.speaking>img{animation:companion-talk 2.3s ease-in-out infinite}.scene.alive.reacting>img{animation:companion-nod 1.1s ease-in-out}.scene .speech{transition:opacity .4s,background .5s,transform .7s;max-width:230px;max-height:200px;overflow:auto}.scene[data-mood=quiet] .speech{opacity:.86;transform:translateY(3px)}.scene[data-mood=warm] .speech,.scene[data-mood=playful] .speech{background:#fff9ddec}.scene.alive[data-mood=playful]>img{animation:companion-tilt 2.2s ease-in-out infinite}.message{animation:message-arrive .35s ease-out}.typing{animation:waiting 1.6s ease-in-out infinite}.scene:not(.alive)>img{translate:0px 0px}.scene:not(.alive) .speech{transition:none}.chat{height:760px}@keyframes companion-breathe{0%,100%{transform:scale(1.035) rotate(-.25deg) translateY(0)}35%{transform:scale(1.055) rotate(.2deg) translateY(-5px)}70%{transform:scale(1.04) rotate(-.1deg) translateY(-2px)}}@keyframes companion-talk{0%,100%{transform:scale(1.045) rotate(-.2deg) translateY(0)}45%{transform:scale(1.06) rotate(.4deg) translateY(3px)}}@keyframes companion-nod{0%,100%{transform:scale(1.04) rotate(0)}35%{transform:scale(1.075) rotate(.7deg) translateY(5px)}70%{transform:scale(1.045) rotate(-.4deg)}}@keyframes companion-tilt{0%,100%{transform:scale(1.05) rotate(-.6deg)}50%{transform:scale(1.06) rotate(.6deg)}}@keyframes message-arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes waiting{0%,100%{opacity:.5}50%{opacity:1}}@media(max-width:700px){.chat{height:640px}.scene .speech{font-size:15px;max-width:180px;max-height:180px}.presence{padding-top:10px;font-size:13px}.presence button{font-size:12px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.scene>img{translate:0 0!important}}
.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 20px 4px;background:linear-gradient(180deg,rgba(251,247,234,.72),transparent)}
.mode-switch button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border:1px solid rgba(74,91,67,.13);border-radius:13px;background:rgba(255,255,255,.62);color:var(--ink);text-align:left;transition:.2s ease}
.mode-switch button:hover:not(:disabled){transform:translateY(-1px);border-color:rgba(74,91,67,.3)}
.mode-switch button[aria-pressed="true"]{background:#496748;color:#fff;border-color:#496748;box-shadow:0 8px 20px rgba(53,78,52,.16)}
.mode-switch strong{font:600 13px/1.3 'Microsoft YaHei','PingFang SC',sans-serif}
.mode-switch small{font:400 10px/1.35 'Microsoft YaHei','PingFang SC',sans-serif;opacity:.72}
@media(max-width:700px){.mode-switch{padding-inline:14px}.mode-switch button{padding:9px 10px}.mode-switch small{font-size:9px}}
.memory-strip{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:9px 0 0;color:#65775c;font-size:12px}
.memory-strip[hidden]{display:none}
.memory-strip>span{opacity:.72;margin-right:2px}
.memory-strip small{font-size:11px;background:#edf3e7;border:1px solid #d6e2ce;border-radius:20px;padding:5px 9px;color:#496047}
.scene[data-scene="rain"]>img{object-position:50% 34%}
.scene[data-scene="rain"] .shade{background:linear-gradient(0deg,rgba(25,43,51,.74),transparent 44%,rgba(28,45,55,.12))}
.scene[data-scene="rain"] .speech{background:rgba(247,251,250,.92)}
.scene-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.scene[data-scene="valentine"] .shade{background:linear-gradient(0deg,rgba(64,34,42,.76),transparent 48%,rgba(117,69,75,.12))}
.scene[data-scene="whiteDay"] .shade{background:linear-gradient(0deg,rgba(39,50,68,.78),transparent 46%,rgba(95,111,139,.12))}
.scene[data-scene="festival"] .shade{background:linear-gradient(0deg,rgba(30,25,51,.82),transparent 48%,rgba(32,45,86,.18))}
.scene[data-scene="festival"] .speech{background:rgba(255,251,239,.94)}
@media(max-width:700px){.scene-picker{display:grid;grid-template-columns:1fr 1fr;max-height:126px;overflow-y:auto;padding-right:3px}.memory-strip{padding-top:8px}.memory-strip>span{width:100%}}
.chat-head #settings{font-size:12px;border:1px solid #d6e1cf;background:#f9fbf5;border-radius:18px;padding:7px 11px;white-space:nowrap}.profile-summary{margin:9px 20px 0;padding:9px 12px;border:1px solid #dce5d5;border-radius:12px;background:#fbfcf7;display:flex;align-items:center;justify-content:space-between;text-align:left;color:#405b42}.profile-summary>span{display:grid;gap:2px}.profile-summary strong{font-size:13px}.profile-summary small{font-size:10px;color:#73806c;font-weight:400}.profile-summary em{font-style:normal;font-size:12px;color:#6d7e64}.reaction-spark{position:absolute;right:24px;top:82px;z-index:4;min-width:42px;padding:7px 10px;border-radius:20px;background:#fffef3e8;color:#536d4b;text-align:center;font:600 15px/1 serif;box-shadow:0 5px 20px #2f493b22;opacity:0;transform:translateY(6px) scale(.8);pointer-events:none}.reaction-spark[data-show="true"]{animation:reaction-pop .85s ease-out}.scene.bubble-pop .speech{animation:bubble-pop .34s ease-out}.scene[data-mood="listening"] .speech{background:#f5f8eff2}.profile-form{border:0;padding:0;background:transparent;display:grid;gap:14px}.profile-field{display:grid;gap:7px;font-size:14px;font-weight:600;color:#405a41}.profile-field input,.profile-field select,.profile-field textarea{width:100%;border:1px solid #cbd8c4;border-radius:10px;background:white;padding:10px 11px;font:400 15px/1.45 'Microsoft YaHei','PingFang SC',sans-serif}.profile-field textarea{height:74px;resize:vertical}.profile-field small{font-size:11px;font-weight:400;color:#7a8871}.need-options{border:0;padding:0;margin:1px 0;display:flex;gap:7px;flex-wrap:wrap}.need-options legend{width:100%;margin-bottom:8px;font-size:14px;font-weight:600}.need-options label{position:relative;border:1px solid #d2ddca;border-radius:18px;padding:7px 11px;font-size:13px;background:#fff;cursor:pointer}.need-options label:has(input:checked){background:#496748;color:white;border-color:#496748}.need-options input{position:absolute;opacity:0;pointer-events:none}.need-options small{width:100%;color:#a44d3a;font-size:12px}.profile-actions{display:flex;gap:9px;margin-top:4px}.profile-actions button{border-radius:9px;padding:10px 14px;font-size:14px}.profile-save{border:1px solid #496748;background:#496748;color:white}.profile-motion{border:1px solid #c8d5c0;background:#eef3e9}.profile-form input:focus-visible,.profile-form select:focus-visible,.profile-form textarea:focus-visible{outline:2px solid #496748;outline-offset:2px}@keyframes reaction-pop{0%{opacity:0;transform:translateY(6px) scale(.8)}20%,70%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-6px) scale(.94)}}@keyframes bubble-pop{0%{opacity:.55;transform:translateY(5px) scale(.97)}100%{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:700px){.profile-summary{margin-inline:14px}.reaction-spark{right:14px;top:70px}.chat-head #settings{padding:6px 8px}.profile-actions{flex-direction:column}}
.quick-guide{margin:9px 20px 0;padding:10px 12px;border:1px solid #d5dfcc;border-radius:12px;background:#f3f7ed;display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center}.quick-guide[hidden]{display:none}.quick-guide span{display:grid;gap:2px}.quick-guide strong{font-size:13px}.quick-guide small{font-size:11px;color:#6e7d67}.quick-guide button{border:1px solid #bfcdb7;border-radius:8px;background:#fffefa;padding:7px 9px;font-size:12px}.quick-guide .quick-guide-close{border-color:transparent;background:transparent;color:#708067}.guide-lead{padding:11px 13px;border-radius:10px;background:#f1f5eb}.guide-dialog ol{display:grid;gap:12px;margin:16px 0;padding-left:24px}.guide-dialog li{padding-left:4px;color:#496149}.guide-dialog li strong,.guide-dialog li span{display:block}.guide-dialog li strong{font-size:15px;margin-bottom:4px}.guide-dialog li span{font-size:13px;line-height:1.7;color:#6b7965}.guide-actions{display:flex;gap:9px;flex-wrap:wrap}.profile-actions{flex-wrap:wrap}.profile-clear{border:1px solid #d6c8c1;background:#fffaf6;color:#855847}header nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:700px){.quick-guide{margin-inline:14px;grid-template-columns:1fr auto}.quick-guide .quick-guide-close{grid-column:1/-1;justify-self:start;padding-left:0}.guide-dialog ol{padding-left:20px}.guide-actions{flex-direction:column}header nav #guide-open{display:inline-block}}
.chapter-gallery{margin:12px 0 18px;padding:14px;border:1px solid #d6e0cf;border-radius:12px;background:#fffefa}.chapter-gallery>strong{font-size:14px}.gallery-thumbs{display:flex;gap:8px;margin:10px 0;flex-wrap:wrap}.gallery-choice{padding:3px;border:2px solid transparent;border-radius:9px;background:#f0f4eb;overflow:hidden}.gallery-choice[aria-pressed=true]{border-color:#496748}.gallery-choice img{width:66px;height:72px;object-fit:cover;display:block;border-radius:5px}.gallery-choice span{font-size:12px;display:block;padding:3px}.chapter-gallery>button,.interaction-guide,.guess-options button{border:1px solid #c7d5be;background:#f7faf2;border-radius:8px;padding:8px 11px;font-size:14px;margin:0 7px 5px 0}.gallery-note,.pose-note{font-size:12px;color:#66785b;line-height:1.6}.gallery-note{margin:7px 0 0}.pose-note{display:block;margin-top:-6px}.scene[data-pose=portrait]>img{scale:1.24;object-position:50% 22%}.scene[data-pose=wide]>img{object-fit:contain;scale:1;animation:none;translate:0 0}.scene-controls{flex-wrap:wrap}.guess-options{display:flex;gap:10px}.guess-options button{min-width:56px;padding:14px}.interaction-guide{margin-top:10px}.gallery-choice:focus-visible{outline:2px solid #496748;outline-offset:2px}
.festival-slides{position:absolute;z-index:9;right:22px;bottom:22px;display:flex;align-items:center;gap:9px;padding:7px 8px 7px 12px;border:1px solid #ffffff66;border-radius:999px;background:#1214209e;color:#fff;box-shadow:0 8px 28px #0006;backdrop-filter:blur(12px)}.festival-slides[hidden]{display:none}.festival-slides>span{font:11px/1.2 Georgia,'Noto Serif SC',serif;letter-spacing:.08em;white-space:nowrap}.festival-slide-dots{display:flex;align-items:center;gap:5px}.festival-slide-dot{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:#ffffff69}.festival-slide-dot[aria-current=true]{width:18px;border-radius:999px;background:#fff}.festival-slide-toggle{width:28px;height:28px;padding:0;border:1px solid #ffffff55;border-radius:50%;background:#ffffff1f;color:#fff;font-size:11px}.festival-slides button:focus-visible{outline:2px solid #fff;outline-offset:2px}@media(max-width:700px){.festival-slides{right:13px;bottom:14px;padding-left:9px}.festival-slides>span{display:none}.festival-slide-dots{gap:4px}.festival-slide-dot{width:6px;height:6px}.festival-slide-dot[aria-current=true]{width:14px}}
.leisure{max-width:1252px;margin:22px auto;padding:22px 10px;display:grid;grid-template-columns:1fr 1.15fr;gap:28px;border-bottom:1px solid #dbe3d3}.leisure h2{font-family:serif;font-size:21px}.leisure p{font-size:14px;color:#66785b;line-height:1.7;margin:8px 0 14px}.leisure-buttons,.music-controls,.riddle-controls{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.leisure button,.leisure select,.riddle-game button{border:1px solid #c7d5be;background:#f9fbf5;border-radius:9px;padding:10px 14px;font-size:14px}.leisure button[aria-pressed=true]{background:#496748;color:white}.leisure-music small,.riddle-game small{display:block;font-size:12px;line-height:1.7;color:#68795d;margin-top:10px}.music-controls label{display:flex;align-items:center;gap:7px;font-size:14px}.music-controls input{width:90px;accent-color:#496748}.riddle-game .riddle-question{font-size:18px;color:#344e3b;line-height:1.85;margin:16px 0}.riddle-options{display:grid;gap:8px}.riddle-options button{text-align:left;font-size:16px}.riddle-options button[data-result=correct]{background:#e0edda;border-color:#68865a;color:#294a2c;opacity:1}.riddle-options button[data-result=correct]::after{content:' ✓ 正确答案';font-size:12px}.riddle-options button[data-result=wrong]{background:#f8e8e1;opacity:1}.riddle-feedback{min-height:30px}.riddle-controls{margin:12px 0}.leisure input:focus-visible{outline:2px solid #496748;outline-offset:3px}@media(max-width:1000px){.leisure{margin-inline:22px;grid-template-columns:1fr;gap:23px}}@media(max-width:700px){.leisure{margin-inline:16px;padding-inline:0}.music-controls{gap:8px}.leisure-games,.leisure-music{min-width:0}}
.scene[data-angle=left]>img{object-position:38% 36%;rotate:-.65deg}.scene[data-angle=right]>img{object-position:62% 36%;rotate:.65deg}.scene[data-angle=tilt]>img{object-position:54% 32%;rotate:-1.35deg;scale:1.045}.scene[data-motion-style=still]>img{animation:none!important;translate:0 0!important}.scene.alive[data-motion-style=breeze]>img{animation:summer-breeze 10s cubic-bezier(.45,0,.55,1) infinite}.scene.alive[data-motion-style=glance]>img{animation:gentle-glance 12s ease-in-out infinite}.scene-controls label:has(select){display:flex;align-items:center;gap:7px}.gallery-choice img{background:#dfe8d8}.gallery-choice span{max-width:78px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@keyframes summer-breeze{0%,100%{transform:scale(1.035) rotate(-.25deg);translate:0 0}23%{transform:scale(1.055) rotate(.35deg);translate:2px -4px}58%{transform:scale(1.045) rotate(-.5deg);translate:-2px -1px}78%{transform:scale(1.06) rotate(.2deg);translate:1px -5px}}@keyframes gentle-glance{0%,18%,100%{transform:scale(1.04) rotate(-.15deg);translate:0 0}38%{transform:scale(1.065) rotate(.7deg);translate:4px -2px}48%{transform:scale(1.06) rotate(.45deg);translate:3px 0}72%{transform:scale(1.045) rotate(-.45deg);translate:-2px -3px}}@media(max-width:700px){.scene-controls label:has(select){flex:1 1 46%;align-items:flex-start;flex-direction:column}.scene-controls label:has(select) select{width:100%}}
.gallery-credit{font-size:12px;line-height:1.8;color:#746c64;margin:8px 0}.gallery-credit a{color:#8c593c;text-decoration:underline}.gallery-thumbs{overflow-x:auto;flex-wrap:wrap}.scene[data-art-source="official"] #character{object-fit:contain;object-position:center;transform:none!important;animation:none!important;background:#f1eadf}.riddle-review details{padding:10px 0;border-bottom:1px solid #e8ddd0}.riddle-review summary{cursor:pointer;line-height:1.6}.riddle-review p{line-height:1.8}.leisure-buttons select{max-width:100%;border:1px solid #d9c8b8;border-radius:8px;padding:8px;background:#fffaf3;color:#5e4737}.riddle-options button{white-space:normal;min-height:44px}.riddle-game small{display:block;line-height:1.8}.gallery-choice img{object-fit:contain!important}
.scene[data-art-source="official"] #character{scale:1!important;rotate:0deg!important;translate:0 0!important}

dialog .term-opening{padding:14px 16px;border-left:3px solid #8ea681;border-radius:0 10px 10px 0;background:#f2f5ec;color:#3f5941}
.music-controls{flex-wrap:wrap}.music-controls select{min-width:min(100%,260px)}.music-controls button{white-space:nowrap}.music-credit{display:block;margin-top:9px;line-height:1.7;color:#746c64}.music-credit a{color:#8c593c;text-decoration:underline;text-underline-offset:2px}.leisure-music>p{line-height:1.7}@media(max-width:700px){.music-controls select{width:100%}.music-controls button{flex:1 1 auto}}
.stream-shelf{margin-top:16px;border-top:1px solid #e5d7c8;padding-top:13px}.stream-shelf>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font-weight:700;color:#5e4737;list-style:none}.stream-shelf>summary::-webkit-details-marker{display:none}.stream-shelf>summary:after{content:'展开';font-size:12px;font-weight:500;color:#8c6a53}.stream-shelf[open]>summary:after{content:'收起'}.stream-shelf>summary span{margin-left:auto;padding:3px 8px;border-radius:999px;background:#edf2e9;color:#536a4e;font-size:12px}.stream-intro{margin:10px 0 12px!important;color:#746c64;font-size:14px}.stream-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:268px;overflow:auto;padding:2px}.stream-song{display:grid!important;grid-template-columns:1fr auto;text-align:left!important;gap:2px 10px;padding:10px 11px!important;background:#fffaf4!important;border:1px solid #e6d8c8!important;color:#5e4737!important}.stream-song strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stream-song span{grid-column:1;color:#7c6a5d;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stream-song small{grid-column:2;grid-row:1/3;align-self:center;color:#8a735f;font-size:11px}.stream-song[aria-pressed=true]{border-color:#7d9a72!important;background:#f0f5eb!important;box-shadow:0 0 0 1px #7d9a72}.stream-status{display:block;margin:10px 0 7px;color:#67584d}.spotify-player{width:100%;height:152px;border:0;border-radius:12px;background:#171717}@media(max-width:700px){.stream-grid{grid-template-columns:1fr}.spotify-player{height:152px}}
.music-volume-help{display:block;margin-top:7px;padding:8px 10px;border-radius:8px;background:#f6f0e7;color:#6e5e51;line-height:1.6}.stream-song em{grid-column:1/-1;margin-top:5px;padding-top:6px;border-top:1px dashed #e7dacc;color:#8a654d;font-size:12px;font-style:normal;line-height:1.55}.stream-song[aria-pressed=true] em{border-top-color:#cfddc7;color:#52694e}.stream-grid{max-height:390px}
.arcade-shelf{grid-column:1/-1;border:1px solid #d1ddc9;border-radius:16px;background:linear-gradient(145deg,#fbfcf7,#f4f8ef);overflow:hidden}.arcade-shelf>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:16px 18px}.arcade-shelf>summary::-webkit-details-marker{display:none}.arcade-shelf>summary strong{font-family:serif;font-size:20px;color:#344e3b}.arcade-shelf>summary span{font-size:13px;color:#708069}.arcade-shelf>summary em{font-size:13px;font-style:normal;color:#496748}.arcade-body{border-top:1px solid #dbe4d5;padding:18px}.arcade-intro{margin-top:0!important}.arcade-tabs,.arcade-actions{display:flex;gap:8px;flex-wrap:wrap}.arcade-tabs button[aria-pressed=true]{background:#496748;color:#fff}.arcade-score{display:block;margin:12px 0;color:#66785b}.arcade-stage{margin-top:14px;padding:18px;border-radius:13px;background:#fffefa;border:1px solid #e1e7dc;min-height:190px}.arcade-game-head h3{font-family:serif;font-size:20px;color:#344e3b;margin:0}.arcade-game-head p{margin:7px 0 14px}.arcade-status{padding:9px 11px;border-radius:9px;background:#f2f6ed;color:#496247!important}.code-form,.duel-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.code-form input,.duel-form input{flex:1 1 230px;min-width:0;border:1px solid #c7d5be;border-radius:9px;padding:11px 12px;font-size:16px;background:#fff}.arcade-feedback{display:block;min-height:22px;margin:8px 0;color:#8a654d}.code-history{display:grid;gap:6px;margin:12px 0}.code-row{display:grid;grid-template-columns:34px 70px 1fr;gap:10px;align-items:center;padding:8px 10px;border-radius:8px;background:#f6f7f2;font-size:13px}.code-row b{color:#8a9683}.code-row strong{font-size:17px;letter-spacing:.12em}.ban-list{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0}.ban-list span{font-size:13px;color:#77836f}.ban-list b{padding:6px 12px;border-radius:999px;background:#f4e4dd;color:#934f45}.duel-score{font-size:19px!important;font-weight:700;color:#3f5c44!important}.duel-question{font-size:18px!important;color:#344e3b!important}.duel-result{padding:12px;border-radius:10px;background:#f2f6ed}.duel-result h4{margin:0;font-size:20px}.duel-history p{margin:6px 0;padding:7px 10px;border-left:3px solid #bb7467;background:#fbf2ee}.duel-history p[data-safe=true]{border-left-color:#6f9167;background:#f1f7ee}.gomoku-board{width:min(100%,450px);aspect-ratio:1;display:grid;grid-template-columns:repeat(9,1fr);margin:14px auto;background:#d8b77d;border:8px solid #7d5b35;border-radius:8px;box-shadow:inset 0 0 0 1px #654827}.gomoku-board button{position:relative;min-width:0;padding:0;border:0;border-radius:0;background:transparent}.gomoku-board button::before,.gomoku-board button::after{content:'';position:absolute;background:#8f6a3f;pointer-events:none}.gomoku-board button::before{width:100%;height:1px;left:0;top:50%}.gomoku-board button::after{height:100%;width:1px;top:0;left:50%}.gomoku-board button.stone{opacity:1}.gomoku-board button.stone span{display:none}.gomoku-board button.stone::before{z-index:2;width:72%;height:72%;left:14%;top:14%;border-radius:50%;box-shadow:0 2px 5px #0004}.gomoku-board button.stone.b::before{background:radial-gradient(circle at 35% 30%,#555,#111 62%)}.gomoku-board button.stone.w::before{background:radial-gradient(circle at 35% 30%,#fff,#d9d6ce 68%);box-shadow:0 2px 5px #0005,0 0 0 1px #888}.gomoku-board button:focus-visible{z-index:3;outline:3px solid #2f6740;outline-offset:-3px}.arcade-actions{margin-top:13px}@media(max-width:700px){.arcade-shelf>summary{grid-template-columns:1fr auto}.arcade-shelf>summary span{grid-column:1/-1;grid-row:2}.arcade-body,.arcade-stage{padding:13px}.arcade-tabs button{flex:1 1 120px}.code-row{grid-template-columns:28px 60px 1fr}.gomoku-board{border-width:6px}}

/* V50 game collection */
.arcade-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 14px}.arcade-toolbar label,.game-mode-row label{display:flex;align-items:center;gap:8px;color:#52674f}.arcade-toolbar select,.game-mode-row select{border:1px solid #c9d7c2;border-radius:9px;background:#fff;padding:8px 10px;color:#3f5542}.arcade-game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.arcade-game-grid .arcade-tab-card{display:grid;grid-template-columns:auto 1fr;gap:1px 9px;align-items:center;text-align:left;min-height:62px;padding:10px 12px;border:1px solid #d6e0d0;background:#fff;color:#496247}.arcade-tab-card>b{grid-row:1/3;font-family:serif;font-size:18px}.arcade-tab-card>span{font-weight:650}.arcade-tab-card>small{font-size:10px;opacity:.72}.arcade-game-grid .arcade-tab-card[aria-pressed=true]{border-color:#496748;background:#496748;color:#fff;box-shadow:0 5px 14px #35543f25}.arcade-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.arcade-title-line h3{margin:0}.game-badge{display:inline-flex;align-items:center;min-height:23px;padding:3px 8px;border-radius:999px;background:#edf1e8;color:#63705c;font-size:11px;line-height:1}.game-badge.local{background:#eaf3e5;color:#476843}.game-badge.ai{background:#f4e8df;color:#8c5748}.game-subline{display:block;margin-top:-7px;color:#7b8775}.game-finish{margin:14px 0;padding:17px;border:1px solid #dce5d7;border-radius:12px;background:linear-gradient(145deg,#f7faf3,#fff)}.game-finish h4{margin:0 0 6px;font-family:serif;font-size:21px;color:#3e5942}.harmony-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.harmony-choices button{min-height:70px;font-size:16px;background:linear-gradient(145deg,#fff,#f2f6ed)}.truth-options{display:grid;gap:9px;margin:14px 0}.truth-options button{text-align:left;padding:12px 14px;background:#fff}.truth-options button[data-result=correct]{border-color:#66875f;background:#edf6e9;color:#355c36}.truth-options button[data-result=wrong]{border-color:#b96b60;background:#fbebe7;color:#82443b}.truth-explain{padding:12px;border-left:3px solid #718d69;background:#f2f7ef;color:#425b45!important}.game-mode-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0 12px}.chain-history{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.chain-history span{padding:5px 9px;border-radius:999px;background:#eef3e9;color:#52674f;font-size:13px}.memory-board{display:grid;grid-template-columns:repeat(4,minmax(54px,1fr));gap:8px;margin:14px auto;max-width:560px}.memory-card{aspect-ratio:1.25;min-height:50px;padding:5px;border-color:#cbd7c4;background:linear-gradient(145deg,#59715c,#3f5a45);color:#eef3ea;font-size:13px;box-shadow:0 3px 8px #344b3825;transform-style:preserve-3d}.memory-card.open,.memory-card.found{background:#fff7eb;color:#714f43;border-color:#dcb7a5;transform:rotateY(0)}.memory-card.found{opacity:.62}.lateral-prompt{padding:16px;border-radius:12px;background:linear-gradient(135deg,#334d3b,#526a53);color:#fff}.lateral-prompt small{opacity:.75}.lateral-prompt p{margin:6px 0 0!important;color:#fff!important;font-size:17px}.lateral-history{display:grid;gap:5px;margin-top:12px}.lateral-history p{margin:0!important;padding:7px 9px;border-radius:7px;background:#f5f6f1;font-size:13px;color:#5b6856!important}.game-overview{display:grid;grid-template-columns:1fr 1fr;gap:10px}.game-overview>p,.game-overview>h3{grid-column:1/-1}.game-overview-card{padding:12px;border:1px solid #dce5d7;border-radius:10px;background:#fbfcf8}.game-overview-card p{margin:7px 0!important}.game-overview-card small{color:#74806e}@media(max-width:900px){.arcade-game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.arcade-toolbar{align-items:stretch;flex-direction:column}.arcade-toolbar>button{width:100%}.arcade-game-grid{grid-template-columns:1fr 1fr}.arcade-game-grid .arcade-tab-card{grid-template-columns:1fr;text-align:center;gap:3px;padding:9px 5px}.arcade-tab-card>b{grid-row:auto}.harmony-choices{grid-template-columns:1fr}.memory-board{grid-template-columns:repeat(4,1fr);gap:5px}.memory-card{font-size:11px}.game-overview{grid-template-columns:1fr}.game-overview>p,.game-overview>h3{grid-column:auto}}

/* V52 game experience polish */
.arcade-v2{background:linear-gradient(180deg,#fbfcf8 0,#f3f7ef 100%)}.arcade-toolbar-actions{display:flex;gap:8px;flex-wrap:wrap}.arcade-toolbar-actions button{min-height:39px}.arcade-game-grid .arcade-tab-card{position:relative;overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.arcade-game-grid .arcade-tab-card:hover{transform:translateY(-2px);border-color:#9eb197;box-shadow:0 7px 18px #35543f18}.arcade-game-grid .arcade-tab-card:focus-visible{outline:3px solid #8fa88b;outline-offset:2px}.arcade-tab-card>small{font-size:12px}.arcade-reaction{position:relative;margin:12px 0;padding:13px 16px 13px 43px;border-radius:12px;background:linear-gradient(135deg,#3e5944,#59725a);color:#f7faf4;font-size:14px;line-height:1.55;box-shadow:0 7px 18px #3147371c}.arcade-reaction::before{content:'ふ';position:absolute;left:15px;top:10px;font-family:serif;font-size:18px;color:#dce9d4}.arcade-reaction[data-mood=warm]{background:linear-gradient(135deg,#536853,#6f8168)}.arcade-stage{box-shadow:0 12px 30px #40544212}.arcade-game-head{display:grid;gap:8px;padding-bottom:13px;margin-bottom:14px;border-bottom:1px solid #e3e9df}.arcade-game-head .game-lead{margin:0;color:#435a46!important;font-size:16px;line-height:1.65}.arcade-game-head .game-subline{margin:0;color:#778273;font-size:13px}.game-rules{width:fit-content}.game-rules summary{cursor:pointer;color:#5d785d;font-size:13px;list-style:none}.game-rules summary::before{content:'＋ ';font-weight:700}.game-rules[open] summary::before{content:'− '}.game-rules p{max-width:720px;margin:8px 0 0!important;padding:10px 12px;border-radius:9px;background:#f2f5ee;color:#536451!important;font-size:14px;line-height:1.65}.game-progress{margin:11px 0}.game-progress-line{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px;color:#697865;font-size:13px}.game-progress-line b{color:#425a45}.game-progress-track{height:7px;overflow:hidden;border-radius:99px;background:#e3e9df}.game-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#688367,#94aa82);transition:width .28s ease}.game-finish{position:relative;overflow:hidden;padding:22px;background:linear-gradient(145deg,#f0f6eb,#fff 68%);box-shadow:0 12px 26px #40544214}.game-finish::after{content:'✦';position:absolute;right:18px;top:12px;color:#aab99e;font-size:30px}.game-finish-kicker{display:block;margin-bottom:6px;color:#87947f;font-size:11px;letter-spacing:.18em}.harmony-reveal{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;margin:18px 0;padding:18px;border:1px solid #dbe5d6;border-radius:14px;background:#f8faf5;text-align:center}.harmony-reveal>div{display:grid;gap:5px}.harmony-reveal small{color:#788474}.harmony-reveal strong{font-size:17px;color:#3f5943}.harmony-reveal>b{padding:7px 10px;border-radius:999px;background:#e9f1e4;color:#4c6c4e;font-size:13px}.harmony-reveal.different>b{background:#f5e9e2;color:#8a5b4d}.arcade-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.arcade-stats-hero{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr auto 1fr;gap:7px 12px;align-items:baseline;padding:18px;border-radius:12px;background:linear-gradient(135deg,#344e3b,#5b7259);color:#fff}.arcade-stats-hero strong{font-size:28px}.arcade-stats-hero span{font-size:13px;opacity:.8}.arcade-stat-card{display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:12px;border:1px solid #dbe4d7;border-radius:10px;background:#fbfcf8}.arcade-stat-card b{color:#415a44}.arcade-stat-card span{color:#6a7b67}.arcade-stat-card small{grid-column:1/-1;color:#7d8878}.arcade-stat-note{grid-column:1/-1;color:#778273!important;font-size:13px!important}@media(max-width:560px){.arcade-toolbar-actions{display:grid;grid-template-columns:1fr 1fr}.arcade-toolbar-actions button:last-child{grid-column:1/-1}.arcade-game-grid{display:flex;overflow-x:auto;gap:8px;padding:2px 2px 9px;scroll-snap-type:x proximity;scrollbar-width:thin}.arcade-game-grid .arcade-tab-card{flex:0 0 126px;min-height:72px;scroll-snap-align:start}.arcade-reaction{padding-left:40px}.harmony-reveal{grid-template-columns:1fr}.harmony-reveal>b{justify-self:center}.arcade-stats{grid-template-columns:1fr}.arcade-stats-hero{grid-column:auto;grid-template-columns:auto 1fr}.arcade-stat-note{grid-column:auto}.game-finish .arcade-actions button{flex:1 1 120px}}
.stream-actions{display:flex;flex-wrap:wrap;gap:8px;margin:11px 0 5px}.stream-actions button,.stream-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:1px solid #d8c8b8;border-radius:9px;background:#fffaf4;color:#654f3e;font:inherit;font-size:13px;text-decoration:none;cursor:pointer}.stream-actions button[aria-pressed=true]{border-color:#7d9a72;background:#edf4e8;color:#425d40}.stream-actions a{margin-left:auto;background:#1f1f1f;color:#fff;border-color:#1f1f1f}.spotify-player{overflow:hidden}.spotify-player iframe,.spotify-mount iframe{display:block;width:100%!important;height:152px!important;border:0;border-radius:12px}@media(max-width:700px){.stream-actions a{margin-left:0;flex:1 1 100%}}
.message>.message-meta{display:flex;align-items:center;gap:8px;margin:0 0 6px 3px}.message-meta b{font-size:12px;font-weight:500;color:#65775c}.tone-sticker{display:inline-flex;align-items:center;border:1px solid #d7e2cf;background:#fbfdf6;border-radius:12px;padding:2px 7px;color:#738568;font:normal 10px/1.4 'Microsoft YaHei','PingFang SC',sans-serif;letter-spacing:.5px}.reply-reactions{display:flex;gap:6px;margin:7px 0 0 8px;animation:message-arrive .28s ease-out}.reply-reactions button{border:1px solid #dce5d5;background:#fffefa;border-radius:16px;padding:5px 9px;color:#65765d;font-size:11px}.reply-reactions button:hover:not(:disabled){background:#eef4e8}.reply-reactions button:disabled{opacity:.72}.message:has(.reply-reactions){max-width:92%}@media(max-width:700px){.reply-reactions{flex-wrap:wrap;margin-left:3px}.reply-reactions button{font-size:10px;padding:5px 8px}}

.scene-phrase{display:block;margin-top:9px;color:#87977b;font:italic 12px/1.5 Georgia,'Times New Roman',serif;letter-spacing:.03em}.stream-search-note{padding:18px 16px!important;color:#d2d2d2!important;font-size:13px!important}.profile-form{max-height:68vh;overflow:auto;padding-right:4px}

.input-actions{display:flex;align-items:center;gap:7px}.input-bottom .input-tool{width:auto;height:32px;padding:0 10px;border:1px solid #d5dfcf;background:#f7faf3;color:#5b7054;border-radius:9px;font-size:12px;white-space:nowrap}.input-bottom .input-tool[aria-pressed="true"]{background:#e3eddd;color:#375538}.chat-attachment{display:grid;grid-template-columns:54px 1fr auto;gap:10px;align-items:center;margin:0 0 10px;padding:8px;border:1px solid #d8e2d1;border-radius:10px;background:#f7faf3}.chat-attachment[hidden]{display:none}.chat-attachment img{width:54px;height:46px;object-fit:cover;border-radius:7px}.chat-attachment span{display:grid;gap:2px;min-width:0}.chat-attachment strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-attachment small{font-size:10px;color:#73816d}.chat-attachment button{border:0;background:transparent;color:#7a665a;font-size:12px;padding:7px}.message-image{display:block;width:min(220px,100%);max-height:220px;object-fit:cover;margin:7px 0 0 auto;border-radius:12px 3px 12px 12px;box-shadow:0 4px 14px #263d2d22}.composer form.drop-active{border-color:#6f8e69;background:#f1f6ed;box-shadow:0 0 0 3px #75906a20}@media(max-width:700px){.input-bottom{align-items:flex-end;gap:8px}.input-bottom>span{display:none}.input-actions{width:100%}.input-bottom .input-tool{padding-inline:8px}.input-actions #send{margin-left:auto}.chat-attachment{grid-template-columns:48px 1fr auto}.chat-attachment img{width:48px;height:44px}}

.voice-status{display:block;min-height:18px;margin:7px 2px 5px;color:#708069;font-size:12px;line-height:1.45}.voice-status[data-state="listening"]{color:#36613e;font-weight:600}.voice-status[data-state="listening"]::before{content:'●';display:inline-block;margin-right:6px;color:#d25b50;animation:voice-pulse 1s ease-in-out infinite}.voice-status[data-state="requesting"],.voice-status[data-state="converting"]{color:#806a42}.voice-status[data-state="requesting"]::before,.voice-status[data-state="converting"]::before{content:'◌';display:inline-block;margin-right:6px;animation:voice-spin 1s linear infinite}.voice-status[data-state="done"]{color:#3f6a43}.voice-status[data-state="error"]{color:#96584e}.voice-status[data-state="unsupported"]{color:#7a8175}.input-bottom .input-tool[aria-pressed="true"]{border-color:#73906d;background:#e7f1e2;box-shadow:0 0 0 3px #708e681c}.input-bottom .input-tool[aria-pressed="true"]::before{content:'';width:7px;height:7px;border-radius:50%;background:#d25b50;box-shadow:0 0 0 4px #d25b5020}@keyframes voice-pulse{0%,100%{opacity:.35;transform:scale(.82)}50%{opacity:1;transform:scale(1.06)}}@keyframes voice-spin{to{transform:rotate(360deg)}}
.term-preview-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.term-card[data-tag="日本青春"]{border-color:#cfd8e8;background:linear-gradient(145deg,#fffefa,#f5f8ff)}.term-card[data-tag="日本青春"] small{color:#61779b}@media(max-width:1000px){.term-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.term-preview-grid{grid-template-columns:1fr}.voice-status{font-size:12px;margin-top:5px}.input-actions{flex-wrap:wrap}.input-actions .input-tool{min-height:34px}}

.omikuji-area{max-width:1252px;margin:28px auto 0;padding:34px;border:1px solid #ded6c7;border-radius:20px;background:linear-gradient(145deg,#faf6ee 0%,#f1f5eb 100%);display:grid;grid-template-columns:minmax(280px,.8fr) minmax(460px,1.2fr);gap:34px;scroll-margin-top:20px;overflow:hidden;position:relative}.omikuji-area:before{content:'おみくじ';position:absolute;right:-18px;top:8px;color:#8d443514;font:700 88px/1 serif;writing-mode:vertical-rl;pointer-events:none}.omikuji-intro{align-self:center;position:relative;z-index:1}.omikuji-eyebrow{display:block;color:#9a4d3f;font-size:12px;letter-spacing:2px;margin-bottom:8px}.omikuji-intro h2{font:500 28px/1.3 serif;letter-spacing:3px;color:#4e3b31;margin-bottom:12px}.omikuji-intro>p{color:#71665a;line-height:1.8;margin:0 0 18px}.omikuji-intro>small{display:block;color:#827568;line-height:1.65;margin-top:12px}.omikuji-names{display:grid;grid-template-columns:1fr 1fr;gap:9px}.omikuji-names input{width:100%;min-width:0;border:1px solid #d9cbbc;background:#fffdf8;border-radius:9px;padding:11px 12px;font-size:14px}.omikuji-controls{display:flex;gap:9px;margin-top:11px}.omikuji-controls button,.omikuji-result-actions button{min-height:42px;border:1px solid #b98f7f;border-radius:9px;padding:9px 15px;background:#fffaf2;color:#754437;font-size:14px}.omikuji-controls .omikuji-draw{background:#90493d;border-color:#90493d;color:#fff;min-width:130px}.omikuji-stage{position:relative;min-height:430px;border-radius:16px;background:linear-gradient(#dbe8e5 0 47%,#c9d4c4 47% 48%,#ede3d3 48%);overflow:hidden;display:grid;grid-template-columns:170px 1fr;align-items:end;padding:28px;isolation:isolate}.omikuji-torii{position:absolute;left:22px;top:35px;width:178px;height:126px;border-left:14px solid #9f4b3f;border-right:14px solid #9f4b3f;border-top:14px solid #9f4b3f;opacity:.35;z-index:-1}.omikuji-torii:before{content:'';position:absolute;left:-28px;right:-28px;top:-30px;height:12px;border-radius:8px;background:#9f4b3f}.omikuji-cylinder{width:94px;height:190px;margin:0 auto 20px;border-radius:12px 12px 25px 25px;background:linear-gradient(90deg,#754635,#a8674e 50%,#6b4033);box-shadow:0 18px 30px #4a33272b;display:grid;place-items:center;transform-origin:50% 90%;z-index:2}.omikuji-cylinder span{writing-mode:vertical-rl;color:#f7e6cf;font:500 20px/1.5 serif;letter-spacing:8px}.omikuji-stick{position:absolute;left:108px;bottom:175px;width:17px;height:170px;border-radius:5px;background:#e2c397;color:#7b4e3b;font:12px/17px serif;writing-mode:vertical-rl;padding-top:12px;opacity:0;transform:translateY(90px) rotate(8deg);z-index:1}.omikuji-paper{min-height:330px;align-self:end;background:#fffdf7;border:1px solid #d8c9b6;box-shadow:0 14px 35px #513a2920;padding:22px;position:relative;transform-origin:top center}.omikuji-paper:before,.omikuji-paper:after{content:'';position:absolute;background:#a14c3e}.omikuji-paper:before{left:9px;top:9px;right:9px;height:2px}.omikuji-paper:after{left:9px;top:9px;bottom:9px;width:2px}.omikuji-idle{height:280px;display:grid;place-content:center;text-align:center;color:#7a6b5c}.omikuji-idle strong{font:38px serif;letter-spacing:5px;color:#8f5044}.omikuji-idle p,.omikuji-progress{line-height:1.7}.omikuji-progress{margin:auto;text-align:center;color:#746252}.omikuji-stage[data-phase="shaking"] .omikuji-cylinder{animation:omikuji-shake .18s ease-in-out 4}.omikuji-stage[data-phase="stick"] .omikuji-stick,.omikuji-stage[data-phase="paper"] .omikuji-stick,.omikuji-stage[data-phase="result"] .omikuji-stick{opacity:1;transform:translateY(0) rotate(8deg);transition:.45s ease-out}.omikuji-stage[data-phase="paper"] .omikuji-paper{animation:paper-open .55s ease-out}.omikuji-paper-head{display:flex;justify-content:space-between;align-items:end;padding:0 10px 10px 14px;border-bottom:1px solid #dacbbb}.omikuji-paper-head small{color:#8a7162;letter-spacing:2px}.omikuji-paper-head strong{font:700 48px serif;color:#99483c}.omikuji-paper>img{float:right;width:104px;height:120px;object-fit:cover;object-position:50% 25%;margin:16px 4px 8px 14px;border-radius:48% 48% 10px 10px;filter:saturate(.85)}.omikuji-copy{padding:8px 11px}.omikuji-copy h3{font:500 19px serif;margin:10px 0}.omikuji-copy p{color:#5f5b4f;line-height:1.7;margin:7px 0}.omikuji-copy .omikuji-main-line{font-weight:600;color:#3d5141}.omikuji-copy small{display:block;color:#7e7469;line-height:1.55;margin-top:9px}.omikuji-result-actions{display:flex;gap:8px;clear:both;padding:10px}.omikuji-result-actions button:first-child{background:#edf2e8;border-color:#b9c7ae;color:#4e644a}.omikuji-probabilities{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin:15px 0}.omikuji-probabilities div{display:flex;justify-content:space-between;padding:9px 11px;border:1px solid #ded5c8;border-radius:8px;background:#fffdf8}.omikuji-probabilities span{color:#8e5548}@keyframes omikuji-shake{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(3deg) translateY(-3px)}}@keyframes paper-open{0%{transform:scaleY(.18);opacity:.45}100%{transform:scaleY(1);opacity:1}}@media(max-width:1000px){.omikuji-area{margin-left:22px;margin-right:22px;grid-template-columns:1fr}.omikuji-stage{min-height:390px}}@media(max-width:700px){.omikuji-area{margin:22px 16px 0;padding:20px;gap:20px}.omikuji-names{grid-template-columns:1fr}.omikuji-controls{display:grid;grid-template-columns:1fr 1fr}.omikuji-stage{grid-template-columns:100px 1fr;min-height:390px;padding:17px 13px}.omikuji-cylinder{width:72px;height:156px}.omikuji-stick{left:64px;bottom:165px}.omikuji-paper{padding:15px;min-height:326px}.omikuji-paper-head strong{font-size:40px}.omikuji-paper>img{width:76px;height:94px}.omikuji-result-actions{padding:8px 5px;flex-wrap:wrap}.omikuji-result-actions button{flex:1}.omikuji-area:before{font-size:64px}.omikuji-torii{transform:scale(.76);transform-origin:left top}}
@media(max-width:700px){header nav #access-open,header nav #about,header nav #share-site,header nav #glossary-open{display:none}}

/* Compact omikuji entry. The full ritual opens only when requested. */
.omikuji-shell{max-width:1252px;margin:28px auto 0;border:1px solid #ded6c7;border-radius:16px;background:linear-gradient(145deg,#faf6ee 0%,#f1f5eb 100%);overflow:hidden;scroll-margin-top:20px}
.omikuji-shell>summary{list-style:none}.omikuji-shell>summary::-webkit-details-marker{display:none}
.omikuji-summary{min-height:78px;padding:14px 18px;display:grid;grid-template-columns:42px minmax(0,1fr) auto 24px;gap:12px;align-items:center;cursor:pointer;user-select:none;color:#4e3b31;transition:background .2s ease}
.omikuji-summary:hover{background:#fffaf2}.omikuji-summary:focus-visible{outline:2px solid #9a4d3f;outline-offset:-3px}
.omikuji-summary-mark{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#90493d;color:#fff8ec;font:600 20px/1 serif;box-shadow:0 6px 16px #6b40331f}
.omikuji-summary-copy{display:grid;gap:4px;min-width:0}.omikuji-summary-copy strong{font:500 18px/1.2 serif;letter-spacing:2px}.omikuji-summary-copy small{color:#827568;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.omikuji-summary-status{padding:6px 10px;border:1px solid #d8c9b6;border-radius:999px;background:#fffdf8;color:#87695b;font-size:12px;white-space:nowrap}.omikuji-summary-status[data-tone]{border-color:#bac9b2;background:#f5f8ef;color:#4e644a}
.omikuji-summary-arrow{font-size:22px;color:#9a4d3f;transform:rotate(0);transition:transform .25s ease}.omikuji-shell[open] .omikuji-summary-arrow{transform:rotate(180deg)}
.omikuji-shell[open] .omikuji-summary{border-bottom:1px solid #e4dacd;background:#fffaf2}.omikuji-shell .omikuji-area{max-width:none;margin:0;border:0;border-radius:0;background:transparent;scroll-margin-top:100px}
@media(max-width:1000px){.omikuji-shell{margin-left:22px;margin-right:22px}.omikuji-shell .omikuji-area{margin:0}}
@media(max-width:700px){.omikuji-shell{margin:22px 16px 0}.omikuji-summary{min-height:68px;padding:11px 13px;grid-template-columns:38px minmax(0,1fr) 20px;gap:10px}.omikuji-summary-mark{width:38px;height:38px}.omikuji-summary-status{display:none}.omikuji-summary-copy strong{font-size:16px}.omikuji-shell .omikuji-area{margin:0}}

/* Immersive omikuji window. The compact home entry stays in the page flow. */
.omikuji-shell>.omikuji-summary{width:100%;border:0;background:transparent;text-align:left;font-family:inherit}.omikuji-shell>.omikuji-summary:hover{background:#fffaf2}.omikuji-shell>.omikuji-summary-arrow{transform:none}.omikuji-modal{width:min(1480px,96vw);height:min(900px,94vh);max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:26px;background:#171410;color:#fff;box-shadow:0 30px 90px #160e0a73;overflow:hidden}.omikuji-modal::backdrop{background:#17120ecc;backdrop-filter:blur(9px)}body.omikuji-modal-open{overflow:hidden}.omikuji-modal-frame{height:100%;position:relative;isolation:isolate;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}.omikuji-scene-backdrop,.omikuji-scene-veil{position:absolute;inset:0;z-index:-2}.omikuji-scene-backdrop{background-size:cover;background-repeat:no-repeat;transform:scale(1.025);transition:background-image .35s ease,background-position .35s ease,filter .35s ease;filter:saturate(.94) contrast(1.02)}.omikuji-scene-veil{z-index:-1;background:linear-gradient(90deg,#19120dcf 0,#19120d8f 28%,#17110a35 57%,#17110a69 100%),linear-gradient(0deg,#17110ac9 0,transparent 28%,#17110a80 100%)}.omikuji-modal-header{min-height:88px;padding:18px 26px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;border-bottom:1px solid #fff3;background:#1b15106b;backdrop-filter:blur(10px)}.omikuji-modal-brand{display:grid;gap:2px}.omikuji-modal-brand strong{font:500 25px/1.1 serif;letter-spacing:5px}.omikuji-modal-brand small{color:#f2ded1;font:italic 12px/1.2 serif;letter-spacing:2px}.omikuji-modal-wish{text-align:center;margin:0;color:#fffdf2;font:15px/1.8 serif;letter-spacing:2px;text-shadow:0 2px 16px #000}.omikuji-close{width:44px;height:44px;border:1px solid #ffffff69;border-radius:50%;background:#1a130c75;color:#fff;font:300 28px/1 sans-serif;cursor:pointer;transition:.2s ease}.omikuji-close:hover{background:#fff;color:#6f3b31;transform:rotate(4deg)}.omikuji-modal .omikuji-area{min-height:0;max-width:none;margin:0;padding:28px 38px 18px;border:0;border-radius:0;background:transparent;grid-template-columns:minmax(260px,.62fr) minmax(520px,1.38fr);gap:28px;overflow:auto;align-items:center}.omikuji-modal .omikuji-area:before{display:none}.omikuji-modal .omikuji-intro{padding:24px;border:1px solid #ffffff3d;border-radius:22px;background:#1b140e9c;backdrop-filter:blur(15px);box-shadow:0 18px 60px #140b064f}.omikuji-modal .omikuji-eyebrow{color:#ffd5c8}.omikuji-modal .omikuji-intro h2{color:#fff;font-size:34px;text-shadow:0 2px 18px #000}.omikuji-modal .omikuji-intro>p,.omikuji-modal .omikuji-intro>small{color:#f5eee6}.omikuji-modal .omikuji-names input{border-color:#ffffff54;background:#fffdf2e8;color:#3d3028;box-shadow:inset 0 1px #fff}.omikuji-modal .omikuji-controls button{border-color:#fff8;background:#fffdf0eb;color:#6c3d34;box-shadow:0 9px 25px #160d0738;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}.omikuji-modal .omikuji-controls button:hover{transform:translateY(-2px);box-shadow:0 13px 30px #160d0757}.omikuji-modal .omikuji-controls .omikuji-draw{position:relative;overflow:hidden;border-color:#e78788;background:linear-gradient(135deg,#d95b69,#a73545);color:#fff}.omikuji-modal .omikuji-controls .omikuji-draw:after{content:'';position:absolute;inset:-40% auto -40% -35%;width:26%;background:#ffffff59;transform:skewX(-22deg);transition:left .45s ease}.omikuji-modal .omikuji-controls .omikuji-draw:hover:after{left:118%}.omikuji-modal .omikuji-stage{min-height:470px;padding:30px;grid-template-columns:150px minmax(300px,1fr);border:1px solid #ffffff4d;border-radius:22px;background:#20150c40;backdrop-filter:blur(4px);box-shadow:0 24px 70px #160d0752}.omikuji-modal .omikuji-torii{opacity:.16}.omikuji-modal .omikuji-cylinder{box-shadow:0 18px 36px #0c07068c, inset 0 0 0 1px #f6d5ad38}.omikuji-modal .omikuji-paper{max-height:470px;overflow:auto;border-color:#ebcdb4;background:#fffaf0;box-shadow:0 20px 55px #0d080778}.omikuji-scene-picker{padding:12px 26px 18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:linear-gradient(0deg,#17110aed,#17110a7d);backdrop-filter:blur(8px)}.omikuji-scene-option{min-width:0;height:82px;padding:7px;border:1px solid #ffffff42;border-radius:14px;background:#1a130ca6;color:#fff;display:grid;grid-template-columns:96px 1fr;grid-template-rows:1fr 1fr;column-gap:11px;text-align:left;align-items:end;cursor:pointer;transition:.2s ease;overflow:hidden}.omikuji-scene-option img{width:96px;height:66px;grid-row:1/3;border-radius:9px;object-fit:cover}.omikuji-scene-option span{align-self:end;font:500 15px/1.2 serif}.omikuji-scene-option small{align-self:start;color:#e6d6cc;font-size:11px;letter-spacing:1px}.omikuji-scene-option:hover{transform:translateY(-2px);border-color:#fff9}.omikuji-scene-option.is-active{border-color:#ffe7dc;background:#9f4a4ad9;box-shadow:0 0 0 2px #fff4,0 8px 28px #120a075e}.omikuji-scene-option:focus-visible,.omikuji-close:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(max-width:1000px){.omikuji-modal{width:96vw;height:94vh}.omikuji-modal .omikuji-area{grid-template-columns:1fr;padding:22px 24px}.omikuji-modal .omikuji-intro{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}.omikuji-modal .omikuji-intro>p,.omikuji-modal .omikuji-intro>small{grid-column:1/-1}.omikuji-modal .omikuji-stage{min-height:410px}.omikuji-scene-option{grid-template-columns:70px 1fr}.omikuji-scene-option img{width:70px}}
@media(max-width:700px){.omikuji-modal{width:100vw;height:100dvh;border-radius:0}.omikuji-modal-header{min-height:68px;padding:11px 14px;gap:10px}.omikuji-modal-brand strong{font-size:19px;letter-spacing:3px}.omikuji-modal-brand small{font-size:10px}.omikuji-modal-wish{display:none}.omikuji-close{width:40px;height:40px}.omikuji-modal .omikuji-area{padding:14px 13px;gap:13px;align-content:start}.omikuji-modal .omikuji-intro{display:block;padding:16px}.omikuji-modal .omikuji-intro h2{font-size:25px}.omikuji-modal .omikuji-intro>p{font-size:13px;line-height:1.55;margin-bottom:11px}.omikuji-modal .omikuji-stage{grid-template-columns:82px 1fr;min-height:350px;padding:13px 10px}.omikuji-modal .omikuji-cylinder{width:66px;height:145px}.omikuji-modal .omikuji-stick{left:52px;bottom:150px}.omikuji-modal .omikuji-paper{min-height:300px;padding:13px}.omikuji-scene-picker{padding:9px 10px 12px;display:flex;overflow-x:auto;scroll-snap-type:x mandatory}.omikuji-scene-option{flex:0 0 148px;height:66px;grid-template-columns:60px 1fr;scroll-snap-align:start}.omikuji-scene-option img{width:60px;height:50px}.omikuji-scene-option span{font-size:13px}.omikuji-scene-option small{font-size:9px}}

.gallery-thumb{position:relative;display:inline-grid}.gallery-remove{position:absolute;right:-5px;top:-5px;width:23px;height:23px;border:1px solid #d8b7aa;border-radius:50%;padding:0;background:#fffaf5;color:#8b4f43;font:600 16px/20px sans-serif;box-shadow:0 2px 7px #5a39251f;z-index:2}.gallery-remove:hover{background:#f8e9e2}.gallery-remove:focus-visible{outline:2px solid #8b4f43;outline-offset:2px}

/* Cinematic chapter image layers. */
.scene{height:620px;isolation:isolate;background:#26372f;box-shadow:0 18px 48px #24372e1b}
.scene #character{position:relative;z-index:1;object-fit:cover;object-position:50% 36%;filter:saturate(.96) contrast(1.02);background:transparent}
.cinema-backdrop,.cinema-light,.cinema-grain{position:absolute;inset:0;pointer-events:none}
.cinema-backdrop{z-index:0;inset:-7%;background-position:center;background-size:cover;filter:blur(22px) saturate(.92) brightness(.72);opacity:.74;transform:scale(1.08);transition:background-image .22s ease,transform 1.2s ease,filter .7s ease}
.cinema-light{z-index:2;background:radial-gradient(circle at 18% 10%,#fff6cf5c 0,transparent 36%),linear-gradient(118deg,transparent 38%,#fff9df20 56%,transparent 72%);mix-blend-mode:screen;opacity:.8;animation:cinema-light-drift 12s ease-in-out infinite}
.cinema-grain{z-index:3;opacity:.15;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");mix-blend-mode:soft-light}
.scene .shade{z-index:4;background:linear-gradient(0deg,rgba(18,34,27,.86),transparent 43%,rgba(12,29,21,.2)),linear-gradient(90deg,rgba(15,33,25,.16),transparent 32%,rgba(20,34,29,.08))}
.scene .scene-top,.scene .speech,.scene .caption,.scene #character-hit{z-index:5}
.scene[data-depth=on] .cinema-backdrop{transform:scale(1.13) translate3d(0,0,0);filter:blur(24px) saturate(1.02) brightness(.7)}
.scene[data-depth=on] .cinema-light{transform:translate3d(var(--look-x),var(--look-y),0)}
.scene[data-art-fit=contain] #character{object-fit:contain;object-position:center;padding:24px 8%;filter:drop-shadow(0 14px 26px #0d211f52) saturate(.96)}
.scene[data-art-source=official] #character{padding:24px 6%;background:transparent}
.scene[data-art-source=supplied] .cinema-light{opacity:.68}
.chapter-gallery{padding:17px 18px 16px;border:1px solid #dce4d5;border-radius:15px;background:linear-gradient(145deg,#fffefa,#f5f8f1);box-shadow:0 9px 25px #2e443308}
.chapter-gallery>strong{display:block;font:500 18px/1.4 serif;letter-spacing:1px;margin-bottom:11px}.chapter-gallery>strong:after{content:' · 手动选择';font:400 11px/1 sans-serif;color:#87927f;letter-spacing:.5px}
.gallery-thumbs{gap:10px;max-height:232px;padding:3px 4px 8px 1px}.gallery-choice{min-width:104px}.gallery-choice img{width:104px;height:68px;border-radius:8px;object-fit:cover!important}.gallery-choice span{max-width:104px}
@keyframes cinema-light-drift{0%,100%{opacity:.58;transform:translate3d(-1.5%,0,0)}50%{opacity:.86;transform:translate3d(2%,1%,0)}}
@media(min-width:1450px){.scene{height:680px}}
@media(max-width:1000px){.scene{height:600px}.chapter-gallery{padding:15px}}
@media(max-width:700px){.scene{height:520px}.scene[data-art-fit=contain] #character{padding:18px 4%}.cinema-backdrop{filter:blur(18px) saturate(.9) brightness(.7)}.chapter-gallery{padding:13px 12px}.gallery-thumbs{flex-wrap:nowrap;max-height:none}.gallery-choice{min-width:92px}.gallery-choice img{width:92px;height:62px}.gallery-choice span{max-width:92px}}
@media(prefers-reduced-motion:reduce){.cinema-light{animation:none}.cinema-backdrop,.cinema-light{transform:none!important}}

/* Two-step omikuji ritual: scenery first, then the box and paper. */
.omikuji-modal .omikuji-scene-veil{background:linear-gradient(90deg,#17100ba8 0,#17100b52 25%,transparent 58%),linear-gradient(0deg,#17100ba8 0,transparent 30%,#17100b70 100%)}
.omikuji-modal .omikuji-area{display:block;position:relative;overflow:hidden;padding:20px 28px}
.omikuji-modal .omikuji-intro{position:absolute;z-index:3;left:3%;bottom:24px;width:min(310px,29%);padding:18px 19px;border-radius:18px;background:#17110bc9}
.omikuji-modal .omikuji-intro h2{font-size:27px;margin-bottom:8px}.omikuji-modal .omikuji-intro>p{font-size:14px;line-height:1.58;margin-bottom:12px}.omikuji-modal .omikuji-intro>small{font-size:11px;line-height:1.45}.omikuji-modal .omikuji-names{grid-template-columns:1fr}.omikuji-modal .omikuji-names input{padding:9px 10px;font-size:13px}.omikuji-modal .omikuji-controls{display:grid;grid-template-columns:1fr 1fr}.omikuji-modal .omikuji-controls button{min-height:38px;padding:8px 9px;font-size:13px}
.omikuji-box-launch{position:absolute;z-index:4;left:50%;bottom:32px;transform:translateX(-50%);width:218px;min-height:190px;border:1px solid #ffe4c991;border-radius:24px;padding:17px;background:linear-gradient(180deg,#21150ca8,#100b07dc);color:#fff;display:grid;place-items:center;gap:10px;cursor:pointer;box-shadow:0 20px 55px #0a060584;backdrop-filter:blur(7px);transition:transform .25s ease,box-shadow .25s ease,background .25s ease}.omikuji-box-launch[hidden]{display:none!important}.omikuji-box-launch:hover{transform:translateX(-50%) translateY(-5px);background:linear-gradient(180deg,#352015ba,#160d09e8);box-shadow:0 28px 68px #0a0605a3}.omikuji-box-launch:focus-visible{outline:2px solid #fff;outline-offset:3px}.omikuji-box-launch-art{width:112px;height:103px;position:relative;display:grid;place-items:center;border:2px solid #dda66b;border-radius:13px 13px 24px 24px;background:repeating-linear-gradient(90deg,#5f321f 0 10px,#78462b 11px 19px,#4e291c 20px 27px);box-shadow:inset 0 0 0 3px #3b2017,0 13px 22px #0804038c}.omikuji-box-launch-art:before{content:'';position:absolute;left:-7px;right:-7px;top:-7px;height:17px;border:2px solid #e1ad73;border-radius:50%;background:linear-gradient(#93623c,#4e2c20);box-shadow:0 4px 8px #1c0d08}.omikuji-box-launch-art b{writing-mode:vertical-rl;padding:8px 7px;border:1px solid #633a27;border-radius:4px;background:#e5bf82;color:#43261c;font:600 15px/1 serif;letter-spacing:3px;box-shadow:0 3px 7px #1a0e0980}.omikuji-box-launch-sticks{position:absolute;left:14px;right:14px;top:-39px;height:43px;display:flex;justify-content:center;align-items:end;gap:3px;overflow:hidden}.omikuji-box-launch-sticks i{display:block;width:8px;height:38px;border:1px solid #8a542f;border-radius:3px 3px 0 0;background:linear-gradient(90deg,#d3a260,#f0c882 50%,#b57a42);transform:rotate(var(--stick-angle,0deg));transform-origin:bottom}.omikuji-box-launch-sticks i:nth-child(1),.omikuji-box-launch-sticks i:nth-child(6){height:29px;transform:rotate(-7deg)}.omikuji-box-launch-sticks i:nth-child(2){height:35px;transform:rotate(-3deg)}.omikuji-box-launch-sticks i:nth-child(5),.omikuji-box-launch-sticks i:nth-child(7){height:32px;transform:rotate(6deg)}.omikuji-box-launch-copy{display:grid;gap:3px;text-align:center}.omikuji-box-launch-copy strong{font:500 17px/1.3 serif;letter-spacing:2px}.omikuji-box-launch-copy small{color:#ead9ca;font-size:11px}
.omikuji-modal .omikuji-stage[hidden]{display:none!important}.omikuji-modal .omikuji-stage{position:absolute;z-index:5;right:3%;bottom:20px;width:min(720px,62%);min-height:365px;padding:24px;grid-template-columns:142px minmax(260px,1fr);border-radius:22px;background:#1a100aa3;opacity:0;transform:translateY(34px) scale(.94);transform-origin:70% 100%;transition:opacity .22s ease,transform .28s cubic-bezier(.2,.8,.2,1);backdrop-filter:blur(9px)}.omikuji-modal .omikuji-stage.is-visible{opacity:1;transform:translateY(0) scale(1)}.omikuji-stage-close{position:absolute;right:13px;top:12px;z-index:7;border:1px solid #ffffff61;border-radius:999px;padding:6px 11px;background:#281810ba;color:#fff;font-size:12px;cursor:pointer}.omikuji-stage-close:hover{background:#fff;color:#6d3f31}.omikuji-modal .omikuji-cylinder{width:108px;height:205px;border:2px solid #d7a268;border-radius:16px 16px 31px 31px;background:repeating-linear-gradient(90deg,#5f321f 0 12px,#7a472b 13px 23px,#4e291c 24px 32px);box-shadow:inset 0 0 0 3px #3b2017,0 20px 38px #0904039c}.omikuji-modal .omikuji-cylinder:before{content:'';position:absolute;width:118px;height:22px;margin-top:-13px;border:2px solid #e1ad73;border-radius:50%;background:linear-gradient(#98653d,#4d2b1f);box-shadow:0 5px 9px #1b0d08}.omikuji-modal .omikuji-cylinder span{position:relative;padding:12px 9px;border:1px solid #57311f;border-radius:5px;background:#e6bc7d;color:#43251b;letter-spacing:6px;box-shadow:0 5px 10px #1b0e0980}.omikuji-modal .omikuji-paper{min-height:285px;max-height:390px;padding:18px;border-radius:4px;box-shadow:0 18px 45px #0a06058f}.omikuji-modal .omikuji-idle{height:245px}.omikuji-modal .omikuji-paper-head strong{font-size:41px}.omikuji-modal .omikuji-paper>img{width:86px;height:100px}.omikuji-modal .omikuji-copy{padding:5px 9px}.omikuji-modal .omikuji-copy p{line-height:1.55;margin:5px 0}.omikuji-modal .omikuji-result-actions{padding:7px 8px}
@keyframes omikuji-box-pop{0%{opacity:0;transform:translateY(40px) scale(.82)}70%{transform:translateY(-5px) scale(1.02)}100%{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:1000px){.omikuji-modal .omikuji-area{padding:16px}.omikuji-modal .omikuji-intro{left:18px;bottom:18px;width:280px}.omikuji-modal .omikuji-stage{right:18px;width:min(650px,66%);min-height:350px}.omikuji-box-launch{bottom:25px}}
@media(max-width:700px){.omikuji-modal .omikuji-area{display:flex;flex-direction:column;gap:13px;overflow:auto;padding:13px}.omikuji-modal .omikuji-intro{position:relative;left:auto;bottom:auto;width:100%;padding:14px}.omikuji-modal .omikuji-intro>p{display:none}.omikuji-modal .omikuji-names{grid-template-columns:1fr 1fr}.omikuji-box-launch{position:relative;left:auto;bottom:auto;transform:none;width:174px;min-height:150px;margin:auto;padding:12px}.omikuji-box-launch:hover{transform:translateY(-3px)}.omikuji-box-launch-art{width:88px;height:78px}.omikuji-box-launch-sticks{top:-31px;height:35px}.omikuji-box-launch-copy strong{font-size:15px}.omikuji-modal .omikuji-stage{position:relative;right:auto;bottom:auto;width:100%;min-height:330px;padding:13px 10px;grid-template-columns:82px 1fr;transform:translateY(22px) scale(.96)}.omikuji-modal .omikuji-stage.is-visible{transform:none}.omikuji-modal .omikuji-cylinder{width:66px;height:145px}.omikuji-modal .omikuji-cylinder:before{width:73px;height:16px}.omikuji-modal .omikuji-paper{min-height:285px;max-height:none}.omikuji-stage-close{right:8px;top:7px;padding:5px 8px}.omikuji-modal .omikuji-paper-head strong{font-size:34px}}
@media(prefers-reduced-motion:reduce){.omikuji-modal .omikuji-stage,.omikuji-box-launch{transition:none!important}}

/* Omikuji scene hub: keep the scenery visible until a feature is opened. */
.omikuji-modal .omikuji-intro{width:260px;padding:15px 16px;background:#17110bb8}.omikuji-modal .omikuji-intro h2{font-size:24px}.omikuji-modal .omikuji-intro>p{margin-bottom:6px;font-size:13px}.omikuji-modal .omikuji-area:not(.box-open) .omikuji-names,.omikuji-modal .omikuji-area:not(.box-open) .omikuji-controls,.omikuji-modal .omikuji-area:not(.box-open) .omikuji-intro>small{display:none}.omikuji-modal .omikuji-area.box-open .omikuji-names,.omikuji-modal .omikuji-area.box-open .omikuji-controls{display:grid}.omikuji-modal .omikuji-area.box-open .omikuji-intro>small{display:block}.omikuji-modal .omikuji-intro .omikuji-box-launch{position:relative;left:auto;bottom:auto;transform:none;width:160px;min-height:145px;margin:13px auto 2px;padding:8px;border:0;background:transparent;box-shadow:none;backdrop-filter:none}.omikuji-modal .omikuji-intro .omikuji-box-launch:hover{transform:translateY(-3px);background:#ffffff0b;box-shadow:none}.omikuji-modal .omikuji-intro .omikuji-box-launch-art{width:84px;height:78px}.omikuji-modal .omikuji-intro .omikuji-box-launch-sticks{top:-31px;height:35px}.omikuji-modal .omikuji-intro .omikuji-box-launch-copy strong{font-size:15px}.omikuji-stage-close{width:32px;height:32px;display:grid;place-items:center;padding:0;border-radius:50%;background:#281810d9;color:#fff;font:300 22px/1 sans-serif;box-shadow:0 4px 13px #08040375}.omikuji-stage-close:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(max-width:700px){.omikuji-modal .omikuji-intro{width:100%}.omikuji-modal .omikuji-intro .omikuji-box-launch{width:150px;min-height:133px;margin-top:10px}.omikuji-modal .omikuji-area.box-open .omikuji-intro>p{display:none}.omikuji-stage-close{right:7px;top:7px;width:30px;height:30px}}

/* Omikuji readability: isolate the modal from older header/grid rules. */
.omikuji-modal .omikuji-modal-header{width:100%;height:auto;min-height:78px;margin:0;position:relative;z-index:30;display:grid;grid-template-columns:minmax(170px,auto) minmax(0,1fr) 48px;align-items:center}
.omikuji-modal .omikuji-close{position:relative;z-index:31;justify-self:end;margin:0}
.omikuji-modal .omikuji-area{min-width:0;min-height:0}
.omikuji-modal .omikuji-intro{display:block;grid-template-columns:none;gap:0;min-width:0}
.omikuji-modal .omikuji-area:not(.box-open) .omikuji-name-hint{display:none}
.omikuji-modal .omikuji-area.box-open .omikuji-intro{width:300px}
.omikuji-modal .omikuji-area.box-open .omikuji-name-hint{display:block;margin:4px 0 9px;color:#f3e9df;font-size:12px;line-height:1.55}
.omikuji-modal .omikuji-area.box-open .omikuji-names,.omikuji-modal .omikuji-area.box-open .omikuji-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%}
.omikuji-modal .omikuji-name-field{display:grid;gap:4px;min-width:0;color:#f6ede4;font-size:11px;line-height:1.3;letter-spacing:.3px}
.omikuji-modal .omikuji-names input{width:100%;min-width:0;writing-mode:horizontal-tb}
.omikuji-modal .omikuji-controls{margin-top:9px}
.omikuji-modal .omikuji-controls button{width:100%;min-width:0;white-space:normal}
.omikuji-modal .omikuji-stage{top:16px;bottom:16px;min-height:0;max-height:none;overflow:visible;align-items:center;padding:52px 18px 18px}
.omikuji-modal .omikuji-stage-close{position:absolute;right:14px;top:12px;z-index:40;width:36px;height:36px;display:grid;place-items:center;padding:0;border:2px solid #8b5748;border-radius:50%;background:#fffaf0;color:#6b342d;font:400 24px/1 sans-serif;box-shadow:0 5px 18px #09050473;cursor:pointer}
.omikuji-modal .omikuji-stage-close:hover{border-color:#fff;background:#7b4338;color:#fff}
.omikuji-modal .omikuji-paper{min-width:0;min-height:0;max-height:100%;overflow:auto}
.omikuji-modal .omikuji-copy h3{color:#553a31}
.omikuji-modal .omikuji-copy p{overflow-wrap:anywhere}
@media(max-width:1100px) and (min-width:701px){.omikuji-modal .omikuji-area.box-open .omikuji-intro{width:274px}.omikuji-modal .omikuji-stage{left:310px;right:18px;width:auto;grid-template-columns:120px minmax(0,1fr)}.omikuji-modal .omikuji-cylinder{width:96px}.omikuji-modal .omikuji-modal-header{grid-template-columns:minmax(170px,auto) minmax(0,1fr) 48px;padding-left:22px;padding-right:22px}.omikuji-modal .omikuji-modal-wish{font-size:13px;letter-spacing:1px}}
@media(max-width:700px){.omikuji-modal .omikuji-modal-header{min-height:66px;grid-template-columns:minmax(0,1fr) 42px;padding:10px 13px}.omikuji-modal .omikuji-modal-brand{grid-column:1}.omikuji-modal .omikuji-modal-wish{display:none}.omikuji-modal .omikuji-close{grid-column:2}.omikuji-modal .omikuji-area.box-open .omikuji-intro{width:100%}.omikuji-modal .omikuji-area.box-open .omikuji-intro>p.omikuji-name-hint{display:block}.omikuji-modal .omikuji-stage{position:relative;inset:auto;width:100%;min-height:330px;max-height:none;overflow:visible;padding:50px 10px 13px;grid-template-columns:82px minmax(0,1fr)}.omikuji-modal .omikuji-stage-close{right:9px;top:8px;width:34px;height:34px}.omikuji-modal .omikuji-paper{max-height:none}}

/* Star-night memoir. It is isolated from Chapter artwork and opens on demand. */
.memory-shell{max-width:1252px;margin:18px auto 0;border:1px solid #d8ddd4;border-radius:16px;background:linear-gradient(145deg,#fffefa,#f3f6f1);box-shadow:0 8px 24px #2c433108;overflow:hidden}
.memory-summary{width:100%;min-height:78px;padding:13px 17px;border:0;background:transparent;color:#3f4f42;display:grid;grid-template-columns:46px minmax(0,1fr) auto 22px;align-items:center;gap:13px;text-align:left;cursor:pointer;font-family:inherit}.memory-summary:hover{background:#faf8f0}.memory-summary:focus-visible{outline:2px solid #718071;outline-offset:-3px}
.memory-summary-mark{width:44px;height:44px;border-radius:13px;background:linear-gradient(145deg,#243751,#3e2e4b);color:#f5e8d4;display:grid;place-items:center;font:500 21px/1 serif;box-shadow:inset 0 0 0 1px #ffffff26,0 6px 14px #27354324}.memory-summary-copy{display:grid;gap:4px}.memory-summary-copy strong{font:500 18px/1.3 serif;letter-spacing:1px}.memory-summary-copy small{color:#7f887f;font-size:12px}.memory-summary-count{color:#777f79;font-size:12px}.memory-summary-arrow{color:#817262;font-size:18px}
body.memory-modal-open{overflow:hidden}.memory-modal{width:min(1500px,96vw);height:min(920px,94vh);max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:25px;background:#10151d;color:#fff;box-shadow:0 32px 100px #080b10b8;overflow:hidden}.memory-modal::backdrop{background:#0d1015d9;backdrop-filter:blur(9px)}.memory-modal[open]{display:block}.memory-frame{position:relative;width:100%;height:100%;overflow:hidden;isolation:isolate;background:radial-gradient(circle at 18% 16%,#31558b50,transparent 24%),radial-gradient(circle at 78% 72%,#a64f7335,transparent 27%),radial-gradient(circle at 48% 105%,#e99d6230,transparent 35%),linear-gradient(160deg,#101b2d,#1d3150 38%,#30253e 68%,#151c2a)}
.memory-ambience,.memory-stars,.memory-glow{position:absolute;inset:0;pointer-events:none}.memory-ambience{z-index:1}.memory-stars{opacity:.5;background-image:radial-gradient(circle at 12% 18%,#fff 0 1px,transparent 1.4px),radial-gradient(circle at 31% 7%,#cfe4ff 0 1px,transparent 1.5px),radial-gradient(circle at 62% 20%,#fff 0 1.2px,transparent 1.7px),radial-gradient(circle at 83% 12%,#ffe9cc 0 1px,transparent 1.5px),radial-gradient(circle at 92% 37%,#fff 0 1px,transparent 1.5px);background-size:190px 190px,240px 240px,280px 280px,330px 330px,390px 390px;animation:memory-twinkle 8s ease-in-out infinite alternate}.memory-glow{inset:15% auto auto 30%;width:42vw;height:42vw;border-radius:50%;background:#f4d5ad16;filter:blur(70px);animation:memory-glow 8s ease-in-out infinite alternate}.memory-meteor{position:absolute;z-index:2;left:12%;top:20%;width:150px;height:2px;border-radius:999px;background:linear-gradient(90deg,transparent,#e4efffba);transform:rotate(24deg) translateX(-35vw);opacity:0;animation:memory-meteor 13s 2s ease-in infinite}.memory-meteor-two{left:58%;top:12%;width:110px;animation-delay:8.5s;animation-duration:17s}
.memory-modal .memory-header{position:absolute;z-index:30;left:0;right:0;top:0;width:100%;height:auto;min-height:88px;margin:0;padding:20px 26px;display:flex;align-items:center;justify-content:space-between;border:0;background:linear-gradient(180deg,#0c1119bd,transparent);pointer-events:none}.memory-heading{display:grid;gap:4px;text-shadow:0 3px 18px #000}.memory-heading h2{margin:0;color:#fff;font:400 clamp(25px,3vw,40px)/1.1 Georgia,'Noto Serif SC',serif;letter-spacing:.14em}.memory-heading p{margin:0;color:#d8deea;font-size:10px;letter-spacing:.2em;opacity:.72}.memory-close{pointer-events:auto;width:44px;height:44px;margin:0;border:1px solid #ffffff6b;border-radius:50%;background:#10151bb5;color:#fff;font:300 28px/1 sans-serif;cursor:pointer;box-shadow:0 5px 18px #0005}.memory-close:hover{background:#fff;color:#2c3544}.memory-close:focus-visible{outline:2px solid #fff;outline-offset:3px}
.memory-viewport{position:absolute;z-index:3;inset:0;overflow:hidden;cursor:grab;touch-action:none;outline:none}.memory-viewport.is-dragging{cursor:grabbing}.memory-viewport:focus-visible{box-shadow:inset 0 0 0 2px #ffffff66}.memory-world{position:absolute;left:0;top:0;width:2200px;height:2020px;transform-origin:0 0;will-change:transform}.memory-drop{position:absolute;z-index:var(--memory-z);padding:0;border:0;border-radius:44% 56% 48% 52%/57% 42% 58% 43%;overflow:hidden;background:#222;box-shadow:0 18px 55px #0008,inset 0 0 0 1px #ffffff30;cursor:pointer;transform:rotate(var(--memory-r));transition:filter .3s,box-shadow .3s,transform .3s}.memory-drop:before{content:'';position:absolute;z-index:2;inset:0;background:linear-gradient(145deg,#ffffff24,transparent 34%,#0003);pointer-events:none}.memory-drop img{width:100%;height:100%;object-fit:cover;display:block;filter:brightness(.94) saturate(.98);transition:transform .55s,filter .55s}.memory-drop span{position:absolute;z-index:3;left:18px;right:18px;bottom:14px;color:#fff;font:12px/1.3 serif;letter-spacing:1px;text-align:left;text-shadow:0 2px 8px #000;opacity:0;transform:translateY(5px);transition:.25s}.memory-drop:hover,.memory-drop:focus-visible{z-index:20;filter:brightness(1.06);box-shadow:0 28px 80px #000b,0 0 0 1px #ffffff70;transform:rotate(var(--memory-r)) translateY(-7px) scale(1.025);outline:0}.memory-drop:hover img,.memory-drop:focus-visible img{transform:scale(1.055);filter:brightness(1.04) saturate(1.02)}.memory-drop:hover span,.memory-drop:focus-visible span{opacity:1;transform:none}
.memory-help{position:absolute;z-index:35;right:22px;bottom:20px;margin:0;padding:9px 13px;border:1px solid #ffffff25;border-radius:999px;background:#10151bb8;color:#e7ebf2;font-size:11px;opacity:.78;backdrop-filter:blur(10px);pointer-events:none}.memory-controls{position:absolute;z-index:36;left:22px;bottom:20px;display:flex;align-items:center;gap:7px;padding:6px;border:1px solid #ffffff25;border-radius:999px;background:#10151bc7;backdrop-filter:blur(14px)}.memory-controls button{min-width:38px;height:34px;padding:0 11px;border:0;border-radius:999px;background:#ffffff12;color:#fff;font-size:16px;white-space:nowrap;cursor:pointer}.memory-controls button:hover{background:#ffffff2a}.memory-controls button:focus-visible{outline:2px solid #fff}.memory-controls span{width:48px;text-align:center;color:#e3e8f0;font-size:11px;opacity:.8}
.memory-personal-tools{position:absolute;z-index:38;right:24px;top:82px;display:flex;align-items:center;gap:10px;max-width:min(470px,55vw);padding:7px 9px 7px 12px;border:1px solid #ffffff2e;border-radius:15px;background:#10151bc9;backdrop-filter:blur(14px);box-shadow:0 8px 26px #0004}.memory-personal-tools button{flex:0 0 auto;border:1px solid #ffffff45;border-radius:999px;background:#ffffff18;color:#fff;padding:8px 13px;font-size:12px}.memory-personal-tools button:hover{background:#ffffff2c}.memory-personal-tools small{color:#dbe2ec;font-size:10px;line-height:1.45;opacity:.82}.memory-personal-label{position:absolute;z-index:1;color:#edf4ff;font:400 24px/1.2 Georgia,'Noto Serif SC',serif;letter-spacing:.12em;text-shadow:0 4px 20px #000}.memory-drop-personal{box-shadow:0 18px 55px #0008,0 0 0 1px #d8e6ff55,inset 0 0 0 1px #ffffff30}.memory-drop-remove{position:absolute;z-index:6;right:12px;top:12px;width:32px;height:32px;padding:0;border:1px solid #ffffff6b;border-radius:50%;background:#111824c9;color:#fff;font:300 21px/1 sans-serif;opacity:0;transition:opacity .2s,background .2s}.memory-drop-personal:hover .memory-drop-remove,.memory-drop-personal:focus-within .memory-drop-remove{opacity:1}.memory-drop-remove:hover{background:#8a4048}.memory-drop-remove:focus-visible{opacity:1;outline:2px solid #fff;outline-offset:2px}
.memory-lightbox[hidden]{display:none!important}.memory-lightbox{position:absolute;z-index:100;inset:0;padding:22px;background:#090b0ede;backdrop-filter:blur(18px);display:grid;place-items:center;opacity:0;transition:opacity .18s}.memory-lightbox.is-visible{opacity:1}.memory-lightbox figure{position:relative;max-width:min(1050px,94vw);margin:0;transform:scale(.96);transition:transform .25s}.memory-lightbox.is-visible figure{transform:scale(1)}.memory-lightbox img{display:block;max-width:100%;max-height:80vh;border-radius:18px;box-shadow:0 35px 110px #000;object-fit:contain}.memory-lightbox figcaption{margin-top:12px;color:#e2e5eb;text-align:center;font:14px/1.5 Georgia,'Noto Serif SC',serif;letter-spacing:.06em}.memory-lightbox-close{position:absolute;z-index:2;right:-13px;top:-13px;width:43px;height:43px;border:1px solid #ffffff52;border-radius:50%;background:#15171be8;color:#fff;font-size:22px;cursor:pointer}.memory-lightbox-close:focus-visible{outline:2px solid #fff;outline-offset:3px}
@keyframes memory-twinkle{to{opacity:.83;filter:brightness(1.2)}}@keyframes memory-glow{to{transform:translate(12vw,10vh) scale(1.18);opacity:.48}}@keyframes memory-meteor{0%,78%{opacity:0;transform:rotate(24deg) translateX(-35vw)}82%{opacity:.85}90%,100%{opacity:0;transform:rotate(24deg) translateX(115vw)}}
@media(max-width:1000px){.memory-shell{margin-left:22px;margin-right:22px}.memory-help{right:16px}.memory-controls{left:16px}.memory-modal{width:96vw;height:94vh}}
@media(max-width:700px){.memory-shell{margin:18px 16px 0}.memory-summary{min-height:68px;padding:11px 13px;grid-template-columns:40px minmax(0,1fr) 20px;gap:10px}.memory-summary-mark{width:40px;height:40px}.memory-summary-copy strong{font-size:16px}.memory-summary-count{display:none}.memory-modal{width:100vw;height:100dvh;border-radius:0}.memory-modal .memory-header{min-height:72px;padding:14px 13px}.memory-heading h2{font-size:23px}.memory-heading p{font-size:8px;letter-spacing:.13em}.memory-close{width:40px;height:40px}.memory-personal-tools{top:76px;left:12px;right:12px;max-width:none;justify-content:space-between}.memory-personal-tools small{max-width:55%;font-size:9px}.memory-help{left:50%;right:auto;bottom:72px;transform:translateX(-50%);white-space:nowrap;font-size:10px}.memory-controls{left:50%;bottom:17px;transform:translateX(-50%)}.memory-lightbox{padding:17px}.memory-lightbox-close{right:-5px;top:-17px}.memory-drop-remove{opacity:1}}
@media(prefers-reduced-motion:reduce){.memory-stars,.memory-glow,.memory-meteor{animation:none}.memory-drop,.memory-drop img,.memory-lightbox,.memory-lightbox figure{transition:none}}

/* V52 interaction and loading polish */
input:focus-visible,summary:focus-visible,[role="button"]:focus-visible{outline:2px solid #446c52;outline-offset:4px}
.scene,.chat,.interactions,.arcade-shelf,.leisure,.omikuji-shell,.memory-shell{scroll-margin-top:18px}
@media(pointer:coarse){button,select,summary{min-height:42px}.suggestions button,.term-filters button{min-height:40px}}

/* Standalone submitted games */
.standalone-game-card{min-height:250px;border:1px solid #dbe4d5;border-radius:18px;background:radial-gradient(circle at 80% 15%,#e7efdc,transparent 34%),linear-gradient(145deg,#fffefa,#f2f6ee);padding:30px;display:grid;align-content:center;justify-items:start;gap:10px;overflow:hidden}.standalone-game-mark{width:54px;height:54px;border-radius:17px;display:grid;place-items:center;background:#496748;color:#fff;font:600 20px/1 serif;box-shadow:0 10px 25px #38523c2b}.standalone-game-card h4{margin:3px 0 0;font:500 24px/1.3 serif}.standalone-game-card p{max-width:650px;margin:0;color:#65745e;line-height:1.75}.standalone-game-hint{color:#6d7e64;font-size:13px}.arcade-stage .standalone-game-card .standalone-game-launch{margin-top:5px;border:1px solid #3f5d43!important;border-radius:999px;background:#496748!important;color:#fff!important;padding:12px 22px;font-weight:700;opacity:1!important;box-shadow:0 8px 20px #36503a35}.arcade-stage .standalone-game-card .standalone-game-launch:hover{background:#3f5d43!important;filter:none}body.arcade-game-open{overflow:hidden}.arcade-game-modal{width:min(1240px,96vw);height:min(900px,94dvh);max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:22px;background:#1d2b22;overflow:hidden;box-shadow:0 30px 110px #17231bc0}.arcade-game-modal::backdrop{background:#15221cce;backdrop-filter:blur(7px)}.arcade-game-modal-shell{height:100%;display:grid;grid-template-rows:58px minmax(0,1fr)}.arcade-game-modal-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 11px 8px 18px;background:#f8faf4;border-bottom:1px solid #d9e1d5}.arcade-game-modal-bar>div{display:flex;align-items:baseline;gap:10px}.arcade-game-modal-bar strong{font-family:serif;font-size:18px}.arcade-game-modal-bar small{color:#73806c}.arcade-game-modal-close{width:40px;height:40px;border:1px solid #cbd6c7;border-radius:50%;background:#fff;color:#496148;font-size:25px;line-height:1}.arcade-game-modal iframe{display:block;width:100%;height:100%;border:0;background:#d7bea8}
@media(max-width:700px){.standalone-game-card{min-height:220px;padding:22px}.arcade-game-modal{width:100vw;height:100dvh;border-radius:0}.arcade-game-modal-shell{grid-template-rows:54px minmax(0,1fr)}.arcade-game-modal-bar{padding-left:13px}.arcade-game-modal-bar small{display:none}}

/* Music theater entry and full-screen stage */
.music-theater-entry{position:relative;min-height:250px;padding:22px;border:1px solid #d5dfcf;border-radius:18px;background:radial-gradient(circle at 88% 12%,#dce8d5,transparent 32%),linear-gradient(145deg,#fffefa,#f1f6ed);display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,.92fr);gap:18px;align-items:center;overflow:hidden}.music-entry-kicker{margin:0!important;font:700 10px/1 sans-serif!important;letter-spacing:.2em;color:#7b8b72!important}.music-theater-entry h2{margin:8px 0 5px;font-size:26px}.music-theater-entry .music-entry-copy p{margin:0;color:#66785b}.music-entry-scene{display:grid;grid-template-columns:112px minmax(0,1fr);gap:13px;align-items:center;padding:9px;border:1px solid #d8e1d2;border-radius:15px;background:#fffdf8;box-shadow:0 12px 30px #49674812}.music-entry-scene img{width:112px;aspect-ratio:1.57;object-fit:cover;border-radius:10px}.music-entry-scene div{min-width:0}.music-entry-scene span,.music-entry-scene strong,.music-entry-scene small{display:block}.music-entry-scene span{font-size:11px;color:#899480}.music-entry-scene strong{margin:5px 0 2px;color:#3c5741;font:600 17px/1.3 serif}.music-entry-scene small{margin:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#708069!important}.music-entry-actions{grid-column:1/-1;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.leisure .music-entry-open{border-color:#496748;background:#496748;color:#fff;border-radius:999px;padding:12px 19px;font-weight:700;box-shadow:0 8px 20px #36503a2b}.music-entry-hint{margin:0!important;flex:1 1 230px;color:#708069!important}body.music-theater-open{overflow:hidden}.music-theater-modal{width:min(1500px,98vw);height:min(960px,97dvh);max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:22px;background:#17221d;overflow:hidden;box-shadow:0 34px 120px #101b16d9}.music-theater-modal::backdrop{background:#111b17df;backdrop-filter:blur(8px)}.music-theater-modal iframe{display:block;width:100%;height:100%;border:0;background:#17221d}@media(max-width:700px){.music-theater-entry{min-height:0;padding:17px;grid-template-columns:1fr}.music-entry-scene{grid-template-columns:96px minmax(0,1fr)}.music-entry-scene img{width:96px}.music-entry-actions{grid-column:auto}.music-theater-modal{width:100vw;height:100dvh;border-radius:0}}

/* V47 framing, image management and profile guidance. */
.scene[data-pose=wide] #character{object-fit:contain!important;object-position:center!important;scale:.92!important;translate:0 0!important;animation:none!important;padding:18px 3%!important;filter:drop-shadow(0 14px 30px #07171566) saturate(.96)}
.scene[data-pose=close] #character{object-fit:cover!important;scale:1.34!important;padding:0!important}
.gallery-manage-note{margin:3px 0 8px;color:#7a8871;font-size:11px;line-height:1.55}
.gallery-remove{right:-6px;top:-6px;width:27px;height:27px;border-color:#cf9f91;background:#fff7f1;color:#87483d;font:700 17px/23px sans-serif;box-shadow:0 3px 9px #5a392535}.gallery-remove:hover{background:#f4ddd4}
.memory-drop-remove{border-color:#ffffff8c;background:#111824d9;opacity:.84;transition:opacity .2s,background .2s,transform .2s}.memory-drop-personal:hover .memory-drop-remove,.memory-drop-personal:focus-within .memory-drop-remove{opacity:1}.memory-drop-remove:hover{background:#8a4048;transform:scale(1.06)}
.profile-guide{margin:0;padding:12px 14px;border:1px solid #dce5d5;border-radius:12px;background:#f4f7f0;color:#60715b;font-size:12px;line-height:1.65}
.profile-section-title{margin:5px 0 -3px;padding-top:10px;border-top:1px solid #e2e8dc;color:#405a41;font:600 14px/1.4 serif;letter-spacing:.08em}
.profile-actions{flex-wrap:wrap}.profile-reset{border:1px solid #c8d5c0;background:#eef3e9;color:#65735e}
@media(max-width:700px){.scene[data-pose=wide] #character{scale:.94!important;padding:12px 2%!important}.profile-actions{flex-direction:column}}
.gallery-supplement{margin:13px 0 14px;padding:11px 12px 5px;border:1px solid #d8e1d2;border-radius:11px;background:#f8faf5}.gallery-supplement summary{cursor:pointer;color:#40583f;font:600 14px/1.5 sans-serif;list-style-position:inside}.gallery-supplement-note{margin:7px 0 2px;color:#6d7967;font-size:12px;line-height:1.6}.gallery-supplement-thumbs{margin-top:8px;max-height:196px;padding-bottom:7px}.gallery-supplement .gallery-choice{background:#fff}.gallery-supplement .gallery-choice span{color:#4d5f49}

/* V58 youth poetry notebook. */
body:has(.poetry-modal[open]){overflow:hidden}.poetry-modal{width:min(1080px,94vw);height:min(790px,92dvh);max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:22px;background:#f9f4e9;color:#3e493d;overflow:hidden;box-shadow:0 32px 110px #1d2d24a8}.poetry-modal::backdrop{background:#17261fc2;backdrop-filter:blur(7px)}.poetry-shell{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);background:radial-gradient(circle at 8% 10%,#fffdf6,transparent 34%),linear-gradient(145deg,#fbf7ee,#f2eadc)}.poetry-header{height:auto;min-height:78px;margin:0;padding:17px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ded6c6;background:#fffcf5}.poetry-heading{display:grid;gap:4px}.poetry-heading h2{margin:0;font:500 25px/1.2 Georgia,'Noto Serif SC',serif;letter-spacing:.08em;color:#394c3d}.poetry-heading p{margin:0;color:#7a806f;font-size:12px;letter-spacing:.04em}.poetry-close{width:42px;height:42px;border:1px solid #c7c9b9;border-radius:50%;background:#fffefa;color:#53624e;font:300 27px/1 sans-serif}.poetry-body{min-height:0;display:grid;grid-template-columns:minmax(290px,.82fr) minmax(420px,1.18fr)}.poetry-gallery,.poetry-editor{min-height:0;padding:26px;overflow:auto}.poetry-gallery{position:relative;border-right:1px solid #ddd5c5;background:linear-gradient(160deg,#30483d,#243a33);color:#f7f0df}.poetry-gallery:before{content:'青\A春';white-space:pre;position:absolute;right:20px;bottom:18px;color:#ffffff0d;font:700 92px/.82 Georgia,'Noto Serif SC',serif;pointer-events:none}.poetry-kicker{display:block;color:#bfcab8;font-size:10px;letter-spacing:.2em;text-transform:uppercase}.poetry-gallery blockquote{position:relative;margin:20px 0;padding:18px 20px;border-left:2px solid #dfc99f;background:#ffffff0c;border-radius:0 13px 13px 0}.poetry-gallery blockquote p{margin:0;color:#fff8e9;font:500 20px/1.9 Georgia,'Noto Serif SC',serif;letter-spacing:.08em}.poetry-gallery blockquote cite{display:block;margin-top:12px;color:#cbd4c7;font:400 11px/1.5 sans-serif;letter-spacing:.08em}.poetry-featured{box-shadow:inset 0 0 0 1px #ffffff0f}.poetry-changing p{font-size:16px!important;line-height:1.8!important}.poetry-next{position:relative;border:1px solid #ffffff45;border-radius:999px;background:#ffffff0b;color:#f4ebd9;padding:9px 15px;font-size:12px}.poetry-gallery-note{position:relative;margin-top:24px;color:#d0d7cc!important;font-size:12px!important;line-height:1.85!important}.poetry-editor{display:grid;align-content:start;gap:13px;background:#fffcf5}.poetry-editor-top{display:flex;align-items:end;justify-content:space-between;gap:12px}.poetry-editor-top .poetry-kicker{color:#88917e}.poetry-editor h3{margin:4px 0 0;font:500 20px/1.35 Georgia,'Noto Serif SC',serif}.poetry-new{border:1px solid #c7d1c2;border-radius:999px;background:#f4f7ef;color:#526650;padding:9px 13px;font-size:12px}.poetry-editor>label{display:grid;gap:6px;color:#53604e;font-size:12px;font-weight:600}.poetry-editor input,.poetry-editor select,.poetry-editor textarea{width:100%;border:1px solid #d5d4c7;border-radius:10px;background:#fffefa;color:#3f4d3e;padding:10px 12px;font:400 14px/1.6 'Microsoft YaHei','PingFang SC',sans-serif}.poetry-editor textarea{min-height:150px;resize:vertical;font-family:Georgia,'Noto Serif SC','Songti SC',serif;font-size:16px;line-height:1.9}.poetry-counter{justify-self:end;margin-top:-8px;color:#889181;font-size:10px}.poetry-status{min-height:36px;margin:0!important;padding:9px 11px;border-radius:9px;background:#f1f3eb;color:#687662!important;font-size:11px!important;line-height:1.55!important}.poetry-status[data-state=success]{background:#edf5e9;color:#426543!important}.poetry-status[data-state=error]{background:#fff0e9;color:#8c4e40!important}.poetry-actions{display:flex;gap:8px;flex-wrap:wrap}.poetry-actions button{border-radius:9px;padding:10px 13px;font-size:12px}.poetry-save{border:1px solid #496748;background:#496748;color:#fff}.poetry-improve{border:1px solid #71806b;background:#f2f5ec;color:#40553f}.poetry-delete{margin-left:auto;border:1px solid #dec9bd;background:#fff8f3;color:#855b4b}.poetry-saved-heading{display:flex;align-items:baseline;justify-content:space-between;margin-top:2px}.poetry-saved-heading h3{font-size:15px}.poetry-saved-heading small{color:#8b9184;font-size:10px}.poetry-saved-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.poetry-saved-item{min-width:0;border:1px solid #deddd1;border-radius:11px;background:#fffefa;padding:10px;text-align:left;display:grid;gap:4px}.poetry-saved-item[data-active=true]{border-color:#5f765d;box-shadow:inset 0 0 0 1px #5f765d}.poetry-saved-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 13px/1.4 serif}.poetry-saved-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#727b6d;font-size:11px}.poetry-saved-item small{color:#9a9e94;font-size:9px}.poetry-empty{grid-column:1/-1;margin:0!important;padding:14px;border:1px dashed #d8d6c9;border-radius:10px;color:#858b7f!important;font-size:12px!important;text-align:center}
@media(max-width:760px){header nav #poetry-open{display:inline-block}.poetry-modal{width:100vw;height:100dvh;border-radius:0}.poetry-header{min-height:68px;padding:12px 14px}.poetry-heading h2{font-size:21px}.poetry-heading p{font-size:10px}.poetry-body{display:block;overflow:auto}.poetry-gallery,.poetry-editor{overflow:visible;padding:19px}.poetry-gallery{min-height:390px;border-right:0;border-bottom:1px solid #ddd5c5}.poetry-gallery blockquote p{font-size:18px}.poetry-editor textarea{min-height:170px}.poetry-saved-list{grid-template-columns:1fr}.poetry-delete{margin-left:0}}

/* V60 curated Chinese and Japanese poetry library. */
.poetry-library-heading{position:relative;display:flex;align-items:end;justify-content:space-between;gap:12px}.poetry-library-heading h3{margin:5px 0 0;color:#fff6e7;font:500 18px/1.45 Georgia,'Noto Serif SC',serif}.poetry-library-heading small{color:#bac8ba;font-size:10px;white-space:nowrap}.poetry-library-filters{position:relative;display:flex;gap:7px;margin:15px 0 12px}.poetry-library-filters button{border:1px solid #ffffff32;border-radius:999px;background:#ffffff09;color:#dbe4d8;padding:7px 11px;font-size:10px}.poetry-library-filters button[data-active=true]{border-color:#e1cfa9;background:#e1cfa91d;color:#fff7e8}.poetry-library-detail{position:relative;margin-bottom:13px;padding:16px;border:1px solid #ffffff1d;border-radius:14px;background:#ffffff0a}.poetry-library-meta{display:flex;gap:6px}.poetry-library-meta span{padding:3px 7px;border-radius:999px;background:#ffffff10;color:#cad7ca;font-size:9px;letter-spacing:.08em}.poetry-library-original{white-space:pre-line;margin:12px 0 7px!important;color:#fff9eb!important;font:500 17px/1.8 Georgia,'Noto Serif SC','Yu Mincho',serif!important;letter-spacing:.055em}.poetry-library-translation{margin:0 0 8px!important;color:#d9e2d8!important;font-size:11px!important;line-height:1.7!important}.poetry-library-detail cite{display:block;color:#d9c8a4;font:400 10px/1.5 sans-serif;letter-spacing:.06em}.poetry-library-meaning{margin:10px 0 0!important;padding-top:10px;border-top:1px solid #ffffff12;color:#cbd6cb!important;font-size:11px!important;line-height:1.75!important}.poetry-library-list{position:relative;display:grid;gap:6px;max-height:220px;overflow:auto;padding-right:3px}.poetry-library-item{min-width:0;display:grid;grid-template-columns:25px minmax(0,1fr);gap:1px 8px;padding:8px 10px;border:1px solid #ffffff18;border-radius:9px;background:#ffffff08;color:#edf3e8;text-align:left}.poetry-library-item>span{grid-row:1/3;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#ffffff10;color:#dbcba9;font:600 10px/1 serif}.poetry-library-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 11px/1.4 Georgia,'Noto Serif SC',serif}.poetry-library-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#aebcaf;font-size:8px}.poetry-library-item[data-active=true]{border-color:#dbc99e8a;background:#dbc99e16}
@media(max-width:760px){.poetry-library-list{max-height:260px}.poetry-library-heading h3{font-size:16px}.poetry-library-original{font-size:16px!important}}
