@import url('./typography.css');

:root {
  color-scheme: dark;
  --page: #100912;
  --navigation: #110b15;
  --panel: #1b101f;
  --line: #ffffff14;
  --muted: #a19aa8;
  --soft: #d4ccd9;
  --pink: #bf368a;
  --peach: #fdaa9c;
  --cyan: #54bfd1;
  --navigation-width: 240px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  background: var(--page);
  color: #faf8fc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-width: 320px; background: var(--page); }
body.navigation-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button, input { border: 0; }
button { background: none; }
button:disabled { opacity: .35; cursor: default; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a, input { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--peach); }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure, dl { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; }
em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; color: var(--peach); }
.interface-icon { width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
.icon-control { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; color: #a29aaa; flex: 0 0 auto; }
.icon-control:hover { color: white; background: #ffffff0a; }
.skip-content { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 18px; background: white; color: #141018; transform: translateY(-160%); }
.skip-content:focus { transform: none; }
.kyn-content { margin-left: var(--navigation-width); min-width: 0; transition: margin-left .2s; }
.section-inset { padding-left: 2.5%; padding-right: 2.5%; }

/* Navigation remains independently scrollable beside the discovery page. */
.kyn-navigation { position: fixed; inset: 0 auto 0 0; width: var(--navigation-width); border-right: 1px solid var(--line); background: var(--navigation); display: flex; flex-direction: column; z-index: 40; transition: width .2s, transform .2s; }
.navigation-identity { height: 76px; min-height: 76px; display: flex; align-items: center; gap: 16px; padding: 12px 14px; }
.soulkyn-identity { display: flex; flex: 1; align-items: center; min-width: 0; }
.full-identity { width: 158px; height: 40px; object-fit: contain; }
.compact-identity { display: none; }
.navigation-group { padding: 0 14px 14px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #514154 transparent; }
.navigation-group:first-of-type { flex: 1.25; min-height: 180px; }
.navigation-group + .navigation-group { flex: .8; min-height: 140px; padding-top: 14px; border-top: 1px solid var(--line); }
.navigation-group a { min-height: 38px; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; color: #b9b2c2; white-space: nowrap; }
.navigation-group a:hover { background: #bf368a14; color: #fff; }
.navigation-group .interface-icon { width: 20px; height: 20px; color: #8d8499; }
.new-label { margin-left: auto; padding: 0 5px; background: #582c34; color: #ffbfb3; border-radius: 5px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.navigation-footnote { min-height: 24px; padding: 4px 24px; color: #777080; font-size: 12px; }
.navigation-shade { position: fixed; inset: 0; background: #000a; z-index: 39; }
.navigation-collapsed { --navigation-width: 76px; }
.navigation-collapsed .navigation-identity { flex-direction: column; gap: 0; height: 100px; min-height: 100px; padding: 8px; }
.navigation-collapsed .full-identity { display: none; }
.navigation-collapsed .compact-identity { display: block; }
.navigation-collapsed .navigation-group { padding-inline: 10px; }
.navigation-collapsed .navigation-group a { justify-content: center; }
.navigation-collapsed .navigation-group a > span, .navigation-collapsed .navigation-footnote { display: none; }
.discovery-header { position: sticky; top: 8px; z-index: 30; height: 58px; margin: 8px 24px 0; padding: 6px 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #ffffff09; border-radius: 18px; background: #100b14ed; backdrop-filter: blur(18px); box-shadow: 0 0 0 4px #ffffff01; }
.header-start, .header-tools, .header-start nav { display: flex; align-items: center; gap: 10px; }
.header-start nav { gap: 24px; }
.header-start nav > * { display: flex; align-items: center; gap: 8px; color: #96909f; font-size: 13px; font-weight: 600; padding: 6px 0; }
.header-start nav > *:hover { color: #fff; }
.header-start .interface-icon { width: 16px; height: 16px; }
.mobile-menu { display: none; }
.mobile-help { display: none; }
.sign-in-action { border-radius: 8px; padding: 9px 16px; background: linear-gradient(115deg,#a418b1,#7b1b83); font-size: 14px; font-weight: 700; white-space: nowrap; }
.sign-in-action:hover { filter: brightness(1.15); }
.language-picker { position: relative; }
.language-picker > button { display: flex; align-items: center; gap: 5px; padding: 8px; }
.language-picker img { width: 22px; height: 17px; object-fit: cover; }
.small-chevron { color: #a89eae; font-size: 14px; }
.small-chevron .interface-icon { width: 12px; height: 12px; }
.language-options, .help-options { position: absolute; top: calc(100% + 10px); padding: 8px; border: 1px solid #514052; background: #211526; box-shadow: 0 16px 40px #0008; border-radius: 8px; min-width: 150px; }
.language-options { right: 0; }
.help-options { left: 145px; }
.language-options a, .help-options a { display: block; padding: 8px 12px; border-radius: 5px; }
.language-options a:hover, .help-options a:hover { background: #bf368a30; }

.featured-characters, .story-worlds { padding-top: 16px; padding-bottom: 30px; }
.collection-heading { margin-inline: 48px; }
.collection-heading h2 { font-family: Unbounded, Inter, sans-serif; font-size: 28px; font-weight: 600; line-height: 1.5; }
.collection-controls { display: flex; gap: 12px; flex-wrap: wrap; }
.collection-sort, .character-audience { display: inline-flex; align-items: stretch; border: 1px solid #ffffff18; border-radius: 8px; background: #ffffff03; overflow: hidden; min-height: 36px; flex: 0 0 auto; }
.collection-sort button, .character-audience button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border-right: 1px solid #ffffff0c; color: #a49baa; font-size: 13px; font-weight: 600; white-space: nowrap; }
.collection-sort button:last-child, .character-audience button:last-child { border-right: 0; }
.collection-sort button .interface-icon { width: 15px; height: 15px; }
.collection-sort [aria-selected=true], .character-audience [aria-selected=true] { color: #fff; background: #b00058; }
.collection-sort button:hover, .character-audience button:hover { color: #fff; }
.sort-label { display: grid; place-items: center; padding-inline: 10px; color: #5f5668; font-size: 10px; text-transform: uppercase; }
.character-carousel { position: relative; margin-top: 8px; }
.character-track { margin-inline: 48px; display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; }
.character-track::-webkit-scrollbar { display: none; }
.carousel-direction { position: absolute; top: 0; bottom: 0; z-index: 3; width: 38px; display: flex; align-items: center; justify-content: center; padding: 0; color: #f1eaf4; }
.carousel-direction.previous { left: 0; }
.carousel-direction.next { right: 0; }
.carousel-direction:hover { color: var(--peach); }
.carousel-direction .interface-icon { width: 25px; height: 25px; }
.kyn-portrait { position: relative; flex: 0 0 230px; aspect-ratio: 9 / 14; overflow: hidden; border-radius: 18px; border: 1px solid #ffffff12; background: #211627; scroll-snap-align: start; isolation: isolate; }
.kyn-photo { width: 100%; height: 100%; object-fit: cover; }
.kyn-portrait > .kyn-photo { position: absolute; inset: 0; transition: transform .5s; }
.kyn-portrait::after { content: ''; position: absolute; z-index: 1; inset: 30% 0 0; pointer-events: none; background: linear-gradient(transparent,#05050935 25%,#050509ab 65%,#050509f2); }
.kyn-portrait:hover > .kyn-photo { transform: scale(1.04); }
.portrait-open { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.portrait-caption { position: absolute; z-index: 3; bottom: 0; left: 0; right: 0; padding: 14px; pointer-events: none; }
.portrait-caption h3 { font-size: 15px; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.portrait-caption p { font-size: 12px; color: #e6dfe9; margin-top: 2px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.portrait-chat { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; border: 1px solid #ffffff60; border-radius: 24px; background: linear-gradient(120deg,#b52164e8,#633885e8); padding: 5px 12px; font-size: 13px; font-weight: 600; pointer-events: auto; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.portrait-chat .interface-icon { width: 15px; height: 15px; }
.kyn-portrait:hover .portrait-chat, .kyn-portrait:focus-within .portrait-chat { opacity: 1; transform: none; }
.content-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.content-rating i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.rating-E { color: #ff686d; }
.rating-M { color: #ffad45; }
.rating-T { color: #69d1e7; }
.rating-S { color: #7ddd9b; }
.conversation-count { display: flex; align-items: center; gap: 5px; color: #c5becb; font-size: 12px; margin-top: 6px; }
.conversation-count .interface-icon { width: 12px; height: 12px; }
.story-mode { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 6px; background: #884a15e6; font-size: 12px; font-weight: 800; pointer-events: none; }
.story-mode .interface-icon { width: 14px; height: 14px; }

.sense-features { padding-top: 48px; padding-bottom: 48px; }
.section-heading { text-align: center; margin: 0 auto 36px; max-width: 740px; }
.section-heading h2 { font-family: Unbounded, Inter, sans-serif; font-size: 32px; line-height: 1.35; font-weight: 500; }
.section-heading em { font-size: 1.2em; display: inline-block; }
.section-heading p { color: var(--muted); margin-top: 12px; }
.sense-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.sense-feature { min-height: 218px; padding: 24px; border-radius: 28px; border: 1px solid #ffffff12; background: linear-gradient(135deg,#2815229c,#1c1020b3); }
.sense-symbol { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: #ffffff06; color: #918596; }
.sense-symbol .interface-icon { width: 22px; height: 22px; }
.sense-feature h3 { font-size: 18px; font-weight: 700; margin-top: 22px; }
.sense-feature p { color: #a49aa9; line-height: 1.65; margin-top: 10px; }
.section-action { display: flex; justify-content: center; margin-top: 26px; }
.primary-action, .secondary-action, .small-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; min-height: 44px; padding: 11px 25px; font-size: 14px; font-weight: 650; }
.primary-action, .small-primary { background: linear-gradient(110deg,#f3a49c,#bd3689); color: #33091f; }
.primary-action:hover, .small-primary:hover { filter: brightness(1.1); }
.secondary-action { border: 1px solid #ffffff22; color: #eee7f0; }
.secondary-action:hover { border-color: #fdaa9c65; background: #ffffff06; }
.small-primary { min-height: 34px; padding: 6px 14px; font-size: 12px; }
.scenario-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.scenario-heading h2 { font-size: 24px; }
.scenario-heading a { display: inline-flex; align-items: center; gap: 5px; color: #c48fb9; font-size: 13px; }
.section-summary { color: var(--muted); font-size: 13px; margin-top: 10px; margin-bottom: 20px; }
.scenario-track { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: #61354d transparent; scroll-snap-type: x proximity; }
.community-lineup { flex: 0 0 370px; overflow: hidden; border-radius: 16px; background: #1a1121; border: 1px solid #ffffff12; scroll-snap-align: start; display: flex; flex-direction: column; }
.lineup-roster { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 126px; gap: 3px; padding: 5px; background: #251827; }
.lineup-roster:is(.roster-5,.roster-6,.roster-7) { grid-template-columns: repeat(3,minmax(0,1fr)); }
.lineup-roster.roster-7 { grid-auto-rows: 84px; }
.lineup-person { position: relative; min-width: 0; overflow: hidden; border-radius: 4px; background: #35253b; }
.lineup-person img { height: 100%; width: 100%; object-fit: cover; }
.lineup-person::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent,#08050bd9); }
.lineup-position { position: absolute; top: 6px; left: 6px; padding: 1px 5px; border-radius: 4px; font-size: 10px; background: #0007; }
.lineup-lead { position: absolute; top: 6px; right: 6px; display: flex; align-items: center; gap: 2px; padding: 1px 4px; background: #593543d9; color: #ffd1a6; font-size: 9px; font-weight: 700; border-radius: 4px; }
.lineup-lead .interface-icon { width: 9px; height: 9px; }
.lineup-name { position: absolute; z-index: 1; bottom: 5px; left: 6px; right: 6px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.module-identity { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #f2b6d9; font-family: Unbounded, Inter, sans-serif; font-size: 24px; background: #2b1a34; }
.module-identity .interface-icon { width: 35px; height: 35px; }
.lineup-copy { padding: 15px; flex: 1; display: flex; flex-direction: column; min-height: 276px; }
.lineup-copy h3 { font-size: 16px; font-weight: 700; }
.lineup-author { font-size: 12px; color: #bb8bc4; margin-top: 5px; }
.lineup-description { margin-top: 12px; font-size: 13px; color: #bbb2c3; line-height: 1.5; height: 59px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: pre-line; }
.text-action { color: var(--cyan); font-size: 12px; padding: 2px 0; align-self: flex-start; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.text-action .interface-icon { width: 14px; height: 14px; }
.lineup-tags { display: flex; flex-wrap: wrap; gap: 5px; padding-block: 12px; margin-top: auto; }
.lineup-tags > span { padding: 2px 6px; border: 1px solid #94a7ff19; background: #3f39604a; font-size: 10px; border-radius: 4px; color: #c8c4ed; }
.lineup-tags .lineup-used { margin-left: auto; background: none; border: 0; color: #998ba6; }
.lineup-actions { display: flex; align-items: center; gap: 8px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.reaction-counts { display: flex; align-items: center; gap: 9px; color: #aca0b5; font-size: 11px; }
.reaction-counts > span { display: inline-flex; align-items: center; gap: 3px; }
.reaction-counts .interface-icon { width: 13px; height: 13px; }

.universe-invitation { padding-top: 90px; padding-bottom: 60px; }
.universe-composition { display: grid; grid-template-columns: 5fr 6fr; gap: 36px; align-items: center; min-height: 520px; }
.universe-copy h1 { font-family: Unbounded, Inter, sans-serif; font-size: 48px; line-height: 1.12; font-weight: 500; }
.universe-copy h1 em { font-size: 1.2em; display: inline-block; padding-top: 6px; }
.universe-copy > p { color: #b1a6b9; font-size: 15px; max-width: 450px; margin-top: 24px; line-height: 1.8; }
.invitation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.entry-conditions, .universe-copy > .entry-conditions { font-size: 12px; color: #887991; margin-top: 22px; }
.conversation-composition { position: relative; width: 100%; height: 500px; }
.scene-participants { display: flex; justify-content: center; gap: 15px; position: absolute; top: 0; left: 10%; right: 10%; }
.participant-image { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; border: 2px solid #c45d9e66; }
.group-conversation { position: absolute; top: 80px; left: 0; width: 76%; padding: 16px; border: 1px solid #ffffff17; border-radius: 22px; background: #1d1025ed; box-shadow: 0 28px 50px #0004; }
.scene-caption { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #b5a5c0; margin-bottom: 15px; }
.scene-caption > span { margin-left: auto; font-size: 10px; color: #68ceac; padding: 0 7px; border: 1px solid #68ceac30; border-radius: 10px; }
.scene-message { display: flex; align-items: flex-end; gap: 7px; margin-top: 9px; font-size: 12px; }
.scene-message p { border-radius: 12px; padding: 8px 11px; border: 1px solid #ffffff0c; background: #77335c3d; max-width: 90%; }
.scene-message:nth-child(2n) p { background: #33224199; }
.message-avatar { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; }
.scene-message.outgoing { justify-content: flex-end; }
.scene-message.outgoing p { color: #320a23; background: linear-gradient(115deg,#f3aa9c,#bf368a); border: none; }
.typing-indicator { display: flex; gap: 4px; margin: 10px 0 2px 34px; }
.typing-indicator i { width: 4px; height: 4px; background: #b68fbd; border-radius: 50%; animation: speaking 1.6s infinite; }
.typing-indicator i:nth-child(2) { animation-delay: .2s; }
.typing-indicator i:nth-child(3) { animation-delay: .4s; }
.creation-moment { position: absolute; bottom: 72px; right: 0; width: 43%; height: 198px; border-radius: 16px; border: 1px solid #fdaa9c40; overflow: hidden; transform: rotate(6deg); box-shadow: 0 16px 40px #0006; }
.studio-scene { height: 100%; width: 100%; object-fit: cover; }
.creation-moment > span { position: absolute; bottom: 0; left: 0; right: 0; background: #160d20c9; padding: 9px; display: flex; align-items: center; gap: 5px; font-size: 10px; }
.creation-moment .interface-icon { width: 14px; height: 14px; }
.music-moment { display: flex; align-items: center; gap: 10px; position: absolute; bottom: 0; left: 15%; right: 3%; padding: 13px 15px; border-radius: 14px; border: 1px solid #ffffff1c; background: #22132b; }
.music-moment > .interface-icon { width: 30px; height: 30px; color: var(--peach); }
.music-moment span { text-transform: uppercase; color: #a18aaf; font-size: 10px; }
.music-moment p { font-size: 12px; }
.music-bars { margin-left: auto; display: flex; gap: 3px; align-items: center; height: 28px; }
.music-bars i { height: 20px; width: 3px; border-radius: 2px; background: #d278a7; animation: equalizer 1.6s ease-in-out infinite alternate; }
.music-bars i:nth-child(2n) { animation-delay: -.7s; height: 28px; }
.music-bars i:nth-child(3n) { animation-delay: -.3s; height: 12px; }
.community-totals { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 60px auto 70px; max-width: 900px; text-align: center; }
.community-totals dt { font-family: Unbounded, Inter, sans-serif; font-size: 28px; }
.community-totals dd { margin: 10px 0 0; color: #a89aad; font-size: 12px; }
.reader-experiences { max-width: 980px; margin: 0 auto; }
.reader-experiences h2 { text-align: center; color: #d9a0cb; font-size: 24px; margin-bottom: 24px; }
.experience-carousel { position: relative; display: flex; align-items: center; gap: 16px; }
.review-track { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; flex: 1; }
.reader-quote:nth-child(3) { display: none; }
.experience-carousel > .icon-control { position: absolute; z-index: 2; top: 52%; left: 0; transform: translateY(-50%); background: #170d1b88; }
.experience-carousel > .icon-control:last-child { left: auto; right: 0; }
.reader-quote { flex: 1; min-width: 0; text-align: center; min-height: 210px; display: flex; flex-direction: column; padding: 24px 28px 18px; border: 1px solid #6c245868; border-radius: 8px; background: #1c1120b3; }
.reader-quote figcaption { color: #c58dc1; font-size: 14px; font-weight: 700; }
.review-stars { position: relative; width: 90px; height: 18px; display: inline-block; margin: 5px auto 0; color: #524458; }
.star-track { display: flex; width: 90px; gap: 0; }
.star-track .interface-icon { width: 18px; height: 18px; }
.star-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: #ffd21f; }
.reader-quote blockquote { margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: #ded6e4; }
.reader-quote > p { margin-top: auto; padding-top: 12px; text-align: right; color: #93899e; font-style: italic; font-size: 12px; }
.review-dots { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 16px; }
.review-dots button { width: 7px; height: 7px; padding: 0; border-radius: 50%; background: #795487; position: relative; }
.review-dots button::before { content: ''; position: absolute; inset: -5px; }
.review-dots button[aria-pressed=true] { background: #e553f1; }
.character-collection { padding-top: 28px; padding-bottom: 36px; }
.profile-summary { position: relative; flex: 0 0 230px; border: 1px solid #ffffff13; border-radius: 16px; overflow: hidden; scroll-snap-align: start; background: #170e1c; }
.profile-portrait { position: relative; aspect-ratio: 4 / 5; }
.profile-portrait::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent,#060309e6); pointer-events: none; }
.chat-action { position: absolute; right: 12px; top: 12px; display: inline-flex; gap: 6px; align-items: center; background: linear-gradient(110deg,#ae2666,#5c3888); border: 1px solid #ffffff5c; padding: 7px 14px; border-radius: 30px; font-size: 13px; font-weight: 650; }
.chat-action .interface-icon { width: 16px; height: 16px; }
.profile-caption { position: absolute; bottom: 0; left: 0; right: 0; z-index: 1; padding: 12px; }
.personality-labels { display: flex; overflow: hidden; gap: 4px; margin-bottom: 10px; }
.personality-labels span { font-size: 10px; padding: 3px 7px; background: #365046; border-radius: 14px; white-space: nowrap; font-weight: 650; }
.personality-labels span:nth-child(2) { background: #443748; }
.personality-labels span:nth-child(3) { background: #624020; }
.personality-labels span:nth-child(4) { background: #6d321e; }
.profile-caption h3 { font-size: 18px; margin-bottom: 9px; }
.profile-numbers { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; font-size: 11px; color: #bcb0c5; }
.profile-numbers > span { display: flex; align-items: center; gap: 4px; }
.profile-numbers .interface-icon { width: 13px; height: 13px; }
.profile-numbers .content-rating { margin: 0; font-size: 11px; }
.feedback-numbers { flex: 0 0 100%; display: flex; gap: 8px; }
.feedback-numbers > span { display: flex; align-items: center; gap: 3px; }
.profile-level { color: #e3c96d; }
.profile-introduction { padding: 10px 12px; }
.profile-introduction h4 { font-size: 15px; margin-bottom: 7px; }
.profile-introduction p { font-size: 13px; color: #a99bb4; line-height: 1.6; height: 63px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.profile-introduction .text-action { position: absolute; top: 12px; left: 10px; z-index: 2; margin: 0; padding: 6px 10px; border: 1px solid #ffffff40; border-radius: 20px; background: #160b22c4; color: #eee1f1; text-decoration: none; opacity: 0; }
.profile-summary:hover .profile-introduction .text-action, .profile-summary:focus-within .profile-introduction .text-action { opacity: 1; }
.roleplay-paths { padding-top: 30px; padding-bottom: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.roleplay-invitation { display: flex; align-items: center; gap: 18px; }
.roleplay-invitation:nth-child(2) { flex-direction: row-reverse; }
.roleplay-mascot { width: 112px; height: 220px; object-fit: contain; flex: 0 0 auto; }
.roleplay-invitation h2 { font-size: 22px; font-weight: 600; }
.roleplay-invitation p { color: #b2a5bb; font-size: 14px; line-height: 1.65; margin-top: 12px; }
.roleplay-invitation .primary-action { margin-top: 20px; padding-inline: 18px; }
.companionship-notes { padding-top: 60px; padding-bottom: 60px; text-align: center; }
.companionship-notes h2 { font-family: Unbounded, Inter, sans-serif; font-size: 30px; font-weight: 500; }
.companionship-notes h2 em { font-size: 1.2em; }
.companionship-prose { max-width: 900px; text-align: left; margin: 24px auto; color: #a69aae; font-size: 15px; line-height: 1.85; }
.companionship-prose p + p { margin-top: 16px; }
.community-news { padding-top: 28px; padding-bottom: 40px; }
.community-news > h2 { font-family: Unbounded, Inter, sans-serif; text-align: center; font-size: 28px; margin-bottom: 32px; font-weight: 500; }
.news-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; }
.community-article { display: flex; flex-direction: column; min-width: 0; }
.article-image { width: 100%; aspect-ratio: 400 / 260; object-fit: cover; border-radius: 8px; }
.community-article h3 { font-size: 19px; font-weight: 600; margin-top: 16px; }
.community-article > p { color: #a393ad; font-size: 14px; line-height: 1.7; margin-top: 12px; flex: 1; }
.article-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; font-size: 12px; color: #9d8eaa; }
.article-meta time, .article-meta a { display: flex; align-items: center; gap: 4px; }
.article-meta a { color: #cc5cba; }
.article-meta .interface-icon { width: 14px; height: 14px; }
.homecoming-prompt { padding-top: 42px; padding-bottom: 42px; }
.homecoming-prompt > div { padding: 36px 20px; min-height: 360px; text-align: center; border-top: 1px solid #ffffff0a; border-bottom: 1px solid #ffffff0a; }
.homecoming-prompt > div > img { margin: 0 auto 18px; }
.homecoming-prompt h2 { font-family: Unbounded, Inter, sans-serif; font-size: 42px; line-height: 1.3; font-weight: 500; }
.homecoming-prompt h2 em { font-size: 1.25em; }
.homecoming-prompt .invitation-actions { justify-content: center; }
.site-resources { padding-top: 45px; padding-bottom: 25px; border-top: 1px solid #ffffff0d; }
.resource-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr 1fr; gap: 24px; }
.footer-identity { display: flex; align-items: center; gap: 8px; }
.footer-identity img:nth-child(2) { object-fit: contain; max-width: 135px; }
.operator-information p, .operator-information address { color: #8e8298; font-size: 12px; font-style: normal; line-height: 1.8; margin-top: 18px; }
.resource-links h3 { color: #d9cedf; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.resource-links h4 { color: #d9cedf; font-size: 12px; margin-top: 26px; }
.resource-links ul { list-style: none; margin: 16px 0 0; padding: 0; }
.resource-links li { margin-top: 8px; font-size: 12px; color: #a492af; }
.resource-links a:hover { color: var(--peach); }
.resource-socials { display: flex; gap: 16px; margin-top: 24px; color: #a393b0; }
.resource-socials a { display: grid; place-items: center; width: 32px; height: 32px; }
.resource-socials a:hover { color: var(--peach); }
.resource-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 22px; justify-content: space-between; color: #7f708b; font-size: 11px; }
.mobile-destinations { display: none; }

dialog { color: #f9f3fc; border: 1px solid #65405c; border-radius: 16px; background: #1b1122; box-shadow: 0 30px 100px #000a; width: min(760px,calc(100vw - 32px)); max-height: min(760px,calc(100dvh - 40px)); padding: 28px; }
dialog::backdrop { background: #050208cf; backdrop-filter: blur(7px); }
.dialog-close { position: absolute; right: 12px; top: 9px; width: 34px; height: 34px; font-size: 26px; color: #c2b1c9; border-radius: 50%; z-index: 2; }
.dialog-close:hover { color: white; background: #ffffff0c; }
.dialog-close .interface-icon { width: 22px; height: 22px; }
.profile-dialog-content { display: grid; grid-template-columns: 44% 1fr; gap: 26px; align-items: center; }
.dialog-portrait { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; border-radius: 12px; }
.profile-dialog h2 { font-size: 26px; margin-bottom: 10px; }
.profile-dialog .dialog-theme { color: var(--peach); margin-bottom: 16px; }
.profile-dialog .dialog-facts { color: #b8a6c3; font-size: 13px; line-height: 1.8; }
.profile-dialog .personality-labels { flex-wrap: wrap; margin-top: 18px; }
.profile-dialog .primary-action { margin-top: 26px; }
.search-dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.search-dialog-heading h2 { font-size: 24px; }
.search-field { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid #684361; border-radius: 8px; color: #bd90b9; background: #0e0813; }
.search-field input { color: #fff; width: 100%; outline: none; padding: 4px 0; background: none; min-width: 0; }
.search-count { color: #9a87a5; font-size: 12px; margin-top: 12px; }
.search-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 16px; max-height: 450px; overflow-y: auto; }
.search-result { display: flex; text-align: left; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; background: #ffffff04; }
.search-result:hover { background: #bf368a20; }
.search-result img { width: 50px; height: 65px; border-radius: 5px; object-fit: cover; }
.search-result span { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13px; }
.search-result small { font-size: 11px; color: #9c86ac; line-height: 1.4; }
.search-no-results { grid-column: 1 / -1; color: #bba8c6; padding: 24px 0; }
.scenario-dialog h2 { padding-right: 22px; font-size: 23px; }
.scenario-dialog > p { white-space: pre-line; line-height: 1.8; color: #c7b5d1; margin-block: 22px; }

@keyframes speaking { 0%,70%,100% { opacity: .35; } 35% { opacity: 1; } }
@keyframes equalizer { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
@media (min-width: 1440px) {
  .universe-copy h1 { font-size: 58px; }
  .kyn-portrait { flex-basis: 240px; }
  .section-inset { padding-inline: 3%; }
}
@media (min-width: 1536px) {
  .news-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .review-track { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .reader-quote:nth-child(3) { display: flex; }
}
@media (max-width: 1199px) {
  .resource-grid { grid-template-columns: 1.4fr 1fr 1fr; row-gap: 34px; }
  .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 35px; }
  .universe-copy h1 { font-size: 38px; }
  .universe-composition { gap: 20px; }
  .roleplay-paths { grid-template-columns: 1fr; }
  .roleplay-mascot { width: 128px; }
}
@media (max-width: 1023px) {
  :root { --navigation-width: 0px; }
  .kyn-navigation { width: 240px; transform: translateX(-100%); }
  .navigation-open .kyn-navigation { transform: none; }
  .navigation-collapsed { --navigation-width: 0px; }
  .navigation-collapsed .navigation-identity { flex-direction: row; height: 76px; min-height: 76px; }
  .navigation-collapsed .full-identity { display: block; }
  .navigation-collapsed .compact-identity { display: none; }
  .navigation-collapsed .navigation-group a > span { display: initial; }
  .navigation-collapsed .navigation-group a { justify-content: flex-start; }
  .navigation-collapsed .navigation-group { padding-inline: 14px; }
  .mobile-menu { display: flex; }
  .sense-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .universe-composition { grid-template-columns: 1fr 1fr; }
  .universe-copy h1 { font-size: 42px; }
  .mobile-destinations { position: fixed; display: flex; align-items: center; justify-content: space-around; gap: 14px; z-index: 35; bottom: max(12px,env(safe-area-inset-bottom)); left: 24px; right: 24px; max-width: 600px; margin-inline: auto; height: 62px; border-radius: 20px; border: 1px solid #ffffff15; background: #151017ed; backdrop-filter: blur(18px); box-shadow: 0 10px 40px #0008; }
  .mobile-destinations a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1px; min-width: 48px; color: #958b9f; font-size: 11px; }
  .mobile-destinations a:hover { color: var(--peach); }
  .mobile-destinations .interface-icon { width: 22px; height: 22px; }
  .site-resources { padding-bottom: 100px; }
}
@media (max-width: 767px) {
  .header-start nav { gap: 17px; }
  .header-tools { gap: 5px; }
  .discovery-header { margin-inline: 14px; padding-inline: 8px; }
  .section-inset { padding-inline: 14px; }
  .collection-heading { margin-inline: 0; }
  .collection-heading h2 { font-size: 23px; }
  .character-track { margin-inline: 0; }
  .carousel-direction { display: none; }
  .universe-composition { grid-template-columns: 1fr; gap: 35px; }
  .universe-copy { text-align: center; max-width: 560px; margin: auto; }
  .universe-copy > p { margin-inline: auto; }
  .invitation-actions { justify-content: center; }
  .conversation-composition { max-width: 540px; margin-inline: auto; }
  .universe-invitation { padding-top: 55px; }
  .community-totals { margin-top: 45px; margin-bottom: 50px; }
  .community-totals dt { font-size: 23px; }
  .experience-carousel { gap: 4px; }
  .experience-carousel > .icon-control { position: absolute; z-index: 1; top: 65px; left: 0; }
  .experience-carousel > .icon-control:last-child { left: auto; right: 0; }
  .reader-quote { padding-inline: 32px; }
  .companionship-notes h2 { font-size: 26px; }
  .companionship-notes h2 em { display: block; margin-top: 6px; }
  .resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 20px; }
  .operator-information { grid-column: 1 / -1; }
  .operator-information p, .operator-information address { max-width: 430px; }
  .resource-bottom { flex-direction: column; font-size: 11px; }
}
@media (max-width: 639px) {
  .discovery-header { height: 56px; padding-inline: 12px; }
  .header-start nav { display: none; }
  .header-tools { gap: 8px; }
  .header-tools .mobile-help { display: inline-flex; }
  .header-tools > .icon-control { width: 36px; }
  .header-tools .random-kyn { display: none; }
  .header-start { flex: 1; }
  .language-picker > button { padding: 8px; }
  .sign-in-action { padding: 8px 16px; font-size: 14px; }
  .help-options { left: 8px; }
  .collection-heading h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .featured-characters .collection-sort, .story-worlds .collection-sort { display: none; }
  .featured-characters { padding-top: 14px; padding-bottom: 22px; }
  .story-worlds { padding-top: 12px; padding-bottom: 16px; }
  .character-track { gap: 12px; }
  .kyn-portrait { flex-basis: 46vw; border-radius: 17px; }
  .portrait-caption { padding: 12px; }
  .portrait-caption h3 { font-size: 14px; }
  .portrait-caption p { font-size: 11px; }
  .portrait-caption .content-rating { display: none; }
  .conversation-count { font-size: 10px; }
  .portrait-chat { opacity: 0; padding: 4px 10px; font-size: 12px; }
  .kyn-portrait:focus-within .portrait-chat { opacity: 1; }
  .character-audience button { padding: 8px 14px; }
  .sense-features { padding-top: 34px; padding-bottom: 38px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading em { display: block; margin-top: 4px; }
  .sense-feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .sense-feature { padding: 24px; min-height: 188px; }
  .sense-feature h3 { margin-top: 20px; }
  .sense-feature p { font-size: 14px; }
  .community-lineup { flex-basis: min(340px,calc(100vw - 40px)); }
  .scenario-heading h2 { font-size: 21px; }
  .scenario-heading a { font-size: 12px; white-space: nowrap; }
  .section-summary { font-size: 13px; }
  .universe-copy h1 { font-size: 32px; }
  .universe-copy > p { font-size: 14px; line-height: 1.7; }
  .universe-copy .primary-action, .universe-copy .secondary-action { padding: 11px 18px; font-size: 13px; }
  .conversation-composition { height: 475px; }
  .group-conversation { width: 80%; padding: 13px; }
  .creation-moment { width: 42%; height: 155px; right: 5px; bottom: 85px; }
  .participant-image { height: 62px; width: 62px; }
  .music-moment { left: 4%; right: 4%; }
  .community-totals { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 10px; }
  .community-totals dt { font-size: 24px; }
  .reader-experiences h2 { font-size: 21px; }
  .reader-quote { min-height: 235px; }
  .review-track { grid-template-columns: 1fr; }
  .reader-quote:nth-child(n+2) { display: none; }
  .reader-quote blockquote { font-size: 12px; }
  .collection-sort { max-width: 100%; overflow-x: auto; min-height: 34px; border-radius: 6px; }
  .collection-sort .sort-label { display: none; }
  .collection-sort button { padding: 7px 9px; font-size: 12px; gap: 4px; }
  .profile-summary { flex-basis: calc(100vw - 42px); }
  .roleplay-paths { gap: 38px; }
  .roleplay-mascot { display: none; }
  .roleplay-invitation h2 { font-size: 23px; }
  .companionship-notes { padding-block: 40px; }
  .companionship-notes h2 { font-size: 24px; }
  .companionship-prose { font-size: 14px; }
  .news-grid { grid-template-columns: 1fr; gap: 36px; }
  .community-news > h2 { font-size: 26px; }
  .community-article h3 { font-size: 22px; }
  .article-meta { font-size: 13px; }
  .homecoming-prompt h2 { font-size: 32px; }
  .homecoming-prompt > div { padding-inline: 0; }
  .homecoming-prompt .primary-action, .homecoming-prompt .secondary-action { padding-inline: 16px; font-size: 13px; }
  .mobile-destinations { left: 14px; right: 14px; }
  dialog { padding: 22px; }
  .profile-dialog-content { grid-template-columns: 1fr; gap: 20px; }
  .dialog-portrait { max-height: 330px; aspect-ratio: 4 / 3; object-position: 50% 25%; }
  .profile-dialog h2 { font-size: 24px; }
  .profile-dialog .primary-action { margin-top: 18px; }
  .search-dialog { padding: 22px 16px; }
  .search-dialog-heading h2 { font-size: 21px; }
  .search-results { grid-template-columns: 1fr; }
  .search-field input { font-size: 13px; }
}
@media (max-width: 359px) {
  .discovery-header { padding-inline: 8px; }
  .header-tools { gap: 2px; }
  .header-tools > .icon-control { width: 30px; }
  .language-picker > button { padding: 4px; }
  .sign-in-action { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
