/* Approved night-world direction. All text and controls remain native UI. */
/* Keep Korean words together; unspaced URLs can still wrap at the boundary. */
#app textarea,#app input,#app p,#app h1,#app h2,#app h3,#app .preline,#app .genre-tag,dialog p,dialog textarea{word-break:keep-all;overflow-wrap:anywhere}
#app .entry-poster-copy h2{font-size:clamp(22px,2vw,29px);line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
#app .entry-poster-copy{min-width:0}
#app h1[tabindex="-1"]:focus{outline:none}
.detail-world-header>.world-art{width:auto;aspect-ratio:auto}
.create-entry .entry-form textarea{color:#f5ead7}
.create-entry .page-heading{word-break:keep-all;overflow-wrap:anywhere}
.registration-output{color:#f5ead7;background:transparent}
.registration-output .outline-sheet>summary,.registration-output .outline-sheet summary{color:#f5ead7}
.registration-output .outline-sheet p,.registration-output .outline-sheet .muted{color:#c6c7cc}
.registration-output .outline-sheet select{background:#152434;color:#f5ead7;border:1px solid #8e8068;padding:10px}
.registration-output .outline-sheet .button{background:transparent;color:#f5ead7;border-color:#b4a080}
body[data-page=home] .header nav{flex:0 0 auto;margin-left:auto}
body[data-page=home] .header-actions{margin-left:0}
:root,body{--bg:#080f19;--panel:#0d1826;--panel2:#122031;--text:#f5ead7;--muted:#bdbec3;--gold:#dfc49a;--line:#736653;--serif:'Batang','바탕','Georgia',serif;color-scheme:dark}
body{background:#080f19;color:var(--text)}
*{box-sizing:border-box}img,svg{max-width:100%}button,input,textarea,select{font:inherit}button,a,input,textarea,select{touch-action:manipulation}a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid #f5d8a8;outline-offset:5px}
.header{max-width:1440px;margin:auto;padding:22px 4%;min-height:82px;background:#080f19;border-bottom:1px solid #dfc49a66;gap:22px}.brand{font-size:25px;white-space:nowrap}.brand-star,.brand-tagline{display:none}.header nav{margin-left:auto}.header-actions{gap:12px}.header nav a{font-size:14px}.header .button{font-size:13px}.demo-banner{background:#080f19;border:0;color:#b7b6b8;font-size:10px;padding:6px 12px}
.button{border-radius:4px;border-color:#c6b293;min-height:44px;font-size:14px;line-height:1.6}.button.primary{background:#f3e2c4;border-color:#f3e2c4;color:#101820}.button:disabled{opacity:.55}.button:hover{background:#253346}.button.primary:hover{background:#fff0d8;color:#080f19}.text-button{color:#ead3ae}
.page{max-width:1440px;padding:48px 5% 72px}.page-heading{line-height:1.4}.footer{border-top:1px solid #d1b98833;background:#080f19}.panel,.empty{background:#0d1724;border-color:#756651}.toast{background:#f3e2c4;color:#101820;border:1px solid #d5b888;max-width:calc(100vw - 32px)}dialog{background:#101a28;color:#f5ead7;border:1px solid #a99574;max-width:calc(100vw - 32px)}
body[data-page=home] .header{position:relative;z-index:2;background:transparent;border:0;max-width:none}body[data-page=home]{background:#030b13}body[data-page=home] .header nav a[href='#workspace'],body[data-page=home] .header-actions>a[href='#create']{display:none}
.world-home{position:relative;min-height:calc(100svh - 110px);background:url('/world-home.png') center center/cover no-repeat;display:flex;align-items:center;margin-top:-82px;padding:140px 6.4% 100px;isolation:isolate}.world-copy{width:42%;max-width:550px}.world-copy h1{font:400 clamp(58px,6.1vw,98px)/1.2 var(--serif);letter-spacing:-.065em;color:#f8efe2;position:relative;margin:0 0 55px}.world-copy h1:before{content:'';position:absolute;left:-24px;top:5px;width:1px;height:150px;background:linear-gradient(#e8d6b6,transparent)}.world-copy h1 span{display:block;white-space:nowrap}.world-copy p{font-size:18px;line-height:1.8;margin:0 0 30px}.hero-actions{gap:14px}.hero-actions .button{border-radius:30px;min-width:160px;padding:13px 22px;font-size:14px}.world-copy .button.primary{background:#fff5e8}.world-copy .button:not(.primary){background:#050c14a8}
.night-feed-heading{width:100%;margin:0;padding:0;border:0;max-width:none;display:block}.night-feed-heading h1{font:400 clamp(35px,4vw,58px)/1.25 var(--serif);margin:8px 0 20px;letter-spacing:-.03em}.night-feed-heading p{font-size:17px;line-height:1.8}.discovery-page{padding:44px 5% 70px}.discovery-page .toolbar,.discovery-page #discovery-results{width:100%;max-width:none}.toolbar{padding:18px 0;background:transparent;border:0;border-bottom:1px solid #b69b6b55;gap:12px}.toolbar input,.toolbar select{background:#101a28;border-color:#685e50;color:var(--text)}.view-toggle{border:1px solid #a18a66;border-radius:24px;padding:3px;flex-shrink:0}.view-toggle button{border-radius:20px;padding:10px 18px}.view-toggle .selected{background:#f3e2c4;color:#121824}
.discovery-layout{display:block;margin-top:30px}.discovery-layout>.intro,.discovery-layout>.side-panel{display:none}.discovery-page .deck-wrap{width:100%;max-width:none}.deck-counter{margin-bottom:14px;color:var(--muted)}.discovery-page .deck{border-radius:8px}.discovery-page .poster-card{display:grid;grid-template-columns:56% minmax(0,44%);border:1px solid #a08b6c;border-radius:8px;min-height:470px;overflow:hidden;background:#0b1420}.discovery-page .poster-card>.art{height:100%;min-height:470px;width:100%;border-radius:0}.world-art{position:relative;overflow:hidden;background:#0a1422}.world-art>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.art-note{position:absolute;bottom:10px;left:12px;background:#080f19cc;color:#dfd5c6;padding:4px 9px;font:10px/1.6 var(--sans);z-index:1;max-width:calc(100% - 24px)}.story-copy{padding:38px 36px;min-width:0}.discovery-page .poster-card .story-copy h2{font:400 clamp(25px,2.65vw,40px)/1.5 var(--serif);margin:24px 0;overflow-wrap:anywhere}.story-copy>p{font-size:16px;line-height:1.9}.story-meta{flex-wrap:wrap;line-height:1.9;margin-top:30px}.pills{flex-wrap:wrap}.pill{border-radius:2px;background:transparent;color:#ead6b3;border-color:#665c4a;font-size:12px;white-space:normal;overflow-wrap:anywhere}.deck-controls{justify-content:center;gap:18px;margin-top:25px}.round-button{width:52px;height:52px;border-radius:50%;flex-shrink:0}.deck-caption{text-align:center}.idea-row{background:transparent;border-color:#605747}.idea-row h2{font:22px/1.6 var(--serif);overflow-wrap:anywhere}
.idea-detail-page{padding-top:28px}.breadcrumb{margin-bottom:30px}.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,350px);gap:44px}.detail-main{display:flex;flex-direction:column;min-width:0}.detail-main>.art{width:100%;height:300px;min-height:300px;max-height:none;order:0;border-radius:4px;margin-bottom:28px}.detail-main>.pills{margin-top:0}.detail-heading{font:400 clamp(30px,3.4vw,48px)/1.5 var(--serif);overflow-wrap:anywhere;margin:18px 0}.detail-main>.preline{font:19px/2 var(--serif);width:100%;white-space:pre-wrap;overflow-wrap:anywhere}.detail-sidebar{display:block;margin-top:0;position:sticky;top:25px;align-self:start}.detail-sidebar .panel{border:1px solid #a18a66;border-radius:5px;padding:28px 24px;background:#0b1521}.detail-sidebar .panel.spaced{border:0;margin-top:20px;padding-top:10px}.detail-sidebar .panel h2{font:27px/1.6 var(--serif)}.detail-sidebar .preline{font-size:15px;line-height:1.9;overflow-wrap:anywhere}.detail-main .private-block,.synopsis-panel{width:100%;padding:28px 0;background:none;border:0;border-top:1px solid #b59a6c77;border-radius:0}.synopsis-panel .preline{font:18px/2 var(--serif);overflow-wrap:anywhere}.definition{gap:15px}.definition strong{overflow-wrap:anywhere}
.create-entry,.registration-review{max-width:1440px;padding:42px 5% 70px;overflow:visible}.night-city{display:none}.entry-layout{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:30px}.entry-writing .page-heading,.registration-review>.page-heading{font:400 clamp(30px,3.7vw,52px)/1.4 var(--serif);letter-spacing:-.035em}.entry-form,.entry-preview,.registration-original,.registration-partners{border:1px solid #9e8969;background:#0c1724;border-radius:5px}.entry-form{padding:28px}.entry-form textarea[name=hook]{font:18px/1.9 var(--sans);border:1px solid #777b81;border-radius:4px;background:#121f2e;padding:16px;min-height:180px}.entry-form>label{font:16px/1.8 var(--sans)}.entry-preview{align-self:end;padding:24px}.entry-preview .entry-poster{height:320px}.entry-preview .entry-poster .world-art{height:100%}.entry-preview .entry-poster-copy{position:relative;z-index:2}.entry-submit{flex-wrap:wrap}.form-stack input,.form-stack textarea,.form-stack select,.form-field,.genre-description{color:#f5ead7;background:#13202e;border:1px solid #737a83;border-radius:4px;padding:12px;line-height:1.7}.form-stack textarea{resize:vertical}.registration-layout{display:block}.registration-review .registration-story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;border:0;background:transparent;padding:0}.registration-original{padding:26px;position:sticky;top:24px;max-height:calc(100vh - 48px)}.registration-output{min-width:0}.registration-output .outline-sheet{padding:26px;background:#101d2c;border:1px solid #9e8969;border-radius:5px;color:#f5ead7;box-shadow:none}.outline-sheet>summary{font:26px/1.5 var(--serif)}.outline-sheet>label:has(textarea){font:16px/1.7 var(--sans);border:0;padding-top:0}.outline-sheet>label:has(textarea):before{display:none}.outline-sheet textarea{padding:12px;border:1px solid #737a83;background:#162434;color:#fff0df;font:16px/1.8 var(--sans);min-height:105px;border-radius:4px}.registration-partners{margin-top:24px;padding:26px}.registration-partners .form-stack{display:grid;grid-template-columns:1fr 1fr;gap:18px}.registration-partners .form-stack>.tiny{grid-column:1}.registration-partners .form-stack>.button{grid-column:1/-1;justify-self:end;min-width:240px}.publication-confirmation{background:#162334;border-color:#9e8969}.original-idea h2{font:27px/1.7 var(--serif);overflow-wrap:anywhere}.check-row{line-height:1.8}.ai-text-preview{background:#172436}.entry-count{gap:12px}.entry-count span:last-child{flex-shrink:0}
@media(min-width:1500px){.world-home{background-size:100% auto;min-height:900px}}
@media(max-width:900px){.header{padding:18px 5%;gap:12px;flex-wrap:wrap}.brand{font-size:22px}.header nav{gap:18px}.header-actions{margin-left:auto}.world-home{margin-top:0;min-height:780px;padding:70px 6% 300px;background-position:64% center}.world-home:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#030b13ec 0%,#030b1370 55%,transparent)}.world-copy{width:70%}.world-copy h1{font-size:clamp(55px,9vw,78px);margin-bottom:32px}.world-copy p{font-size:16px}.discovery-page .poster-card{grid-template-columns:1fr 1fr}.story-copy{padding:25px}.detail-layout{grid-template-columns:minmax(0,1fr) 280px;gap:25px}.detail-sidebar .panel{padding:20px}.entry-layout{grid-template-columns:1fr}.entry-preview{display:none}}
@media(max-width:650px){.header{min-height:76px}.brand{font-size:20px}.header nav{order:3;width:100%;margin:0;justify-content:flex-start}.header-actions .button{padding:8px 12px;min-height:40px;font-size:12px}.header #identity{max-width:94px}body[data-page=home] .header{flex-wrap:nowrap}body[data-page=home] .header nav{order:0;width:auto;margin-left:auto}body[data-page=home] .header nav a{font-size:12px}body[data-page=home] .header-actions{margin-left:0}.world-home{min-height:760px;padding:48px 8% 310px;background-size:auto 650px;background-repeat:no-repeat;background-position:61% bottom}.world-home:before{background:linear-gradient(180deg,#030b13 0%,#030b13ed 29%,#030b1355 65%,transparent)}.world-copy{width:100%;max-width:none}.world-copy h1{font-size:clamp(48px,13vw,72px);line-height:1.18;letter-spacing:-.06em;margin-bottom:25px}.world-copy h1:before{left:-14px;height:115px}.world-copy p{font-size:14px;margin-bottom:23px}.hero-actions{gap:10px}.hero-actions .button{min-width:0;padding:11px 16px;font-size:12px}.page,.discovery-page,.create-entry,.registration-review{padding:28px 5% 50px}.night-feed-heading h1{font-size:36px}.night-feed-heading p{font-size:14px}.toolbar{flex-wrap:wrap}.search-box{width:100%;flex-basis:100%}.filter-strip{width:100%;display:flex;flex-wrap:wrap;gap:8px}.filter-strip>*{min-width:0;flex:1 1 40%}.filter-strip .genre-search{width:100%;flex-basis:100%}.view-toggle{margin-left:auto}.discovery-page .poster-card{display:flex;flex-direction:column;min-height:0}.discovery-page .poster-card>.art{height:240px;min-height:240px}.discovery-page .poster-card .story-copy h2{font-size:27px;line-height:1.5;margin:18px 0}.story-copy{padding:24px}.story-copy>p{font-size:15px}.deck-controls{gap:8px;flex-wrap:wrap}.deck-controls .button{min-width:0;flex:1 1 105px;font-size:12px;padding:10px}.round-button{width:40px;height:44px;min-width:40px}.discovery-page .deck-caption{font-size:11px}.story-meta .author-name{max-width:100%}.detail-layout{display:flex;flex-direction:column;gap:24px}.detail-main>.art{height:230px;min-height:230px}.detail-heading{font-size:31px;line-height:1.5}.detail-main>.preline{font-size:17px}.detail-sidebar{position:static;width:100%}.registration-review .registration-story{display:flex;flex-direction:column}.registration-original{position:static;max-height:none;width:100%}.registration-output{width:100%}.registration-output .outline-sheet{padding:20px}.registration-partners .form-stack{display:flex;flex-direction:column}.entry-form,.registration-original,.registration-partners{padding:20px}.entry-writing .page-heading,.registration-review>.page-heading{font-size:32px}.entry-submit .button{width:100%}.entry-count{font-size:11px;flex-wrap:wrap}.footer{padding:25px 5%;font-size:12px;gap:14px}.synopsis-panel .preline{font-size:16px}.idea-row{display:flex;flex-wrap:wrap}.idea-row>div:not(.art){min-width:0;flex:1 1 60%}.idea-row .row-art{width:80px;height:110px;min-height:110px}.idea-row h2{font-size:19px}}
.discovery-page .deck{width:100%;max-width:none;margin:0}.discovery-page .poster-card>.cover-art{position:relative;inset:auto}.discovery-page .poster-card .story-copy{padding:36px;background:#0b1420}.discovery-page .poster-card .pill{background:transparent;color:#ead6b3;border-color:#6c5c43}.view-toggle button.selected{background:#f3e2c4;color:#111b27}.header nav{flex:0 0 auto;margin-left:auto}.header-actions{margin-left:22px}
dialog{--text:#f5ead7;--muted:#c2bfba;--line:#75664f;--gold:#dfc49a;background:#101a28;color:#f5ead7}dialog .modal-body p{color:#d4ccc0}dialog .ai-text-preview{background:#152434;color:#f5ead7}dialog .button{background:transparent;color:#f5ead7}dialog .button.primary{background:#f3e2c4;color:#111b27}dialog .error-inline{color:#ffc2ab}
.detail-world-header{position:relative;isolation:isolate;min-height:380px;margin-bottom:30px;border-bottom:1px solid #a18a66;padding:35px 0;overflow:hidden;background:#080f19}.detail-world-header>.art{position:absolute;inset:0 0 0 28%;height:100%;opacity:.75;z-index:-2;border:0}.detail-world-header:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#080f19 5%,#080f19e8 34%,#080f1955 75%,transparent)}.detail-world-copy{width:65%;max-width:760px}.detail-world-copy .preline{font:18px/1.9 var(--serif);overflow-wrap:anywhere}.detail-world-copy .detail-heading{font-size:clamp(32px,3.7vw,52px);line-height:1.45}.detail-world-header .art-note{left:auto;right:12px}.detail-layout>.detail-main .private-block,.detail-layout>.detail-main .synopsis-panel{margin-top:0;border-top:0;padding-top:22px}
@media(max-width:650px){.header nav{margin-left:0}.header-actions{margin-left:auto}.discovery-page .poster-card .story-copy{padding:24px}.detail-world-header{min-height:0;padding:220px 0 20px;margin-bottom:20px}.detail-world-header>.art{inset:0 0 auto;height:220px;opacity:1}.detail-world-header:after{background:linear-gradient(180deg,transparent 0,#080f1900 150px,#080f19 240px)}.detail-world-copy{width:100%}.detail-world-copy .detail-heading{font-size:31px}.detail-world-copy .preline{font-size:17px}.detail-world-header .art-note{bottom:30px;font-size:9px}.detail-layout>.detail-main .private-block{padding-top:0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
