:root {
    --character-shell-width: min(1120px, calc(100vw - 32px));
    --character-card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 250, 0.98));
    --character-card-border: rgba(25, 39, 52, 0.12);
    --character-shadow: 0 28px 64px rgba(17, 31, 46, 0.12);
    --character-accent: #ff6b5e;
    --character-accent-soft: rgba(255, 107, 94, 0.16);
    --character-subtle: #5e6c78;
    --character-title: #14202b;
    --llm-icon-color-light: #7f8b99;
    --llm-icon-color-dark: #c0cad7;
}

.ynews-character-page {
    background:
        radial-gradient(circle at top left, rgba(255, 129, 105, 0.18), transparent 32%),
        radial-gradient(circle at top right, rgba(73, 155, 255, 0.16), transparent 30%),
        linear-gradient(180deg, #f7f6f3 0%, #eef3f7 45%, #e8eef3 100%);
}

.ynews-character-shell {
    width: var(--character-shell-width);
    margin: 0 auto;
    padding: 28px 0 72px;
}

.ynews-character-profile {
    display: grid;
    gap: 24px;
}

.ynews-character-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 28px;
    padding: 34px;
    border: 1px solid var(--character-card-border);
    border-radius: 34px;
    background: var(--character-card-bg);
    box-shadow: var(--character-shadow);
    overflow: hidden;
}

.ynews-character-hero.is-intro-ready .ynews-character-portrait {
    opacity: 0;
    transform: translateY(34px) scale(0.84) rotate(-8deg);
    filter: saturate(0.82) contrast(0.92) blur(2px);
}

.ynews-character-hero.is-intro-visible .ynews-character-portrait {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
    filter: saturate(1) contrast(1) blur(0);
    transition:
        opacity 540ms ease,
        transform 980ms cubic-bezier(0.18, 1, 0.22, 1),
        filter 820ms ease;
}

.ynews-character-hero.is-intro-ready .ynews-character-orbit {
    opacity: 0;
    transform: scale(0.78) rotate(0deg);
}

.ynews-character-hero.is-intro-visible .ynews-character-orbit--one {
    opacity: 1;
    transform: scale(1) rotate(-8deg);
    transition: opacity 600ms ease 120ms, transform 1100ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
    animation: characterOrbitFloatOne 7.2s ease-in-out 1.2s infinite;
}

.ynews-character-hero.is-intro-visible .ynews-character-orbit--two {
    opacity: 1;
    transform: scale(1) rotate(8deg);
    transition: opacity 600ms ease 180ms, transform 1160ms cubic-bezier(0.22, 1, 0.36, 1) 180ms;
    animation: characterOrbitFloatTwo 8.4s ease-in-out 1.4s infinite;
}

.ynews-character-kicker--mobile {
    display: none;
}

.ynews-character-hero::after {
    content: "";
    position: absolute;
    inset: auto -60px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 94, 0.18), rgba(255, 107, 94, 0));
    pointer-events: none;
}

.ynews-character-hero__visual {
    position: relative;
    min-height: 320px;
    display: grid;
    place-items: center;
}

.ynews-character-portrait {
    position: relative;
    z-index: 2;
    width: min(320px, 100%);
    aspect-ratio: 1 / 1;
    border-radius: 32px;
    background: linear-gradient(160deg, #1f2a37, #2f4157 52%, #ff947a 130%);
    box-shadow: 0 22px 42px rgba(17, 31, 46, 0.28);
    display: grid;
    place-items: center;
    overflow: hidden;
    transform-origin: center bottom;
}

.ynews-character-portrait::after {
    content: "";
    position: absolute;
    inset: -18% auto -18% -42%;
    width: 46%;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
    transform: translateX(-180%) skewX(-18deg);
    pointer-events: none;
    opacity: 0;
}

.ynews-character-hero.is-intro-visible .ynews-character-portrait::after {
    opacity: 1;
    animation: characterPortraitSheen 1.1s ease 420ms 1 both;
}

.ynews-character-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ynews-character-portrait span {
    font-size: clamp(72px, 11vw, 132px);
    font-weight: 800;
    color: #fff5ee;
    letter-spacing: 0.08em;
}

.ynews-character-portrait.is-bouncing {
    animation: characterPortraitBounce 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ynews-character-portrait.is-sinking {
    animation: characterPortraitSink 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ynews-character-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px dashed rgba(255, 107, 94, 0.4);
    pointer-events: none;
}

.ynews-character-orbit--one {
    inset: 18px 26px 28px 12px;
    transform: rotate(-8deg);
}

.ynews-character-orbit--two {
    inset: 42px 4px 12px 34px;
    border-color: rgba(73, 155, 255, 0.36);
    transform: rotate(8deg);
}

.ynews-character-hero__copy {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    gap: 16px;
}

.ynews-character-hero.is-intro-ready .ynews-character-kicker,
.ynews-character-hero.is-intro-ready .ynews-character-hero h1,
.ynews-character-hero.is-intro-ready .ynews-character-llm-line,
.ynews-character-hero.is-intro-ready .ynews-character-summary,
.ynews-character-hero.is-intro-ready .ynews-character-like-row {
    opacity: 0;
    transform: translateY(18px);
}

.ynews-character-hero.is-intro-visible .ynews-character-kicker {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 420ms ease 180ms, transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 180ms;
}

.ynews-character-hero.is-intro-visible .ynews-character-hero h1 {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 460ms ease 260ms, transform 760ms cubic-bezier(0.22, 1, 0.36, 1) 260ms;
}

.ynews-character-hero.is-intro-visible .ynews-character-llm-line {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 460ms ease 340ms, transform 760ms cubic-bezier(0.22, 1, 0.36, 1) 340ms;
}

.ynews-character-hero.is-intro-visible .ynews-character-summary {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 480ms ease 440ms, transform 820ms cubic-bezier(0.22, 1, 0.36, 1) 440ms;
}

.ynews-character-hero.is-intro-visible .ynews-character-like-row {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 520ms ease 560ms, transform 860ms cubic-bezier(0.22, 1, 0.36, 1) 560ms;
}

.ynews-character-kicker {
    margin: 0 0 14px;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--character-subtle);
}

.ynews-character-llm-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: -6px 0 0;
    color: #6c7a86;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.ynews-character-llm-line__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background-color: var(--llm-icon-color-light);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.ynews-character-llm-line__name {
    color: #586775;
}

