@media(max-width:767px){.v18-home .v18-home-copy h1{font-size:clamp(22px,7.1vw,34px);letter-spacing:0}.v18-home .v18-home-copy p{font-size:13px}.v18-home .v18-home-copy small{font-size:11px}.v18-home .v18-home-portal p{font-size:12px}.v18-home .v18-home-portals .v18-eyebrow{font-size:10px}}
/* Mobile UI refresh: presentation only, shared with the Web project's ui-refresh.css. */
@media(max-width:767px){
 /* Atmosphere stays behind the reading experience. */
 html[data-xinyu-theme] #v23-weather-canvas{opacity:.26!important}
 html[data-xinyu-theme] body:has(.chat-focus) #v23-weather-canvas{opacity:.06!important}

 /* Shared type scale: nothing readable below 11px. */
 /* Labels above headings repeat the heading, so phones show the heading alone. */
 html[data-xinyu-theme] .v18-eyebrow,html[data-xinyu-theme] .novel-eyebrow,html[data-xinyu-theme] .commerce-page .eyebrow,html[data-xinyu-theme] .community-subtitle,html[data-xinyu-theme] .v18-page-intro{display:none}
 html[data-xinyu-theme] .v18-card-number{display:none}
 html[data-xinyu-theme] .page-subtitle,html[data-xinyu-theme] .community-subtitle{font-size:12px}
 html[data-xinyu-theme] .wallet-pill,html[data-xinyu-theme] .wallet-pill *{font-size:11px}
 html[data-xinyu-theme] .v18-wordmark small{font-size:10px}

 /* What each page offers reads as content, not as a faint footnote. */
 html[data-xinyu-theme] .v18-home-copy p,html[data-xinyu-theme] .v18-home-portal p,html[data-xinyu-theme] .characters-page .page-subtitle,html[data-xinyu-theme] .vw-heading p,html[data-xinyu-theme] .v18-workshop .page-subtitle{color:var(--text);opacity:.82}
 html[data-xinyu-theme] .characters-page .page-subtitle,html[data-xinyu-theme] .vw-heading p,html[data-xinyu-theme] .v18-workshop .page-subtitle{font-size:13px;line-height:1.6}
 html[data-xinyu-theme] .v18-home-portal>svg:first-of-type{color:var(--gold)}

 /* Bottom navigation: "我的TA" gets its own icon instead of a second house. */
 html[data-xinyu-theme] .bottom-nav-link{gap:3px}
 html[data-xinyu-theme] .bottom-nav-link span{font-size:11px}
 html[data-xinyu-theme] .bottom-nav-link[href="/characters"] svg{display:none}
 html[data-xinyu-theme] .bottom-nav-link[href="/characters"]::before{content:'';display:block;width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E") center/contain no-repeat}

 /* Home: the pitch and all four entries fit near the first screen. */
 html[data-xinyu-theme] .v18-home-hero{min-height:0;padding:20px 18px;border-radius:18px}
 html[data-xinyu-theme] .v18-home-copy h1{margin:0 0 8px;line-height:1.4}
 html[data-xinyu-theme] .v18-home-copy p{line-height:1.65;margin-bottom:0}
 html[data-xinyu-theme] .v18-hero-buttons{margin-top:14px}
 html[data-xinyu-theme] .v18-hero-buttons .btn{min-height:42px;padding:9px 14px}
 html[data-xinyu-theme] .v18-home-copy small{display:block;max-width:none;margin-top:10px}
 html[data-xinyu-theme] .v18-orbit{opacity:.14}
 html[data-xinyu-theme] .v18-home-portals{gap:8px;margin:10px 0 22px}
 html[data-xinyu-theme] .v18-home-portal{display:grid;grid-template-columns:24px minmax(0,1fr);gap:2px 8px;align-items:center;align-content:start;padding:12px;border-radius:14px}
 html[data-xinyu-theme] .v18-home-portal>.v18-eyebrow{display:none}
 html[data-xinyu-theme] .v18-home-portal>svg:first-of-type{width:20px;height:20px}
 html[data-xinyu-theme] .v18-home-portal>svg:last-child{display:none}
 html[data-xinyu-theme] .v18-home-portal h2{font-size:15px;font-weight:600;line-height:1.4;font-family:inherit;margin:0;letter-spacing:0}
 html[data-xinyu-theme] .v18-home-portal p{grid-column:1/-1;margin:2px 0 0;line-height:1.5}
 html[data-xinyu-theme] .v18-home-portal>span:last-child{grid-column:1/-1;margin-top:4px;font-size:12px;white-space:nowrap}
 html[data-xinyu-theme] .v18-section-heading{margin-bottom:10px}
 html[data-xinyu-theme] .v18-home-persona{min-height:0;padding:10px;gap:12px;border-radius:14px}
 html[data-xinyu-theme] .v18-home-persona>.v18-avatar{width:56px;height:72px}
 html[data-xinyu-theme] .v18-home-persona h3{font-size:17px}

 /* TA lobby: creation tools become one row, so the TA list starts sooner. */
 html[data-xinyu-theme] .v18-collection-heading{margin-bottom:12px;gap:10px}
 html[data-xinyu-theme] .characters-page .page-title{font-size:24px;line-height:1.35;letter-spacing:.02em;margin:6px 0 4px}
 html[data-xinyu-theme] .v18-collection-count strong,html[data-xinyu-theme] .v18-collection-count b{font-size:22px}
 html[data-xinyu-theme] .v18-ta-hero{min-height:0;padding:16px 18px;border-radius:18px}
 html[data-xinyu-theme] .v18-ta-hero h2{font-size:21px;line-height:1.4;margin:6px 0 4px}
 html[data-xinyu-theme] .v18-ta-hero p{font-size:12px;margin-bottom:10px}
 html[data-xinyu-theme] .v18-ta-hero .btn{min-height:40px;padding:8px 14px}
 html[data-xinyu-theme] .v18-hero-art{opacity:.55}
 html[data-xinyu-theme] .xinyu-function-entries{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 10px}
 html[data-xinyu-theme] .xinyu-function-entry{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;padding:10px 4px;border-radius:14px;text-align:center}
 html[data-xinyu-theme] .xinyu-function-entry>svg:last-child,html[data-xinyu-theme] .xinyu-function-entry small{display:none}
 html[data-xinyu-theme] .xinyu-function-entry strong,html[data-xinyu-theme] .xinyu-function-entry b{font-size:13px;font-weight:500}
 html[data-xinyu-theme] .v18-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 18px}
 /* Secondary to the entries above, so these are quiet buttons rather than more cards. */
 html[data-xinyu-theme] .v18-quick-actions>a{display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;gap:5px;min-height:40px;padding:6px 4px;border-radius:12px;background:transparent;box-shadow:none;text-align:center}
 html[data-xinyu-theme] .v18-quick-actions>a>svg:first-child{width:15px;height:15px}
 html[data-xinyu-theme] .v18-quick-actions>a>svg:last-child,html[data-xinyu-theme] .v18-quick-actions small{display:none}
 html[data-xinyu-theme] .v18-quick-actions span{font-size:12px;font-weight:500;font-family:inherit;white-space:nowrap}
 html[data-xinyu-theme] .v18-section-heading h2{font-size:19px;line-height:1.4}
 html[data-xinyu-theme] .character-card{border-radius:16px}

 /* World lobby: covers shrink so several worlds are visible together. */
 html[data-xinyu-theme] .vw-page>.vw-heading{align-items:center;gap:12px;margin-bottom:10px}
 html[data-xinyu-theme] .vw-heading h1{font-size:clamp(20px,5.9vw,24px)!important;line-height:1.35;letter-spacing:0!important;margin:4px 0 2px;text-wrap:balance}
 html[data-xinyu-theme] .vw-heading p{line-height:1.5}
 html[data-xinyu-theme] .vw-page>.vw-heading .btn{min-height:40px;padding:8px 12px;flex-shrink:0}
 html[data-xinyu-theme] .vw-section-bar{margin:14px 0 8px}
 html[data-xinyu-theme] .vw-section-bar h2{font-size:18px;line-height:1.4}
 html[data-xinyu-theme] .vw-room-card{padding:14px 16px;border-radius:16px}
 html[data-xinyu-theme] .vw-world-card{border-radius:16px}
 html[data-xinyu-theme] .vw-world-cover{height:64px;min-height:0;overflow:hidden}
 html[data-xinyu-theme] .vw-world-cover>svg:first-of-type{width:130px;height:130px;opacity:.16}
 html[data-xinyu-theme] .vw-world-cover>svg:last-of-type{width:22px;height:22px}
 html[data-xinyu-theme] .vw-world-cover>.v18-eyebrow{top:50%;left:16px;transform:translateY(-50%)}
 html[data-xinyu-theme] .vw-world-cover>.vw-pill{top:50%;right:14px;bottom:auto;transform:translateY(-50%)}
 html[data-xinyu-theme] .vw-world-card .vw-card-copy p{min-height:0;-webkit-line-clamp:2}
 html[data-xinyu-theme] .vw-card-copy{padding:12px 16px 10px}
 html[data-xinyu-theme] .vw-card-copy h2{font-size:18px;line-height:1.4;margin-bottom:2px}
 html[data-xinyu-theme] .vw-card-copy p{line-height:1.6}
 html[data-xinyu-theme] .vw-card-copy .vw-section-bar{margin:6px 0 0}
 html[data-xinyu-theme] .vw-pill{font-size:11px}
 html[data-xinyu-theme] .vw-world-hero{padding:18px;border-radius:18px}
 html[data-xinyu-theme] .vw-world-hero h2{font-size:21px;line-height:1.45;letter-spacing:.02em;margin:8px 0}
 html[data-xinyu-theme] .vw-world-hero p{margin-bottom:10px}

 /* Chat: who is speaking reads at a glance, and messages get the width back. */
 html[data-xinyu-theme] .chat-focus .chat-header{height:54px;min-height:54px;padding-inline:6px}
 html[data-xinyu-theme] .chat-focus .chat-avatar{width:36px;height:36px;border-radius:50%}
 html[data-xinyu-theme] .chat-focus .chat-model-chip{max-width:92px;min-height:36px;padding:4px 7px;font-size:12px;background:transparent;border:1px solid var(--color-border)}
 html[data-xinyu-theme] .chat-context-bar{padding:1px 14px;min-height:28px;background:transparent;border-bottom-color:var(--line-subtle,var(--color-border))}
 html[data-xinyu-theme] .chat-identity-chip,html[data-xinyu-theme] .chat-quota summary{font-size:11px;color:var(--color-text-secondary)}
 html[data-xinyu-theme] .chat-focus .message.user .player-avatar{display:none}
 html[data-xinyu-theme] .chat-focus .message.user .message-author{display:none}
 html[data-xinyu-theme] .chat-focus .message-avatar{width:28px;height:28px;border-radius:50%;margin-top:18px;font-size:12px}
 html[data-xinyu-theme] .chat-focus .message-author{font-size:11px;line-height:16px;margin:0 2px 2px}
 html[data-xinyu-theme] .chat-focus .chat-container .message-bubble{font-size:15.5px;line-height:1.7;padding:9px 13px;border:0;border-radius:16px}
 html[data-xinyu-theme] .chat-focus .message.assistant .message-bubble{background:var(--color-bg-surface);border-top-left-radius:4px;box-shadow:0 0 0 1px var(--line-subtle,var(--color-border))}
 html[data-xinyu-theme] .chat-focus .message.user .message-bubble{background:var(--line-bright)!important;background:color-mix(in srgb,var(--gold,#a17a3c) 24%,var(--color-bg-surface,#fff))!important;border-top-right-radius:4px}
 html[data-xinyu-theme] .chat-focus .message-toolbar{margin-top:0;min-height:30px;gap:2px;opacity:.68}
 html[data-xinyu-theme] .chat-focus .message:last-child .message-toolbar,html[data-xinyu-theme] .chat-focus .message-toolbar:focus-within{opacity:1}
 html[data-xinyu-theme] .chat-focus .message-toolbar button{font-size:12px}
 html[data-xinyu-theme] .chat-focus .chat-composer{padding:7px 8px max(10px,calc(6px + env(safe-area-inset-bottom,0px)));border-top-color:var(--line-subtle,var(--color-border))}
 html[data-xinyu-theme] .chat-focus .composer-form{gap:6px}
 html[data-xinyu-theme] .chat-focus .composer-form textarea{min-height:42px;padding:9px 13px;border-radius:21px}
 html[data-xinyu-theme] .chat-focus .chat-plus{height:42px;width:42px;border-radius:50%}
 html[data-xinyu-theme] .chat-focus .composer-form button[type=submit]{height:42px;width:42px;min-width:42px;border-radius:50%}

 /* World progress: one compact row per saved story. */
 html[data-xinyu-theme] .vw-room-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center;padding:10px 14px!important;border-radius:14px}
 html[data-xinyu-theme] .vw-room-card h3{grid-column:1;grid-row:1;font-size:16px;line-height:1.4;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 html[data-xinyu-theme] .vw-room-card>.vw-pill{grid-column:2;grid-row:1;padding:2px 8px;margin:0}
 html[data-xinyu-theme] .vw-room-card p{grid-column:1;grid-row:2;margin:0;font-size:12px;line-height:1.5}
 html[data-xinyu-theme] .vw-room-card small{grid-column:1;grid-row:3;font-size:11px;line-height:1.5}
 html[data-xinyu-theme] .vw-room-card>svg:last-child{position:static;grid-column:2;grid-row:2/4;justify-self:end;margin:0}
 html[data-xinyu-theme] .vw-group-card{border-radius:16px}
 html[data-xinyu-theme] .vw-group-art{height:64px;min-height:0;overflow:hidden}
 html[data-xinyu-theme] .vw-empty{padding:22px 16px}

 /* Shared page headings. */
 html[data-xinyu-theme] .page-header{margin-bottom:12px}
 html[data-xinyu-theme] .page-title{font-size:24px;line-height:1.35;margin:0 0 2px}

 /* Profile: identity and balances share the first screen. */
 html[data-xinyu-theme] .profile-card{display:flex;flex-direction:row;align-items:center;gap:12px;padding:14px;border-radius:16px;text-align:left;margin-bottom:10px}
 html[data-xinyu-theme] .profile-card .avatar-xl{width:56px;height:56px;flex:none;font-size:20px}
 html[data-xinyu-theme] .profile-info{min-width:0;text-align:left}
 html[data-xinyu-theme] .profile-info h2{font-size:18px;line-height:1.4;margin:0}
 html[data-xinyu-theme] .profile-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;margin-bottom:10px}
 html[data-xinyu-theme] .stat-card{display:flex;align-items:center;gap:8px;min-width:0;padding:10px;border-radius:14px;margin:0}
 html[data-xinyu-theme] .stat-card:only-child{grid-column:1/-1}
 html[data-xinyu-theme] .stat-icon{width:34px;height:34px;min-width:34px;border-radius:10px}
 html[data-xinyu-theme] .stat-icon svg{width:18px;height:18px}
 html[data-xinyu-theme] .stat-value{font-size:18px;line-height:1.3}
 html[data-xinyu-theme] .stat-label{font-size:11px;line-height:1.4}
 html[data-xinyu-theme] .profile-section{padding:12px 14px;border-radius:14px}
 html[data-xinyu-theme] .profile-section h3{font-size:14px;margin-bottom:1px}
 html[data-xinyu-theme] .profile-section p{font-size:12px;margin:0}
 html[data-xinyu-theme] .secondary-links{gap:8px;margin-bottom:10px}

 /* Settings: denser rows, section labels read as labels. */
 html[data-xinyu-theme] .settings-header{margin-bottom:8px}
 html[data-xinyu-theme] .section-title{font-size:12px;margin:0 2px 6px;color:var(--color-text-secondary)}
 html[data-xinyu-theme] .settings-section{margin-bottom:14px}
 html[data-xinyu-theme] .settings-card{border-radius:14px}
 html[data-xinyu-theme] .settings-item{padding:10px 13px;min-height:46px}
 html[data-xinyu-theme] .settings-label{font-size:14px}
 html[data-xinyu-theme] .settings-value{font-size:12px}

 /* Community: posts start sooner, covers no longer fill the screen. */
 html[data-xinyu-theme] .community-container{padding-inline:14px}
 html[data-xinyu-theme] .community-sections{gap:6px;margin-bottom:8px}
 html[data-xinyu-theme] .community-sections>*{min-height:36px;padding:6px 8px;font-size:13px}
 html[data-xinyu-theme] .community-header-content{align-items:center;margin-bottom:8px}
 html[data-xinyu-theme] .community-title-section h1{font-size:20px;line-height:1.35;margin:0}
 html[data-xinyu-theme] .community-subtitle{letter-spacing:.04em;margin:0}
 html[data-xinyu-theme] .community-tabs{margin-bottom:8px}
 html[data-xinyu-theme] .community-tabs button{min-height:38px;padding:6px 8px;font-size:13px}
 html[data-xinyu-theme] .community-quick-links{gap:6px;margin-bottom:10px}
 html[data-xinyu-theme] .community-quick-links>*{min-height:36px;padding:6px 10px;font-size:12px}
 html[data-xinyu-theme] .community-posts-grid{gap:10px}
 html[data-xinyu-theme] .community-post-card{border-radius:16px}
 html[data-xinyu-theme] .post-cover{height:auto;aspect-ratio:16/9;max-height:190px;overflow:hidden}
 html[data-xinyu-theme] .post-card-content{padding:12px 14px}
 html[data-xinyu-theme] .post-title{font-size:16px;line-height:1.4;margin:6px 0 4px}
 html[data-xinyu-theme] .post-content-preview{font-size:13px;line-height:1.55}
 html[data-xinyu-theme] .post-time,html[data-xinyu-theme] .post-stats,html[data-xinyu-theme] .stat-item{font-size:12px}
 html[data-xinyu-theme] .author-avatar,html[data-xinyu-theme] .avatar-placeholder{width:36px;height:36px;font-size:14px}
 html[data-xinyu-theme] .author-name{font-size:14px}

 /* Wallet: links must be readable, balances stay close to their heading. */
 html[data-xinyu-theme] .commerce-back,html[data-xinyu-theme] .commerce-link{color:var(--gold);font-weight:500}
 html[data-xinyu-theme] .commerce-page h1{font-size:24px;line-height:1.35;margin:4px 0 8px}
 html[data-xinyu-theme] .commerce-notice{padding:9px 12px;border-radius:12px;font-size:12px;margin-bottom:10px}
 html[data-xinyu-theme] .commerce-card{padding:14px;border-radius:16px;margin-bottom:10px}
 html[data-xinyu-theme] .commerce-card h2{font-size:17px;line-height:1.4;margin:0 0 6px}
 html[data-xinyu-theme] .commerce-card p{font-size:13px;line-height:1.6}
 html[data-xinyu-theme] .wallet-snapshot{gap:8px;margin:8px 0}

 /* Memory and activity. */
 html[data-xinyu-theme] .memory-tabs{gap:6px;margin:8px 0}
 html[data-xinyu-theme] .memory-tabs button{min-height:36px;padding:6px 14px;font-size:13px}
 html[data-xinyu-theme] .memory-grid{gap:8px}
 html[data-xinyu-theme] .memory-page .card,html[data-xinyu-theme] .parity-page .card{padding:14px;border-radius:14px}
 html[data-xinyu-theme] .parity-page .card h2{font-size:17px;line-height:1.4;margin:0 0 6px}
 html[data-xinyu-theme] .parity-page .card p{font-size:13px;line-height:1.6}
 html[data-xinyu-theme] .activity-grid{gap:8px}
 html[data-xinyu-theme] .activity-task{padding:10px 12px;font-size:13px}
 html[data-xinyu-theme] .parity-actions{gap:8px}
 html[data-xinyu-theme] .parity-actions .btn{min-height:40px;padding:8px 12px;font-size:13px}

 /* Character detail: the read view is a list, not a stack of large fields. */
 html[data-xinyu-theme] .detail-header{margin-bottom:10px;gap:8px}
 html[data-xinyu-theme] .detail-header .btn{min-height:40px;padding:8px 12px;font-size:13px}
 html[data-xinyu-theme] .character-read{padding:14px;border-radius:16px}
 html[data-xinyu-theme] .character-read-header{gap:12px;margin-bottom:10px;align-items:center}
 html[data-xinyu-theme] .character-read-header h2{font-size:19px;line-height:1.35;margin:0}
 html[data-xinyu-theme] .character-read-header p{font-size:12px;line-height:1.5;margin:2px 0}
 html[data-xinyu-theme] .character-read .label-text{font-size:12px;margin:10px 0 2px}
 html[data-xinyu-theme] .character-read .pre-wrap{font-size:14px;line-height:1.65}
}

/* New user picks, relationship chips and opening suggestions (see ui-features). */
html[data-xinyu-theme] .v18-home-persona{position:relative}
html[data-xinyu-theme] .v18-home:has(.first-ta) .v18-section-heading{display:none}
html[data-xinyu-theme] .v18-home-cast:has(.first-ta){display:block;overflow:visible;margin-inline:0;padding-inline:0}
html[data-xinyu-theme] .first-ta{display:grid;gap:9px}
html[data-xinyu-theme] .first-ta h2{margin:4px 0 2px;font-size:19px;line-height:1.35;font-weight:600}
html[data-xinyu-theme] .first-ta-card{display:grid;gap:2px;padding:14px 15px;border-radius:16px;background:var(--pane);border:1px solid var(--line);color:var(--text);text-decoration:none}
html[data-xinyu-theme] .first-ta-card b{font-size:16px;font-weight:600;color:inherit}
html[data-xinyu-theme] .first-ta-card span{font-size:13px;line-height:1.5;color:var(--sub)}
html[data-xinyu-theme] .first-ta-card.is-main{padding:20px 16px;background:var(--gr);border-color:transparent;color:var(--btn-primary-text,#fff)}
html[data-xinyu-theme] .first-ta-card.is-main b{font-size:19px}
html[data-xinyu-theme] .first-ta-card.is-main span{color:inherit;opacity:.88}
html[data-xinyu-theme] .first-ta-picks{display:flex;gap:10px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none;scroll-snap-type:x proximity}
html[data-xinyu-theme] .first-ta-picks::-webkit-scrollbar{display:none}
html[data-xinyu-theme] .first-ta-pick{position:relative;flex:0 0 min(58vw,220px);aspect-ratio:3/4;overflow:hidden;border-radius:18px;background:var(--pane2);color:#fff;text-decoration:none;scroll-snap-align:start}
html[data-xinyu-theme] .first-ta-pick img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
html[data-xinyu-theme] .pick-price{position:absolute;top:9px;left:9px;padding:2px 9px;border-radius:11px;background:rgba(10,8,12,.62);color:#fff;font-size:12px}
html[data-xinyu-theme] .pick-copy{position:absolute;inset:auto 0 0;padding:52px 12px 12px;display:grid;gap:2px;background:linear-gradient(180deg,transparent,rgba(10,8,12,.72) 42%,rgba(10,8,12,.92))}
html[data-xinyu-theme] .pick-copy strong{font-size:17px;line-height:1.3;color:#fff}
html[data-xinyu-theme] .pick-copy span{font-size:13px;line-height:1.45;color:rgba(255,255,255,.9);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html[data-xinyu-theme] .first-ta.has-picks .first-ta-card.is-main{padding:13px 15px;background:var(--pane);border:1px solid var(--line-bright);color:var(--text)}
html[data-xinyu-theme] .first-ta.has-picks .first-ta-card.is-main b{font-size:16px}
html[data-xinyu-theme] .first-ta.has-picks .first-ta-card.is-main span{color:var(--sub);opacity:1}
html[data-xinyu-theme] .stage-chip{position:absolute;top:10px;left:10px;padding:2px 10px;border-radius:12px;background:rgba(10,8,12,.62);color:#fff;font-size:12px;font-style:normal}
html[data-xinyu-theme] .chat-messages .empty-state:has(.chat-openers){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:none;border:0}
html[data-xinyu-theme] .chat-messages .empty-state:has(.chat-openers) p{margin:0;padding:4px 12px;border-radius:13px;background:rgba(10,8,12,.56);color:#fff;font-size:13px;white-space:nowrap}
html[data-xinyu-theme] .chat-openers{display:grid;gap:8px;justify-items:center;width:100%;max-width:300px}
html[data-xinyu-theme] .chat-opener{min-height:38px;max-width:100%;padding:7px 15px;border-radius:19px;border:1px solid var(--line-bright);background:var(--pane);color:var(--text);font-size:14px}
html[data-xinyu-theme] .hero-actions{display:flex;flex-wrap:wrap;gap:8px}

/* Restructure of the existing pages on phones: same DOM, palette tokens only. The TA comes first. */
@media(max-width:767px){
 /* Home: pitch, then the TA as large portraits, then the four entries as one row. */
 html[data-xinyu-theme] .v18-home{display:flex;flex-direction:column;gap:12px}
 html[data-xinyu-theme] .v18-home>*{margin-block:0}
 html[data-xinyu-theme] .v18-home-hero{order:1;border:0;background:transparent;box-shadow:none;padding:2px 0 0;min-height:0}
 html[data-xinyu-theme] .v18-home-hero .v18-orbit{display:none}
 html[data-xinyu-theme] .v18-home-copy small{display:none}
 html[data-xinyu-theme] .v18-hero-buttons{display:none}
 html[data-xinyu-theme] .v18-home .error-message{order:0}
 html[data-xinyu-theme] .v18-home .v18-section-heading{order:2;margin:0;align-items:baseline}
 html[data-xinyu-theme] .v18-home-cast{order:3;display:flex;gap:10px;overflow-x:auto;margin-inline:-16px;padding-inline:16px;scroll-snap-type:x proximity;scrollbar-width:none}
 html[data-xinyu-theme] .v18-home-cast::-webkit-scrollbar{display:none}
 html[data-xinyu-theme] .v18-home-persona{position:relative;display:block;flex:0 0 66%;aspect-ratio:3/4;min-height:0;padding:0;border:0;border-radius:20px;overflow:hidden;scroll-snap-align:start;background:var(--pane2)}
 html[data-xinyu-theme] .v18-home-persona>.v18-avatar{position:absolute;inset:0;width:100%;height:100%;border-radius:0}
 html[data-xinyu-theme] .v18-home-persona>.v18-avatar img{width:100%;height:100%;object-fit:cover}
 html[data-xinyu-theme] .v18-home-persona>div{position:absolute;inset:auto 0 0;padding:70px 14px 13px;background:linear-gradient(180deg,transparent,rgba(10,8,12,.72) 42%,rgba(10,8,12,.92));color:#fff}
 html[data-xinyu-theme] .v18-home-persona h3{color:#fff;font-size:20px;line-height:1.3;margin:0}
 html[data-xinyu-theme] .v18-home-persona p{color:rgba(255,255,255,.86);font-size:13px;line-height:1.45;margin:2px 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 html[data-xinyu-theme] .v18-home-persona span:last-child{display:inline-block;padding:5px 13px;border-radius:16px;background:var(--gr);color:var(--btn-primary-text,#fff);font-size:13px;font-weight:600}
 html[data-xinyu-theme] .v18-home-cast>.card{flex:1 0 100%;padding:30px 16px;text-align:center;font-size:15px;border-radius:20px}
 html[data-xinyu-theme] .v18-home-portals{order:4;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:2px 0 8px}
 html[data-xinyu-theme] .v18-home-portal{background:var(--pane);box-shadow:none}

 /* My TA: the featured TA fills its card, tools shrink, and the list is the page. */
 html[data-xinyu-theme] .characters-page .v18-collection-heading{margin-bottom:8px}
 html[data-xinyu-theme] .characters-page .v18-collection-count{display:none}
 html[data-xinyu-theme] .characters-page .page-title{font-size:clamp(21px,6vw,24px)!important;letter-spacing:0!important}
 html[data-xinyu-theme] .characters-page .page-title br{display:none}
 html[data-xinyu-theme] .v18-ta-hero{position:relative;min-height:250px;padding:0;border:0;overflow:hidden;display:flex;align-items:flex-end;border-radius:20px}
 html[data-xinyu-theme] .v18-ta-hero .v18-hero-art{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:1!important;transform:none;filter:none;-webkit-mask-image:none;mask-image:none}
 html[data-xinyu-theme] .v18-ta-hero .v18-hero-art::before,html[data-xinyu-theme] .v18-ta-hero .v18-hero-art::after,html[data-xinyu-theme] .v18-ta-hero::before,html[data-xinyu-theme] .v18-ta-hero::after{display:none}
 html[data-xinyu-theme] .v18-ta-hero .v18-hero-art img{opacity:1!important;filter:none}
 html[data-xinyu-theme] .v18-ta-hero .v18-hero-art>svg{display:none}
 html[data-xinyu-theme] .v18-ta-hero .v18-hero-art .v18-avatar{position:absolute;inset:0;width:100%;height:100%;max-width:none;border-radius:0;border:0;transform:none}
 html[data-xinyu-theme] .v18-ta-hero .v18-hero-art img{width:100%;height:100%;object-fit:cover}
 html[data-xinyu-theme] .v18-ta-hero .v18-hero-copy{position:relative;z-index:1;width:100%;max-width:none;padding:64px 15px 14px;background:linear-gradient(180deg,transparent,rgba(10,8,12,.72) 45%,rgba(10,8,12,.92));color:#fff}
 html[data-xinyu-theme] .v18-ta-hero h2{color:#fff}
 html[data-xinyu-theme] .v18-ta-hero p{color:rgba(255,255,255,.86)}
 html[data-xinyu-theme] .characters-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html[data-xinyu-theme] .character-card{border:0;background:var(--pane);overflow:hidden;border-radius:16px;box-shadow:none}
 html[data-xinyu-theme] .v18-card-cover{aspect-ratio:3/4;height:auto;min-height:0;padding:0;position:relative;overflow:hidden}
 html[data-xinyu-theme] .v18-card-ornament{display:none}
 html[data-xinyu-theme] .v18-card-cover .character-avatar,html[data-xinyu-theme] .v18-card-cover .v18-avatar{position:absolute;inset:0;width:100%;height:100%;border-radius:0;border:0;margin:0;transform:none}
 html[data-xinyu-theme] .v18-card-cover img{width:100%;height:100%;object-fit:cover}

 html[data-xinyu-theme] .characters-page:has(.empty-state-title) :is(.v18-section-heading,.v18-collection-toolbar,.v18-filter-tabs,.characters-grid,.empty-state),html[data-xinyu-theme] .characters-page:has(.empty-state-title) .v18-filter-tabs~*,html[data-xinyu-theme] .characters-page:has(.empty-state-title) *:has(>.v18-filter-tabs){display:none}
 html[data-xinyu-theme] .characters-page:has(.empty-state-title) .v18-quick-actions{margin-bottom:12px}
 html[data-xinyu-theme] .v18-ta-hero:not(:has(.v18-avatar)){min-height:0;background:var(--pane);border:1px solid var(--line)}
 html[data-xinyu-theme] .v18-ta-hero:not(:has(.v18-avatar)) .v18-hero-art{display:none}
 html[data-xinyu-theme] .v18-ta-hero:not(:has(.v18-avatar)) .v18-hero-copy{padding:16px 15px;background:none;color:var(--text)}
 html[data-xinyu-theme] .v18-ta-hero:not(:has(.v18-avatar)) h2{color:var(--text)}
 html[data-xinyu-theme] .v18-ta-hero:not(:has(.v18-avatar)) p{color:var(--sub)}

 /* Chat: when a TA has a chat background it reaches the edges and messages float on it. */
 html[data-xinyu-theme] .chat-focus .chat-messages[style*="background"]{--chat-background-overlay:color-mix(in srgb,var(--color-bg-surface,#fff) 42%,transparent);background-size:cover!important;background-position:center top!important}
 html[data-xinyu-theme] .chat-focus .chat-messages[style*="background"] .message.assistant .message-bubble{background:color-mix(in srgb,var(--color-bg-surface,#fff) 84%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
 html[data-xinyu-theme] .chat-focus .chat-messages[style*="background"] .message-author,html[data-xinyu-theme] .chat-focus .chat-messages[style*="background"] .message-toolbar,html[data-xinyu-theme] .chat-focus .chat-messages[style*="background"] .message-toolbar button{color:var(--text);opacity:.82}
 html[data-xinyu-theme] .first-ta-picks{margin-inline:-16px;padding-inline:16px}
 html[data-xinyu-theme] .first-ta-pick{flex-basis:58%}
}
