/* Content rooms share a night shell; playable scenes keep their own stage. */
body.content-theme{--room-night:#0b1020;--room-paper:#f3f0e7;--room-ink:#202637;--room-soft:#596172;--room-accent:#cbb5ff;--room-action:#392b67;--room-glow:#8270b92b;font-family:'Noto Sans KR','Malgun Gothic',sans-serif}
body.content-theme.theme-play{--room-accent:#7de2d1;--room-action:#185d5a;--room-glow:#4aa4a827}
body.content-theme.theme-record{--room-accent:#d9bd83;--room-action:#674e2a;--room-glow:#9d8f5924;font-family:'Gowun Batang','Nanum Myeongjo',serif}
body.content-theme[data-room=love]{--room-accent:#ffb5d5;--room-action:#743752;--room-glow:#b762832b}
body.content-theme[data-room=zombie]{--room-accent:#d4eb7e;--room-action:#475918;--room-glow:#92ad3926}
body.content-theme[data-room=food]{--room-accent:#f1d983;--room-action:#705323}
body.content-theme[data-room=stress]{--room-accent:#ffba92;--room-action:#7a452c}
body.content-theme:not(.content-cinema){--ink:#202637;--ink-soft:#596172;--cl-ink:#202637;--cl-ink-soft:#596172;--cream:#e8e5df;--surface:#f3f0e7;--line:#d2cec3;background:radial-gradient(ellipse at 50% 0,var(--room-glow),transparent 620px),var(--room-night)!important;color:#f2f0ed}
body.content-theme:not(.content-cinema)::before{background:none!important}
body.content-theme .site-header{max-width:1080px;border-bottom:1px solid #ffffff17;padding-top:18px;padding-bottom:18px}
body.content-theme .site-nav a{color:#d6d9e6;background:transparent;border:1px solid #ffffff21;border-radius:999px;padding:7px 15px;font-size:14px}
body.content-theme .site-nav a:hover{color:#0b1020;background:var(--room-accent)}
body.content-theme:not(.content-cinema) main{max-width:860px;padding:18px 24px 72px}
body.content-theme .hero{padding:38px 0 30px;text-align:center}
body.content-theme .hero h1{font-family:'Jua','Malgun Gothic',sans-serif;font-weight:400;font-size:clamp(30px,4.5vw,44px);line-height:1.24;letter-spacing:-.035em;background:none;-webkit-text-fill-color:initial;color:#faf8f1;text-shadow:none;filter:none;word-break:keep-all;overflow-wrap:anywhere;margin:12px 0 18px}
body.content-theme .hero h1 .e{display:block;margin-bottom:16px;font-size:48px}
body.content-theme .hero p{color:#d2d4df!important;font-size:17px;line-height:1.8;max-width:560px;margin:auto;word-break:keep-all;overflow-wrap:anywhere}
body.content-theme .content-kicker{display:block;color:var(--room-accent);font:700 12px/1.5 'Malgun Gothic',sans-serif;letter-spacing:.16em;margin:0 0 18px;text-align:center}
body.content-theme:not(.content-cinema) .panel{background:var(--room-paper)!important;border:1px solid #ffffff29!important;border-radius:22px;box-shadow:0 24px 60px #0003!important;backdrop-filter:none;color:var(--room-ink);padding:30px;margin-bottom:24px}
body.content-theme:not(.content-cinema) .panel::after{display:none!important}
body.content-theme:not(.content-cinema) .panel p{color:var(--room-soft)}
body.content-theme:not(.content-cinema) .panel h2{color:var(--room-ink);font-family:'Jua','Malgun Gothic',sans-serif;font-weight:400;font-size:25px;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}
body.content-theme:not(.content-cinema) :is(.btn-primary,.btn-download){background:var(--room-action)!important;color:#fffaf0!important;border:1px solid transparent!important;border-radius:12px;box-shadow:none!important;font:700 16px/1.5 'Malgun Gothic',sans-serif;min-height:50px;padding:13px 23px;white-space:normal}
body.content-theme:not(.content-cinema) .btn-ghost{background:transparent!important;color:var(--room-action)!important;border:1px solid #bbb7af!important;border-radius:12px;box-shadow:none!important;font:600 15px/1.5 'Malgun Gothic',sans-serif;min-height:46px;white-space:normal}
body.content-theme:not(.content-cinema) :is(.btn-primary,.btn-ghost,.btn-download):disabled{opacity:.48;cursor:not-allowed}
body.content-theme :is(button,a,input,select,textarea):focus-visible{outline:3px solid #ad872b;outline-offset:4px}
body.content-theme:not(.content-cinema) :is(input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=file]),select,textarea){background:#fffdf7!important;color:#252b3b!important;border:1px solid #b8b8b1!important;box-shadow:none!important;border-radius:9px;font:16px/1.6 'Malgun Gothic',sans-serif;min-height:48px;padding:10px 12px;max-width:100%}
body.content-theme input::placeholder,body.content-theme textarea::placeholder{color:#697180;opacity:1}
body.content-theme:not(.content-cinema) .field-row{gap:10px}
body.content-theme .choice-btn{border:1px solid #c9c5bd!important;box-shadow:none!important;border-radius:13px;background:#fffdf7!important;color:#282d3d!important;font:500 17px/1.7 'Malgun Gothic',sans-serif;padding:16px 18px;min-height:58px;text-align:left;word-break:keep-all;overflow-wrap:anywhere}
body.content-theme .choice-btn:hover{border-color:var(--room-action)!important;background:#e8e4ed!important;transform:translateY(-1px)}
body.content-theme .quiz-q{font-size:22px;line-height:1.6;color:#222837;margin:26px 0;word-break:keep-all;overflow-wrap:anywhere}
body.content-theme .progress-track{height:5px;background:#d8d4cd;box-shadow:none}
body.content-theme .progress-fill{height:5px;background:var(--room-action);box-shadow:none}
body.content-theme #quiz .result-emoji{font-size:72px;line-height:1.2;margin:10px auto 22px;filter:none}
body.content-theme #quiz>h2{font-size:clamp(27px,4vw,39px);line-height:1.35;margin:0 auto 20px;max-width:540px}
body.content-theme .result-desc{font-size:17px;line-height:1.9;color:var(--room-soft);word-break:keep-all;overflow-wrap:anywhere}
body.content-theme .result-name{font:400 30px/1.4 'Jua','Malgun Gothic',sans-serif;color:#252a3b}
body.content-theme .panel>.content-kicker{color:var(--room-action);border-bottom:1px solid #d5d0c6;padding-bottom:16px;margin-bottom:24px}
body.content-theme .fine-print{color:#c0c5d4!important;font:14px/1.8 'Malgun Gothic',sans-serif}
body.content-theme .panel .fine-print{color:#606879!important}
body.content-theme .site-footer{color:#b9c0d1;background:transparent;border-top:1px solid #ffffff19;font-family:'Malgun Gothic',sans-serif;font-size:14px}
body.content-theme .site-footer a{color:#d7dbea}
body.content-theme.theme-record .hero h1,body.content-theme.theme-record .panel h2{font-family:'Nanum Myeongjo','Gowun Batang',serif;font-weight:800}
/* Gwigok's four side readings. */
body.content-theme.gwigok-page{padding:0 20px 60px}
body.content-theme.gwigok-page .wrap{width:min(100%,720px)}
body.content-theme.gwigok-page .head{padding:82px 0 28px;border-bottom:1px solid #d9bd8329;margin-bottom:20px}
body.content-theme.gwigok-page .head h1{font-size:clamp(30px,5vw,43px);line-height:1.45;color:#f5eddc;word-break:keep-all}
body.content-theme.gwigok-page .head h1 em{color:#d9bd83;text-shadow:none}
body.content-theme.gwigok-page .head .kicker{color:#d9bd83;font-size:13px;letter-spacing:.18em}
body.content-theme.gwigok-page .head p{color:#c5cbd5;font-size:16px;line-height:1.85}
body.content-theme.gwigok-page :is(.gate,.askbox){background:#141e31;border:1px solid #bda57059;border-radius:18px;padding:28px 24px}
body.content-theme.gwigok-page :is(.gate p,.askbox .lead){color:#eee5d2;font-size:18px}
body.content-theme.gwigok-page :is(button.fire,#g-go){background:#d9bd83;color:#162034;border:1px solid #d9bd83;border-radius:10px;padding:13px 25px;font:700 17px/1.5 'Gowun Batang',serif;min-height:50px;letter-spacing:0}
body.content-theme.gwigok-page :is(.paper,.read){background:#f3efe3;border:1px solid #d6c5a1;border-radius:15px;color:#292f3d;padding:26px}
body.content-theme.gwigok-page :is(.paper .reading,.paper .status,.read){color:#303545;line-height:1.95}
body.content-theme.gwigok-page .reading .hd{color:#755629}
body.content-theme.gwigok-page .paper :is(.oncebar,.oncebar span){color:#68604e!important}
body.content-theme.gwigok-page .who .me{background:#172237;color:#e3d3b0;border-color:#b79c6659;border-radius:999px;padding:8px 18px}
body.content-theme.gwigok-page .who a,body.content-theme.gwigok-page :is(.foot,.sign,.cnt){color:#bec4cf}
body.content-theme.gwigok-page .mon button{background:#19263b;color:#e8dac2;border:1px solid #8c7a565e;border-radius:9px;padding:8px}
body.content-theme.gwigok-page .day{border-radius:8px}
/* Keep existing artwork and scene geometry; unify only the surrounding controls. */
body.content-theme.content-cinema .topbar{background:#0d1424e8;border-bottom:1px solid #c7b38938;color:#eee7d7;font-family:'Malgun Gothic',sans-serif;font-size:15px}
body.content-theme.content-cinema :is(.gobtn,.pickrow button,.revealbar button){background:#d9bd83;border:1px solid #e6d2a9;color:#172135;border-radius:11px;font-size:17px;min-height:50px;text-shadow:none}
body.content-theme.content-cinema .greet{font-size:17px;line-height:1.85}
body.content-theme.content-cinema .greet .nm{color:#dfc794;font-size:14px;letter-spacing:.02em}
body.content-theme.content-cinema :is(.hintbar,.oncebar){font-size:14px;line-height:1.8}
body.content-theme.content-cinema .btnrow button{font-size:15px;min-height:46px;border-radius:10px}
body.content-theme.content-cinema .lead h1{font-family:'Gowun Batang','Nanum Myeongjo',serif;font-size:clamp(30px,5vw,42px);line-height:1.4}
body.content-theme.content-cinema .lead p{font-size:17px;line-height:1.85}
/* The moon-record reading keeps its paper pages inside a navy and brass shell. */
body.content-theme.moon-record{background:#0b1424!important;color:#eee7d9!important;--moon-ink:#263446;--moon-soft:#5b6876;--moon-coral:#977341;--moon-line:#b7a47b4a}
body.content-theme.moon-record .moon-head{border-color:#d9bd8333;color:#eee4cf;background:#0b1424}
body.content-theme.moon-record .moon-logo span{color:#c8b78f}
body.content-theme.moon-record .moon-hero h1{color:#f7edda}
body.content-theme.moon-record .moon-hero h1 em{color:#d9bd83}
body.content-theme.moon-record :is(.moon-desc,.moon-subaction){color:#c7ccd5}
body.content-theme.moon-record :is(.moon-eyebrow,.moon-paths i){color:#d9bd83}
body.content-theme.moon-record .moon-paths{border-color:#d9bd833b}
body.content-theme.moon-record .moon-paths b{color:#eee6d9;font-size:16px}
body.content-theme.moon-record .moon-paths span{color:#bfc7d2;font-size:14px}
body.content-theme.moon-record .moon-actions .btn-primary{background:#d9bd83!important;color:#172237!important;border-color:#d9bd83!important}
body.content-theme.moon-record .moon-hero .btn-ghost{color:#e3d6bc!important;border-color:#a38e5f!important;background:transparent!important}
body.content-theme.moon-record :is(.moon-bottom,.pg-bar){background:#101b2eee;border-color:#d9bd8355;color:#eee4cc}
body.content-theme.moon-record .moon-bottom a{color:#c3c8d2;font-size:13px}
body.content-theme.moon-record .moon-bottom a[aria-current=page]{color:#e7cd96}
body.content-theme.moon-record .moon-foot{color:#bcc2cd;font-size:13px}
body.content-theme.moon-record :is(.moon-box,.pg-frame){background:#f3efe4;border-color:#d2c3a4;color:#263446}
body.content-theme.moon-record .reading-top>a{color:#e2cd9f}
body.content-theme.moon-record .pg-btn{color:#e2cd9f;background:#1b2b40;border-color:#af956352}
body.content-theme.moon-record .office-memory{color:#263446}
body.content-theme.moon-record #prem-head+.moon-box .fine-print{color:#566273!important}
body.content-theme.moon-record .moon-actions>*{font-size:16px!important;line-height:1.6;white-space:normal}
body.content-theme.moon-record .moon-field{font-size:15px}
body.content-theme.moon-record .moon-field small{font-size:14px}
body.content-theme.moon-record .mb-title{color:#f0e5d0}
body.content-theme.moon-record .mb-sub{color:#c7cbd3;font-size:16px;line-height:1.85}
body.content-theme.dark-mb .mb-title{color:#e2c993;font:800 clamp(26px,4vw,36px)/1.45 'Nanum Myeongjo',serif}
body.content-theme.dark-mb .panel{background:#131e30!important;color:#ece2cf}
body.content-theme.dark-mb .panel p{color:#cbd0da}
body.content-theme.dark-mb .slot{background:#1a2940;border-color:#ba9c6559;border-radius:15px}
body.content-theme.dark-mb :is(.slot .who,.birth-entry summary,.mb-sub b){color:#dfc690!important}
body.content-theme.dark-mb .slot .st{color:#bdc8d7}
body.content-theme.dark-mb :is(.name-row input,.birth-entry input,.birth-entry select){width:100%;min-width:0}
@media(max-width:600px){body.content-theme:not(.content-cinema) main{padding:10px 16px 50px}body.content-theme .hero{padding:28px 0 24px}body.content-theme .hero p{font-size:16px}body.content-theme:not(.content-cinema) .panel{padding:23px 18px;border-radius:17px}body.content-theme .site-header{padding-bottom:12px;padding-top:12px}body.content-theme .site-nav a{padding:6px 10px;font-size:13px}body.content-theme .quiz-q{font-size:20px}body.content-theme .choice-btn{font-size:16px;padding:14px}body.content-theme.gwigok-page{padding-left:16px;padding-right:16px}body.content-theme.gwigok-page :is(.gate,.askbox,.paper,.read){padding:23px 16px}body.content-theme.moon-record .moon-paths{grid-template-columns:1fr;gap:18px}body.content-theme.moon-record .moon-paths b{font-size:17px}body.content-theme.moon-record .moon-paths i{display:inline;margin-right:12px}body.content-theme.moon-record .moon-hero h1{font-size:36px}body.content-theme.moon-record .moon-head{padding-left:16px;padding-right:16px}body.content-theme.dark-mb .slots{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body.content-theme .choice-btn{transition:none}}

body.content-theme .site-header{background:transparent;border-radius:0;box-shadow:none;backdrop-filter:none}
body.content-theme .site-nav a{box-shadow:none}
body.content-theme .site-footer{box-shadow:none;border-radius:0}
body.content-theme:not(.content-cinema) :is(.btn-primary,.btn-ghost,.btn-download){border-radius:12px!important}
body.content-theme.content-cinema .topbar{padding-left:50px;min-height:52px;gap:10px;flex-wrap:wrap}
body.content-theme.content-cinema .topbar>a{color:#d5ccbb;white-space:nowrap;font-size:13px}
body.content-theme.content-cinema .topbar .t{font-size:16px;letter-spacing:0;flex:1;min-width:0;text-align:center}
body.content-theme.content-cinema .topbar .sp{display:none}
body.content-theme.dark-mb .panel .fine-print{color:#bec8d7!important}
body.content-theme.dark-mb .birth-entry label{color:#cbd3df;font-size:14px}
body.content-theme.dark-mb .rel-chips button,body.content-theme.dark-mb .mini-btn{background:#1a2940;color:#d6dce5;border-color:#bba16c66;box-shadow:none}
body.content-theme.dark-mb .rel-chips button.on{background:#d9bd83;color:#172135;border-color:#d9bd83;box-shadow:none}
body.content-theme.dark-mb #gh-frame{background:#f3efe4;border-color:#c4b48e;box-shadow:none}
body.content-theme.dark-mb #gh-body{color:#303545;font-size:18px;line-height:1.95}
body.content-theme.dark-mb #gh-body h3{color:#71562c;text-shadow:none}
body.content-theme.dark-mb #gh-body .hl{color:#895521;text-shadow:none}
body.content-theme.dark-mb #gh-body .kv{background:#e7e1d4;border-color:#c8b88e;color:#384456}
body.content-theme.dark-mb #gh-score{background:#17243b;border-color:#d9bd83;box-shadow:none}
body.content-theme.dark-mb #gh-score :is(.gs-label,.gs-num){color:#e2c891;text-shadow:none}
body.content-theme.gwigok-page .read b{color:#75592c}
body.content-theme[data-room=gwigok-sinsal] :is(.wongook,.gnote){background:#152238;border-color:#b99d6259;border-radius:12px}
body.content-theme[data-room=gwigok-sinsal] :is(.wongook .lb,.wongook .ko,.wongook .us,.grp .ds){color:#b8c2d1;font-size:13px}
body.content-theme[data-room=gwigok-sinsal] :is(.grp .hj,.intro b,.gnote b){color:#dbc38f}
body.content-theme[data-room=gwigok-sinsal] .card{background:#f3efe4;border-color:#d4c29c;border-radius:16px}
body.content-theme[data-room=gwigok-sinsal] .card .tx{color:#313949;font-size:17px}
body.content-theme[data-room=gwigok-sinsal] .card :is(.nm,.cure b){color:#73572b}
body.content-theme[data-room=gwigok-sinsal] .card :is(.als,.pos,.basis){color:#716551;font-size:14px}
body.content-theme[data-room=gwigok-sinsal] .card .cure{color:#535d68;border-color:#c9bb9b}
body.content-theme.moon-record :is(#rp-whose,#analyzing .fine-print){color:#c8d0db!important}
body.content-theme.moon-record .format-switch button{color:#dfd2b4;border-color:#9b855b}
body.content-theme.moon-record .format-switch button[aria-pressed=true]{background:#d9bd83;color:#172237}
body.content-theme.theme-test #quiz:has(#qz-start)>.result-emoji{display:grid;place-items:center;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle at 40% 35%,#fff,var(--room-accent));border:1px solid #ffffffdd;box-shadow:0 12px 30px #1d193c18;transform:rotate(-8deg);font-size:78px;margin:10px auto 30px}
body.content-theme.yeon-room .room-header{background:#0d1929;border-bottom:1px solid #c5b1844a;color:#e9e2d3}
body.content-theme.yeon-room .room-brand{color:#e9e2d3}
body.content-theme.yeon-room .home-link{color:#d8bd88}
body.content-theme.yeon-room .room-nav{background:#0d1929ed;border-color:#c5b1844a}
body.content-theme.yeon-room .room-nav a{color:#c7cfda;font-size:13px}
body.content-theme.yeon-room .room-nav a[aria-current=page]{color:#dfc795}
body.content-theme.content-cinema .pickrow button{width:auto;min-width:180px;max-width:100%;padding:12px 20px;word-break:keep-all}
body.content-theme[data-room=gwigok-cal] .mon{gap:8px}
body.content-theme[data-room=gwigok-cal] .mon b{font-size:20px;white-space:nowrap;letter-spacing:0}
body.content-theme[data-room=gwigok-cal] .mon button{font-size:13px;white-space:nowrap;padding:8px 9px;min-height:44px}
body.content-theme[data-room=bujeok] :is(#works .fine-print,.elem-chip){color:#c7cdd6!important}
body.content-theme[data-room=bujeok] .btn-primary{background:#d9bd83!important;color:#172237!important;border-color:#d9bd83!important}
body.content-theme[data-room=bujeok] .btn-ghost{color:#e2d4b6;border-color:#9c885e;background:transparent}
body.content-theme.lost-office:has(#intake:not([hidden])) #prem-head{display:none}
body.content-theme.moon-record .moon-box h2{word-break:keep-all;overflow-wrap:anywhere;line-height:1.5}
body.content-theme.moon-record:not(.tale-active)>.city-sound{position:relative;top:auto;left:auto;right:auto;margin:12px auto}
body.content-theme.moon-record .pg-body .lead{color:#3d4b59}
body.content-theme.moon-record .pg-writing{color:#bcc8d8;font-size:14px;line-height:1.8}
body.content-theme.moon-record #intake-submit{white-space:nowrap;padding-left:10px!important;padding-right:10px!important}