.ynews-character-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--character-title);
}

.ynews-character-topic-list span,
.ynews-character-mini-stats span,
.ynews-character-link-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.ynews-character-summary {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
    color: #32424f;
}

.ynews-character-evaluation-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ynews-character-evaluation-chip {
    display: grid;
    gap: 4px;
    min-width: 124px;
    padding: 12px 14px;
    border: 1px solid rgba(20, 32, 43, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.ynews-character-evaluation-chip__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7a8793;
}

.ynews-character-evaluation-chip__value {
    font-size: 22px;
    line-height: 1.1;
    color: #182633;
}

.ynews-character-like-row {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.ynews-character-reaction-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ynews-character-like-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7c6c, #ff4a7a);
    color: #fff;
    box-shadow: 0 14px 28px rgba(255, 74, 122, 0.28);
    cursor: pointer;
    overflow: visible;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.ynews-character-like-button.is-bad {
    background: linear-gradient(135deg, #64748b, #334155);
    box-shadow: 0 14px 28px rgba(51, 65, 85, 0.28);
}

.ynews-character-like-button__icon {
    font-size: 20px;
}

.ynews-character-like-button__label,
.ynews-character-like-button__count {
    font-size: 15px;
    font-weight: 700;
}

.ynews-character-like-button__count.is-hidden {
    display: none;
}

.ynews-character-like-button.is-liked {
    background: linear-gradient(135deg, #ff5d74, #ff3f57);
}

.ynews-character-like-button.is-active:not(.is-bad) {
    background: linear-gradient(135deg, #ff5d74, #ff3f57);
}

.ynews-character-like-button.is-bad.is-active {
    background: linear-gradient(135deg, #475569, #1e293b);
}

.ynews-character-like-burst {
    position: absolute;
    left: var(--burst-left, 50%);
    top: 18px;
    color: #ff4a7a;
    font-size: 18px;
    font-weight: 800;
    transform: translate(-50%, 0) scale(0.7);
    opacity: 0;
    pointer-events: none;
    animation: characterHeartBurst 760ms ease-out forwards;
}

.ynews-character-like-burst.is-bad {
    color: #475569;
}

.ynews-character-like-note {
    margin: 0;
    font-size: 10px;
    line-height: 1.5;
    color: rgba(94, 108, 120, 0.7);
}

.ynews-character-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ynews-character-card {
    padding: 24px;
    border: 1px solid var(--character-card-border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 38px rgba(17, 31, 46, 0.08);
}

.ynews-character-card--laid-off {
    width: 100%;
    text-align: left;
}

.ynews-character-card__eyebrow {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--character-subtle);
}

.ynews-character-definition-list {
    display: grid;
    gap: 14px;
}

.ynews-character-definition-list div {
    display: grid;
    gap: 6px;
}

.ynews-character-definition-list dt {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7b8792;
}

.ynews-character-definition-list dd,
.ynews-character-voice-box p,
.ynews-character-empty-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
    color: #2a3947;
}

.ynews-character-card--laid-off .ynews-character-definition-list,
.ynews-character-card--laid-off .ynews-character-definition-list div,
.ynews-character-card--laid-off .ynews-character-definition-list dt,
.ynews-character-card--laid-off .ynews-character-definition-list dd {
    text-align: left;
}

.ynews-character-voice-box {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 107, 94, 0.09), rgba(73, 155, 255, 0.08));
}

.ynews-character-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ynews-character-mini-stats span {
    background: rgba(20, 32, 43, 0.06);
    color: #33414d;
}

.ynews-character-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ynews-character-topic-list span {
    background: rgba(73, 155, 255, 0.12);
    color: #184b83;
}

.ynews-character-topic-list.is-weak span {
    background: rgba(255, 107, 94, 0.12);
    color: #8d3d34;
}

.ynews-character-message-card {
    display: grid;
    gap: 16px;
    justify-items: center;
}

.ynews-character-message-title {
    margin: 0;
    font-size: clamp(24px, 3.5vw, 34px);
    line-height: 1.16;
    color: var(--character-title);
    text-align: center;
}

.ynews-character-message-lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--character-subtle);
    text-align: center;
    max-width: 760px;
}

.ynews-character-form-notice {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.ynews-character-form-notice p {
    margin: 0;
}

.ynews-character-form-notice.is-error {
    background: rgba(239, 68, 68, 0.1);
    color: #9f1239;
}

.ynews-character-form-notice.is-success {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.ynews-character-message-form {
    display: grid;
    gap: 14px;
    width: 100%;
}

.ynews-character-message-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ynews-character-message-type-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.ynews-character-message-panel {
    display: grid;
    gap: 14px;
    width: 100%;
    overflow: hidden;
}

.ynews-character-message-panel[hidden] {
    display: none;
}

.ynews-character-message-panel.is-opening,
.ynews-character-message-panel.is-open {
    animation: ynewsCharacterMessageAccordion 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ynews-character-message-type-pill {
    position: relative;
    display: inline-flex;
}

.ynews-character-message-type-pill input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.ynews-character-message-type-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 6px;
    background: rgba(20, 32, 43, 0.06);
    color: #33414d;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ynews-character-message-type-pill span i {
    font-size: 15px;
    line-height: 1;
}

.ynews-character-message-type-pill input:checked + span {
    background: linear-gradient(135deg, #ff7c6c, #ff4a7a);
    color: #fff;
}

.ynews-character-message-type-pill.is-complaint input:checked + span {
    background: linear-gradient(135deg, #64748b, #334155);
}

.ynews-character-message-guide {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(20, 32, 43, 0.05);
    color: #556370;
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.ynews-character-message-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.ynews-character-message-field {
    display: grid;
    gap: 8px;
}

.ynews-character-message-field span {
    font-size: 13px;
    font-weight: 800;
    color: #4b5a68;
}

.ynews-character-message-field input,
.ynews-character-message-field textarea {
    width: 100%;
    border: 1px solid rgba(25, 39, 52, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: #1d2935;
    font: inherit;
    padding: 14px 16px;
    resize: vertical;
}

.ynews-character-message-field textarea {
    min-height: 180px;
}

.ynews-character-message-actions {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.ynews-character-message-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 6px;
    background: rgba(20, 32, 43, 0.92);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.ynews-character-message-submit i {
    font-size: 15px;
    line-height: 1;
}

@keyframes ynewsCharacterMessageAccordion {
    0% {
        opacity: 0;
        transform: translateY(-12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ynews-character-footer-nav {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.ynews-character-shared-menu {
    width: 100%;
    margin-bottom: 6px;
}

.ynews-character-footer-nav__primary {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.ynews-character-footer-nav__primary::-webkit-scrollbar {
    display: none;
}

.ynews-character-footer-nav__secondary {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
}

.ynews-character-link-pill {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(20, 32, 43, 0.12);
    background: rgba(255, 255, 255, 0.94);
    color: #21303c;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(17, 31, 46, 0.08);
    border-radius: 10px;
    white-space: nowrap;
    flex: 0 0 auto;
    gap: 6px;
}

.ynews-character-link-pill,
.ynews-character-link-pill:visited {
    color: #21303c;
}

.ynews-character-link-pill--icon {
    width: 38px;
    min-width: 38px;
    padding: 0;
}

.ynews-character-link-pill i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    min-width: 14px;
    font-size: 14px;
    line-height: 1;
}

.ynews-character-link-pill--icon i {
    width: 17px;
    min-width: 17px;
    font-size: 17px;
    line-height: 1;
}

.ynews-character-link-pill--button {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
}

.ynews-character-link-pill.is-current {
    background: linear-gradient(135deg, #ff7c6c, #ff4a7a);
    color: #fff;
}

.ynews-character-empty {
    width: min(720px, calc(100vw - 32px));
    margin: 24px auto 72px;
    padding: 32px;
    border-radius: 28px;
    border: 1px solid var(--character-card-border);
    background: rgba(255, 255, 255, 0.92);
    text-align: center;
}

.ynews-character-index-hero {
    padding: 12px 4px 8px;
    text-align: center;
}

.ynews-character-index-meta {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--character-subtle);
}

.ynews-character-scrolltop {
    position: fixed;
    right: 20px;
    bottom: 52px;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7c6c, #ff4a7a);
    color: #fff;
    box-shadow: 0 16px 34px rgba(255, 74, 122, 0.28);
    cursor: pointer;
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.88);
    pointer-events: none;
    transition: opacity 260ms ease, box-shadow 220ms ease;
}

.ynews-character-scrolltop i {
    font-size: 22px;
    line-height: 1;
}

.ynews-character-scrolltop.is-visible {
    opacity: 1;
    pointer-events: auto;
    animation: ynewsCharacterScrolltopRise 620ms cubic-bezier(0.22, 1.18, 0.36, 1) forwards;
}

.ynews-character-scrolltop:hover,
.ynews-character-scrolltop:focus-visible {
    box-shadow: 0 20px 38px rgba(255, 74, 122, 0.34);
}

@keyframes ynewsCharacterScrolltopRise {
    0% {
        transform: translate3d(0, 32px, 0) scale(0.84);
    }
    58% {
        transform: translate3d(0, -7px, 0) scale(1.05);
    }
    78% {
        transform: translate3d(0, 3px, 0) scale(0.98);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.ynews-character-public-tabs {
    margin-top: 0;
}

.ynews-character-index-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--character-title);
}

.ynews-character-index-list {
    display: grid;
    gap: 14px;
}

.ynews-character-index-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--character-card-border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 38px rgba(17, 31, 46, 0.08);
    color: inherit;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.ynews-character-index-card.is-ranking-card {
    grid-template-columns: 72px 92px minmax(0, 1fr) auto;
}

.ynews-character-index-card:hover,
.ynews-character-index-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(17, 31, 46, 0.14);
}

.ynews-character-index-rank {
    position: absolute;
    right: 16px;
    top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(20, 32, 43, 0.08);
    color: #304250;
    font-size: 9px;
    font-weight: 800;
}

.ynews-character-index-rank--hero {
    position: static;
    display: grid;
    justify-items: center;
    gap: 3px;
    align-self: center;
    justify-self: center;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #223140;
    font-size: clamp(36px, 4.2vw, 58px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.ynews-character-index-rank--hero i {
    font-size: 20px;
    line-height: 1;
}

.ynews-character-index-rank--hero span {
    display: block;
    line-height: .88;
}

.ynews-character-index-card.is-rank-1 {
    border-color: rgba(245, 158, 11, 0.34);
    background:
        linear-gradient(135deg, rgba(255, 214, 102, 0.18), rgba(255, 255, 255, 0.92) 34%),
        rgba(255, 255, 255, 0.92);
}

.ynews-character-index-card.is-rank-1 .ynews-character-index-rank--hero {
    color: #d97706;
}

.ynews-character-index-card.is-rank-2 {
    border-color: rgba(148, 163, 184, 0.36);
    background:
        linear-gradient(135deg, rgba(203, 213, 225, 0.24), rgba(255, 255, 255, 0.92) 34%),
        rgba(255, 255, 255, 0.92);
}

.ynews-character-index-card.is-rank-2 .ynews-character-index-rank--hero {
    color: #64748b;
}

.ynews-character-index-card.is-rank-3 {
    border-color: rgba(180, 83, 9, 0.3);
    background:
        linear-gradient(135deg, rgba(251, 191, 153, 0.22), rgba(255, 255, 255, 0.92) 34%),
        rgba(255, 255, 255, 0.92);
}

.ynews-character-index-card.is-rank-3 .ynews-character-index-rank--hero {
    color: #b45309;
}

.ynews-character-index-media {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8px;
}

.ynews-character-index-avatar {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #1f2a37, #2f4157 52%, #ff947a 130%);
    color: #fff5ee;
    font-size: 40px;
    font-weight: 800;
}

.ynews-character-index-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ynews-character-index-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.ynews-character-index-copy strong {
    font-size: 26px;
    line-height: 1.15;
    color: var(--character-title);
    margin-bottom: 5px;
}

.ynews-character-index-copy small {
    font-size: 11px;
    font-weight: 700;
    color: var(--character-subtle);
    margin-top: 10px;
}

.ynews-character-index-meta-row {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.ynews-character-index-family {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ynews-character-index-family__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background-color: var(--llm-icon-color-light);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.ynews-character-index-copy em {
    font-style: normal;
    font-size: 11px;
    line-height: 1.5;
    color: #7a8794;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ynews-character-index-like {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 74, 122, 0.1);
    color: #c73f63;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.ynews-character-index-like.is-score {
    gap: 0;
    padding: 0 12px;
}

.ynews-character-index-like i {
    font-size: 11px;
    line-height: 1;
}

.ynews-character-index-like.is-bad {
    background: rgba(51, 65, 85, 0.12);
    color: #334155;
}

.theme-night .ynews-character-index-card {
    background: rgba(16, 22, 28, 0.9);
}

.theme-night .ynews-character-scrolltop {
    box-shadow: 0 16px 34px rgba(255, 74, 122, 0.24);
}

.theme-night .ynews-character-index-rank {
    background: rgba(223, 233, 243, 0.08);
    color: #ebf2f7;
}

.theme-night .ynews-character-index-rank--hero {
    background: transparent;
    color: #ebf2f7;
}

.theme-night .ynews-character-index-card.is-rank-1 {
    border-color: rgba(245, 158, 11, 0.34);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(16, 22, 28, 0.92) 34%),
        rgba(16, 22, 28, 0.92);
}

.theme-night .ynews-character-index-card.is-rank-1 .ynews-character-index-rank--hero {
    color: #fbbf24;
}

.theme-night .ynews-character-index-card.is-rank-2 {
    border-color: rgba(148, 163, 184, 0.3);
    background:
        linear-gradient(135deg, rgba(148, 163, 184, 0.16), rgba(16, 22, 28, 0.92) 34%),
        rgba(16, 22, 28, 0.92);
}

.theme-night .ynews-character-index-card.is-rank-2 .ynews-character-index-rank--hero {
    color: #cbd5e1;
}

.theme-night .ynews-character-index-card.is-rank-3 {
    border-color: rgba(251, 146, 60, 0.28);
    background:
        linear-gradient(135deg, rgba(251, 146, 60, 0.14), rgba(16, 22, 28, 0.92) 34%),
        rgba(16, 22, 28, 0.92);
}

.theme-night .ynews-character-index-card.is-rank-3 .ynews-character-index-rank--hero {
    color: #fdba74;
}

.theme-night .ynews-character-index-copy em {
    color: #9aa8b7;
}

.theme-night .ynews-character-index-copy small,
.theme-night .ynews-character-index-family {
    color: #a3b3c2;
}

.theme-night .ynews-character-index-family__icon {
    background-color: var(--llm-icon-color-dark);
}

.theme-night .ynews-character-index-like {
    background: rgba(255, 74, 122, 0.18);
    color: #ffd3de;
}

.theme-night .ynews-character-index-like.is-bad {
    background: rgba(148, 163, 184, 0.14);
    color: #dbe4ef;
}

.theme-night .ynews-character-page {
    --character-card-bg: linear-gradient(145deg, rgba(22, 29, 35, 0.96), rgba(13, 18, 24, 0.98));
    --character-card-border: rgba(223, 233, 243, 0.08);
    --character-shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
    --character-subtle: #96a9ba;
    --character-title: #f5f8fb;
    background:
        radial-gradient(circle at top left, rgba(255, 129, 105, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(73, 155, 255, 0.14), transparent 30%),
        linear-gradient(180deg, #0b1015 0%, #111820 52%, #141c25 100%);
}

.theme-night .ynews-character-summary,
.theme-night .ynews-character-definition-list dd,
.theme-night .ynews-character-voice-box p,
.theme-night .ynews-character-empty-text {
    color: #d9e3ec;
}

.theme-night .ynews-character-mini-stats span {
    background: rgba(223, 233, 243, 0.08);
    color: #ebf2f7;
}

.theme-night .ynews-character-card,
.theme-night .ynews-character-empty {
    background: rgba(16, 22, 28, 0.9);
}

.theme-night .ynews-character-topic-list span {
    background: rgba(73, 155, 255, 0.18);
    color: #d6eaff;
}

.theme-night .ynews-character-topic-list.is-weak span {
    background: rgba(255, 107, 94, 0.18);
    color: #ffdcd7;
}

.theme-night .ynews-character-message-lead,
.theme-night .ynews-character-message-field span {
    color: #b7c7d7;
}

.theme-night .ynews-character-message-type-pill span {
    background: rgba(223, 233, 243, 0.08);
    color: #e5eef7;
}

.theme-night .ynews-character-llm-line,
.theme-night .ynews-character-llm-line__name {
    color: #a3b3c2;
}

.theme-night .ynews-character-llm-line__icon {
    background-color: var(--llm-icon-color-dark);
}

.ynews-character-entry-hero {
    gap: 10px;
    margin-bottom: 20px;
}

.ynews-character-entry-flow {
    display: grid;
    gap: 18px;
    margin-bottom: 20px;
    padding: 28px;
    border: 1px solid var(--character-card-border);
    border-radius: 28px;
    background: var(--character-card-bg);
    box-shadow: var(--character-shadow);
}

.ynews-character-entry-flow__head {
    display: grid;
    gap: 10px;
}

.ynews-character-entry-flow__head h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.1;
    color: var(--character-title);
}

.ynews-character-entry-flow__lead {
    margin: 0;
    color: #5b6a78;
    font-size: 14px;
    line-height: 1.8;
}

.ynews-character-entry-flow__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ynews-character-entry-step {
    display: grid;
    gap: 8px;
    padding: 18px 16px;
    border: 1px solid rgba(20, 32, 43, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.ynews-character-entry-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 107, 94, 0.12);
    color: #d34943;
    font-size: 13px;
    font-weight: 800;
}

.ynews-character-entry-step h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    color: var(--character-title);
}

.ynews-character-entry-step p {
    margin: 0;
    color: #5b6a78;
    font-size: 13px;
    line-height: 1.8;
}

.ynews-character-entry-auth {
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
    padding: 8px 0 2px;
}

.ynews-character-entry-auth__lead {
    margin: 0;
    color: #314150;
    font-size: 14px;
    line-height: 1.8;
    font-weight: 700;
}

.ynews-character-entry-auth__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 30px 0;
}

.ynews-character-entry-auth.is-active {
    justify-items: start;
    text-align: left;
    padding: 0;
}

.ynews-character-entry-card {
    display: grid;
    gap: 20px;
    padding: 28px;
    border: 1px solid var(--character-card-border);
    border-radius: 28px;
    background: var(--character-card-bg);
    box-shadow: var(--character-shadow);
}

.ynews-character-entry-card__head {
    display: grid;
    gap: 10px;
    align-items: start;
}

.ynews-character-entry-card__head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.08;
    color: var(--character-title);
}

.ynews-character-entry-card__lead {
    margin: 0;
    color: #5b6a78;
    font-size: 13px;
    line-height: 1.8;
}

.ynews-character-entry-card.is-locked {
    opacity: 0.94;
}

.ynews-character-entry-lock-note {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 107, 94, 0.08);
    color: #8a2a21;
    font-size: 13px;
    line-height: 1.7;
}

.ynews-character-entry-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.ynews-character-entry-field {
    display: grid;
    gap: 8px;
}

.ynews-character-entry-field.is-full,
.ynews-character-entry-actions,
.ynews-character-entry-check {
    grid-column: 1 / -1;
}

.ynews-character-entry-field span,
.ynews-character-entry-check span {
    font-size: 12px;
    font-weight: 700;
    color: #556474;
}

.ynews-character-entry-field input,
.ynews-character-entry-field textarea {
    width: 100%;
    border: 1px solid rgba(20, 32, 43, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a2733;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.7;
}

.ynews-character-entry-field textarea {
    resize: vertical;
    min-height: 220px;
}

.ynews-character-entry-field input[readonly],
.ynews-character-entry-field textarea[readonly] {
    background: rgba(236, 241, 246, 0.92);
    color: #73808d;
}

.ynews-character-entry-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ynews-character-entry-check input {
    width: 18px;
    height: 18px;
}

.ynews-character-entry-actions {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.ynews-character-entry-submit,
.ynews-character-entry-modal__ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: 0;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.ynews-character-entry-submit {
    background: linear-gradient(135deg, #ff7c6c, #ff4a7a);
    color: #fff;
    box-shadow: 0 14px 28px rgba(255, 74, 122, 0.24);
}

.ynews-character-entry-modal__ghost {
    background: rgba(24, 40, 54, 0.08);
    color: #2c3b48;
}

.ynews-character-entry-notice {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.7;
}

.ynews-character-entry-notice.is-success {
    background: rgba(73, 155, 255, 0.12);
    color: #1f4d78;
}

.ynews-character-entry-notice.is-error {
    background: rgba(255, 107, 94, 0.14);
    color: #8a2a21;
}

.ynews-character-entry-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.ynews-character-entry-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 24, 0.56);
    opacity: 0;
    transition: opacity 220ms ease;
}

.ynews-character-entry-modal__dialog {
    position: relative;
    width: min(520px, calc(100vw - 24px));
    margin: min(18vh, 140px) auto 0;
    padding: 28px 24px 24px;
    border-radius: 26px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 251, 0.98));
    box-shadow: 0 30px 70px rgba(10, 17, 24, 0.28);
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transition: opacity 220ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ynews-character-entry-modal.is-visible .ynews-character-entry-modal__backdrop {
    opacity: 1;
}

.ynews-character-entry-modal.is-visible .ynews-character-entry-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ynews-character-entry-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(24, 40, 54, 0.08);
    color: #334250;
    cursor: pointer;
}

.ynews-character-entry-modal__dialog h2 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.16;
    color: var(--character-title);
}

.ynews-character-entry-modal__dialog p {
    margin: 0;
    color: #546373;
    font-size: 14px;
    line-height: 1.8;
}

.ynews-character-entry-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;
}

.ynews-character-guide-hero {
    gap: 10px;
    margin-bottom: 20px;
}

.ynews-character-guide-header-nav {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.ynews-character-guide-inline-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    text-align: center;
}

.ynews-character-guide-inline-logo-shell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 0 16px;
}

.ynews-character-guide-inline-debug-box {
    display: block;
    width: min(92px, 24vw);
    margin: 0 auto;
}

.ynews-character-guide-inline-logo-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.ynews-character-guide-inline-title h1 {
    margin: 0;
    color: #101828;
    font-size: clamp(20px, 2.6vw, 28px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.ynews-character-guide-overview {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 1px solid rgba(20, 32, 43, 0.08);
    border-radius: 18px;
    background: rgba(247, 250, 252, 0.82);
}

.ynews-character-guide-overview__lead {
    margin: 0;
    color: #425466;
    font-size: 14px;
    line-height: 1.9;
}

.ynews-character-guide-overview__list {
    margin: 0;
    padding-left: 1.2em;
    color: #1f2d3a;
    font-size: 13px;
    line-height: 1.8;
}

.ynews-character-guide-hubnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ynews-character-guide-hublink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(20, 32, 43, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #233243;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.ynews-character-guide-hublink:hover,
.ynews-character-guide-hublink:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(17, 31, 46, 0.08);
    border-color: rgba(255, 107, 94, 0.28);
}

.ynews-character-guide-tabnav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 6px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ynews-character-guide-tabnav::-webkit-scrollbar {
    display: none;
}

.ynews-character-guide-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(20, 32, 43, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: #58697a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 220ms ease, color 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.ynews-character-guide-tab:hover,
.ynews-character-guide-tab:focus-visible {
    color: #233243;
    border-color: rgba(255, 107, 94, 0.22);
}

.ynews-character-guide-tab.is-current {
    color: #fff;
    background: linear-gradient(135deg, #ff7a59, #ff4d77);
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(255, 90, 108, 0.22);
}

.ynews-character-guide-nav {
    margin-bottom: 20px;
}

.ynews-character-guide-body {
    display: grid;
    gap: 18px;
    margin-bottom: 20px;
}

.ynews-character-guide-body--single {
    gap: 0;
    padding-bottom: 40px;
}

@media (min-width: 761px) {
    .ynews-character-guide-body--single {
        width: min(66.666%, 880px);
        margin-left: auto;
        margin-right: auto;
    }
}

.ynews-character-guide-block + .ynews-character-guide-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(20, 32, 43, 0.08);
}

.ynews-character-guide-body--single .ynews-character-guide-block:last-child {
    padding-bottom: 40px;
}

.ynews-character-guide-section-title {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

.ynews-character-guide-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.ynews-character-guide-accordion-toggle .ynews-character-guide-section-title {
    margin-bottom: 0;
}

.ynews-character-guide-accordion-icon {
    flex: 0 0 auto;
    font-size: 22px;
    color: #7d8995;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), color 220ms ease;
}

.ynews-character-guide-accordion-toggle[aria-expanded="true"] .ynews-character-guide-accordion-icon {
    transform: rotate(45deg);
    color: #ff5f77;
}

.ynews-character-guide-accordion-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 540ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease;
}

.ynews-character-guide-accordion-panel.is-open {
    opacity: 1;
}

.ynews-character-guide-accordion-toggle[aria-expanded="true"] + .ynews-character-guide-accordion-panel {
    margin-top: 12px;
}

.ynews-character-guide-accordion-panel .ynews-character-guide-linkgrid {
    margin-top: 16px;
}

.ynews-character-guide-panel-copy {
    display: grid;
    gap: 16px;
}

.ynews-character-guide-panel-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.ynews-character-guide-panel-icon img {
    display: block;
    width: 72px;
    height: 72px;
    opacity: 0.3;
}

.ynews-character-guide-panel-copy h3 {
    margin: 20px 0 4px;
    color: #101828;
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-align: center;
}

.ynews-character-guide-panel-lead {
    margin: -4px 0 20px;
    color: #627282;
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}

.ynews-character-guide-panel-answer,
.ynews-character-guide-panel-points {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 6px;
    background: rgba(247, 250, 252, 0.92);
    border: 1px solid rgba(20, 32, 43, 0.08);
}

.ynews-character-guide-panel-answer strong,
.ynews-character-guide-panel-points strong {
    color: #101828;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.ynews-character-guide-panel-answer p {
    margin: 0;
    color: #233243;
}

.ynews-character-guide-subtoggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.ynews-character-guide-subtoggle-icon {
    flex: 0 0 auto;
    font-size: 20px;
    color: #7d8995;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), color 220ms ease;
}

.ynews-character-guide-subtoggle[aria-expanded="true"] .ynews-character-guide-subtoggle-icon {
    transform: rotate(45deg);
    color: #ff5f77;
}

.ynews-character-guide-subpanel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 440ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}

.ynews-character-guide-subpanel.is-open {
    opacity: 1;
}

.ynews-character-guide-subtoggle[aria-expanded="true"] + .ynews-character-guide-subpanel {
    margin-top: 12px;
}

.ynews-character-guide-subpanel p {
    margin: 0;
    color: #233243;
}

.ynews-character-guide-panel-points ul {
    margin: 0;
    padding-left: 1.2em;
    color: #233243;
}

.ynews-character-guide-subpanel ul {
    margin: 0;
    padding-left: 1.2em;
    color: #233243;
}

.ynews-character-guide-panel-points li + li {
    margin-top: 4px;
}

.ynews-character-guide-subpanel li + li {
    margin-top: 4px;
}

.ynews-character-guide-panel-section {
    display: grid;
    gap: 12px;
}

.ynews-character-guide-panel-section + .ynews-character-guide-panel-section {
    margin-top: 24px;
}

.ynews-character-guide-panel-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 4px;
    color: #111827;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.ynews-character-guide-panel-section h4 i {
    flex: 0 0 auto;
    font-size: 16px;
    color: #7d8995;
}

.ynews-character-guide-panel-section h4 span {
    display: inline-block;
}

.ynews-character-guide-panel-section p {
    margin: 0;
    color: #33475b;
    line-height: 1.95;
}

.ynews-character-guide-inline-h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 -2px;
    color: #111827;
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.ynews-character-guide-inline-h4 i {
    flex: 0 0 auto;
    font-size: 16px;
    color: #7d8995;
}

.ynews-character-guide-inline-h4 span {
    display: inline-block;
}

.ynews-character-guide-linkgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ynews-character-guide-linkcard {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(20, 32, 43, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    color: inherit;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.ynews-character-guide-linkcard:hover,
.ynews-character-guide-linkcard:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(17, 31, 46, 0.08);
    border-color: rgba(255, 107, 94, 0.28);
}

.ynews-character-guide-linkcard__eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7d8995;
}

.ynews-character-guide-linkcard strong {
    font-size: 18px;
    line-height: 1.35;
    color: var(--character-title);
}

.ynews-character-guide-linkcard span:last-child {
    font-size: 13px;
    line-height: 1.75;
    color: #556474;
}

.ynews-character-guide-linkcard.is-static {
    cursor: default;
}

body.is-character-entry-modal-open {
    overflow: hidden;
}

.theme-night .ynews-character-link-pill,
.theme-night .ynews-character-link-pill:visited {
    border-color: rgba(223, 233, 243, 0.1);
    background: rgba(223, 233, 243, 0.08);
    color: #ecf2f8;
}

.theme-night .ynews-character-message-field input,
.theme-night .ynews-character-message-field textarea {
    border-color: rgba(223, 233, 243, 0.08);
    background: rgba(10, 15, 21, 0.84);
    color: #f3f7fb;
}

.theme-night .ynews-character-form-notice.is-error {
    background: rgba(190, 24, 93, 0.18);
    color: #ffd7e4;
}

.theme-night .ynews-character-form-notice.is-success {
    background: rgba(22, 101, 52, 0.22);
    color: #d8ffe6;
}

@keyframes characterPortraitBounce {
    0% { transform: translateY(0) scale(1); }
    22% { transform: translateY(-14px) scale(1.02); }
    48% { transform: translateY(0) scale(0.98); }
    72% { transform: translateY(-5px) scale(1.01); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes characterPortraitSheen {
    0% {
        transform: translateX(-180%) skewX(-18deg);
    }
    100% {
        transform: translateX(360%) skewX(-18deg);
    }
}

@keyframes characterOrbitFloatOne {
    0%,
    100% {
        transform: scale(1) rotate(-8deg) translate3d(0, 0, 0);
    }
    50% {
        transform: scale(1.018) rotate(-4deg) translate3d(0, -8px, 0);
    }
}

@keyframes characterOrbitFloatTwo {
    0%,
    100% {
        transform: scale(1) rotate(8deg) translate3d(0, 0, 0);
    }
    50% {
        transform: scale(1.022) rotate(12deg) translate3d(0, 9px, 0);
    }
}

@keyframes characterPortraitSink {
    0% { transform: translateY(0) scale(1); }
    24% { transform: translateY(10px) scale(0.985); }
    52% { transform: translateY(-2px) scale(1.005); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes characterHeartBurst {
    0% {
        opacity: 0;
        transform: translate(-50%, 8px) scale(0.7);
    }
    16% {
        opacity: 1;
        transform: translate(-50%, -6px) scale(1.08);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--burst-drift, 0px)), -72px) scale(1.18);
    }
}

@media (max-width: 760px) {
    .ynews-character-hero {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 18px 50px;
    }

    .ynews-character-kicker--mobile {
        display: block;
        grid-column: 1;
        margin: 0 0 -4px;
        text-align: center;
    }

    .ynews-character-hero__visual {
        min-height: auto;
        order: 2;
    }

    .ynews-character-hero__copy {
        order: 3;
        gap: 12px;
        text-align: center;
        justify-items: center;
    }

    .ynews-character-hero__copy > .ynews-character-kicker {
        display: none;
    }

    .ynews-character-summary {
        display: block;
        width: 100%;
        margin-top: 20px;
        margin-bottom: 30px;
        text-align: left;
        white-space: pre-line;
        font-size: 14px;
        line-height: 1.82;
        color: #566474;
    }

    .ynews-character-reaction-group {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ynews-character-like-row {
        width: 100%;
        order: 4;
        justify-items: stretch;
    }

    .ynews-character-like-button {
        width: 100%;
        justify-content: center;
        min-height: 42px;
        padding: 0 18px;
        gap: 8px;
    }

    .ynews-character-like-note {
        text-align: center;
    }

    .ynews-character-summary {
        order: 5;
    }

    .ynews-character-footer-nav__primary {
        gap: 10px;
        justify-content: flex-start;
    }

    .ynews-character-link-pill,
    .ynews-character-link-pill--button {
        min-height: 40px;
        padding: 0 14px;
        font-size: 13px;
    }

    .ynews-character-entry-flow,
    .ynews-character-entry-card {
        padding: 20px 16px;
        border-radius: 22px;
    }

    .ynews-character-entry-flow__steps {
        grid-template-columns: 1fr;
    }

    .ynews-character-entry-form {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ynews-character-entry-field textarea {
        min-height: 180px;
    }

    .ynews-character-entry-auth__actions {
        flex-direction: column;
        width: 100%;
    }

    .ynews-character-entry-modal__dialog {
        width: min(100vw - 20px, 100%);
        margin-top: 12vh;
        padding: 24px 18px 18px;
        border-radius: 22px;
    }

    .ynews-character-entry-modal__dialog h2 {
        font-size: 24px;
    }

    .ynews-character-entry-modal__actions {
        flex-direction: column;
    }

    .ynews-character-entry-submit,
    .ynews-character-entry-modal__ghost {
        width: 100%;
    }

    .ynews-character-guide-linkgrid {
        grid-template-columns: 1fr;
    }

    .ynews-character-guide-hubnav {
        justify-content: flex-start;
    }

    .ynews-character-guide-hublink,
    .ynews-character-guide-tab {
        min-height: 40px;
        font-size: 12px;
    }

    .ynews-character-guide-block + .ynews-character-guide-block {
        margin-top: 12px;
        padding-top: 12px;
    }

    .ynews-character-guide-section-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .ynews-character-guide-overview {
        gap: 10px;
        margin-bottom: 20px;
        padding: 16px;
    }

    .ynews-character-guide-overview__lead,
    .ynews-character-guide-overview__list {
        font-size: 12px;
    }

    .ynews-character-guide-panel-copy {
        gap: 14px;
    }

    .ynews-character-guide-panel-copy h3 {
        font-size: 24px;
    }

    .ynews-character-guide-panel-lead {
        font-size: 12px;
    }

    .ynews-character-guide-panel-answer,
    .ynews-character-guide-panel-points {
        padding: 14px 15px;
    }

    .ynews-character-guide-panel-answer strong,
    .ynews-character-guide-panel-points strong {
        font-size: 14px;
    }

    .ynews-character-guide-panel-section h4 {
        font-size: 18px;
    }

    .ynews-character-guide-accordion-icon {
        font-size: 20px;
    }
}

.theme-night .ynews-character-entry-flow,
.theme-night .ynews-character-entry-card,
.theme-night .ynews-character-entry-modal__dialog {
    background: linear-gradient(145deg, rgba(18, 27, 38, 0.98), rgba(24, 37, 50, 0.98));
    border-color: rgba(223, 233, 243, 0.08);
}

.theme-night .ynews-character-entry-flow__head h2,
.theme-night .ynews-character-entry-step h3,
.theme-night .ynews-character-entry-card__head h2,
.theme-night .ynews-character-entry-modal__dialog h2 {
    color: #edf4fb;
}

.theme-night .ynews-character-entry-flow__lead,
.theme-night .ynews-character-entry-step p,
.theme-night .ynews-character-entry-auth__lead,
.theme-night .ynews-character-entry-card__lead,
.theme-night .ynews-character-entry-field span,
.theme-night .ynews-character-entry-check span,
.theme-night .ynews-character-entry-modal__dialog p {
    color: #a8b8c8;
}

.theme-night .ynews-character-entry-step {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(223, 233, 243, 0.08);
}

.theme-night .ynews-character-entry-field input,
.theme-night .ynews-character-entry-field textarea {
    background: rgba(8, 14, 20, 0.88);
    border-color: rgba(223, 233, 243, 0.08);
    color: #eef5fb;
}

.theme-night .ynews-character-entry-field input[readonly],
.theme-night .ynews-character-entry-field textarea[readonly] {
    background: rgba(40, 52, 65, 0.72);
    color: #91a3b4;
}

.theme-night .ynews-character-entry-modal__ghost,
.theme-night .ynews-character-entry-modal__close {
    background: rgba(223, 233, 243, 0.1);
    color: #dce6ef;
}

.theme-night .ynews-character-entry-lock-note {
    background: rgba(255, 107, 94, 0.14);
    color: #ffb7ac;
}

.theme-night .ynews-character-guide-linkcard {
    background: rgba(20, 31, 42, 0.78);
    border-color: rgba(223, 233, 243, 0.08);
}

.theme-night .ynews-character-guide-overview,
.theme-night .ynews-character-guide-panel-answer,
.theme-night .ynews-character-guide-panel-points {
    background: rgba(15, 24, 34, 0.88);
    border-color: rgba(223, 233, 243, 0.08);
}

.theme-night .ynews-character-guide-hublink {
    background: rgba(18, 29, 40, 0.86);
    border-color: rgba(223, 233, 243, 0.08);
    color: #dce6ef;
}

.theme-night .ynews-character-guide-tab {
    background: rgba(18, 29, 40, 0.74);
    border-color: rgba(223, 233, 243, 0.08);
    color: #a7b6c6;
}

.theme-night .ynews-character-guide-tab:hover,
.theme-night .ynews-character-guide-tab:focus-visible {
    color: #edf4fb;
}

.theme-night .ynews-character-guide-tab.is-current {
    color: #fff;
    background: linear-gradient(135deg, #ff7a59, #ff4d77);
    border-color: transparent;
}

.theme-night .ynews-character-guide-inline-title h1 {
    color: #edf4fb;
}

.theme-night .ynews-character-guide-block + .ynews-character-guide-block {
    border-top-color: rgba(223, 233, 243, 0.08);
}

.theme-night .ynews-character-guide-section-title {
    color: #a7b6c6;
}

.theme-night .ynews-character-guide-overview__lead,
.theme-night .ynews-character-guide-panel-lead,
.theme-night .ynews-character-guide-panel-section p {
    color: #a9b8c7;
}

.theme-night .ynews-character-guide-accordion-icon {
    color: #9eb0c1;
}

.theme-night .ynews-character-guide-subtoggle-icon,
.theme-night .ynews-character-guide-panel-section h4 i {
    color: #9eb0c1;
}

.theme-night .ynews-character-guide-subpanel p,
.theme-night .ynews-character-guide-subpanel ul,
.theme-night .ynews-character-guide-panel-answer p,
.theme-night .ynews-character-guide-panel-points ul {
    color: #d8e4ef;
}

.theme-night .ynews-character-guide-overview__list,
.theme-night .ynews-character-guide-panel-answer p,
.theme-night .ynews-character-guide-panel-points ul,
.theme-night .ynews-character-guide-panel-answer strong,
.theme-night .ynews-character-guide-panel-points strong,
.theme-night .ynews-character-guide-panel-copy h3,
.theme-night .ynews-character-guide-panel-section h4 {
    color: #edf4fb;
}

.theme-night .ynews-character-guide-linkcard strong {
    color: #edf4fb;
}

.theme-night .ynews-character-guide-linkcard__eyebrow,
.theme-night .ynews-character-guide-linkcard span:last-child {
    color: #a7b6c6;
}

.theme-night .ynews-character-entry-notice.is-success {
    background: rgba(73, 155, 255, 0.16);
    color: #d6eaff;
}

.theme-night .ynews-character-entry-notice.is-error {
    background: rgba(255, 107, 94, 0.16);
    color: #ffd8d3;
}

.theme-night .ynews-character-summary {
    color: #d9e3ec;
}

@media (max-width: 760px) {
    .theme-night .ynews-character-summary {
        color: #a4b2c1;
    }
}

@media (max-width: 900px) {
    .ynews-character-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .ynews-character-hero__visual {
        min-height: 250px;
    }

    .ynews-character-grid {
        grid-template-columns: 1fr;
    }

    .ynews-character-index-card {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .ynews-character-index-card.is-ranking-card {
        grid-template-columns: 56px 84px minmax(0, 1fr);
    }

    .ynews-character-index-like {
        justify-self: center;
    }

    .ynews-character-index-avatar {
        width: 84px;
        height: 84px;
    }

    .ynews-character-message-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ynews-character-shell {
        width: min(100vw - 20px, 100%);
        padding: 18px 0 56px;
    }

    .ynews-character-kicker,
    .ynews-character-hero h1 {
        text-align: center;
    }

    .ynews-character-hero {
        border-radius: 24px;
        gap: 20px;
        padding: 18px;
    }

    .ynews-character-portrait {
        width: min(240px, 100%);
        border-radius: 24px;
    }

    .ynews-character-message-lead {
        font-size: 10px;
        line-height: 1.6;
    }

    .ynews-character-message-type-switch {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
    }

    .ynews-character-message-type-pill span {
        min-height: 34px;
        padding: 0 10px;
        gap: 6px;
        font-size: 11px;
    }

    .ynews-character-message-type-pill span i {
        font-size: 12px;
    }

    .ynews-character-card {
        padding: 18px;
        border-radius: 22px;
    }

    .ynews-character-like-button {
        width: 100%;
        justify-content: center;
    }

    .ynews-character-reaction-group {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ynews-character-message-type-switch,
    .ynews-character-message-actions {
        width: 100%;
    }

    .ynews-character-message-type-pill,
    .ynews-character-message-type-pill span,
    .ynews-character-message-submit {
        width: 100%;
    }

    .ynews-character-index-card {
        grid-template-columns: 72px minmax(0, 1fr);
        padding: 18px;
        border-radius: 10px;
    }

    .ynews-character-index-card.is-ranking-card {
        grid-template-columns: 46px 72px minmax(0, 1fr);
    }

    .ynews-character-scrolltop {
        right: 14px;
        bottom: 46px;
        width: 48px;
        height: 48px;
    }

    .ynews-character-scrolltop i {
        font-size: 20px;
    }

    .ynews-character-index-avatar {
        width: 72px;
        height: 72px;
        border-radius: 18px;
        font-size: 32px;
    }

    .ynews-character-index-copy strong {
        font-size: 22px;
    }

    .ynews-character-index-rank--hero {
        font-size: 32px;
    }

    .ynews-character-index-rank--hero i {
        font-size: 16px;
    }
}

.theme-night .ynews-character-like-button,
.theme-night .ynews-character-message-type-pill input:checked + span,
.theme-night .ynews-character-message-submit,
.theme-night .ynews-character-link-pill.is-current,
.theme-night .ynews-character-scrolltop,
.theme-night .ynews-character-entry-submit,
.theme-night .ynews-character-guide-tab.is-current {
    color: #e7edf5;
}
