/* Fullscreen creation: one scrolling surface, a quiet illustration, persistent navigation. */
html:has(#modal[data-kind="world-creation"][open]),body:has(#modal[data-kind="world-creation"][open]){overflow:hidden}
dialog#modal[data-kind="world-creation"]{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:#10191c;color:#f8f3e7;box-shadow:none}
#modal[data-kind="world-creation"]>.modal-head{position:absolute;z-index:4;top:max(18px,env(safe-area-inset-top));right:max(22px,env(safe-area-inset-right));padding:0;border:0;background:none;min-height:0;box-shadow:none}
#modal[data-kind="world-creation"]>.modal-head{left:auto;width:44px;gap:0;display:block}
#modal[data-kind="world-creation"] .modal-head .modal-emblem,#modal[data-kind="world-creation"] .modal-head h2{display:none}
#modal[data-kind="world-creation"] .modal-head .modal-heading{display:none}
#modal[data-kind="world-creation"] .modal-head button{background:rgba(18,25,29,.65);border:1px solid #ffffff40;color:#fff;width:44px;height:44px;border-radius:50%;font-size:25px}
#modal[data-kind="world-creation"]>.modal-body{padding:0;height:100%;overflow:hidden;display:flex;flex-direction:column;background:transparent}
#modal[data-kind="world-creation"] #modal-error:empty{display:none}
#modal[data-kind="world-creation"] #modal-error:not(:empty){position:absolute;z-index:5;bottom:100px;left:5%;right:5%;margin:0;padding:14px 18px;background:#482c2b;color:#ffe6dd;border:1px solid #e39480;border-radius:12px}
.world-creation{isolation:isolate;position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-height:0;font-size:17px;--creation-gold:#dec38d}
.creation-background{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:#182628}
.creation-background-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% center}
.creation-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,15,18,.91),rgba(7,15,18,.73) 43%,rgba(7,15,18,.17) 100%),linear-gradient(0deg,rgba(7,15,18,.96),transparent 38%,rgba(7,15,18,.25))}
.creation-top{display:flex;align-items:center;gap:36px;min-height:94px;padding:20px max(5vw,24px);padding-right:90px;flex-shrink:0;border-bottom:1px solid #ffffff1f}
.creation-brand{display:flex;align-items:center;gap:12px;font:600 23px var(--serif,Georgia,serif);white-space:nowrap;color:#f5eddb}
.creation-brand svg{width:24px;height:24px;color:var(--creation-gold)}
.creation-top nav{display:flex;gap:18px;flex:1;min-width:0}
.creation-top nav button{display:flex;align-items:center;gap:8px;border:0;border-bottom:2px solid transparent;padding:10px 0;background:none;color:#c3c8c5;font:inherit;cursor:pointer;white-space:nowrap;border-radius:0}
.creation-top nav button b{font-size:14px;font-weight:500}.creation-top nav button span{font-size:11px;letter-spacing:.1em;color:#ffffff68}
.creation-top nav button[aria-current=step]{color:#fff;border-color:var(--creation-gold)}.creation-top nav button.complete span{color:var(--creation-gold)}
.creation-top nav button:hover{color:var(--creation-gold)}
.creation-draft-status{font-size:12px;color:#c3c8c5;white-space:nowrap}
.creation-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:clamp(24px,5vh,70px) max(5vw,24px) 28px;scrollbar-color:#d2be885e #0000;scrollbar-width:thin;overscroll-behavior:contain}
.creation-panel{width:min(100%,1050px)}.creation-panel[hidden]{display:none}
.creation-heading{max-width:690px;margin-bottom:clamp(22px,4vh,42px)}
.creation-heading .eyebrow{color:var(--creation-gold);font-size:12px;letter-spacing:.18em}
.creation-heading h3{font:500 clamp(32px,4.2vw,62px)/1.12 var(--serif,Georgia,serif);letter-spacing:-.03em;color:#fff8e9;margin:12px 0 16px;outline:none}
.creation-heading p{font-size:18px;line-height:1.6;color:#d1d8d4;max-width:610px;margin:0}
.creation-choices{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.creation-choice{position:relative;display:flex;flex-direction:column;overflow:hidden;border:1px solid #ffffff35;border-radius:15px;background:rgba(17,27,30,.76);cursor:pointer;transition:transform .2s,border-color .2s,background .2s;min-width:0;box-shadow:0 8px 24px #0002}
.creation-choice>input,.creation-pair>label>input,.creation-style-grid label>input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.creation-choice-art{height:clamp(100px,18vh,175px);display:block;position:relative;overflow:hidden}
.creation-choice-art img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease;filter:saturate(.85)}
.creation-choice-copy{padding:18px;display:flex;flex-direction:column;gap:8px}
.creation-choice-copy strong{font:500 clamp(20px,1.6vw,25px)/1.2 var(--serif,Georgia,serif);color:#fff4dd}
.creation-choice-copy small{font-size:14px;line-height:1.55;color:#c2cbc8}
.creation-choice-check{position:absolute;right:12px;top:12px;background:var(--creation-gold);color:#172326;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;font-weight:700;opacity:0;transform:scale(.7);transition:.2s}
.creation-choice:has(input:checked){border-color:var(--creation-gold);background:rgba(45,52,43,.88);box-shadow:inset 0 0 0 1px var(--creation-gold)}
.creation-choice:has(input:checked) .creation-choice-check{opacity:1;transform:scale(1)}
.creation-choice:hover{border-color:#e5d3ae;transform:translateY(-3px)}.creation-choice:hover img{transform:scale(1.045)}
.world-creation :is(button,input,textarea,select,summary):focus-visible,.creation-choice:has(input:focus-visible),.creation-pair label:has(input:focus-visible),.creation-style-grid label:has(input:focus-visible){outline:2px solid #f3d294;outline-offset:4px}
.world-creation .creation-own{margin-top:24px;border:0;border-top:1px solid #ffffff30;border-radius:0;background:transparent;box-shadow:none;padding:0;max-width:760px}
.creation-own>summary{padding:16px 0;color:#e8dbbf;cursor:pointer;font-size:16px;min-height:48px}
.world-creation :is(input:not([type=radio]):not([type=hidden]),textarea,select){background:rgba(13,23,26,.86);color:#f8f3e7;border:1px solid #ffffff40;border-radius:10px;padding:13px 15px;font-size:17px;line-height:1.5;width:100%;min-width:0;box-shadow:none}
.world-creation textarea{resize:vertical}.world-creation input::placeholder,.world-creation textarea::placeholder{color:#a3b0ab}
.world-creation label{color:#ece4d4;line-height:1.5}.world-creation label>textarea,.world-creation label>input:not([type=radio]){margin-top:8px}
.creation-comfort,.creation-final{width:100%;max-width:1050px;display:flex;flex-direction:column;gap:26px}
.creation-pair{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;border:0}
.creation-pair legend,.creation-style legend{font-weight:600;font-size:17px;color:#f3e8d2;margin-bottom:10px;padding:0}
.creation-pair .creation-choice-art{height:clamp(110px,16vh,150px)}
.creation-pair .creation-choice-copy{padding:16px 18px}
.creation-pair .creation-choice-copy strong{font-size:23px}
.creation-pair .creation-choice-copy small{font-size:15px}
.creation-comfort>label,.creation-comfort>.creation-footnote,.creation-title-label{max-width:760px;width:100%}
.creation-pair:has([name=risk]){grid-template-columns:repeat(3,minmax(0,1fr))}
.creation-footnote{font-size:13px;line-height:1.6;color:#c2ccc6;margin:0}
.creation-final>.creation-footnote{margin-top:-13px}
.creation-title-label{font-size:17px}.creation-title-label input{font-family:var(--serif,Georgia,serif);font-size:25px!important}
.creation-final .creation-own{margin-top:0;width:100%;max-width:none}
.creation-settings .stack{gap:20px;padding:4px 0 20px}
.world-creation .creation-section{background:rgba(15,26,28,.8);border:1px solid #ffffff28;border-radius:10px;color:#ece4d4;box-shadow:none}
.world-creation .creation-section>summary{color:#e8dbbf;padding:13px;cursor:pointer}
.world-creation .creation-section[open]{padding:0 14px 14px}.world-creation .field-note{color:#bbc8c1;font-size:14px;line-height:1.6}
.creation-party{display:flex;flex-direction:column;gap:18px}
.creation-style{border:0;padding:0;margin:0}.creation-style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.creation-style-grid label{position:relative;overflow:hidden;border-radius:10px;border:1px solid #ffffff30;cursor:pointer;background:#18272b}
.creation-style-grid img{display:block;width:100%;height:100px;object-fit:cover}.creation-style-grid span{display:block;padding:10px;font-size:14px}
.creation-style-grid label:has(input:checked){border-color:var(--creation-gold);box-shadow:0 0 0 1px var(--creation-gold)}.creation-style-grid label:hover{border-color:#e5d3ae}
.creation-recap{border-left:2px solid var(--creation-gold);padding:4px 0 4px 18px;color:#d1d8d4;font-size:16px;line-height:1.6}.creation-recap strong{color:#f3e8d2}.creation-recap p{margin:7px 0}.creation-recap small{font-size:12px;color:#b4c0b8}
.creation-recap{overflow-wrap:anywhere}
.creation-footer{display:flex;align-items:center;gap:20px;flex-shrink:0;padding:20px max(5vw,24px) max(20px,env(safe-area-inset-bottom));border-top:1px solid #ffffff25;background:rgba(8,18,21,.92);min-height:90px;z-index:2}
.creation-footer [data-creation-position]{margin-left:auto;font-size:13px;color:#c6cbbf;letter-spacing:.1em}
.creation-footer .btn{white-space:nowrap;font-size:17px;min-height:48px;border-radius:10px;padding:12px 22px;box-shadow:none;transition:background .2s,transform .15s}
.creation-footer .btn.ghost{background:transparent;color:#e6dbc3;border:1px solid #ffffff38}.creation-footer .btn.ghost:hover{background:#ffffff12;border-color:#dcc69b}
.creation-footer .btn.primary{color:#1c2929;background:#e6cf9d;border:1px solid #f0dcb2}.creation-footer .btn.primary:hover{background:#f6dfb0}.creation-footer .btn:active{transform:scale(.98)}
.creation-footer .btn:disabled{opacity:.35;cursor:default}.creation-footer [hidden]{display:none!important}
@keyframes creation-arrive{from{opacity:.4;transform:scale(1.025)}to{opacity:1;transform:scale(1)}}
@media(min-width:1600px){.creation-panel{width:min(70vw,1200px)}.world-creation{font-size:19px}.creation-choice-copy small{font-size:16px}.creation-heading p{font-size:20px}}
@media(max-width:1000px){.creation-top{gap:20px}.creation-draft-status{display:none}.creation-top nav{gap:14px}.creation-top nav button b{font-size:12px}.creation-brand{font-size:19px}.creation-choice-copy{padding:14px}.creation-shade{background:linear-gradient(90deg,#091418e8,#09141891),linear-gradient(0deg,#091418d9,transparent)}}
@media(max-width:760px){.creation-top{flex-wrap:wrap;gap:12px;padding:16px 20px 12px;padding-top:max(16px,env(safe-area-inset-top));padding-right:78px;min-height:108px}.creation-brand{font-size:20px}.creation-top nav{order:2;flex-basis:100%;justify-content:space-between;gap:8px;margin-right:-54px}.creation-top nav button{gap:4px;padding:8px 0}.creation-top nav button span{display:none}.creation-top nav button b{font-size:12px}.creation-scroll{padding:24px 20px 24px}.creation-heading{margin-bottom:23px}.creation-heading h3{font-size:38px;max-width:320px}.creation-heading p{font-size:16px}.creation-choices{grid-template-columns:1fr;gap:12px}.creation-choice{display:grid;grid-template-columns:100px minmax(0,1fr);min-height:105px}.creation-choice-art{height:100%;min-height:105px}.creation-choice-copy{padding:14px}.creation-choice-copy strong{font-size:22px}.creation-choice-copy small{font-size:14px}.creation-choice-check{width:24px;height:24px;right:6px;top:6px;font-size:13px}.creation-shade{background:linear-gradient(0deg,#071215ee,#071215ae 70%,#0712156b)}.creation-background-image{object-position:65% center}.creation-pair{gap:8px}.creation-pair label{padding:13px}.creation-pair label strong{font-size:16px}.creation-pair label small{font-size:13px}.creation-footer{padding:14px 20px max(14px,env(safe-area-inset-bottom));gap:10px;min-height:80px}.creation-footer .btn{font-size:16px;padding:11px 16px}.creation-footer [data-creation-position]{font-size:11px}.creation-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.creation-title-label input{font-size:22px!important}#modal[data-kind="world-creation"]>.modal-head{top:max(12px,env(safe-area-inset-top));right:18px}#modal[data-kind="world-creation"] #modal-error:not(:empty){bottom:88px;left:12px;right:12px;font-size:14px}}
@media(max-width:760px){.creation-pair,.creation-pair:has([name=risk]){grid-template-columns:1fr}.creation-pair .creation-choice{padding:0}.creation-pair .creation-choice-art{height:100%;min-height:110px}.creation-pair .creation-choice-copy{padding:14px}.creation-pair .creation-choice-copy strong{font-size:21px;margin:0}.creation-pair .creation-choice-copy small{font-size:14px}.creation-comfort,.creation-final{gap:24px}}
@media(max-width:360px){.creation-scroll{padding-inline:14px}.creation-top{padding-left:14px}.creation-heading h3{font-size:33px}.creation-choice{grid-template-columns:85px minmax(0,1fr)}.creation-choice-copy strong{font-size:20px}.creation-choice-copy small{font-size:13px}.creation-footer{padding-inline:14px;gap:7px}.creation-footer .btn{font-size:14px;padding-inline:12px}.creation-pair{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.world-creation *{animation:none!important;transition:none!important}}
html[data-motion="off"] .world-creation *{animation:none!important;transition:none!important}
.human-world-preparation{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid var(--line);border-radius:14px;padding:20px;margin:16px 20px;background:var(--paper);color:var(--ink)}
.human-world-preparation strong{display:block;font-size:21px;margin:7px 0}.human-world-preparation p{font-size:15px;line-height:1.5;margin:0;max-width:580px}.human-world-preparation .btn{white-space:nowrap}
@media(max-width:760px){.human-world-preparation{flex-direction:column;align-items:stretch;gap:15px;margin:12px;padding:16px}.human-world-preparation .row{gap:8px}.human-world-preparation .btn{font-size:14px}}

/* Comfortable reading at normal browser zoom, including laptop screens. */
.world-creation{font-size:clamp(18px,1.2vw,21px)}
.creation-heading p{font-size:clamp(18px,1.2vw,21px);line-height:1.7}
.creation-choice-copy small,.creation-pair .creation-choice-copy small{font-size:17px;line-height:1.6}
.creation-choice-copy strong,.creation-pair .creation-choice-copy strong{font-size:clamp(24px,1.7vw,30px);line-height:1.25}
.creation-style-grid span{font-size:17px;line-height:1.5;padding:14px}
.creation-top nav button b{font-size:16px}.creation-draft-status,.creation-footer [data-creation-position]{font-size:14px}
.creation-recap{font-size:18px}.creation-recap small{font-size:15px}
@media(max-width:760px){
 .world-creation{font-size:17px}.creation-heading p{font-size:17px}
 .creation-choice-copy small,.creation-pair .creation-choice-copy small{font-size:16px}
 .creation-choice-copy strong,.creation-pair .creation-choice-copy strong{font-size:23px}
 .creation-top nav button b{font-size:13px}.creation-style-grid span{font-size:16px}
 .creation-footer [data-creation-position]{font-size:12px}
}
