/* Approved recovery-only space. Existing usage-world artwork is retained. */
#soberHero,.sober-only,#equippedTitle{display:none}.sober-mode #soberHero{display:block}.sober-mode .sober-only{display:block}.sober-mode{background:#344852}.sober-mode header,.sober-mode .panel,.sober-mode .history,.sober-mode .forum-board{background:#344852}.sober-mode .hero-backdrop{background-image:url('./assets/sober-world.png');background-position:center center}.sober-mode .dungeon-hero{background:#596f7a}.sober-mode .game-stickers,.sober-mode .sparkles,.sober-mode #memeStrip,.sober-mode .sticker-shelf,.sober-mode .relic-panel,.sober-mode .legacy-world,.sober-mode .quest-board,.sober-mode #quick{display:none!important}.sober-mode .hero-companions [data-character-sprite]{background-image:url('./assets/sober-companions.png');background-size:200% 100%}.sober-mode .hero-companions{left:3%;bottom:105px;gap:0}.sober-mode .hero-companions .sprite{width:235px}.sober-mode .dog-companion{margin-left:-15px}.sober-mode .dog-companion .sprite{width:220px}.sober-mode .hero-dialogue{left:3%;right:55%;max-width:none;background:#344852;color:#efe7ce;font-size:12px;bottom:15px}.sober-mode .hero-controls{top:20px}.sober-mode .adventure-hud{background:#344852}.sober-mode .hud-meter i{background:#9bbed0}.sober-mode .enter-journal{display:none}.sober-mode .brand .title-texture{display:none}.sober-mode .brand>span:after{content:'清醒之旅';display:block;padding:9px 18px;background:#7b7764 url('./assets/wood-grain.svg');color:#efe5c9;border:12px solid transparent;border-image:url('./assets/frame-ironwood.png') 13% / 12px / 0 stretch;font:800 26px 'Songti SC',serif}.sober-mode .sun-icon{background:url('./assets/sober-sun.svg') center/contain no-repeat}.sober-mode .intro h1{font-size:0}.sober-mode .intro h1:after{content:'清醒存档';font-size:23px}.sober-mode .character-name{background:#344852}.sober-mode .pill{background:#566b76}.sober-mode nav button.active{background-color:#597887;color:#f1e6c8}.sober-mode .paper{background:#cbd0c7;color:#273b43}.sober-mode .paper h2,.sober-mode .paper label,.sober-mode .paper h3{color:#273b43}.sober-mode .paper input,.sober-mode .paper select,.sober-mode .paper textarea{background:#e1dfcd;color:#293e48}.sober-mode .panel .sun-icon{width:28px;height:28px}.sober-mode .panel,.sober-mode .history{background-image:none}.sober-mode .support .eyebrow{color:#d0d8cf}.sober-mode footer>span:first-child{font-size:0}.sober-mode footer>span:first-child:after{content:'SOBER ARCHIVE · 18+';font-size:10px}#soberHero{position:absolute;inset:0;pointer-events:none;z-index:3}.hero-cabinet{position:absolute;right:2%;bottom:26px;width:51%;aspect-ratio:4/3;background:url('./assets/sober-cabinet.png') center/100% 100% no-repeat;pointer-events:auto}.hero-cabinet h2{position:absolute;top:8%;left:10%;right:10%;text-align:center;color:#2e251b;font:800 clamp(16px,2.1vw,30px)/1.2 'Songti SC',serif;margin:0}.hero-cabinet>button{position:absolute;bottom:8%;left:30%;right:30%;font-size:11px;padding:3px 5px;border-width:7px}.hero-cabinet #heroMedals{position:absolute;inset:26% 9% 20%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:5% 3%}#heroSoberTotal{position:absolute;right:5%;top:22px;padding:7px 16px;background:#344852;border:11px solid transparent;border-image:url('./assets/frame-ironwood.png') 13% / 11px / 0 stretch;color:#eee4c8;font:800 17px 'Songti SC',serif}#heroSoberTotal+div{}.sober-mode .hero-controls{right:28%;top:23px}.sober-medal{display:flex;flex-direction:column;align-items:center;justify-content:center;background:transparent!important;border:0!important;border-image:none!important;box-shadow:none!important;padding:0!important;min-width:0;color:#e8d5ac;text-shadow:none;font-size:9px;line-height:1.2;gap:3px}.medal-sprite{display:block;width:100%;max-width:110px;aspect-ratio:1;background:url('./assets/sober-medals.png') no-repeat;background-size:400% 200%;flex-shrink:1}.sober-medal.unearned .medal-sprite{filter:grayscale(1) brightness(.6);opacity:.65}.sober-medal:hover{filter:brightness(1.15);transform:translateY(-2px)}.sober-medal>span:last-child{text-align:center;overflow-wrap:anywhere}.hero-cabinet .medal-sprite{max-width:74px;min-height:0;width:75%;aspect-ratio:1}.hero-cabinet .sober-medal{font-size:8px;color:#e4d3aa}.hero-cabinet .sober-medal>span:last-child{font-size:8px}#badges{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}#badges .medal-sprite{max-width:65px}#badges .sober-medal{font-size:9px}.recovery-cabinet,.recovery-titles{margin-bottom:20px}#recoveryCollection{padding-top:20px}#recoveryCollection h2{margin-top:0}#allSoberMedals{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:15px;padding:15px;background:#283947;border:8px solid transparent;border-image:url('./assets/frame-ironwood.png') 13% / 8px / 0 stretch}#allSoberMedals .sober-medal{font-size:12px;max-width:150px}#legacySoberBadges{font-size:12px;color:#cacbbc}#soberTitles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-block:20px}.sober-title-card{padding:0;border:0;box-shadow:none;aspect-ratio:3.55;background-image:url('./assets/sober-titles.png');background-size:200% 400%;background-repeat:no-repeat;background-color:transparent}.sober-title-card:disabled{opacity:.4;filter:grayscale(.7)}.sober-title-card[aria-pressed=true]{outline:2px solid #aec4ca;outline-offset:2px}.sober-title-card:hover{transform:translateY(-2px)}.goal-choice{display:flex;gap:8px;align-items:center;color:#e3dfcb}.goal-choice input,.restart-choice input{width:auto}.restart-choice{padding:12px;border:2px solid #8da2a9}.restart-choice label{display:flex;gap:8px;align-items:center;margin:0 0 4px}.restart-choice small{color:#50646d}.sober-mode #equippedTitle{display:block;position:absolute;left:5%;bottom:90px;z-index:5;color:#f2e4b6;background:#344852;padding:4px 8px;font:600 12px 'Songti SC',serif}#equippedTitle:empty{display:none!important}#soberUnlock{position:fixed;left:25px;bottom:25px;z-index:90;max-width:410px;padding:15px 40px 15px 20px;background:#334956;color:#f0dfab;border:13px solid transparent;border-image:url('./assets/frame-ironwood.png') 13% / 13px / 0 stretch}#soberUnlock button{position:absolute;right:0;top:0;padding:0 7px;border:0}#soberUnlock p{margin:4px 0}.forum-seal{display:block;width:min(440px,85%);margin:20px auto}.quest-board button[data-go=forum]{position:relative}.quest-board button[data-go=forum]::after{content:'';position:absolute;inset:21% -2% 9%;background:url('./assets/forum-chains.png') center/contain no-repeat;pointer-events:none}.quest-board button[data-go=forum] b,.quest-board button[data-go=forum] small{visibility:hidden}.quest-board button small{left:17%;right:17%;font-size:8px;line-height:1.3;overflow-wrap:break-word;text-wrap:balance}.quest-board button:nth-of-type(4) small{left:14%;right:14%}.history,.history .entry,.history p,.history .entry-meta{color:#e3e1cc}.history .entry-meta{color:#b8cbd0}.history .entry{position:relative;padding-left:91px;min-height:100px;border-color:#71878a}.entry-face{position:absolute;left:4px;top:17px;width:75px;background-image:url('./assets/rating-heads-red-v2.png');background-size:300% 400%}.entry-feedback{display:block;color:#c4d1c2;font-size:11px}.history .entry p{color:#efecdb}.history .entry .row{align-items:start}.history .entry .row>div{display:flex;flex-wrap:wrap;gap:5px}.history .entry button{font-size:10px;padding:3px 6px}#historySummary{padding:15px;background:#283a42;border:11px solid transparent;border-image:url('./assets/frame-ironwood.png') 13% / 11px / 0 stretch;margin-block:20px}#historySummary h3{color:#e8dfbf}#historySummary table{width:100%;border-collapse:collapse;text-align:center;color:#e1e7dd}#historySummary th,#historySummary td{padding:8px 5px;border:1px solid #62767c;font-size:12px}#historySummary p{font-size:11px;color:#c3ccca}.week-chart{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;margin-block:20px}.chart-day{display:flex;flex-direction:column;align-items:center;gap:5px}.chart-day i{display:block;width:60%;height:55px;border:4px solid #9a9f87;background:#628a9a;box-shadow:inset 3px 0 #ffffff18}.chart-day.used i{background:#9d845d}.chart-day.missing i{background:#5e6868;height:16px;margin-top:39px}.chart-day.future i{background:#38474c;height:8px;margin-top:47px;opacity:.5}.chart-day small{font-size:10px}.month-chart{display:flex;height:30px;border:3px solid #8b9078;gap:2px}.month-chart span{display:grid;place-items:center;color:#eee9d0;font-size:11px}.month-chart .sober{background:#628a9a}.month-chart .used{background:#8c7656}.month-chart .missing{background:#5e6868}.reaction-sticker{display:inline-block;width:65px;height:65px;flex-shrink:0;aspect-ratio:1;background:url('./assets/reaction-stickers.png') 33.333% 0/400% 200% no-repeat;vertical-align:middle}.sober-mode #soberUnlock .reaction-sticker{background-position:33.333% 0}#toast{display:flex;align-items:center;gap:8px}#toast.hidden{display:none}.sober-mode #toast{background:#344852}.sober-mode .progress i{background:#9bbecb}.sober-mode .intro p{color:#cdd7d6}.sober-mode .conduct-notice,.sober-mode .health-notice{background:#344852}.sober-mode .sober-panel{background:#344852}.sober-mode #soberPanel .big{color:#d7e6e5}.sober-mode .support a{color:#c8dce4}.sober-mode .dungeon-hero:after{background:linear-gradient(transparent 65%,#34485288)}
@media(max-width:1000px){.hero-cabinet{width:53%;bottom:55px}.sober-mode .hero-companions .sprite{width:185px}.sober-mode .dog-companion .sprite{width:170px}.sober-mode .hero-controls{top:20px;right:28%}#heroSoberTotal{right:3%;font-size:12px;padding:6px 8px}.hero-cabinet h2{font-size:18px}.hero-cabinet .sober-medal>span:last-child{font-size:7px}.hero-cabinet>button{font-size:9px;left:23%;right:23%;bottom:7%}.sober-mode .hero-dialogue{right:50%;font-size:10px}.sober-mode .hero-companions{left:1%}.sober-mode #equippedTitle{bottom:95px}#soberTitles{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.sober-mode .dungeon-hero{height:auto;min-height:870px}.sober-mode .hero-backdrop{background-position:35% center}.sober-mode .adventure-hud{top:55px;min-width:180px}.sober-mode .hero-controls{top:10px;right:8px}.hero-cabinet{width:96%;right:2%;bottom:35px;max-width:500px;aspect-ratio:4/3}.hero-cabinet h2{font-size:21px}.hero-cabinet>button{font-size:10px}.hero-cabinet .sober-medal>span:last-child{font-size:8px}.sober-mode .hero-companions{left:4%;top:145px;bottom:auto}.sober-mode .hero-companions .sprite{width:170px}.sober-mode .dog-companion .sprite{width:155px}.sober-mode .hero-dialogue{left:3%;right:3%;bottom:auto;top:340px;font-size:11px}.sober-mode #equippedTitle{top:320px;bottom:auto;left:5%}#heroSoberTotal{top:118px;right:5%;font-size:12px}.sober-mode .brand>span:after{font-size:23px;padding:4px 15px}#recoveryCollection{width:calc(100% - 22px)}#soberTitles{grid-template-columns:1fr}#allSoberMedals{grid-template-columns:repeat(3,1fr);gap:12px}#allSoberMedals .sober-medal{font-size:10px}.history .entry{padding-left:60px}.entry-face{width:52px}.history .entry .row{flex-direction:column}.week-chart{gap:4px}.chart-day i{width:80%}#historySummary{padding:9px}#historySummary th,#historySummary td{padding:6px 3px;font-size:10px}.quest-board button small{font-size:6px;left:15%;right:15%}.forum-seal{width:90%}#soberUnlock{left:12px;right:12px;bottom:12px;max-width:none}.sober-mode .character-name{font-size:8px}.restart-choice small{font-size:11px}}
@media(prefers-reduced-motion:no-preference){#soberUnlock:not(.hidden){animation:soberPop .3s ease-out}@keyframes soberPop{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}}
@media(min-width:1001px){.hero-cabinet{width:48%}.hero-cabinet h2{top:15%;font-size:25px}.sober-mode .hero-controls{top:8px;right:29%}#heroSoberTotal{top:8px;font-size:14px;line-height:1.3;padding:5px 12px;border-width:8px;border-image-width:8px}}
.hero-cabinet .sober-medal.unearned .medal-sprite{filter:grayscale(1) brightness(.95);opacity:.72}
.hero-cabinet h2{top:15%}
#allSoberMedals>p{grid-column:1/-1}.sober-title-card:hover,.sober-title-card:disabled:hover{background-image:url('./assets/sober-titles.png');background-size:200% 400%;background-repeat:no-repeat;background-color:transparent}.quest-board button:hover{background-image:url('./assets/portal-items-lofi.png');background-size:400% 100%;background-color:transparent}
body[data-tab=history] #recoveryCollection,body[data-tab=forum] #recoveryCollection{display:none!important}#historySummary h4{font-weight:500;font-size:12px;color:#d1dcd8}
.sober-mode .panel .subtle,.sober-mode .panel .note{color:#c9d8dc}.sober-mode .paper .note{color:#50646d}
@media(max-width:720px){.sober-mode .dungeon-hero{min-height:760px}.sober-mode #equippedTitle{top:400px}}
