:root{color-scheme:dark;--bg:#101014;--panel:#1a1a21;--muted:#90909f;--line:#2a2a34;--pink:#ff548b;--text:#f4f1f6;--nav-height:78px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible{outline:2px solid var(--pink);outline-offset:4px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.header{height:86px;border-bottom:1px solid #ffffff08;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1180px)/2));background:#101014ee;backdrop-filter:blur(20px);position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:11px}.brand-mark{font-size:38px;font-weight:900;color:var(--pink);letter-spacing:-7px;width:43px;transform:skew(-8deg)}.brand-mark span{color:#ff9abb;font-size:32px}.brand-name{font-size:21px;font-weight:750;letter-spacing:1px}.brand-name small{display:block;font-size:7px;letter-spacing:1.8px;color:#777784;margin-top:3px}.header-actions{display:flex;align-items:center;gap:16px}.beta{font-size:11px;color:#b9a8bf;border:1px solid #443040;padding:5px 9px;border-radius:5px}.outline-button{border:1px solid var(--line);background:transparent;border-radius:100px;padding:9px 20px;font-size:13px}.outline-button:hover{border-color:#ff548b70;background:#ff548b08}.primary-button{border:0;background:linear-gradient(105deg,#ff4e86,#dd507f);color:white;border-radius:10px;padding:14px 22px;font-weight:650;box-shadow:0 7px 24px #ff548b18}.main{max-width:1180px;margin:auto;padding:0 24px 115px;min-height:calc(100vh - 86px)}.hero{display:flex;align-items:center;justify-content:space-between;min-height:230px;padding:30px 22px 24px 0;overflow:hidden}.eyebrow{color:#9c8396;font-size:9px;letter-spacing:2.4px}.hero h1{font-size:35px;line-height:1.55;letter-spacing:2px;margin:13px 0 8px;font-weight:650}.hero h1 span{color:var(--pink)}.hero p{font-size:13px;color:var(--muted);letter-spacing:.6px}.hero-art{height:180px;width:260px;position:relative;flex-shrink:0}.orbit{position:absolute;border:1px solid #ff548b35;width:230px;height:110px;border-radius:50%;top:35px;left:0;transform:rotate(-30deg)}.orbit.two{transform:rotate(35deg);border-color:#976bf535}.spark{position:absolute;font-size:100px;top:-2px;left:55px;color:#ff7ca6;text-shadow:0 0 75px #ff548b55}.tiny-star{position:absolute;left:215px;top:8px;font-size:24px;color:#c99bff}.hero-note{position:absolute;right:0;bottom:6px;color:#7d687c;font:italic 16px Georgia;line-height:1.3;transform:rotate(-8deg)}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 19px}.section-title{display:flex;align-items:center;gap:14px}.section-title h2{font-size:20px;margin:0;font-weight:650;letter-spacing:1px}.section-title>span{color:#727080;font-size:10px;letter-spacing:1px}.search-box{display:flex;gap:10px;align-items:center;width:300px;background:#1b1b23;border:1px solid #ffffff06;border-radius:10px;padding:11px 14px;color:#777583}.search-box svg{width:17px;height:17px}.search-box input{width:100%;border:0;outline:0;background:none;color:#eee;font-size:12px;min-width:0}.search-box input::placeholder{color:#666674}.filters{display:flex;gap:10px;overflow:auto;scrollbar-width:none;margin-bottom:18px}.filters button{border:1px solid transparent;border-radius:7px;background:#1b1b23;color:#9e9aa9;font-size:12px;padding:8px 21px;white-space:nowrap}.filters button.active{color:#ff7ba7;border-color:#ff548b40;background:#ff548b12}.notice{display:flex;gap:8px;align-items:flex-start;color:#a19aaf;font-size:11px;line-height:1.6;padding:11px 13px;background:#19171f;border:1px solid #ffffff04;border-radius:8px;margin-bottom:20px}.status-light{display:block;width:5px;height:5px;background:#ffaf67;box-shadow:0 0 8px #ffaf6740;border-radius:50%;margin-top:6px;flex-shrink:0}.character-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 18px}.character-card{background:#1b1b23;border-radius:13px;overflow:hidden;transition:transform .2s,box-shadow .2s;position:relative;min-width:0;cursor:pointer;border:1px solid #ffffff04}.character-card:hover{transform:translateY(-4px);box-shadow:0 10px 32px #0005}.cover{position:relative;aspect-ratio:3/3.6;overflow:hidden;background:linear-gradient(140deg,#41324b,#24233c)}.cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}.character-card:hover .cover img{transform:scale(1.04)}.cover:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#111017aa)}.card-badge{position:absolute;top:11px;left:10px;font-size:9px;background:#17111e70;border:1px solid #ffffff20;padding:4px 6px;border-radius:4px;backdrop-filter:blur(8px);z-index:1;color:#eee0f4}.card-metric{position:absolute;bottom:10px;left:11px;font-size:11px;color:#fff;z-index:1;display:flex;align-items:center;gap:5px}.card-metric svg{width:13px;height:13px}.cover-star{font-size:62px;position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);color:#dca2df99}.card-body{padding:13px 12px 11px}.card-body h3{font-size:15px;line-height:1.6;margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-body p{color:#9892a2;font-size:11px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:35px;margin:0 0 12px}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:4px}.creator{font-size:9px;color:#8e849b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-favorite{display:flex;align-items:center;justify-content:center;width:27px;height:27px;padding:0;border:0;background:transparent;color:#837b90;flex-shrink:0}.card-favorite svg{width:17px;height:17px}.card-favorite.liked{color:var(--pink)}.card-favorite.liked svg{fill:#ff548b25}.bottom-nav{position:fixed;z-index:20;bottom:17px;left:50%;transform:translateX(-50%);width:430px;display:flex;justify-content:space-around;align-items:center;height:69px;background:#19191fee;backdrop-filter:blur(20px);border:1px solid #ffffff0a;border-radius:19px;box-shadow:0 10px 40px #0005}.bottom-nav button{background:none;border:0;display:flex;flex-direction:column;align-items:center;gap:5px;padding:6px 14px;min-width:60px;color:#86818f;font-size:10px}.bottom-nav button.active{color:var(--pink)}.bottom-nav svg{width:22px;height:22px}.bottom-nav .import-nav{color:#f9edf3;gap:3px}.import-nav>span{background:linear-gradient(130deg,#ff538a,#c9538c);border-radius:12px;padding:7px;display:flex;margin-top:-17px;box-shadow:0 4px 15px #ff548b40}.import-nav small{font-size:9px}.page-footer{text-align:center;color:#615b6d;font-size:11px;line-height:2;margin-top:45px}.page-footer small{font-size:10px}.text-button{border:0;background:none;color:#bd8fa6;font-size:12px;padding:10px;display:block;margin:0 auto}.page-footer .text-button{font-size:10px;color:#777080}.more{display:block;margin:25px auto}.empty{text-align:center;color:#8c8297;padding:60px 10px}.empty>span{font-size:48px;color:#bd83a2}.empty h3{font-weight:500;color:#c6bbc9;font-size:17px}.empty p{font-size:12px}dialog{padding:0;border:1px solid #ffffff12;border-radius:20px;background:#1b1922;color:var(--text);max-height:90dvh;width:min(430px,calc(100% - 28px));box-shadow:0 20px 90px #000b}dialog::backdrop{background:#000a;backdrop-filter:blur(7px)}.dialog-close{position:absolute;right:13px;top:13px;border:1px solid #ffffff25;border-radius:50%;width:32px;height:32px;background:#17111aaa;display:flex;align-items:center;justify-content:center;z-index:2}.dialog-close svg{width:17px;height:17px}.detail-cover{width:100%;height:265px;object-fit:cover;display:block}.detail-copy{padding:22px}.detail-copy h2{font-size:23px;margin:0 0 10px}.detail-copy>p{font-size:13px;color:#b5aabc;line-height:1.9;white-space:pre-wrap}.tags{display:flex;gap:7px;flex-wrap:wrap;margin:13px 0}.tags span{font-size:10px;padding:5px 8px;background:#ff548b12;color:#dca0b8;border-radius:5px}.greeting{font-size:12px;line-height:1.8;border-left:2px solid #a76c99;color:#b9a5bd;padding:8px 14px;margin-top:17px;background:#ffffff03}.detail-actions{position:sticky;bottom:0;padding:13px 20px 17px;background:#1b1922;display:flex;gap:12px;border-top:1px solid #ffffff08}.detail-actions .primary-button{flex:1}.detail-actions .outline-button{border-radius:10px}.auth-dialog{padding:33px 26px;text-align:center}.auth-emblem{font-size:45px;color:var(--pink)}.auth-dialog h2{font-size:22px;margin:12px 0}.auth-dialog>p{color:#928497;font-size:12px;margin-bottom:26px}.auth-dialog form{text-align:left}.auth-dialog label{font-size:11px;color:#b6a7bf;display:block;margin-top:16px}.auth-dialog input:not([type=checkbox]){display:block;width:100%;border:1px solid #3b3042;border-radius:9px;background:#15131a;color:#eee;padding:13px;margin-top:8px;outline:none;font-size:13px}.auth-dialog input:focus{border-color:#bb5480}.auth-dialog .primary-button{width:100%;margin-top:12px}.auth-dialog .checkbox-label{display:flex;align-items:flex-start;gap:7px;font-size:10px;line-height:1.8}.checkbox-label input{accent-color:var(--pink)}.error{font-size:12px;color:#ff92b1;min-height:15px;margin:10px 0 0}.terms-dialog{padding:28px}.terms-dialog h2{font-size:21px}.terms-dialog p{font-size:12px;color:#b0a1b8;line-height:1.9}.toast{position:fixed;z-index:100;left:50%;bottom:110px;transform:translateX(-50%);padding:13px 20px;background:#f5ecf5;color:#372638;font-size:12px;border-radius:12px;box-shadow:0 8px 35px #0007;max-width:85%;width:max-content}.conversation-list{display:grid;gap:12px}.conversation-row{display:flex;align-items:center;gap:14px;background:#1b1922;border:1px solid #ffffff05;border-radius:12px;padding:14px;text-align:left;width:100%}.conversation-row img{width:49px;height:57px;border-radius:8px;object-fit:cover}.conversation-row div{min-width:0}.conversation-row h3{font-size:14px;margin:0 0 7px}.conversation-row p{font-size:11px;color:#8d8297;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:260px;margin:0}.profile-panel{border:1px solid #ffffff0a;background:#1b1922;border-radius:15px;padding:25px;margin-bottom:15px}.profile-panel h3{margin:0 0 12px;font-size:19px}.profile-panel p{color:#9f91a8;font-size:12px;line-height:1.9}.profile-actions{display:flex;gap:10px;flex-wrap:wrap}.profile-actions button{border-radius:8px}.chat-screen{position:fixed;inset:0;z-index:40;background:#131117;display:flex;flex-direction:column;max-width:850px;margin:0 auto;border-left:1px solid #ffffff07;border-right:1px solid #ffffff07}.chat-header{display:flex;align-items:center;gap:12px;padding:15px 17px;background:#1b1720;border-bottom:1px solid #ffffff08}.icon-button{display:flex;border:0;background:none;padding:4px;color:#b7a4be}.chat-header img{height:38px;width:34px;object-fit:cover;border-radius:8px}.chat-header strong{display:block;font-size:14px}.chat-header small{display:block;margin-top:5px;color:#8e7e99;font-size:9px}.chat-header>.outline-button{margin-left:auto;font-size:10px;padding:7px 12px}.chat-notice{font-size:11px;color:#e3b997;background:#a46a2514;text-align:center;padding:11px}.chat-messages{flex:1;overflow-y:auto;padding:25px 18px;display:flex;flex-direction:column;gap:17px;scroll-behavior:smooth}.chat-bubble{max-width:86%;padding:13px 16px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:13px;border-radius:14px 14px 14px 3px;background:#25202c;color:#e5dce8;align-self:flex-start;border:1px solid #ffffff04}.chat-bubble.user{align-self:flex-end;background:#71324e;border-radius:14px 14px 3px 14px;color:#fff1f6}.chat-bubble.pending{color:#ac87a4}.chat-composer{display:flex;align-items:flex-end;gap:10px;margin:8px 14px 0;padding:8px 9px 8px 14px;border:1px solid #443145;background:#211b27;border-radius:14px}.chat-composer textarea{flex:1;min-width:0;resize:none;border:0;background:none;outline:0;color:#eee;font-size:13px;line-height:1.8;padding:5px 0;max-height:140px}.chat-composer button{border:0;background:#df4f83;color:white;display:flex;align-items:center;justify-content:center;height:36px;width:36px;border-radius:10px}.chat-composer svg{width:19px;height:19px}.chat-disclaimer{text-align:center;color:#62536c;font-size:9px;padding:9px 0 max(10px,env(safe-area-inset-bottom))}.in-chat .bottom-nav{display:none}
@media(min-width:1100px){.character-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.cover{aspect-ratio:3/3.4}}@media(min-width:600px) and (max-width:850px){.character-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:599px){.header{height:69px;padding:0 17px}.brand-mark{font-size:32px;width:36px}.brand-mark span{font-size:27px}.brand-name{font-size:18px}.brand-name small{font-size:5px;letter-spacing:1.1px}.header-actions{gap:9px}.beta{font-size:8px;padding:4px 6px}.header .outline-button{padding:7px 15px;font-size:11px}.main{padding:0 13px 105px}.hero{min-height:178px;padding:22px 0 16px}.eyebrow{font-size:6px;letter-spacing:1.3px}.hero h1{font-size:25px;letter-spacing:1px;line-height:1.6;margin:9px 0 6px}.hero p{font-size:10px;letter-spacing:0}.hero-art{width:105px;height:145px}.orbit{width:115px;height:65px;top:38px;left:-11px}.spark{font-size:68px;top:13px;left:12px}.tiny-star{font-size:16px;left:78px;top:20px}.hero-note{font-size:9px;bottom:14px;right:0}.toolbar{display:block;margin:7px 0 13px}.section-title{margin:0 2px 15px;gap:11px}.section-title h2{font-size:17px}.section-title>span{font-size:8px}.search-box{width:100%;padding:10px 12px;border-radius:8px}.search-box input{font-size:11px}.filters{gap:8px;margin-bottom:14px}.filters button{padding:7px 17px;font-size:10px}.notice{font-size:9px;margin-bottom:15px;padding:8px 10px}.status-light{margin-top:4px;width:4px;height:4px}.character-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 10px}.character-card{border-radius:11px}.cover{aspect-ratio:3/3.6}.card-badge{top:8px;left:8px;font-size:8px;padding:3px 5px}.card-metric{font-size:9px;left:9px;bottom:9px}.card-body{padding:10px 9px 8px}.card-body h3{font-size:13px;margin-bottom:4px}.card-body p{font-size:10px;line-height:1.7;height:34px;margin-bottom:7px}.creator{font-size:8px}.card-favorite{width:23px;height:23px}.card-favorite svg{width:15px;height:15px}.bottom-nav{bottom:0;width:100%;height:calc(65px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);border-radius:0;border-left:0;border-right:0;border-bottom:0;background:#151419f5;box-shadow:0 -5px 25px #0004}.bottom-nav button{font-size:9px;padding:5px 13px;min-width:55px;gap:5px}.bottom-nav svg{width:21px;height:21px}.import-nav>span{border-radius:10px;padding:7px;margin-top:-13px}.import-nav small{font-size:9px}.toast{bottom:90px}.detail-cover{height:235px}.detail-copy{padding:19px}.detail-copy h2{font-size:21px}.detail-copy>p{font-size:12px}.chat-messages{padding:20px 12px}.chat-bubble{max-width:89%}.profile-panel{padding:20px}.page-footer{margin-top:33px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
/* Telegram's visual viewport shrinks when the keyboard opens. Insets include
   native safe area + content safe area (e.g. fullscreen header controls). */
:root{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:0px;--safe-right:0px;--app-height:100dvh}
.telegram-app body{padding-left:var(--safe-left);padding-right:var(--safe-right)}
.telegram-app .header{height:calc(86px + var(--safe-top));padding-top:var(--safe-top)}
.telegram-app .main{padding-bottom:calc(115px + var(--safe-bottom))}
.telegram-app .bottom-nav{bottom:var(--safe-bottom)}
.telegram-app .chat-screen{inset:0 var(--safe-right) auto var(--safe-left);height:var(--app-height)}
.telegram-app .chat-header{padding-top:calc(15px + var(--safe-top))}
.telegram-app .chat-messages{min-height:0;overscroll-behavior:contain}
.telegram-app .chat-disclaimer{padding-bottom:max(10px,var(--safe-bottom))}
.telegram-app dialog{max-height:calc(var(--app-height) - var(--safe-top) - var(--safe-bottom) - 28px)}
#authButton{max-width:125px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#openTelegram{display:block;margin-top:18px;font-size:13px}
.telegram-app .toast{bottom:calc(90px + var(--safe-bottom))}
@media(max-width:599px){.telegram-app .header{height:calc(69px + var(--safe-top));padding-top:var(--safe-top)}.telegram-app .bottom-nav{bottom:0;height:calc(65px + var(--safe-bottom));padding-bottom:var(--safe-bottom)}.telegram-app .main{padding-bottom:calc(105px + var(--safe-bottom))}.header-actions{gap:5px}.header .outline-button{padding:7px 11px}.beta{font-size:7px}}
