:root{
  --bg:#08070b;--bg2:#0d0a11;--panel:#100d14;--panel2:#151119;--panel3:#1a141e;
  --text:#f7f2f5;--muted:#9b8d99;--soft:#746975;--line:rgba(255,255,255,.09);
  --pink:#ee4d8b;--pink2:#b52a66;--rose:#ff82ae;--violet:#7d54ff;--gold:#d7ad6d;
  --shadow:0 30px 90px rgba(0,0,0,.42);--r:18px;--r2:26px;
}
*{box-sizing:border-box}
html{background:var(--bg);color-scheme:dark}
.worldsBody{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-x:hidden}
.worldsBody button,.worldsBody input,.worldsBody select,.worldsBody textarea{font:inherit}
.worldsBody button{cursor:pointer}.hidden{display:none!important}
.worldsBody a{color:inherit}.worldsBody img{max-width:100%}
.appShell{min-height:100vh;display:grid;grid-template-columns:238px minmax(0,1fr);background:radial-gradient(circle at 72% -20%,rgba(110,36,86,.25),transparent 36%),var(--bg)}
.sideNav{position:sticky;top:0;height:100vh;padding:18px 14px 16px;border-right:1px solid var(--line);background:rgba(9,7,12,.95);backdrop-filter:blur(22px);display:flex;flex-direction:column;z-index:70}
.sideBrand{display:flex;align-items:center;gap:10px;padding:5px 8px 20px;text-decoration:none}.sideBrand img{width:36px;height:36px;border-radius:11px}.sideBrand span{font-size:17px;font-weight:760;letter-spacing:.01em}.sideBrand span b{color:var(--pink);font-weight:760}.sideBrand i{margin-left:auto;font-size:8px;font-style:normal;border:1px solid rgba(238,77,139,.4);color:#ff9abc;padding:5px 7px;border-radius:99px}
.sideNav nav{display:grid;gap:4px}.sideNav nav button{width:100%;border:0;background:transparent;color:#988c99;padding:11px 12px;text-align:left;border-radius:10px;font-size:12px;font-weight:700}.sideNav nav button:hover{background:rgba(255,255,255,.05);color:#ddd4dc}.sideNav nav button.active{background:linear-gradient(90deg,rgba(238,77,139,.17),rgba(238,77,139,.05));color:#fff;box-shadow:inset 2px 0 var(--pink)}
.sideMood{margin-top:22px;padding:13px 10px;border-top:1px solid var(--line)}.sideMood>small{font-size:7px;letter-spacing:.16em;color:#6f6470;font-weight:900}.sideMood>div{display:grid;gap:5px;margin-top:10px}.moodBtn{border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.025);color:#958996;border-radius:9px;padding:8px 9px;text-align:left;font-size:9px}.moodBtn:hover,.moodBtn.active{border-color:rgba(238,77,139,.3);background:rgba(238,77,139,.1);color:#ffc1d6}
.sideBottom{margin-top:auto;display:flex;align-items:center;gap:9px;padding:12px 8px 0;border-top:1px solid var(--line)}.sideBottom a{font-size:8px;color:#706573;text-decoration:none}.sideBottom .premium{margin-right:auto}
.appBody{min-width:0}.appTop{height:68px;position:sticky;top:0;z-index:60;display:grid;grid-template-columns:auto minmax(80px,1fr) minmax(220px,330px) auto;gap:14px;align-items:center;padding:0 22px;border-bottom:1px solid var(--line);background:rgba(8,7,11,.86);backdrop-filter:blur(22px)}
.mobileBrand{display:none;border:0;background:transparent;color:#fff;align-items:center;gap:8px;font-weight:800}.mobileBrand img{width:32px;height:32px;border-radius:10px}.appSearch{height:38px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:rgba(255,255,255,.035);border-radius:11px;padding:0 11px;color:#776b78}.appSearch input{width:100%;border:0;outline:0;background:transparent;color:#fff;font-size:11px}.appSearch input::placeholder{color:#665c67}.topActions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.aiPill{font-size:8px;color:#867a87;border:1px solid var(--line);padding:7px 9px;border-radius:99px;white-space:nowrap}
.primary,.premium,.secondary,.dangerBtn,.startBtn,.textBtn{transition:transform .18s ease,background .18s,border-color .18s,filter .18s}.primary,.premium,.secondary,.dangerBtn,.startBtn{border-radius:10px;padding:10px 14px;font-weight:800;font-size:10px}.primary{border:0;color:#fff;background:linear-gradient(135deg,#ef4d8b,#be2c73);box-shadow:0 12px 35px rgba(238,77,139,.16)}.primary:hover,.premium:hover{transform:translateY(-1px);filter:brightness(1.06)}.premium{border:1px solid rgba(255,119,171,.28);background:linear-gradient(135deg,rgba(82,28,55,.86),rgba(55,20,43,.86));color:#ff9dc0}.premium.ghost{padding:7px 9px}.premium.ghost small{color:#88727f;margin-left:4px}.secondary{border:1px solid var(--line);background:rgba(255,255,255,.045);color:#ded4dc}.secondary:hover{border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.07)}.dangerBtn{border:1px solid rgba(231,103,137,.28);background:rgba(231,103,137,.06);color:#efadc1}.large{padding:13px 18px}.full{width:100%}.textBtn{border:0;background:transparent;color:#caa9bb;padding:8px 0;font-size:10px}
.appMain{min-width:0}.viewPad{padding:0 30px 78px;max-width:1480px;margin:auto}.eyebrow,.modalKicker{font-size:8px;letter-spacing:.17em;font-weight:900;color:#c49bae}
.heroWorld{display:grid;grid-template-columns:minmax(0,.92fr) minmax(420px,1.08fr);gap:34px;align-items:center;padding:44px 0 26px;min-height:540px}.heroCopy{padding:20px 0}.heroCopy h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:clamp(46px,5.1vw,73px);line-height:1.02;letter-spacing:-.047em;margin:13px 0 19px}.heroCopy h1 em{font-style:italic;color:var(--rose)}.heroCopy>p{max-width:620px;color:#a294a0;line-height:1.72;font-size:15px}.heroButtons{display:flex;gap:9px;margin:24px 0 17px}.trust{display:flex;flex-wrap:wrap;gap:13px;color:#776c77;font-size:9px}.trust span:before{content:'✓';color:#e6669a;margin-right:5px}
.heroMedia{height:470px;position:relative;border-radius:var(--r2);overflow:hidden;border:1px solid rgba(255,255,255,.11);background:#171018;box-shadow:var(--shadow)}.heroMedia>img{width:100%;height:100%;object-fit:cover;display:block}.heroMedia:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(6,5,9,.83) 100%),linear-gradient(90deg,transparent 55%,rgba(6,5,9,.16))}.heroGlass{position:absolute;z-index:2;left:22px;bottom:21px;max-width:360px;padding:15px 16px;border:1px solid rgba(255,255,255,.13);background:rgba(17,13,20,.72);backdrop-filter:blur(16px);border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.3)}.heroGlass small,.heroGlass b{display:block}.heroGlass small{font-size:7px;letter-spacing:.16em;color:#efa4c3}.heroGlass b{font-family:Georgia,serif;font-size:24px;font-weight:500;margin:4px 0}.heroGlass p{font-family:Georgia,serif;font-style:italic;color:#e9dde5;margin:6px 0 12px}.heroGlass button{border:0;background:transparent;color:#ff98be;font-size:9px;padding:0;font-weight:800}
.returnHero{min-height:280px;margin:34px 0 10px;border:1px solid var(--line);border-radius:24px;overflow:hidden;background:#110d14;display:grid;grid-template-columns:270px 1fr auto;align-items:center;gap:25px;padding:18px}.returnHero>img{width:100%;height:242px;object-fit:cover;border-radius:18px}.returnHero h2{font:500 39px Georgia;margin:8px 0}.returnHero p{color:#978a98;line-height:1.6;max-width:680px}.returnHero small{color:#c49bae;font-size:9px}.returnHero .primary{margin-right:14px}
.contentSection{padding:36px 0}.sectionHead{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:16px}.sectionHead h2,.pageTitle h1{font:500 clamp(29px,3.1vw,43px) Georgia;margin:6px 0}.sectionHead p,.pageTitle p{color:#897d8a;margin:5px 0;line-height:1.5}.continueGrid,.libraryGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.storyCard{display:grid;grid-template-columns:92px 1fr;gap:13px;align-items:center;width:100%;text-align:left;border:1px solid var(--line);background:rgba(255,255,255,.035);color:#fff;padding:9px;border-radius:15px}.storyCard:hover{background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.15)}.storyCard>img{width:92px;height:76px;border-radius:11px;object-fit:cover}.storyInfo{min-width:0}.storyInfo small,.storyInfo b,.storyInfo em{display:block}.storyInfo small{font-size:7px;letter-spacing:.11em;color:#a27f92}.storyInfo b{font-size:13px;margin:3px 0}.storyInfo em{font-style:normal;color:#7e727f;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.worldGrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}.worldGrid.fullGrid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}.worldCard{position:relative;border:1px solid var(--line);background:var(--panel);border-radius:17px;overflow:hidden;min-width:0;transition:transform .2s,border-color .2s}.worldCard:hover{transform:translateY(-3px);border-color:rgba(255,255,255,.18)}.worldCover{height:235px;overflow:hidden;background:#19131c}.worldCover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}.worldCard:hover .worldCover img{transform:scale(1.025)}.worldCard>.favIcon{position:absolute;z-index:3;right:9px;top:9px}.favIcon{width:31px;height:31px;border:1px solid rgba(255,255,255,.14);border-radius:50%;background:rgba(8,6,10,.7);backdrop-filter:blur(8px);color:#ff9fc0}.worldBody{padding:13px}.worldBody>small{font-size:7px;letter-spacing:.13em;color:#b7839a}.worldBody h3{font:500 20px Georgia;margin:5px 0}.worldBody>p{font-size:9px;line-height:1.55;color:#8a7e89;min-height:42px}.worldPeople{display:flex;align-items:center;margin:10px 0 12px}.worldPeople img{width:26px;height:26px;border:2px solid var(--panel);border-radius:50%;object-fit:cover;margin-right:-7px}.worldPeople span{font-size:8px;color:#6f6470;margin-left:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.startBtn{width:100%;border:1px solid rgba(255,255,255,.09);background:#f0e7ec;color:#291720;padding:9px}
.characterRail,.characterGrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.characterGrid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.characterCard{width:100%;padding:0;border:1px solid var(--line);background:var(--panel);color:#fff;border-radius:15px;overflow:hidden;text-align:left;transition:transform .2s,border-color .2s}.characterCard:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.17)}.portrait{display:block;height:225px;background:#18121b;overflow:hidden}.portrait img{width:100%;height:100%;object-fit:cover;display:block}.charMeta{display:block;padding:10px 11px}.charMeta b,.charMeta small{display:block}.charMeta b{font-size:11px}.charMeta small{font-size:8px;color:#857883;margin-top:2px}
.commercialStrip{margin:42px 0 10px;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:34px 38px;border-radius:22px;border:1px solid var(--line);background:radial-gradient(circle at 86% 0,rgba(126,47,92,.24),transparent 45%),#100c12}.commercialStrip h2{font:500 31px Georgia;margin:7px 0}.commercialStrip p{color:#8d808c;line-height:1.6;margin:0;max-width:720px}
.pageView{padding-top:55px;min-height:calc(100vh - 68px)}.pageTitle{margin-bottom:27px}.pageView>h2{font:500 24px Georgia;margin:36px 0 14px}.dataTools{display:flex;gap:8px;margin-top:26px}.emptyCard{grid-column:1/-1;border:1px dashed rgba(255,255,255,.13);background:rgba(255,255,255,.02);border-radius:15px;padding:24px;color:#7c7180}.emptyCard b,.emptyCard span{display:block}.emptyCard b{color:#d7ccd5;margin-bottom:5px}
.chatView{height:calc(100vh - 68px);overflow:hidden}.chatHead{height:60px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 18px;border-bottom:1px solid var(--line);background:#0a080d}.backBtn{justify-self:start;border:0;background:transparent;color:#9c8d99;font-size:10px}.chatTitle{display:flex;align-items:center;gap:9px}.chatTitle img{width:34px;height:34px;border-radius:50%;object-fit:cover}.chatTitle b,.chatTitle small{display:block}.chatTitle b{font:500 15px Georgia}.chatTitle small{font-size:8px;color:#766b76}.chatHeadActions{justify-self:end;display:flex;gap:6px}.chatHeadActions button{border:1px solid var(--line);background:rgba(255,255,255,.04);color:#a89aa6;border-radius:9px;padding:8px 9px;font-size:9px}.chatStage{height:calc(100% - 60px);display:grid;grid-template-columns:230px minmax(0,1fr)}.chatSide{position:relative;border-right:1px solid var(--line);background:#0d0a10;padding:17px;overflow:hidden;display:flex;flex-direction:column}.chatWorldBackdrop{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.2;filter:saturate(.7)}.chatWorldBackdrop:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,7,11,.42),#0d0a10 48%)}.chatPerson,.storyMeta,.chatSide>button,.usage{position:relative;z-index:2}.chatPerson{display:flex;align-items:center;gap:10px;padding-bottom:14px;border-bottom:1px solid var(--line)}.chatPerson img{width:48px;height:48px;border-radius:50%;object-fit:cover}.chatPerson b,.chatPerson small{display:block}.chatPerson b{font-size:11px}.chatPerson small{font-size:8px;color:#827681}.storyMeta{display:grid;gap:9px;margin:14px 0}.storyMeta span{display:block;border:1px solid rgba(255,255,255,.06);background:rgba(0,0,0,.15);padding:9px;border-radius:9px}.storyMeta small,.storyMeta b{display:block}.storyMeta small{font-size:6px;letter-spacing:.14em;color:#736772}.storyMeta b{font-size:9px;margin-top:3px}.chatSide>button{border:1px solid rgba(238,77,139,.18);background:rgba(238,77,139,.07);color:#d99ab4;border-radius:9px;padding:10px;font-size:8px}.usage{margin-top:auto}.usage>span{display:flex;justify-content:space-between;font-size:8px}.usage em{font-style:normal;color:#b993a4}.usage>i{display:block;height:3px;background:#2a232a;border-radius:99px;margin:7px 0;overflow:hidden}.usage u{display:block;height:100%;background:linear-gradient(90deg,var(--pink),#ff7cae);text-decoration:none;width:0}.usage small{font-size:7px;color:#655c66;line-height:1.5}.conversation{position:relative;height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto auto auto;background:#0a080d;overflow:hidden}.conversation:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 110%,rgba(119,38,80,.18),transparent 45%);pointer-events:none}.messages{position:relative;z-index:1;overflow:auto;padding:24px max(16px,5vw) 14px;scroll-behavior:smooth}.message{display:flex;gap:8px;max-width:min(720px,82%);margin:0 0 12px}.message.mine{margin-left:auto;justify-content:flex-end}.msgAvatar{width:31px;height:31px;border-radius:50%;object-fit:cover;margin-top:2px}.bubble{border:1px solid rgba(255,255,255,.07);background:rgba(20,16,23,.92);padding:11px 13px;border-radius:14px 14px 14px 4px;color:#e7dde4;font-size:12px;line-height:1.65;white-space:pre-wrap;backdrop-filter:blur(8px)}.mine .bubble{background:linear-gradient(135deg,#c33371,#e34c88);color:#fff;border:0;border-radius:14px 14px 4px 14px}.demoLabel{display:block;color:#766c77;font-size:7px;margin-top:5px}.suggestions{position:relative;z-index:2;display:flex;justify-content:center;gap:6px;flex-wrap:wrap;padding:0 18px 8px}.suggestions button{border:1px solid rgba(255,255,255,.09);background:rgba(17,13,20,.9);color:#b3a5af;border-radius:99px;padding:8px 10px;font-size:8px}.typing{position:relative;z-index:2;display:flex;align-items:center;gap:8px;width:min(820px,calc(100% - 34px));margin:0 auto 8px;color:#817582;font-size:8px}.typing>img{width:25px;height:25px;border-radius:50%;object-fit:cover}.typing>span{display:flex;gap:3px}.typing>span i{width:5px;height:5px;background:#db5a90;border-radius:50%;animation:pulse 1s infinite}.typing>span i:nth-child(2){animation-delay:.15s}.typing>span i:nth-child(3){animation-delay:.3s}.typing em{font-style:normal}.composer{position:relative;z-index:2;width:min(820px,calc(100% - 30px));margin:auto;display:flex;gap:7px;padding:7px;border:1px solid rgba(255,255,255,.11);background:rgba(18,14,21,.96);border-radius:14px;box-shadow:0 12px 35px rgba(0,0,0,.25)}.composer textarea{flex:1;resize:none;background:transparent;border:0;outline:0;color:#fff;padding:9px;max-height:130px;font-size:11px}.composer textarea::placeholder{color:#665b65}.composer button{width:40px;height:40px;border:0;border-radius:10px;background:linear-gradient(135deg,#e64c88,#b72d70);color:#fff;font-weight:900}.composerNote{position:relative;z-index:2;text-align:center;color:#5f5661;font-size:7px;padding:6px 0 10px}.composerNote a{color:#776b78}
.memoryDrawer{position:fixed;right:-440px;top:68px;bottom:0;width:min(420px,100%);z-index:90;background:#100d14;border-left:1px solid var(--line);padding:22px;transition:right .22s ease;overflow:auto;box-shadow:-30px 0 80px rgba(0,0,0,.35)}.memoryDrawer.open{right:0}.memoryDrawer header{display:flex;align-items:start;justify-content:space-between}.memoryDrawer h2{font:500 27px Georgia;margin:5px 0}.memoryDrawer header button{border:0;background:transparent;color:#8a7d89;font-size:24px}.memoryDrawer>p{color:#817580;font-size:10px;line-height:1.55}.memoryDrawer label{display:block;font-size:8px;color:#897c89;margin:15px 0 8px}.memoryDrawer input,.creatorMiniGrid input,.creatorMiniGrid select,.formGrid input{width:100%;border:1px solid var(--line);background:#17131b;color:#fff;border-radius:9px;padding:10px;margin-top:5px;outline:0}.memoryRow{display:flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.035);padding:8px;border-radius:9px;margin:6px 0;font-size:9px}.memoryRow span{flex:1}.memoryRow button{border:0;background:transparent;color:#b291a2}.storyState{margin:18px 0;padding-top:15px;border-top:1px solid var(--line)}.storyState small{font-size:7px;letter-spacing:.14em;color:#706471}.storyState p{font-size:10px;line-height:1.5;color:#8c7f8b}
.modalBackdrop{position:fixed;inset:0;z-index:120;background:rgba(5,4,7,.86);backdrop-filter:blur(12px);display:grid;place-items:center;padding:18px}.modal{width:min(660px,100%);max-height:92vh;overflow:auto;position:relative;border:1px solid rgba(255,255,255,.11);background:#110e15;border-radius:22px;padding:26px;box-shadow:0 45px 120px rgba(0,0,0,.65)}.modalClose{position:absolute;z-index:5;right:13px;top:12px;width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.12);background:rgba(10,8,13,.77);color:#b7a7b1;font-size:21px}.modal h2{font:500 35px Georgia;margin:8px 0}.lead{color:#998b97;line-height:1.65}.worldDetailHero{position:relative;height:300px;margin:-26px -26px 18px;border-radius:22px 22px 0 0;overflow:hidden}.worldDetailHero>img{width:100%;height:100%;object-fit:cover}.worldDetailHero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,#110e15 100%)}.worldDetailText{position:absolute;z-index:2;left:24px;right:52px;bottom:20px}.worldDetailText h2{font-size:39px;margin:4px 0}.worldCharacterRow{display:flex;gap:8px;overflow-x:auto;margin:15px 0}.worldCharacterRow button{min-width:94px;border:1px solid var(--line);background:rgba(255,255,255,.035);color:#fff;border-radius:11px;padding:7px;text-align:left}.worldCharacterRow img{width:100%;height:78px;border-radius:8px;object-fit:cover}.worldCharacterRow small{display:block;margin-top:5px}.characterHero{display:grid;grid-template-columns:180px 1fr;gap:19px;align-items:end}.characterHero>img{width:180px;height:235px;object-fit:cover;border-radius:16px}.characterHero h2{font-size:39px}.characterFacts{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:18px 0}.characterFacts span{border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.03);padding:11px;border-radius:10px;color:#918491;font-size:9px}.characterFacts b{display:block;color:#dcc9d4;font-size:7px;letter-spacing:.1em;margin-bottom:4px}.creatorTabs{display:flex;gap:6px;padding:4px;background:#0b090d;border-radius:10px;margin:14px 0}.creatorTabs button{flex:1;border:0;background:transparent;color:#7f737f;padding:9px;border-radius:8px;font-size:9px}.creatorTabs button.active{background:#24121c;color:#ff9cc0}.creatorLabel,.chipGroup>label{display:block;font-size:8px;color:#8c7f8c;margin:13px 0 7px}.avatarPicker{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.avatarOption{padding:0;border:2px solid transparent;border-radius:11px;background:#181219;overflow:hidden}.avatarOption.active{border-color:#f2639b}.avatarOption img{width:100%;height:100px;object-fit:cover;display:block}.chipGroup>div{display:flex;flex-wrap:wrap;gap:6px}.choiceChip{border:1px solid var(--line);background:rgba(255,255,255,.035);color:#948795;border-radius:99px;padding:8px 10px;font-size:8px}.choiceChip.active{border-color:rgba(240,79,145,.35);background:rgba(240,79,145,.1);color:#ffadc9}.creatorMiniGrid,.formGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:16px 0}.formGrid{grid-template-columns:repeat(2,1fr)}.creatorMiniGrid label,.formGrid label{font-size:8px;color:#877b88}.formGrid .wide{grid-column:1/-1}.planList{display:grid;gap:7px;margin:18px 0}.planList span{display:flex;justify-content:space-between;gap:20px;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.025);padding:11px;border-radius:10px}.planList b{font-size:10px}.planList small{color:#7c707c;font-size:8px}.intentStatus{text-align:center;color:#736874;font-size:8px;margin-top:10px}
.ageGate{position:fixed;inset:0;z-index:250;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 10%,#461a35,#09070c 58%)}.ageGate>div{width:min(440px,100%);text-align:center;padding:30px 27px;border:1px solid rgba(255,255,255,.12);background:rgba(16,13,20,.95);border-radius:24px;box-shadow:var(--shadow)}.ageGate img{width:54px;height:54px;border-radius:15px}.ageGate h2{font:500 36px Georgia;margin:9px}.ageGate p{color:#9b8e9b;line-height:1.6;font-size:11px}.ageGate>a{display:block;color:#887b87;margin:11px;font-size:9px}.ageGate small{display:block;color:#6e646f;font-size:7px;line-height:1.55}.toast{position:fixed;z-index:300;left:50%;bottom:22px;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#f1e8ed;color:#2a1720;padding:9px 13px;border-radius:9px;font-size:9px;transition:.18s}.toast.show{opacity:1;transform:translate(-50%,0)}
.mobileNav{display:none}
.worldsBody button:focus-visible,.worldsBody a:focus-visible,.worldsBody input:focus-visible,.worldsBody select:focus-visible,.worldsBody textarea:focus-visible{outline:2px solid #ff78ad;outline-offset:2px}
@keyframes pulse{50%{opacity:.22}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:1180px){.appShell{grid-template-columns:205px minmax(0,1fr)}.heroWorld{grid-template-columns:1fr 1fr}.worldGrid{grid-template-columns:repeat(3,minmax(0,1fr))}.characterRail{grid-template-columns:repeat(4,minmax(0,1fr))}.aiPill{display:none}}
@media(max-width:860px){.appShell{display:block}.sideNav{display:none}.appTop{height:60px;grid-template-columns:auto 1fr auto;padding:0 12px}.appTop>div:nth-child(2){display:none}.mobileBrand{display:flex}.appSearch{display:none}.topActions .secondary{display:none}.viewPad{padding:0 14px 78px}.heroWorld{grid-template-columns:1fr;gap:18px;padding:18px 0 14px}.heroCopy{padding:0}.heroCopy h1{font-size:45px}.heroCopy>p{font-size:13px}.heroMedia{height:370px;order:-1}.heroGlass{left:14px;right:14px;bottom:14px;max-width:none}.returnHero{grid-template-columns:85px 1fr;padding:10px;gap:12px;margin-top:18px}.returnHero>img{height:86px}.returnHero h2{font-size:23px;margin:4px 0}.returnHero p{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.returnHero .primary{grid-column:1/-1;width:100%;margin:0}.contentSection{padding:28px 0}.sectionHead{align-items:start}.sectionHead h2{font-size:29px}.continueGrid,.libraryGrid{grid-template-columns:1fr}.worldGrid,.worldGrid.fullGrid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:7px}.worldCard{min-width:78vw;scroll-snap-align:start}.worldCover{height:285px}.characterRail,.characterGrid{display:flex;overflow-x:auto;padding-bottom:7px}.characterCard{min-width:42vw}.portrait{height:225px}.commercialStrip{margin:30px 0 20px;display:block;padding:26px 20px}.commercialStrip h2{font-size:28px}.commercialStrip .premium{margin-top:12px;width:100%}.pageView{padding-top:35px}.chatView{height:calc(100vh - 60px - 54px)}.chatHead{height:54px;padding:0 9px;grid-template-columns:auto 1fr auto}.chatHeadActions #newStory{display:none}.chatStage{height:calc(100% - 54px);display:block}.chatSide{display:none}.messages{padding:16px 10px}.message{max-width:94%}.bubble{font-size:12px}.suggestions{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding:0 9px 8px}.suggestions button{white-space:nowrap}.composer{width:calc(100% - 16px)}.composerNote{padding-bottom:5px}.memoryDrawer{top:60px;bottom:54px}.mobileNav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:0;right:0;bottom:0;z-index:80;background:rgba(9,7,12,.96);backdrop-filter:blur(16px);border-top:1px solid var(--line);padding:5px 4px calc(5px + env(safe-area-inset-bottom))}.mobileNav button{border:0;background:transparent;color:#786d78;padding:5px 2px;font-size:15px}.mobileNav button span{display:block;font-size:7px;margin-top:2px}.mobileNav .premiumNav{color:#e276a2}.modal{padding:20px 15px}.worldDetailHero{height:300px;margin:-20px -15px 16px}.worldDetailText{left:17px;right:48px}.worldDetailText h2{font-size:33px}.worldCharacterRow button{min-width:90px}.characterHero{grid-template-columns:115px 1fr;gap:13px;align-items:center}.characterHero>img{width:115px;height:155px}.characterHero h2{font-size:29px}.characterFacts{grid-template-columns:1fr}.avatarPicker{grid-template-columns:repeat(4,1fr)}.avatarOption img{height:105px}.creatorMiniGrid,.formGrid{grid-template-columns:1fr}.formGrid .wide{grid-column:auto}.dataTools{flex-direction:column}.ageGate>div{padding:24px 18px}}
@media(max-width:480px){.heroCopy h1{font-size:39px}.heroMedia{height:335px}.heroButtons{flex-direction:column}.heroButtons button{width:100%}.worldCard{min-width:84vw}.characterCard{min-width:48vw}.chatTitle img{display:none}.chatTitle b{font-size:13px}.chatHeadActions button{padding:7px;font-size:8px}.modal h2{font-size:30px}}
.memoryActions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.memoryActions .dangerBtn{font-size:8px}@media(max-width:480px){.memoryActions{grid-template-columns:1fr}}
.returnHero{display:grid;grid-template-columns:minmax(280px,.8fr) 1.2fr;gap:32px;align-items:stretch;margin:12px 0 36px;padding:22px;border:1px solid rgba(255,255,255,.09);border-radius:28px;background:#0e0b14;overflow:hidden}.returnMedia{min-height:330px;border-radius:20px;overflow:hidden}.returnMedia img{width:100%;height:100%;object-fit:cover}.returnHero>div:last-child{padding:24px 18px;display:flex;flex-direction:column;justify-content:center}.returnHero h1{font-size:clamp(34px,5vw,64px);line-height:.95;margin:12px 0 24px}.returnHero small{color:#9d93a9;letter-spacing:.12em}.returnHero .unresolved{color:#e8c8ff}.memorySection{padding:14px 0;border-bottom:1px solid rgba(255,255,255,.08)}.memorySection small{color:#b996d3;letter-spacing:.1em}.memorySection p{margin:7px 0;color:#d7d0dc}.unresolvedBox{background:rgba(155,92,207,.08);padding:14px;border-radius:14px;margin:10px 0}.importBtn{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);background:#17121f;border:1px solid rgba(255,255,255,.13);padding:12px 18px;border-radius:999px;opacity:0;pointer-events:none;transition:.2s;z-index:999;color:#fff;max-width:min(90vw,620px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.msg.assistant small{display:block;color:#b996d3;font-size:11px;letter-spacing:.08em;margin-bottom:5px}.smartEmpty{padding:24px;border:1px dashed rgba(255,255,255,.12);border-radius:18px;color:#a9a0b1;display:flex;gap:6px;flex-direction:column}.libraryCard .small{margin-right:7px}.traitLine{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.traitLine span,.worldSignals span{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.06);font-size:12px}.worldSignals{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.miniCast button{width:100%;display:flex;gap:12px;align-items:center;text-align:left;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:10px;color:inherit}.miniCast img{width:54px;height:54px;object-fit:cover;border-radius:12px}.miniCast small{display:block;color:#a9a0b1;margin-top:3px}@media(max-width:760px){.returnHero{grid-template-columns:1fr;padding:12px;gap:8px}.returnMedia{min-height:210px}.returnHero>div:last-child{padding:16px 8px}.returnHero h1{font-size:36px}.returnHero p{margin:8px 0 14px}.memoryDrawer{width:min(94vw,420px)}.chatHeadActions #newStory{display:none}}
.worldCard{position:relative}.worldFav{position:absolute;z-index:5;right:10px;top:10px;width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:rgba(8,6,10,.72);backdrop-filter:blur(8px);color:#f8dbe7;font-size:17px}.worldFav.on{color:#ff74aa;background:rgba(76,18,47,.82)}
.searchSummary{grid-column:1/-1;color:#8e818e;font-size:11px;padding:4px 0 10px}.turnstileMount{min-height:0;padding:0 12px}.turnstileMount:not(.hidden){min-height:12px}.searchEmpty{grid-column:1/-1;padding:24px;border:1px solid var(--line);border-radius:14px;color:#928593}
[role="button"][tabindex="0"]:focus-visible{outline:2px solid #ff78ad;outline-offset:3px}
.worldCard{position:relative}.worldFav{position:absolute;z-index:5;right:10px;top:10px;width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:rgba(8,6,10,.72);backdrop-filter:blur(8px);color:#f8dbe7;font-size:17px}.worldFav.on{color:#ff74aa;background:rgba(76,18,47,.82)}
.searchSummary{grid-column:1/-1;color:#8e818e;font-size:11px;padding:4px 0 10px}.turnstileMount{min-height:0;padding:0 12px}.turnstileMount:not(.hidden){min-height:12px}.searchEmpty{grid-column:1/-1;padding:24px;border:1px solid var(--line);border-radius:14px;color:#928593}
[role="button"][tabindex="0"]:focus-visible{outline:2px solid #ff78ad;outline-offset:3px}

/* v4.2 usability fixes */
.quickChatTop{padding:9px 14px!important;white-space:nowrap}.cardActions{display:flex;gap:7px;margin-top:12px;position:relative;z-index:7}.cardActions button{border-radius:9px;padding:9px 11px;font-size:10px;font-weight:800;cursor:pointer}.cardStart{border:0;background:linear-gradient(135deg,#eb4f91,#bd2f75);color:#fff}.cardDetails{border:1px solid rgba(255,255,255,.13);background:rgba(10,8,13,.72);color:#c7bac3}.mood{transition:.16s ease;border:1px solid rgba(255,255,255,.09)!important;background:rgba(255,255,255,.045)!important}.mood.active{background:linear-gradient(135deg,#d63a7d,#8f3fd2)!important;border-color:rgba(255,139,193,.55)!important;color:#fff!important;box-shadow:0 8px 24px rgba(196,52,124,.22)}.moodFeedback{margin-top:10px;color:#968794;font-size:9px;line-height:1.45}.moodFeedback b{color:#f0cadd}.detailBody{padding-top:4px}.worldDetailHero{height:330px}.worldDetailHero>img{filter:saturate(.94) contrast(1.03)}.worldDetailText p{max-width:520px;color:#d6c8d2;font-size:12px;line-height:1.5;margin:7px 0 13px}.characterHero .primary{margin-top:12px}.message{align-items:flex-start}.message.mine>div{max-width:100%}.message.theirs>div{max-width:calc(100% - 42px)}.dataPrivacy{margin-top:28px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.02);padding:14px 16px;color:#9b8e99}.dataPrivacy summary{cursor:pointer;color:#d4c5cf;font-weight:800;font-size:12px}.dataPrivacy p{font-size:11px;line-height:1.55}.creatorMiniGrid label,.formGrid label,.creatorLabel,.chipGroup>label{font-size:12px!important}.creatorMiniGrid input,.creatorMiniGrid select,.formGrid input,.formGrid select{font-size:14px!important;padding:12px!important}.choiceChip{font-size:11px!important}.creatorTabs button{font-size:12px!important}.modal .lead{font-size:14px}.worldCard,.characterCard{cursor:default}.worldInfo p,.characterCard p{line-height:1.45}.topActions{gap:7px!important}
@media(max-width:860px){.quickChatTop{display:inline-flex!important;font-size:10px!important;padding:8px 10px!important}.topActions .aiPill{display:none}.worldDetailHero{height:250px}.worldDetailText h2{font-size:31px}.worldDetailText p{font-size:11px}.cardActions{flex-direction:column}.cardActions button{width:100%}.creatorMiniGrid label,.formGrid label,.creatorLabel,.chipGroup>label{font-size:13px!important}.creatorMiniGrid input,.creatorMiniGrid select,.formGrid input,.formGrid select{font-size:16px!important}.choiceChip{font-size:12px!important;padding:10px 12px!important}.modal .lead{font-size:15px}.dataPrivacy{margin-bottom:70px}}
.charHook{display:block;color:#8a7e89;font-size:9px;line-height:1.45;margin-top:8px;min-height:39px}.characterCard{position:relative}.characterCard>.heart{position:absolute;z-index:5;right:9px;top:9px;width:31px;height:31px;border:1px solid rgba(255,255,255,.14);border-radius:50%;background:rgba(8,6,10,.72);backdrop-filter:blur(8px);color:#ff9fc0}.characterCard>.heart.on{background:rgba(97,27,61,.84);color:#fff}.worldBody .cardActions,.charMeta .cardActions{margin-top:10px}.worldBody .cardActions button,.charMeta .cardActions button{flex:1}.characterCard .charMeta b{font-size:15px;margin-top:5px}.worldCard{cursor:pointer}.characterCard{cursor:pointer}@media(max-width:860px){.charHook{font-size:10px;min-height:44px}.characterCard .charMeta b{font-size:16px}}


/* v4.3 activation + clarity pass */
.homeMoodBar{margin:26px 0 4px;padding:22px;border:1px solid rgba(255,255,255,.09);border-radius:22px;background:linear-gradient(120deg,rgba(92,35,113,.16),rgba(255,255,255,.02));display:grid;grid-template-columns:minmax(230px,.75fr) 1.25fr;gap:18px 24px;align-items:center}.homeMoodBar h2{margin:5px 0 0;font-size:clamp(22px,2.2vw,32px)}.homeMoodGrid{display:flex;gap:8px;flex-wrap:wrap}.homeMoodGrid .mood{padding:11px 14px;font-size:12px;border-radius:999px!important}.homeMoodFeedback{grid-column:1/-1;color:#b8a7b5;font-size:12px}.homeMoodFeedback b{color:#ffd6e7}.aiPill.ready{color:#9ef3c1;border-color:rgba(75,213,135,.28);background:rgba(47,160,98,.08)}.aiPill.problem{color:#ffb6c9;border-color:rgba(240,80,125,.3);background:rgba(160,35,76,.1)}.chatError{margin:0 14px 10px;padding:12px 14px;border:1px solid rgba(244,92,133,.35);background:rgba(103,24,54,.16);border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:14px}.chatError>div{display:flex;flex-direction:column;gap:3px}.chatError b{font-size:12px;color:#ffd6e2}.chatError span{font-size:11px;color:#c9b8bf;line-height:1.45}.chatError button{flex:0 0 auto;border:1px solid rgba(255,255,255,.16);background:#231521;color:#fff;border-radius:10px;padding:9px 13px;font-weight:800}.composer #sendBtn{min-width:84px;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:900}.composer #sendBtn span{font-size:12px}.composer #sendBtn b{font-size:16px}.creatorMiniGrid label,.formGrid label,.creatorLabel,.chipGroup>label{font-size:14px!important;color:#c6b8c3!important}.creatorMiniGrid input,.creatorMiniGrid select,.formGrid input,.formGrid select{font-size:16px!important;line-height:1.35!important;padding:14px!important}.choiceChip{font-size:13px!important;padding:11px 13px!important}.creatorTabs button{font-size:13px!important;padding:13px!important}.modal .lead{font-size:16px;line-height:1.5}.worldCard,.characterCard{transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.worldCard:hover,.characterCard:hover{transform:translateY(-2px);border-color:rgba(246,106,174,.28);box-shadow:0 14px 34px rgba(0,0,0,.18)}.cardStart{font-size:11px!important;padding:10px 12px!important}.cardDetails{font-size:11px!important}.dataPrivacy summary{font-size:13px}.dataPrivacy p{font-size:12px}.worldDetailHero{max-height:360px}.worldDetailHero>img{object-position:center 42%}
@media(max-width:860px){.homeMoodBar{grid-template-columns:1fr;padding:18px;margin-top:18px}.homeMoodFeedback{grid-column:auto}.homeMoodGrid{flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px}.homeMoodGrid .mood{white-space:nowrap;flex:0 0 auto}.composer #sendBtn{min-width:64px}.composer #sendBtn span{display:none}.creatorMiniGrid label,.formGrid label,.creatorLabel,.chipGroup>label{font-size:14px!important}.modal .lead{font-size:16px}.chatError{margin:0 8px 8px}}


/* v5 functional rescue: user-visible interaction over decorative UI */
.moodFeedback,.homeMoodFeedback{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px}.moodStart{border:1px solid rgba(255,139,193,.32);background:rgba(209,55,123,.13);color:#ffd2e4;border-radius:999px;padding:8px 12px;font-size:11px;font-weight:850;white-space:nowrap}.moodStart:hover{background:rgba(209,55,123,.22)}
.worldDetailHero{display:grid!important;grid-template-columns:minmax(170px,240px) 1fr!important;height:auto!important;max-height:none!important;gap:22px!important;align-items:center!important;padding:18px!important;background:linear-gradient(135deg,rgba(94,34,72,.16),rgba(255,255,255,.015))!important}.worldDetailHero>img{width:100%!important;height:250px!important;border-radius:18px!important;object-fit:cover!important}.worldDetailText{position:static!important;padding:0!important;background:none!important}.worldDetailText h2{font-size:clamp(32px,4vw,50px)!important;margin:8px 0 10px!important}.worldDetailText p{font-size:14px!important;line-height:1.6!important}.detailBody{padding:20px!important}.detailBody>p,.detailBody blockquote{font-size:14px!important;line-height:1.65!important}.worldCharacterRow button{min-height:70px!important}.characterHero{align-items:center!important}.characterHero>img{max-height:360px!important;object-fit:cover!important}.characterFacts span{font-size:13px!important;line-height:1.55!important}
.messageMeta{display:flex;gap:8px;align-items:center;margin:0 0 5px 3px}.messageMeta b{font-size:11px;color:#f8e9f0}.messageMeta span{font-size:9px;color:#897a84}.message .bubble{font-size:15px!important;line-height:1.6!important}.message.mine .bubble{background:linear-gradient(135deg,#bf3375,#8c2e65)!important;color:#fff!important}.message.theirs .bubble{background:#18121c!important;border-color:rgba(255,255,255,.09)!important}.composer textarea{font-size:16px!important;line-height:1.45!important;min-height:52px!important;padding:14px 15px!important}.composer #sendBtn{min-height:52px!important;font-size:13px!important}.typing em{font-size:11px!important}
.creatorMiniGrid label,.formGrid label,.creatorLabel,.chipGroup>label{font-size:15px!important;line-height:1.35!important}.creatorMiniGrid input,.creatorMiniGrid select,.formGrid input,.formGrid select{font-size:16px!important;min-height:48px!important}.choiceChip{font-size:14px!important;min-height:42px!important}.creatorTabs button{font-size:14px!important}.modal .lead{font-size:17px!important}.dataPrivacy{max-width:780px}.dataPrivacy summary{font-size:14px!important}.dataPrivacy p{font-size:13px!important}.aiPill{font-size:9px!important}
.worldCard,.characterCard{isolation:isolate}.cardStart{min-height:38px}.cardDetails{min-height:38px}.worldCard:focus-visible,.characterCard:focus-visible{outline:2px solid #ff78ad;outline-offset:3px}
@media(max-width:760px){.moodFeedback,.homeMoodFeedback{align-items:flex-start;flex-direction:column}.moodStart{width:100%}.worldDetailHero{grid-template-columns:1fr!important;gap:12px!important;padding:12px!important}.worldDetailHero>img{height:180px!important}.worldDetailText p{font-size:14px!important}.detailBody{padding:16px!important}.message .bubble{font-size:15px!important}.creatorMiniGrid label,.formGrid label,.creatorLabel,.chipGroup>label{font-size:15px!important}.choiceChip{font-size:14px!important}.appTop{padding-left:12px!important;padding-right:12px!important}.quickChatTop{font-size:11px!important;min-height:40px!important}}
/* v5.0.1 visual regression fix: span cover must establish a block box or height is ignored. */
.worldCover{display:block!important;height:220px!important}
@media(max-width:860px){.worldCover{height:250px!important}}
.failedTurn .bubble{opacity:.82;border-style:dashed!important}.failedTurn .messageMeta span{color:#ffb6c9!important}
/* v5 visual quality rule: secondary cast without a distinct premium portrait is not advertised with a duplicate face. */
.msgInitial{display:grid!important;place-items:center;background:linear-gradient(135deg,#8d4268,#5f3a79);font-weight:900;color:#fff;border:1px solid rgba(255,255,255,.12)}
.supportingCastChip{display:flex;flex-direction:column;justify-content:center;min-width:150px;padding:12px 14px;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(255,255,255,.035)}.supportingCastChip b{font-size:13px}.supportingCastChip small{font-size:10px;color:#958896;margin-top:4px}

/* v7 world-class rescue: unified sizing, library containment, premium creator, calmer product shell */
:root{
  --ctl-compact:34px;--ctl-standard:42px;--ctl-primary:46px;--ctl-hero:52px;
  --radius-sm:10px;--radius-md:14px;--radius-lg:20px;--radius-xl:26px;
  --content-max:1320px;
}
.primary,.premium,.secondary,.dangerBtn,.startBtn{min-height:var(--ctl-standard);padding:0 14px!important;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:var(--radius-sm)!important;font-size:12px!important;line-height:1!important}
.btnCompact{min-height:var(--ctl-compact)!important}.btnStandard{min-height:var(--ctl-standard)!important}.btnPrimary,.quickChatTop,#sendBtn{min-height:var(--ctl-primary)!important}.heroButtons .primary,.commercialStrip .large{min-height:var(--ctl-hero)!important}
.topActions .premium{min-height:38px!important;padding:0 12px!important;background:rgba(98,34,68,.34)!important;color:#efb6cd!important;box-shadow:none!important}.topActions #createBtnTop{min-height:40px!important}.quickChatTop{padding:0 17px!important;box-shadow:0 8px 24px rgba(238,77,139,.14)!important}.aiPill{padding:6px 9px!important;font-size:9px!important}.appTop{height:64px!important;grid-template-columns:auto minmax(40px,1fr) minmax(220px,360px) auto!important}.chatView{height:calc(100vh - 64px)!important}.memoryDrawer{top:64px!important}

/* Only one primary mood surface per viewport: sidebar on desktop, content rail on mobile. */
@media(min-width:861px){.homeMoodBar{display:none!important}}
@media(max-width:860px){.sideMood{display:none!important}.homeMoodBar{display:grid!important}}

/* Story library: hard image constraints, compact scanning, no intrinsic-size blowouts. */
.libraryGrid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))!important;gap:16px!important;align-items:start!important;max-width:var(--content-max)}
.libraryCard{display:flex!important;flex-direction:column!important;min-width:0!important;overflow:hidden!important;border:1px solid rgba(255,255,255,.085)!important;border-radius:18px!important;background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018))!important;box-shadow:0 18px 44px rgba(0,0,0,.12)!important}
.libraryVisual{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#141018}
.libraryCover{display:block;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 46%;filter:saturate(.92) contrast(1.04)}
.libraryVisual:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(8,6,11,.72));pointer-events:none}
.libraryAvatar{position:absolute;z-index:2;left:14px;bottom:12px;width:48px!important;height:48px!important;border-radius:50%!important;object-fit:cover!important;border:2px solid rgba(255,255,255,.8);box-shadow:0 6px 20px rgba(0,0,0,.45)}
.libraryBody{padding:15px 16px 16px!important;display:flex;flex-direction:column;min-height:250px}.libraryBody>small{font-size:10px!important;color:#a893a0;letter-spacing:.06em}.libraryBody h3{margin:4px 0 10px!important;font-size:20px!important}.libraryPreviously,.libraryThread{margin:0 0 9px!important;color:#b7aab4!important;font-size:12px!important;line-height:1.5!important;display:grid;gap:3px}.libraryPreviously b,.libraryThread b{font-size:9px;text-transform:uppercase;letter-spacing:.11em;color:#7e707a}.libraryThread{color:#e6c7d5!important}.libraryMeta{margin-top:auto;color:#766a74;font-size:10px;padding-top:7px}.libraryActions{display:flex;align-items:center;gap:8px;margin-top:11px}.libraryActions>.primary{flex:1}.storyMore{position:relative}.storyMore summary{list-style:none;display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(255,255,255,.1);border-radius:10px;background:rgba(255,255,255,.035);color:#c4b8c1;cursor:pointer}.storyMore summary::-webkit-details-marker{display:none}.storyMore>div{position:absolute;right:0;bottom:48px;z-index:30;width:150px;padding:6px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:#171119;box-shadow:0 18px 40px rgba(0,0,0,.38)}.storyMore button{width:100%;border:0;background:transparent;color:#d8cbd4;text-align:left;padding:9px 10px;border-radius:8px;font-size:11px}.storyMore button:hover{background:rgba(255,255,255,.055)}.libraryEmpty{grid-column:1/-1;min-height:170px;align-items:flex-start;justify-content:center;max-width:720px}

/* Returning hero remains cinematic without allowing the low-res source to become a wall poster. */
.returnHero{grid-template-columns:minmax(260px,380px) minmax(0,1fr)!important;min-height:0!important;max-width:1180px;padding:18px!important}.returnMedia{min-height:0!important;aspect-ratio:4/3;max-height:390px}.returnHero>div:last-child{padding:20px 18px!important}.returnHero h1{font-size:clamp(34px,4.4vw,58px)!important}.returnHero .primary{align-self:flex-start!important}

/* Chat: conversation first, restrained utility chrome. */
.chatHead{height:58px!important;padding:0 16px!important}.chatHeadActions button{min-height:34px!important;padding:0 10px!important;font-size:10px!important}.chatStage{height:calc(100% - 58px)!important;grid-template-columns:220px minmax(0,1fr)!important}.conversation{grid-template-rows:minmax(0,1fr) auto auto auto auto!important}.messages{padding:22px clamp(18px,5vw,72px) 14px!important}.message{max-width:min(760px,84%)!important}.bubble{font-size:15px!important;line-height:1.55!important;padding:11px 13px!important}.suggestions button{min-height:34px;padding:0 12px!important;font-size:10px!important}.composer{width:min(860px,calc(100% - 30px))!important;min-height:60px!important;padding:6px 7px!important}.composer textarea{min-height:46px!important}.composer #sendBtn{width:auto!important;min-width:72px!important;padding:0 15px!important;border-radius:11px!important}.chatError{width:min(860px,calc(100% - 30px));margin:0 auto 9px!important}.chatError button{min-height:38px!important}

/* Creator: consumer creation tool, not a browser-native admin form. */
#creatorModal .modal{width:min(980px,calc(100vw - 30px))!important;max-height:min(900px,94vh);overflow:auto;padding:28px!important;border-radius:26px!important}
.creatorTabs{padding:4px!important;border-radius:14px!important;background:#0c0910!important}.creatorTabs button{min-height:44px!important;border-radius:11px!important;color:#988995!important}.creatorTabs button.active{background:linear-gradient(135deg,rgba(191,49,111,.25),rgba(102,42,91,.24))!important;color:#ffd6e6!important;box-shadow:inset 0 0 0 1px rgba(255,121,178,.18)!important}
.creatorMiniGrid,.formGrid{gap:18px!important}.creatorMiniGrid label,.formGrid label,.creatorLabel,.chipGroup>label{font-size:13px!important;font-weight:700!important;color:#cabcc6!important;letter-spacing:.01em}.creatorMiniGrid input,.creatorMiniGrid select,.formGrid input,.formGrid select{appearance:none!important;-webkit-appearance:none!important;min-height:48px!important;border-radius:12px!important;border:1px solid rgba(255,255,255,.1)!important;background-color:#151019!important;color:#f6edf3!important;font-size:15px!important;padding:0 14px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)!important}.creatorMiniGrid select,.formGrid select{padding-right:38px!important;background-image:linear-gradient(45deg,transparent 50%,#ad99a7 50%),linear-gradient(135deg,#ad99a7 50%,transparent 50%)!important;background-position:calc(100% - 18px) 21px,calc(100% - 13px) 21px!important;background-size:5px 5px,5px 5px!important;background-repeat:no-repeat!important}.creatorMiniGrid input:focus,.creatorMiniGrid select:focus,.formGrid input:focus,.formGrid select:focus{outline:2px solid rgba(238,77,139,.42)!important;outline-offset:1px;border-color:rgba(238,77,139,.45)!important}.choiceChip{min-height:38px!important;padding:0 13px!important;border-radius:999px!important;background:#151019!important;border:1px solid rgba(255,255,255,.09)!important}.choiceChip.active{background:linear-gradient(135deg,#d53a7e,#a83f91)!important;border-color:transparent!important}.avatarOption{border-radius:16px!important;overflow:hidden}.avatarOption img{height:128px!important;object-fit:cover!important}.modal h2{letter-spacing:-.02em}.modal .lead{color:#aa9ba7!important}

/* World/character detail uses imagery as support, never as a giant lightbox. */
.worldDetailHero{grid-template-columns:220px 1fr!important;max-width:900px!important;margin:auto!important}.worldDetailHero>img{height:250px!important;max-width:220px!important}.characterHero{display:grid!important;grid-template-columns:minmax(180px,260px) 1fr!important;gap:24px!important}.characterHero>img{width:100%!important;height:330px!important;object-fit:cover!important;border-radius:18px!important}.modalBackdrop .modal{max-width:920px}

/* Lower dashboard feel. */
.sideNav{background:linear-gradient(180deg,rgba(9,7,12,.97),rgba(12,8,14,.96))!important}.sideNav nav button{min-height:40px!important}.contentSection{padding:30px 0!important}.viewPad{max-width:var(--content-max);margin:auto}.appMain{overflow-x:hidden}

@media(max-width:1100px){.appTop{grid-template-columns:auto 1fr minmax(200px,300px) auto!important}.topActions .aiPill{display:none}.chatStage{grid-template-columns:190px minmax(0,1fr)!important}}
@media(max-width:860px){
  .appTop{height:58px!important;grid-template-columns:auto 1fr auto!important;padding:0 10px!important}.appSearch{display:none!important}.topActions .premium{display:none!important}.topActions #createBtnTop{display:none!important}.chatView{height:calc(100dvh - 58px - 58px)!important}.chatHead{height:54px!important;grid-template-columns:auto 1fr auto!important}.chatHead .backBtn{font-size:0}.chatHead .backBtn:after{content:'←';font-size:20px}.chatStage{height:calc(100% - 54px)!important;display:block!important}.chatSide{display:none!important}.messages{padding:18px 12px 10px!important}.message{max-width:92%!important}.suggestions{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding:0 10px 8px!important}.suggestions button{white-space:nowrap;flex:0 0 auto}.composer{width:calc(100% - 16px)!important;min-height:56px!important}.composer #sendBtn{min-width:54px!important}.composer #sendBtn span{display:none!important}.chatError{width:calc(100% - 16px)!important}.libraryGrid{grid-template-columns:1fr!important;gap:11px!important}.libraryCard{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important}.libraryVisual{height:100%;aspect-ratio:auto!important;min-height:154px}.libraryAvatar{width:38px!important;height:38px!important;left:8px;bottom:8px}.libraryBody{min-height:0;padding:12px!important}.libraryBody h3{font-size:17px!important;margin-bottom:7px!important}.libraryPreviously{font-size:11px!important}.libraryThread{display:none!important}.libraryMeta{font-size:9px!important}.libraryActions{margin-top:8px}.libraryActions .primary{min-height:36px!important}.storyMore summary{width:36px;height:36px}.returnHero{grid-template-columns:1fr!important}.returnMedia{aspect-ratio:16/9;max-height:260px}.returnHero h1{font-size:34px!important}.worldDetailHero{grid-template-columns:1fr!important;max-width:none!important}.worldDetailHero>img{max-width:none!important;width:100%!important;height:190px!important}.characterHero{grid-template-columns:120px 1fr!important;gap:16px!important}.characterHero>img{height:160px!important}.creatorMiniGrid,.formGrid{grid-template-columns:1fr!important}.avatarOption img{height:112px!important}#creatorModal .modal{padding:20px 16px!important;width:calc(100vw - 18px)!important}.creatorTabs{position:sticky;top:-20px;z-index:4}}
@media(max-width:420px){.libraryCard{grid-template-columns:96px minmax(0,1fr)!important}.libraryVisual{min-height:142px}.libraryPreviously{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.libraryBody>small{font-size:9px!important}.topActions .quickChatTop{min-height:38px!important;padding:0 11px!important}.mobileBrand{font-size:12px!important}.characterHero{grid-template-columns:96px 1fr!important}.characterHero>img{height:138px!important}}

/* v7.1 rescue refinements: premium scenario choices + global search */
.srOnlySelect{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.scenarioChoiceGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px}
.scenarioChoice{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:12px;min-height:78px;padding:8px;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:#151019;color:#f6edf3;text-align:left;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.scenarioChoice:hover{border-color:rgba(238,77,139,.32);background:#1a121c;transform:translateY(-1px)}
.scenarioChoice.active{border-color:rgba(238,77,139,.72);background:linear-gradient(135deg,rgba(213,58,126,.18),rgba(168,63,145,.12));box-shadow:0 0 0 1px rgba(238,77,139,.14) inset}
.scenarioChoice img{width:76px;height:60px;object-fit:cover;border-radius:10px;display:block}
.scenarioChoice.characterChoice{grid-template-columns:58px minmax(0,1fr)}
.scenarioChoice.characterChoice img{width:58px;height:58px;border-radius:50%;object-fit:cover}
.scenarioChoice span{display:grid;gap:4px}.scenarioChoice b{font-size:13px}.scenarioChoice small{font-size:10px;line-height:1.35;color:#998b96;letter-spacing:.035em}
.searchGroup{grid-column:1/-1;display:grid;gap:12px;margin:4px 0 20px}.searchGroup>h2{font-size:17px;margin:0;color:#e9dde5}.searchSummary{grid-column:1/-1;color:#9d8d98;font-size:12px;margin-bottom:6px}.searchStoryList{display:grid;gap:8px}.searchStory{width:100%;display:grid;grid-template-columns:minmax(150px,260px) minmax(0,1fr);align-items:center;gap:16px;padding:12px 14px;border-radius:13px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025);color:#eee3ea;text-align:left}.searchStory:hover{background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.14)}.searchStory span{display:grid;gap:2px}.searchStory small{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:#806f7b}.searchStory b{font-size:14px}.searchStory em{font-style:normal;font-size:11px;color:#aa9ba6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:640px){.scenarioChoiceGrid{grid-template-columns:1fr}.searchStory{grid-template-columns:1fr;gap:5px}.searchStory em{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}
/* Keep runtime status honest without turning discovery into a developer dashboard. */
.aiPill:not(.problem){display:none!important}

/* v7.1 mobile immersion + input resilience */
@media(max-width:860px){
  body.inChat .appTop{display:none!important}
  body.inChat .chatView{height:calc(100dvh - 58px)!important}
  body.inChat .memoryDrawer{top:0!important;bottom:58px!important}
  .composer{min-height:60px!important;padding:5px 6px!important;align-items:center!important}
  .composer textarea{min-height:48px!important;max-height:96px!important;padding:12px 13px!important;line-height:1.4!important}
  .composer #sendBtn{min-height:48px!important;height:48px!important}
  .ageGate small{font-size:9px!important;line-height:1.45!important}
}

@media(max-width:860px){body.inChat .composerNote{display:none!important}body.inChat .conversation{grid-template-rows:minmax(0,1fr) auto auto auto!important}}

/* v8.1 live-regression rescue: stable premium header, no infrastructure chrome. */
@media(min-width:861px){
  .appTop{display:flex!important;height:64px!important;padding:0 22px!important;gap:12px!important;align-items:center!important}
  .appTop>.mobileBrand{display:none!important}
  .appTop>div:empty{display:none!important}
  .appSearch{flex:1 1 auto!important;min-width:180px!important;max-width:none!important;height:42px!important}
  .topActions{flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:8px!important;height:42px!important}
  .topActions>button{box-sizing:border-box!important;height:42px!important;min-height:42px!important;max-height:42px!important;margin:0!important;padding:0 15px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;line-height:1!important;border-radius:11px!important;font-size:11px!important;white-space:nowrap!important}
  .topActions .quickChatTop{min-width:92px!important;padding:0 17px!important}
  .topActions .createTop{min-width:88px!important;background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.11)!important;color:#e7dce4!important}
  .topActions .createTop>span:first-child{font-size:15px!important;line-height:1!important;transform:translateY(-.5px)}
  .topActions .plusTop{min-width:62px!important;padding:0 13px!important;background:rgba(98,34,68,.30)!important;box-shadow:none!important}
}

/* Status is internal state only; never reserve customer-facing header space. */
.aiPill{display:none!important}

/* Failure UI is a story state, not an infrastructure console. */
.chatError{border-color:rgba(230,77,139,.32)!important;background:linear-gradient(135deg,rgba(80,20,45,.22),rgba(35,15,29,.18))!important}
.chatError b{color:#f1dce6!important}
.chatError span{color:#b9aab3!important}

/* Initial chat should breathe without looking like an empty admin canvas. */
@media(min-width:861px) and (min-height:700px){
  .messages{padding-top:28px!important}
  .conversation:has(.messages .message:nth-child(1):last-child) .suggestions{padding-top:8px!important}
}

@media(max-width:860px){
  .appTop{display:grid!important}
  .topActions{height:auto!important}
}


/* v8.2 zero-excuse rescue: returning home, story threads, chat stage, typography contracts */
:root{--font-ui:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--font-display:Georgia,"Times New Roman",serif}
.chatTitle b,.chatPerson b,.messageMeta b,.homeStoryCopy b,.libraryBody h3,.worldPeople span{font-family:var(--font-ui)!important;font-style:normal!important}
.returnHero{position:relative;display:grid!important;grid-template-columns:minmax(270px,360px) minmax(0,1fr)!important;gap:0!important;max-width:1120px!important;margin:30px auto 8px!important;padding:0!important;min-height:430px!important;border-radius:26px!important;overflow:hidden!important;background:linear-gradient(135deg,#120e15,#0d0a11)!important;box-shadow:0 34px 90px rgba(0,0,0,.32)!important}
.returnMedia{position:relative!important;aspect-ratio:auto!important;max-height:none!important;min-height:430px!important;overflow:hidden!important;background:#171018!important}
.returnMedia>img{display:block!important;width:100%!important;height:100%!important;min-height:430px!important;object-fit:cover!important;object-position:center 24%!important;filter:saturate(.94) contrast(1.04)!important}
.returnMedia:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 55%,#110d14 100%),linear-gradient(180deg,transparent 58%,rgba(9,7,12,.75));pointer-events:none}
.returnWorld{position:absolute;z-index:2;left:18px;bottom:17px;padding:7px 10px;border:1px solid rgba(255,255,255,.13);border-radius:999px;background:rgba(10,8,13,.65);backdrop-filter:blur(10px);font-size:9px;font-weight:800;letter-spacing:.08em;color:#f2dce6;text-transform:uppercase}
.returnCopy{padding:42px 44px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0}
.returnCopy h1{font-family:var(--font-display)!important;font-size:clamp(36px,4vw,58px)!important;line-height:1.02!important;font-weight:500!important;letter-spacing:-.04em!important;margin:10px 0 25px!important}.returnCopy h1 em{font-size:.55em;color:#a98f9f;font-weight:400}
.storyThread{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin-bottom:24px}.storyThread>div{min-width:0}.storyThread small{display:block;color:#866f7e!important;font-size:8px!important;letter-spacing:.14em;font-weight:800;margin-bottom:6px}.storyThread p{margin:0!important;color:#b9abb4!important;font-size:13px!important;line-height:1.55!important;max-width:none!important}.storyThread .unresolved{color:#f0d4df!important}.storyThread .nextBeat{grid-column:1/-1;padding-top:14px;border-top:1px solid rgba(255,255,255,.07)}.storyThread .nextBeat p{color:#e889ae!important}.returnContinue{align-self:flex-start!important;min-height:46px!important}
.continueGrid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}.homeStoryCard{display:grid!important;grid-template-columns:78px minmax(0,1fr)!important;gap:12px!important;min-height:150px!important;padding:10px!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:16px!important;background:linear-gradient(180deg,rgba(255,255,255,.032),rgba(255,255,255,.018))!important;overflow:hidden!important}.homeStoryCard>img{width:78px!important;height:100%!important;min-height:130px!important;object-fit:cover!important;border-radius:11px!important}.homeStoryCopy{display:flex;flex-direction:column;min-width:0;padding:3px 2px}.homeStoryCopy small{font-size:8px;color:#9a7f8e;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.homeStoryCopy b{font-size:14px;margin:3px 0 6px}.homeStoryCopy p{font-size:10px;line-height:1.45;color:#a89aa5;margin:0 0 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.homeStoryCopy>span{font-size:9px;line-height:1.4;color:#e0b8c9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.textContinue{margin-top:auto;align-self:flex-start;border:0;background:transparent;color:#f481ae;padding:7px 0 0;font-size:10px;font-weight:800}
.chatStage{grid-template-columns:205px minmax(0,1fr)!important}.chatSide{padding:15px!important}.chatThread{position:relative;z-index:2;margin:10px 0 0;padding:11px;border-top:1px solid rgba(255,255,255,.07)}.chatThread small,.chatThread b{display:block}.chatThread small{font-size:7px;letter-spacing:.13em;color:#7d6b76;margin-bottom:4px}.chatThread b{font-family:var(--font-ui);font-size:10px;line-height:1.45;color:#d9b9c8;font-weight:650}.conversation{display:flex!important;flex-direction:column!important;height:100%!important;overflow:hidden!important}.messages{width:min(940px,100%);margin:0 auto!important;padding:24px 34px 10px!important;flex:1 1 auto!important;overflow:auto!important;min-height:0!important}.message{max-width:min(720px,78%)!important}.message.mine{margin-left:auto!important}.typing,.suggestions,.chatError,.composer{flex:0 0 auto!important}.suggestions{width:min(940px,100%);margin:0 auto;padding:4px 34px 10px!important;justify-content:flex-start!important}.typing{width:min(872px,calc(100% - 68px))!important}.composer{width:min(872px,calc(100% - 68px))!important}.chatError{width:min(872px,calc(100% - 68px))!important}.composerNote{flex:0 0 auto}
@media(min-width:861px){.messages:has(.message:nth-child(-n+2)){display:flex!important;flex-direction:column!important;justify-content:flex-start!important;padding-top:32px!important}.messages:has(.message:nth-child(-n+2)) .message:last-child{margin-top:10px}.conversation .suggestions{margin-top:4px}}
@media(max-width:1150px){.continueGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.returnCopy{padding:32px 30px!important}.storyThread{grid-template-columns:1fr!important}.storyThread .nextBeat{grid-column:auto}}
@media(max-width:860px){.returnHero{grid-template-columns:1fr!important;min-height:0!important;margin:14px 0 6px!important}.returnMedia{min-height:250px!important;max-height:320px!important}.returnMedia>img{min-height:250px!important;height:100%!important;object-position:center 20%!important}.returnCopy{padding:24px 20px!important}.returnCopy h1{font-size:34px!important}.continueGrid{grid-template-columns:1fr!important}.homeStoryCard{grid-template-columns:92px minmax(0,1fr)!important}.messages{width:100%!important;padding:16px 12px 8px!important}.suggestions{width:100%!important;padding:2px 10px 8px!important}.composer,.chatError{width:calc(100% - 16px)!important}.typing{width:calc(100% - 24px)!important}.message{max-width:90%!important}}

/* v9 chemistry control: compact, story-first, never dashboard-heavy */
.chemistryControl{border-top:1px solid var(--line);padding-top:14px;margin-top:2px;display:grid;gap:8px}
.chemistryControl>small{font:700 9px/1 var(--font-ui);letter-spacing:.18em;color:var(--soft)}
.chemistryChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.chemistryChoices button{min-height:34px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.025);color:var(--muted);font:650 11px/1.1 var(--font-ui);padding:8px 6px;cursor:pointer;transition:border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease}
.chemistryChoices button:hover{border-color:rgba(238,77,139,.42);color:var(--text)}
.chemistryChoices button:focus-visible{outline:2px solid var(--rose);outline-offset:2px}
.chemistryChoices button.active{background:linear-gradient(180deg,rgba(238,77,139,.18),rgba(181,42,102,.12));border-color:rgba(238,77,139,.62);color:#fff}
#chemistryHint{font:500 11px/1.45 var(--font-ui);color:var(--soft)}
@media(max-width:860px){.chemistryControl{display:none}}

/* v9 visual fidelity: allow real masters to do the work without blur masks */
.worldDetailHero>img,.characterHero>img,.returnMedia>img{image-rendering:auto;filter:none}
.worldCover img,.portrait img,.libraryCover,.homeStoryCard>img{image-rendering:auto}

/* v9 mobile chemistry: one compact cycling control in the chat header */
#chemistryBtnMobile{display:none}
@media(max-width:860px){#chemistryBtnMobile{display:inline-flex!important;align-items:center;justify-content:center;min-height:34px;padding:0 10px;border-radius:10px;border:1px solid rgba(238,77,139,.34);background:rgba(181,42,102,.14);color:#f3c8d9;font:700 10px/1 var(--font-ui);white-space:nowrap}.chatHeadActions{gap:6px!important}}


/* v9.1 release contracts: keep premium surfaces crisp and regression-resistant. */
:root{--story-copy-max:720px}
.worldCover{aspect-ratio:4/5;height:auto!important;min-height:0!important}.worldCover img{object-position:center center}
.worldCard{contain:layout paint}.worldBody h3{line-height:1.12}.worldBody>p{min-height:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.returnMedia>img{object-position:center 20%!important}
.messages .bubble{max-width:var(--story-copy-max)}
.message.mine .bubble{max-width:560px}
@media(min-width:861px){.conversation{padding-bottom:2px}.suggestions{min-height:44px;align-items:center}.composer{margin-bottom:2px!important}}
@media(min-width:1200px){.worldDetailHero{grid-template-columns:300px minmax(0,1fr)!important;max-width:940px!important}.worldDetailHero>img{max-width:300px!important;height:360px!important}.characterHero>img{max-height:390px!important;object-position:center 18%!important}}
@media(max-width:860px){.worldCover{aspect-ratio:4/5}.returnMedia>img{object-position:center 18%!important}}

/* v9.2 world-class pass: quality-first image placement + chat rhythm */
.heroMedia>img{object-position:center 18%!important;filter:saturate(.97) contrast(1.03)!important}
.worldCover{aspect-ratio:4/4.7!important;height:auto!important;background:#151117!important}
.worldCover img{object-position:center 42%!important}
.returnMedia>img{object-position:center 16%!important}
.messages{scrollbar-gutter:stable}
.message .bubble{font-size:15px!important;line-height:1.58!important}
.suggestions button{font-size:11px!important;min-height:36px!important}
@media(min-width:1500px){.conversation{max-width:1180px;margin:0 auto;width:100%}.messages,.suggestions{width:min(980px,100%)!important}.composer,.chatError{width:min(912px,calc(100% - 68px))!important}}
@media(max-width:860px){.heroMedia{height:345px!important}.heroMedia>img{object-position:center 16%!important}.worldCover{aspect-ratio:4/5!important}.message .bubble{font-size:15px!important;line-height:1.52!important}}

/* v9.4 recovery: separate canonical catalogue from user-created identities. */
.characterSection{grid-column:1/-1}.characterSection+.characterSection{margin-top:28px}.characterSectionTitle{margin:0 0 12px;color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.14em}.sectionGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}@media(max-width:900px){.sectionGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.sectionGrid{grid-template-columns:1fr}}

/* v9.4.1 world-class finish: visible character focal points, tactile chemistry, mobile ergonomics */
.characterCard .portrait img{object-position:center top!important}
.characterCard[data-quick-card-char="sofia"] .portrait img{object-position:center 0%!important}
.characterCard[data-quick-card-char="elena"] .portrait img{object-position:center 2%!important}
.characterCard[data-quick-card-char="lena"] .portrait img{object-position:center 3%!important}
.characterCard[data-quick-card-char="selene"] .portrait img{object-position:center 2%!important}
.characterCard[data-quick-card-char="aria"] .portrait img{object-position:center 2%!important}

.chemistryChoices{position:relative;z-index:4}
.chemistryChoices button{min-height:44px!important;border-color:rgba(255,255,255,.14)!important;background:rgba(255,255,255,.04)!important;color:#b9abb5!important;font-size:11px!important;font-weight:750!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.chemistryChoices button:hover{border-color:rgba(244,91,153,.58)!important;background:rgba(238,77,139,.09)!important;color:#fff!important;transform:translateY(-1px)}
.chemistryChoices button:active{transform:translateY(0) scale(.985)}
.chemistryChoices button.active,.chemistryChoices button[aria-pressed="true"]{background:linear-gradient(135deg,rgba(238,77,139,.30),rgba(154,54,137,.23))!important;border-color:#e75293!important;color:#fff!important;box-shadow:0 7px 22px rgba(207,48,119,.18),inset 0 1px 0 rgba(255,255,255,.11)}
#chemistryHint{min-height:32px;color:#aa9aa5!important}

/* World focal points are tuned per approved v9.4.1 master. */
.worldCard [src*="penthouse"],.worldDetailHero>[src*="penthouse"]{object-position:center 42%!important}
.worldCard [src*="mykonos"],.worldDetailHero>[src*="mykonos"]{object-position:center 48%!important}
.worldCard [src*="neon"],.worldDetailHero>[src*="neon"]{object-position:center 46%!important}
.worldCard [src*="neighbor"],.worldDetailHero>[src*="neighbor"]{object-position:center 44%!important}
.worldCard [src*="masquerade"],.worldDetailHero>[src*="masquerade"]{object-position:center 43%!important}

@media(max-width:860px){
  #chemistryBtnMobile{min-height:44px!important;min-width:92px!important;padding:0 12px!important;font-size:11px!important;border-color:rgba(238,77,139,.55)!important;background:linear-gradient(135deg,rgba(211,51,122,.22),rgba(123,56,135,.16))!important;color:#fff!important}
  .chatHead{min-height:64px!important;height:64px!important}
  .chatStage{height:calc(100% - 64px)!important}
  .chatHeadActions button,#memoryBtn,#newStory,.backBtn{min-height:44px!important;min-width:44px}
  .suggestions button{min-height:44px!important;padding:10px 14px!important;font-size:12px!important}
  .composer{min-height:58px!important;padding:6px!important;border-radius:16px!important}
  .composer textarea{min-height:44px!important;font-size:16px!important;padding:11px 12px!important}
  .composer #sendBtn{min-width:64px!important;min-height:46px!important}
  .mobileNav button{min-height:48px!important;padding:7px 2px!important}
  .mobileNav button span{font-size:9px!important;margin-top:3px!important}
  .cardStart,.cardDetails{min-height:44px!important}
  .favIcon,.characterCard>.heart{width:44px!important;height:44px!important;right:8px!important;top:8px!important;font-size:17px!important}
  .worldCharacterRow button,.scenarioChoice{min-height:56px!important}
  .modalClose{min-width:44px!important;min-height:44px!important}
  .creatorTabs button,.choiceChip{min-height:44px!important}
  .primary,.secondary,.premium{min-height:46px}
  .characterCard{min-width:min(76vw,310px)!important}
  .portrait{height:auto!important;aspect-ratio:1/1!important}
}
@media(max-width:480px){
  .topActions .premium{display:none}
  .chatHead{padding:0 7px!important;gap:5px!important}
  .backBtn{padding:0 8px!important;font-size:11px!important}
  #memoryBtn{display:none!important}
  #chemistryBtnMobile{min-width:86px!important;padding:0 9px!important}
  .message{max-width:94%!important}
  .worldCard{min-width:88vw!important}
}

/* v9.4.1 final mobile character catalogue: portrait-first, one-thumb cards */
@media(max-width:860px){
  .characterRail,.characterGrid{gap:12px!important;scroll-padding-inline:2px}
  .characterCard{min-width:min(68vw,280px)!important;scroll-snap-align:start}
  .characterCard .portrait{aspect-ratio:4/5!important;height:auto!important}
  .characterCard .portrait img{object-position:center top!important}
  .charMeta{padding:12px!important}
  .charMeta b{font-size:15px!important;margin:4px 0 5px!important}
  .charMeta small{font-size:9px!important}
  .charHook{font-size:11px!important;line-height:1.45!important;min-height:32px!important}
  .characterCard .cardActions{gap:7px!important;margin-top:11px!important}
  .characterCard .cardActions button{min-height:44px!important;font-size:11px!important}
}
@media(max-width:430px){.characterCard{min-width:76vw!important}}

/* v9.4.3 visual runtime repair: desktop casting cards need editorial portrait framing, not landscape face crops. */
@media(min-width:861px){
  #charactersView .characterGrid.sectionGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
  #charactersView .characterGrid.sectionGrid .portrait{height:auto!important;aspect-ratio:4/5!important;background:#151117}
  #charactersView .characterGrid.sectionGrid .portrait img{width:100%;height:100%;object-fit:cover!important}
  #charactersView .characterGrid.sectionGrid .characterCard[data-quick-card-char="sofia"] .portrait img{object-position:50% 0%!important}
  #charactersView .characterGrid.sectionGrid .characterCard[data-quick-card-char="elena"] .portrait img{object-position:50% 0%!important}
  #charactersView .characterGrid.sectionGrid .characterCard[data-quick-card-char="lena"] .portrait img{object-position:50% 0%!important}
  #charactersView .characterGrid.sectionGrid .characterCard[data-quick-card-char="selene"] .portrait img{object-position:50% 0%!important}
  #charactersView .characterGrid.sectionGrid .characterCard[data-quick-card-char="aria"] .portrait img{object-position:50% 0%!important}
}
@media(max-width:860px){
  #charactersView .characterGrid.sectionGrid .portrait{height:auto!important;aspect-ratio:4/5!important}
  #charactersView .characterGrid.sectionGrid .characterCard[data-quick-card-char="sofia"] .portrait img{object-position:50% 0%!important}
  #charactersView .characterGrid.sectionGrid .characterCard[data-quick-card-char="elena"] .portrait img{object-position:50% 0%!important}
  #charactersView .characterGrid.sectionGrid .characterCard[data-quick-card-char="lena"] .portrait img{object-position:50% 0%!important}
  #charactersView .characterGrid.sectionGrid .characterCard[data-quick-card-char="selene"] .portrait img{object-position:50% 0%!important}
  #charactersView .characterGrid.sectionGrid .characterCard[data-quick-card-char="aria"] .portrait img{object-position:50% 0%!important}
}
