@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap";
:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#111214;--panel:#1b1d20;--line:#34363a;--text:#f1eee9;--muted:#aaa9a7;--accent:#d4b391;--accent-dark:#2b211a;--danger:#e7a098}*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:var(--bg);color:var(--text);margin:0;font-family:DM Sans,Noto Sans JP,sans-serif;line-height:1.7}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:.02em;line-height:1.3}p{margin-bottom:0}.page-shell{width:min(1100px,100% - 40px);margin-inline:auto}.site-header{z-index:10;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#111214e8;border-bottom:1px solid #ffffff12;position:sticky;top:0}.header-inner{justify-content:space-between;align-items:center;gap:24px;width:min(1180px,100% - 40px);min-height:72px;margin:auto;display:flex}.brand{letter-spacing:.15em;font-size:1.58rem;font-weight:700;line-height:1}.brand-dot{color:var(--accent)}.nav-links{flex-wrap:wrap;align-items:center;gap:22px;font-size:.9rem;display:flex}.nav-links a:hover,.text-button:hover,.back-link:hover{color:var(--accent)}.nav-user{color:var(--muted);border-left:1px solid var(--line);padding-left:20px}.text-button{color:var(--muted);background:0 0;border:0;padding:0}.text-button:disabled{cursor:wait;opacity:.6}.nav-error{color:var(--danger);font-size:.78rem}.danger-text{color:var(--danger)}.landing{position:relative;overflow:hidden}.hero-glow{pointer-events:none;background:radial-gradient(#47342770 0%,#1d1b1a40 45%,#0000 70%);width:850px;height:700px;position:absolute;top:-150px;left:50%;transform:translate(-50%)}.hero{text-align:center;flex-direction:column;align-items:center;min-height:615px;padding-block:126px 110px;display:flex;position:relative}.hero h1{letter-spacing:.04em;margin:26px 0 20px;font-size:clamp(2.65rem,6vw,5.3rem);font-weight:600;line-height:1.28}.hero h1 em{color:var(--accent);font-style:normal}.hero-copy{color:#d1ccc5;max-width:620px;font-size:1.08rem}.eyebrow{color:var(--accent);letter-spacing:.24em;font-size:.72rem;font-weight:700;display:block}.login-actions,.inline-actions,.form-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.login-actions{justify-content:center;margin-top:38px}.local-login-form{text-align:left;max-width:420px;color:var(--muted);flex-basis:100%;gap:7px;font-size:.78rem;display:grid}.local-login-form input{flex:1;min-width:0}.login-unavailable{color:var(--muted);margin:0}.success{color:#9ccaa7;margin:0}.guest-link{color:var(--accent);margin-top:20px;font-size:.82rem}.hero>.button{margin-top:38px}.button{border:1px solid #0000;border-radius:7px;justify-content:center;align-items:center;min-height:45px;padding:10px 21px;font-size:.9rem;font-weight:600;transition:background .2s,border-color .2s,transform .2s;display:inline-flex}.button:hover:not(:disabled){transform:translateY(-1px)}.button.primary{background:var(--accent);color:#211b17}.button.primary:hover:not(:disabled){background:#e6c9a9}.button.secondary{color:var(--text);background:#252628;border-color:#4b4742}.button.secondary:hover:not(:disabled){border-color:var(--accent)}.small-button{min-height:38px;padding:7px 14px}.trial-note{color:var(--muted);margin-top:26px;font-size:.79rem}.feature-grid{grid-template-columns:repeat(3,1fr);gap:15px;padding-bottom:90px;display:grid}.feature-card,.story-card,.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px}.feature-card{padding:30px}.feature-card span{color:var(--accent);letter-spacing:.12em;font-size:.8rem}.feature-card h2{margin:20px 0 10px;font-size:1.2rem}.feature-card p,.story-card p{color:var(--muted);font-size:.9rem}.section-top{padding-block:56px 100px}.narrow{max-width:700px}.page-heading{justify-content:space-between;align-items:end;gap:20px;margin:0 0 32px;display:flex}.page-heading h1,.chat-heading h1{margin:12px 0;font-size:clamp(2rem,4vw,3.1rem)}.lead{color:#d2cec9;max-width:740px}.muted{color:var(--muted)}.small{font-size:.79rem}.panel{padding:28px}.stack{flex-direction:column;gap:21px;display:flex}.stack h2{margin-bottom:0;font-size:1.13rem}.error{color:#ffe3df;background:#4b2929;border:1px solid #854b4b;border-radius:8px;margin:14px 0;padding:13px 16px}.empty-state{text-align:center;color:var(--muted);border:1px dashed #54504b;border-radius:12px;padding:62px 20px}.empty-state h2,.chat-empty h2{color:var(--text)}.empty-state .button{margin-top:23px}.empty-icon{color:var(--accent);margin-bottom:18px;font-size:2.7rem;line-height:1;display:block}.card-grid{grid-template-columns:repeat(auto-fill,minmax(275px,1fr));gap:17px;margin-top:27px;display:grid}.story-card{flex-direction:column;min-height:205px;padding:26px;transition:border-color .2s,transform .2s;display:flex}.story-card:hover{border-color:var(--accent);transform:translateY(-2px)}.talk-thumbnail{object-fit:cover;border-bottom:1px solid var(--line);width:calc(100% + 52px);height:150px;margin:-26px -26px 22px;display:block}.story-card h2,.story-card h3{margin:14px 0 10px;font-size:1.35rem}.story-card p{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.card-label{color:var(--accent);letter-spacing:.13em;font-size:.75rem}.card-footer{color:var(--accent);margin-top:auto;padding-top:22px;font-size:.85rem;display:block}.starter-section{margin:48px 0 60px}.starter-section .section-heading{margin-top:0}.starter-card{background:linear-gradient(145deg,#29231f,#1b1d20 70%);border:1px solid #56463a;border-radius:12px;flex-direction:column;gap:14px;padding:25px;display:flex}.starter-cover{aspect-ratio:16/9;object-fit:cover;border:1px solid #56463a;border-radius:8px;width:100%;display:block}.starter-card h2{margin:0;font-size:1.25rem}.starter-card p{color:var(--muted);min-height:4.3em;margin:0;font-size:.88rem}.starter-card .button{align-self:flex-start;margin-top:auto}.starter-characters{flex-wrap:wrap;gap:7px;display:flex}.starter-characters span{color:#d7c8b8;border:1px solid #5c5047;border-radius:999px;align-items:center;gap:6px;padding:2px 9px;font-size:.75rem;display:inline-flex}.starter-character-chip img{object-fit:cover;border-radius:50%;width:24px;height:24px}.character-choice{gap:10px;display:grid}.choice-card{border:1px solid var(--line);cursor:pointer;background:#1d1f21;border-radius:9px;align-items:flex-start;gap:10px;padding:13px 14px;display:flex}.choice-card.selected{border-color:var(--accent);background:#28231f}.choice-card:has(input:disabled){cursor:not-allowed;opacity:.6}.choice-card span{gap:4px;display:grid}.choice-card small{color:var(--muted)}.character-preview{background:#221d19;border:1px solid #4c4035;border-radius:9px;padding:15px}.character-preview p{margin:7px 0 12px}.story-card.compact{min-height:150px}.talk-card-link{color:inherit;flex-direction:column;flex:1;display:flex}.talk-continue{border:1px solid var(--accent);background:var(--accent);color:#171412;letter-spacing:.02em;border-radius:8px;align-self:flex-start;align-items:center;gap:8px;width:fit-content;margin-top:auto;padding:10px 15px;font-size:.9rem;font-weight:700;transition:background .2s,border-color .2s,transform .2s;display:inline-flex}.talk-card-link:hover .talk-continue,.talk-card-link:focus-visible .talk-continue{background:#e7c9a8;border-color:#e7c9a8;transform:translateY(-1px)}.talk-delete{align-self:flex-end;margin-top:10px}.account-section{margin-top:20px}.account-section h2{margin:6px 0 0}.setting-row{border-top:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;padding:12px 0;display:flex}.setting-value{color:var(--accent);text-align:right}.setting-action{justify-content:flex-end;align-items:center;gap:10px;display:inline-flex}.compact-stack{gap:12px}.form-page{max-width:790px}.back-link{color:var(--muted);margin-bottom:30px;font-size:.85rem;display:inline-block}.plot-form{gap:25px}.field{flex-direction:column;gap:8px;display:flex}.field label{font-size:.9rem;font-weight:600}.field small{color:var(--muted);font-size:.73rem}.required{color:var(--accent);margin-left:5px;font-size:.72rem;font-weight:400}input,textarea{width:100%;color:var(--text);background:#121315;border:1px solid #414247;border-radius:7px;outline:none;padding:12px 14px}input:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 2px #d4b39126}input[type=radio]{width:auto;accent-color:var(--accent);background:0 0;border:0;flex:none;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#77797d}.section-heading{justify-content:space-between;align-items:end;gap:16px;margin:17px 0 0;display:flex}.section-heading h2{margin:7px 0 0;font-size:1.55rem}.empty-mini{border:1px dashed var(--line);color:var(--muted);border-radius:8px;padding:22px}.character-panel{gap:15px}.plot-cover-image{object-fit:cover;border:1px solid var(--line);border-radius:10px;width:100%;max-height:280px;display:block}.character-view-image{object-fit:cover;border:1px solid var(--line);border-radius:50%;width:88px;height:88px;margin-bottom:12px;display:block}.form-image-preview{object-fit:cover;border:1px solid var(--line);border-radius:8px;width:min(100%,320px);max-height:180px;margin-top:8px;display:block}.character-image-preview{border-radius:50%;width:88px;height:88px}.character-header{justify-content:space-between;display:flex}.form-actions{justify-content:flex-end}.check-row{align-items:flex-start;gap:12px;display:flex}.check-row input{width:auto;accent-color:var(--accent);margin-top:7px}.detail-grid{grid-template-columns:1.3fr 1fr;gap:18px;display:grid}.pre-wrap{white-space:pre-wrap;overflow-wrap:anywhere}.character-view+.character-view{border-top:1px solid var(--line);padding-top:20px}.character-view p{margin-top:6px}.section-block{margin-top:55px}.section-block>.section-heading{margin-bottom:20px}.align-self-start{align-self:flex-start}.chat-page{max-width:900px;padding-block:34px 60px}.chat-heading{justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px;display:flex}.chat-heading .back-link{margin-bottom:24px}.chat-heading h1{margin:8px 0 4px}.trial-counter{color:var(--accent);white-space:nowrap;border:1px solid #71604f;border-radius:999px;padding:7px 13px;font-size:.8rem}.guest-note,.guest-limit{color:#d4c6b8;background:#221d19;border:1px solid #4c4035;border-radius:8px;margin-bottom:16px;padding:12px 15px;font-size:.82rem}.guest-limit{margin-top:16px;margin-bottom:0}.guest-limit strong{color:var(--text)}.guest-limit p{margin:4px 0 14px}.chat-panel{border:1px solid var(--line);background:#17181a;border-radius:12px;flex-direction:column;gap:20px;min-height:410px;max-height:60vh;padding:30px 20px;display:flex;overflow-y:auto}.chat-empty{text-align:center;color:var(--muted);max-width:410px;margin:auto}.chat-message{background:#28292b;border-radius:12px;align-self:flex-start;max-width:min(83%,690px);padding:15px 18px}.chat-message.user{background:#3a3029;align-self:flex-end}.chat-message.streaming{border:1px solid #71604f}.message-label{color:var(--accent);letter-spacing:.08em;margin-bottom:6px;font-size:.72rem;font-weight:700;display:inline-block}.message-speaker{align-items:center;gap:8px;display:flex}.speaker-icon{width:28px;height:28px;color:var(--accent);background:#352e28;border:1px solid #786652;border-radius:50%;flex:0 0 28px;place-items:center;font-size:.86rem;font-weight:700;display:inline-grid}.chat-message p{line-height:1.85}.chat-compose{background:var(--panel);border:1px solid var(--line);border-radius:10px;margin-top:16px;padding:14px}.chat-compose textarea{background:0 0;border:0;min-height:94px;padding:8px}.chat-compose textarea:focus{box-shadow:none}.compose-actions{justify-content:space-between;align-items:center;gap:12px;padding:0 2px;display:flex}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (max-width:700px){.header-inner{min-height:64px}.nav-links{gap:10px;font-size:.75rem}.nav-user{display:none}.hero{min-height:520px;padding-block:95px 75px}.feature-grid,.detail-grid{grid-template-columns:1fr}.feature-grid{padding-bottom:55px}.page-heading,.chat-heading{flex-direction:column;align-items:start}.section-top{padding-top:38px}.panel{padding:20px}.chat-panel{min-height:320px;max-height:58vh;padding:20px 12px}.chat-message{max-width:93%}.compose-actions{align-items:flex-end}.compose-actions .small{max-width:140px;line-height:1.4}}
