@import url("/css/typography.css?v=e901f1eaf051");
@import url("/css/scrollbars.css?v=755d27d1d1b7");

html {
    background: #111;

    /* 화면 밖으로 나간 장식 때문에 가로 스크롤이 생기는 것만 방지 */
    overflow-x: hidden;
    overflow-x: clip;

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    max-width: 980px;
    margin: 0 auto;
    padding: 32px 24px;

    /* 전체 화면 섹션이 body 바깥으로 펼쳐질 수 있게 허용 */
    overflow-x: visible;

    background: #111;
    color: #d6d6d6;
    font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    font-size: var(--font-body-lg);
    line-height: 1.65;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.story-link {
    color: #f0c66a;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(240, 198, 106, 0.45);
}

.story-link:hover {
    color: #ffe08a;
    border-bottom-color: #ffe08a;
}

.storm-blue {
    color: #54a9eb;
    font-weight: 700;
}

.chapter-header {
    margin: 0 0 -8px 0;
    padding: 26px 0 22px 0;
}

.chapter-header::before {
    content: "";
    display: block;
    width: 54px;
    height: 4px;
    background: #f0c66a;
    border-radius: 999px;
    margin-bottom: 16px;
}

.chapter-label {
    display: block;
    color: #f0c66a;
    font-size: max(var(--font-ui-xs), 0.9em);
    font-weight: 800;
    letter-spacing: 0.16em;
}

.chapter-day {
    display: block;
    margin-top: 6px;
    color: #f2f2f2;
    font-size: 2.35em;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.chapter-scene {
    margin: 18px 0 0 0;
    padding: 10px 0 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    color: #d6d6d6;
    font-size: max(var(--font-ui-xs), 0.95em);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.scene-time {
    color: #f0c66a;
}

.scene-place {
    color: #b8c7d9;
}

/* 코드블록과 챕터 헤더 사이 여백 제거 */
.chapter-header+pre {
    margin-top: 0;
}

blockquote.dialog-1 {
    background: #102A3A;
    border-left: 4px solid #569CD6;
    color: #D4D4D4;
    padding: 10px 14px;
    margin: 12px 0;
    font-weight: 700;
}

.dialogue {
    background: rgba(20, 22, 26, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid #9aa4b2;
    color: #e7e7e7;
    padding: 12px 16px;
    margin: 14px 0 22px 0;
    border-radius: 6px;
    font-weight: 400;
}

.dialogue .name {
    display: block;
    color: #aeb7c4;
    font-weight: 700;
    margin-bottom: 6px;
}

.narration {
    color: #cfcfcf;
    border-left: 2px solid rgba(255, 255, 255, 0.22);
    padding: 4px 0 4px 14px;
    margin: 18px 0 26px 0;
    line-height: 1.75;
    font-weight: 400;
}

.emergency-alert {
    position: relative;
    background: linear-gradient(180deg, #3a0d12 0%, #2a090d 100%);
    border: 1px solid #ff5a63;
    border-left: 6px solid #ff434f;
    color: #ffd9dc;
    padding: 14px 16px 14px 74px;
    margin: 18px 0 24px 0;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.emergency-alert::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 34px;
    background: #ff5a63;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}

.emergency-alert::after {
    content: "!";
    position: absolute;
    left: 41px;
    top: 50%;
    transform: translate(-50%, -30%);
    color: #ffffff;
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
}

.emergency-alert .label {
    display: block;
    color: #ff7f88;
    margin-bottom: 6px;
    font-weight: 800;
}

.warning-alert {
    position: relative;
    background: linear-gradient(180deg, #3a2d0d 0%, #241c08 100%);
    border: 1px solid #ffd166;
    border-left: 6px solid #f5b700;
    color: #fff1c7;
    padding: 14px 16px 14px 74px;
    margin: 18px 0 24px 0;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.warning-alert::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 34px;
    background: #f5b700;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}

.warning-alert::after {
    content: "!";
    position: absolute;
    left: 41px;
    top: 50%;
    transform: translate(-50%, -30%);
    color: #1c1605;
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
}

.warning-alert .label {
    display: block;
    color: #ffd166;
    margin-bottom: 6px;
    font-weight: 800;
}

.sfx {
    color: #c9b27a;
    border-left: 2px dotted rgba(201, 178, 122, 0.6);
    padding: 4px 0 4px 12px;
    margin: 10px 0 18px 0;
    font-size: max(var(--font-ui-xs), 0.92em);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.sfx-label {
    display: inline-block;
    color: #f0c66a;
    background: rgba(240, 198, 106, 0.08);
    border: 1px solid rgba(240, 198, 106, 0.35);
    padding: 1px 6px;
    margin-right: 6px;
    border-radius: 4px;
    font-size: max(var(--font-ui-xs), 0.86em);
    font-weight: 800;
}

.sfx-label[data-icon]::before {
    content: attr(data-icon);
    display: inline-block;
    margin-right: 5px;
    font-size: max(var(--font-ui-xs), 0.9em);
    line-height: 1;
}

.vfx {
    color: #ac7ac9;
    border-left: 2px dotted rgba(169, 122, 201, 0.6);
    padding: 4px 0 4px 12px;
    margin: 10px 0 18px 0;
    font-size: max(var(--font-ui-xs), 0.92em);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.vfx-label {
    display: inline-block;
    color: #a66af0;
    background: rgba(195, 106, 240, 0.08);
    border: 1px solid rgba(195, 106, 240, 0.35);
    padding: 1px 6px;
    margin-right: 6px;
    border-radius: 4px;
    font-size: max(var(--font-ui-xs), 0.86em);
    font-weight: 800;
}

.lockscreen {
    width: 320px;
    margin: 14px 0px 24px 0;
    padding: 18px 16px 20px 16px;
    background: linear-gradient(180deg, #12151c 0%, #0c0f14 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.lockscreen-time {
    color: #f3f3f3;
    font-size: 2.2em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    text-align: center;
}

.lockscreen-date {
    color: #9ea7b3;
    font-size: 0.92em;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: center;
}

.lock-noti {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 12px 14px;
    backdrop-filter: blur(8px);
}

.lock-noti-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.lock-app {
    color: #48AFFF;
    font-size: 0.82em;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.lock-noti-time {
    color: #9ea7b3;
    font-size: 0.8em;
    font-weight: 700;
}

.lock-sender {
    color: #f2f2f2;
    font-size: max(var(--font-ui-xs), 0.98em);
    font-weight: 800;
    margin-bottom: 4px;
}

.lock-preview {
    color: #d5d9df;
    font-size: max(var(--font-ui-xs), 0.92em);
    font-weight: 500;
    line-height: 1.5;
}

.chat-message {
    margin: 0 0 18px 0;
}

.chat-message.me {
    text-align: right;
}

.chat-speaker {
    margin: 0 0 5px 0;
    color: #DDF1FF;
    font-size: 0.92em;
    font-weight: 800;
}

.chat-message.me .chat-speaker {
    color: #DDF1FF;
}

.chat-line {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.chat-message.me .chat-line {
    justify-content: flex-end;
}

.chat-bubble {
    display: inline-block;
    max-width: min(520px, 100%);
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 0.96em;
    font-weight: 700;
    line-height: 1.45;
    word-break: keep-all;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
    min-width: 0;
    flex-shrink: 1;
    overflow-wrap: anywhere;
}

.image-bubble {
    padding: 6px;
    background: #ffffff;
}

.chat-image {
    display: block;
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    cursor: zoom-in;
}

.image-lightbox-toggle {
    display: none;
}

.image-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    padding: 24px;
    background: rgba(0, 0, 0, 0.86);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    overflow: hidden;
}

.image-lightbox-toggle:checked+.image-lightbox {
    display: flex;
}

.image-lightbox img,.image-lightbox-photo {
    display: block;
    max-width: 94vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.image-lightbox-notifications {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;

    display: flex;
    flex-direction: column;
    gap: 10px;

    pointer-events: none;
}

.image-lightbox-notifications .notification-popup {
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
    width: min(340px, calc(100vw - 32px));
}

.image-lightbox.play-notifications .notification-popup:nth-child(1) {
    animation: lightboxNotificationFirst 4s ease both;
}

.image-lightbox.play-notifications .notification-popup:nth-child(2) {
    animation: lightboxNotificationSecond 3s ease 1s both;
}

@keyframes lightboxNotificationFirst {
    0% {
        opacity: 0;
        transform: translateY(-14px) scale(0.98);
    }

    8% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    82% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
}

@keyframes lightboxNotificationSecond {
    0% {
        opacity: 0;
        transform: translateY(-14px) scale(0.98);
    }

    10% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    82% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
}

.chat-bubble.incoming {
    background: #F1F3F5;
    color: #1e1e1e;
    border-top-left-radius: 4px;
}

.chat-bubble.outgoing {
    background: #DDF1FF;
    color: #1e1e1e;
    border-top-right-radius: 4px;
}

.chat-time {
    color: #8f98a3;
    font-size: 0.74em;
    font-weight: 700;
    white-space: nowrap;
    margin-bottom: 2px;
    flex: 0 0 auto;
}

.notification-popup {
    width: 340px;
    margin: 14px 0px 24px 0;
    padding: 10px 13px;
    border-radius: 17px;
    background: rgba(23, 33, 43, 0.96);
    border: 1px solid rgba(221, 241, 255, 0.08);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.35),
        0 2px 10px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);

    box-sizing: border-box;

    display: flex;
    align-items: center;
    gap: 12px;

    color: #F4F8FB;
    font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

.notification-app-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(180deg, #45D6C5 0%, #48AFFF 100%);
    color: #17212B;
    font-size: 1.05em;
    font-weight: 900;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(69, 214, 197, 0.25);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 5px 0;
    line-height: 1.15;
}

.notification-app-name {
    color: #48AFFF;
    font-size: 0.85em;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.notification-time {
    color: #8F98A3;
    font-size: 0.77em;
    font-weight: 700;
    white-space: nowrap;
}

.notification-message {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.2;
}

.notification-sender {
    color: #FFFFFF;
    font-size: 0.93em;
    font-weight: 900;
    line-height: 1.2;
}

.notification-text {
    color: #D7E0E8;
    font-size: 0.88em;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-composer {
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 8px;

    font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

.quick-message-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.quick-message-button {
    min-height: 34px;
    padding: 7px 10px;

    border: 1px solid rgba(221, 241, 255, 0.14);
    border-radius: 999px;
    background: rgba(23, 33, 43, 0.82);
    color: #DDF1FF;

    font-size: 0.82em;
    font-weight: 800;
    line-height: 1.2;

    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);

    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-message-button:hover {
    border-color: rgba(69, 214, 197, 0.55);
    background: rgba(29, 47, 58, 0.94);
    color: #FFFFFF;
}

.quick-message-button:active {
    transform: translateY(1px);
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 14px;

    border: 1px solid rgba(221, 241, 255, 0.12);
    border-radius: 999px;
    background: rgba(23, 33, 43, 0.9);
    color: #F4F8FB;

    font-size: 0.92em;
    font-weight: 700;
    outline: none;

    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.24);

    width: 100%;

    max-width: 100%;
}

.chat-input::placeholder {
    color: #8F98A3;
}

.chat-input:focus {
    border-color: rgba(69, 214, 197, 0.7);
    box-shadow:
        0 0 0 2px rgba(69, 214, 197, 0.12),
        inset 0 1px 3px rgba(0, 0, 0, 0.24);
}

.chat-send-button {
    width: 64px;
    height: 42px;

    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #45D6C5 0%, #2FB8E8 100%);
    color: #17212B;

    font-size: 0.9em;
    font-weight: 900;

    cursor: pointer;
    box-shadow: 0 4px 12px rgba(69, 214, 197, 0.22);
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 64px;
}

.chat-send-button:hover {
    filter: brightness(1.06);
}

.chat-send-button:active {
    transform: translateY(1px);
}

.news-lower-third {
    width: min(760px, 100%);
    margin: 22px 0 28px 0;
    font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;

    background: transparent;
    border-radius: 0;
    overflow: visible;

    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.34));
}

.news-label {
    width: fit-content;
    height: auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 8px 20px;

    background: #143252;
    border-radius: 6px 6px 0 0;

    color: #b9d9f4;
    font-size: 1.08em;
    font-weight: 900;
    letter-spacing: 0.06em;
    max-width: 100%;
    min-height: 42px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.news-lower-main {
    min-height: 86px;

    display: flex;
    align-items: center;

    padding: 0 32px;

    background:
        linear-gradient(90deg,
            #173b61 0%,
            #1d4a78 55%,
            #225582 100%);

    border-radius: 0 6px 0 0;
}

.news-headline {
    color: #ffffff;
    font-size: 2.00em;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.04em;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.news-ticker {
    min-height: 36px;
    display: flex;
    align-items: center;

    background: #eef4fb;
    color: #17212b;

    font-size: 0.82em;
    font-weight: 800;

    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.news-ticker-label {
    align-self: stretch;
    display: flex;
    align-items: center;

    padding: 0 15px;
    background: #1d5f9f;
    color: #ffffff;

    font-weight: 900;
    flex-shrink: 0;
}

.news-ticker-text {
    flex: 1;
    min-width: 0;
    padding: 8px 14px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-ticker-time {
    padding: 0 14px;
    color: #506272;
    font-size: 0.9em;
    font-weight: 900;
    flex-shrink: 0;
}

/* =========================================================
   CHARACTER INDEX
   ========================================================= */

.character-index {
    display: block !important;

    width: 100%;
    max-width: none;

    margin: 64px 0 80px;
    padding: 0;
}

.character-index__label {
    margin: 0 0 10px;

    color: #78c8ff;

    font-size: var(--font-ui-sm);
    font-weight: 700;
    letter-spacing: 0.14em;
}

.character-index__title {
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    color: #f5f6f8;

    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.character-index__description {
    max-width: 720px;
    margin: 14px 0 34px;

    color: #9499a2;

    font-size: var(--font-body);
    line-height: 1.7;
}


/* 카드 전체 영역 */

.character-grid {
    display: grid !important;

    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    gap: 16px;
    align-items: stretch;
}


/* 개별 카드 */

.character-card {
    --card-accent: #78c8ff;

    position: relative;

    display: flex !important;
    width: auto !important;
    min-width: 0;
    min-height: 172px;

    padding: 26px 30px 24px 36px;

    flex-direction: column;
    justify-content: flex-end;

    overflow: hidden;

    border: 1px solid #2d3035;
    border-radius: 17px;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012));

    color: #f4f5f7 !important;
    text-decoration: none !important;

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}


/* 좌측 컬러 라인 */

.character-card::before {
    content: "";

    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 0;

    width: 4px;

    border-radius: 0 999px 999px 0;

    background: var(--card-accent);
}


/* 우측 흐린 캐릭터 코드 */

.character-card::after {
    content: attr(data-name);

    position: absolute;
    top: 24px;
    right: 26px;

    max-width: 62%;

    overflow: hidden;

    color: rgba(255, 255, 255, 0.055);

    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.055em;

    white-space: nowrap;
    text-align: right;
    text-overflow: ellipsis;

    pointer-events: none;
    user-select: none;
}


/* 호버 */

.character-card:hover {
    transform: translateY(-3px);

    border-color: var(--card-accent);

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.017));
}


/* 카드 내용 */

.character-card__number {
    position: absolute;
    top: 24px;
    left: 36px;

    color: var(--card-accent);

    font-size: var(--font-ui-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.character-card__name {
    position: relative;
    z-index: 1;

    color: #f7f8fa;

    font-size: 29px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.character-card__type {
    position: relative;
    z-index: 1;

    margin-top: 9px;

    color: var(--card-accent);

    font-size: var(--font-ui-md);
    font-weight: 700;
}

.character-card__role {
    position: relative;
    z-index: 1;

    margin-top: 8px;

    color: #9da2aa;

    font-size: var(--font-body);
    line-height: 1.5;
}


/* 캐릭터별 색상 */

.character-card--player {
    --card-accent: #76c9ff;
}

.character-card--jiwoo {
    --card-accent: #ffd76f;
}

.character-card--taewoo {
    --card-accent: #8fe0bc;
}

.character-card--grandmother {
    --card-accent: #dadbe0;
}


/* 태블릿 */

@media (max-width: 900px) {
    .character-grid {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   CHARACTER INDEX — MOBILE
   ========================================================= */

@media (max-width: 600px) {
    .character-index {
        margin: 44px 0 60px;
    }

    .character-index__title {
        font-size: 34px;
    }

    .character-index__description {
        margin-bottom: 26px;

        font-size: var(--font-ui-md);
        line-height: 1.65;
    }


    /* 모바일에서는 고정 높이와 하단 정렬을 사용하지 않음 */

    .character-card {
        min-height: 0;

        padding: 22px 22px 24px 28px;

        justify-content: flex-start;

        border-radius: 15px;
    }


    /* 좌측 포인트 라인 */

    .character-card::before {
        top: 18px;
        bottom: 18px;
    }


    /* 모바일에서는 장식용 CH-001 코드 제거 */

    .character-card::after {
        display: none;
    }


    /* 번호를 절대 좌표가 아닌 일반 문서 흐름으로 변경 */

    .character-card__number {
        position: static;

        margin: 0 0 12px;

        font-size: var(--font-ui-xs);
        line-height: 1;
    }


    /* 이름 */

    .character-card__name {
        margin: 0;

        font-size: 27px;
        line-height: 1.18;
        letter-spacing: -0.035em;

        word-break: keep-all;
        overflow-wrap: break-word;
    }


    /* 중요도 */

    .character-card__type {
        margin-top: 12px;

        font-size: var(--font-ui-md);
        line-height: 1.35;
    }


    /* 역할 */

    .character-card__role {
        margin-top: 8px;

        font-size: var(--font-ui-md);
        line-height: 1.55;

        word-break: keep-all;
        overflow-wrap: break-word;
    }
}

/* =========================================================
   NICKNAME MODAL
   ========================================================= */

.nickname-modal {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: grid;
    place-items: center;

    padding: 24px;

    overflow-y: auto;
}

.nickname-modal[hidden] {
    display: none;
}

.nickname-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.78);

    backdrop-filter: blur(10px);
}

.nickname-modal__panel {
    position: relative;
    z-index: 1;

    width: clamp(470px, 52vw, 560px);
    max-width: 100%;

    padding: clamp(32px, 4vw, 40px);

    border: 1px solid #303238;
    border-radius: 20px;

    background: #111214;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.62),
        0 0 0 1px rgba(255, 255, 255, 0.025);

    min-width: 0;

    max-height: calc(100dvh - 48px);

    overflow-y: auto;

    overscroll-behavior: contain;
}

.nickname-modal__label {
    margin-bottom: 15px;

    color: #78c8ff;

    font-size: var(--font-ui-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
}

.nickname-modal__panel h2 {
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    color: #f7f8fa;

    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.035em;

    word-break: keep-all;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.nickname-modal__panel p {
    margin: 14px 0 28px;

    color: #969ba4;

    font-size: var(--font-ui-md);
    line-height: 1.7;
}

.nickname-modal__field {
    display: block;
    min-width: 0;
    max-width: 100%;
}

.nickname-modal__field span {
    display: block;

    margin-bottom: 9px;

    color: #b9bdc4;

    font-size: var(--font-ui-sm);
    font-weight: 700;
}

.nickname-modal__field input {
    width: 100%;

    padding: 14px 15px;

    border: 1px solid #363940;
    border-radius: 10px;

    outline: none;

    background: #0b0c0e;

    color: #f7f8fa;

    font: inherit;
    font-size: var(--font-body-lg);

    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;

    min-width: 0;

    max-width: 100%;

    display: block;
}

.nickname-modal__field input:focus {
    border-color: #78c8ff;

    box-shadow:
        0 0 0 3px rgba(120, 200, 255, 0.12);
}

.nickname-modal__field input::placeholder {
    color: #60646b;
}

.nickname-modal__error {
    min-height: 21px;

    margin-top: 8px;

    color: #ff7c89;

    font-size: var(--font-ui-sm);
}

.nickname-modal__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-top: 8px;
}

.nickname-modal__button {
    width: 100%;
    min-width: 0;

    padding: 14px 18px;

    border-radius: 10px;

    cursor: pointer;

    font: inherit;
    font-size: var(--font-body);
    font-weight: 800;

    transition:
        transform 150ms ease,
        border-color 150ms ease,
        background-color 150ms ease,
        color 150ms ease,
        filter 150ms ease;
}

.nickname-modal__button--primary {
    border: 1px solid #78c8ff;

    background: #78c8ff;
    color: #071018;
}

.nickname-modal__button--primary:hover {
    filter: brightness(1.08);
}

.nickname-modal__button--secondary {
    border: 1px solid #363940;

    background: transparent;
    color: #aeb3bb;
}

.nickname-modal__button--secondary:hover {
    border-color: #5b6069;

    background: rgba(255, 255, 255, 0.035);
    color: #f1f2f4;
}

.nickname-modal__button:active {
    transform: translateY(1px);
}

@media (max-width: 420px) {
    .nickname-modal__actions {
        grid-template-columns: 1fr;
    }

    .nickname-modal__button--primary {
        order: 1;
    }

    .nickname-modal__button--secondary {
        order: 2;
    }
}

body.nickname-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .nickname-modal {
        padding: 16px;
    }

    .nickname-modal__panel {
        padding: 28px 22px;
        border-radius: 16px;

        max-height: calc(100dvh - 48px);
    }

    .nickname-modal__panel h2 {
        font-size: 25px;
    }
}

/* =========================================================
   DOCUMENT NAVIGATION
   ========================================================= */


/* =========================================================
   PROJECT OVERVIEW — MODERN DARK
   ========================================================= */

.project-overview {
    --project-text-primary: #f5f5f7;
    --project-text-secondary: #a1a1a8;
    --project-text-tertiary: #72727a;

    --project-accent: #78c8ff;
    --project-accent-soft: rgba(120, 200, 255, 0.12);

    --project-surface: rgba(255, 255, 255, 0.038);
    --project-surface-hover: rgba(255, 255, 255, 0.058);
    --project-surface-strong: rgba(255, 255, 255, 0.065);

    --project-border: rgba(255, 255, 255, 0.09);
    --project-border-hover: rgba(255, 255, 255, 0.17);

    --project-radius-large: 28px;
    --project-radius-medium: 20px;
    --project-radius-small: 14px;

    position: relative;
    isolation: isolate;

    width: 100%;
    min-width: 0;

    margin: 0 0 110px;
}


/* =========================================================
   PROJECT HEADER
   ========================================================= */

.project-overview__header {
    position: relative;

    max-width: 850px;

    margin-bottom: 52px;
    padding: 12px 0 46px;

    border-bottom: 1px solid var(--project-border);
}

.project-overview__label {
    display: inline-flex;

    margin: 0 0 20px;
    padding: 7px 11px;

    align-items: center;
    gap: 8px;

    border: 1px solid rgba(120, 200, 255, 0.18);
    border-radius: 999px;

    background: rgba(120, 200, 255, 0.055);
    color: var(--project-accent);

    font-size: var(--font-ui-xs);
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0.14em;
}

.project-overview__label::before {
    content: "";

    width: 5px;
    height: 5px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--project-accent);

    box-shadow:
        0 0 0 4px rgba(120, 200, 255, 0.08);
}

.project-overview__title {
    max-width: 850px;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    color: var(--project-text-primary);

    font-size: clamp(34px, 5vw, 52px);
    font-weight: 780;
    line-height: 1.02;
    letter-spacing: -0.065em;

    word-break: keep-all;
    overflow-wrap: anywhere;
}

.project-overview__description {
    max-width: 700px;

    margin: 25px 0 0;

    color: var(--project-text-secondary);

    font-size: clamp(16px, 2vw, 19px);
    font-weight: 450;
    line-height: 1.72;
    letter-spacing: -0.018em;

    word-break: keep-all;
    overflow-wrap: anywhere;
}


/* =========================================================
   PROJECT PROFILE
   ========================================================= */

.project-profile-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;

    gap: 14px;

    margin: 0 0 18px;
}

.project-profile-card {
    position: relative;

    display: flex;

    min-width: 0;
    min-height: 154px;

    padding: 24px;

    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--project-border);
    border-radius: var(--project-radius-medium);

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018));

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 14px 38px rgba(0, 0, 0, 0.12);

    backdrop-filter: blur(18px) saturate(115%);
    -webkit-backdrop-filter: blur(18px) saturate(115%);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.project-profile-card::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 1px;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.16),
            transparent);
}

.project-profile-card__label {
    color: var(--project-text-tertiary);

    font-size: var(--font-ui-xs);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0.15em;

    word-break: break-word;
    overflow-wrap: anywhere;
}

.project-profile-card__value {
    margin-top: auto;
    padding-top: 28px;

    color: var(--project-text-primary);

    font-size: clamp(19px, 2.1vw, 23px);
    font-weight: 760;
    line-height: 1.18;
    letter-spacing: -0.035em;

    word-break: keep-all;
    overflow-wrap: anywhere;
}

.project-profile-card__subvalue {
    margin-top: 8px;

    color: var(--project-text-secondary);

    font-size: var(--font-ui-xs);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.015em;

    word-break: keep-all;
    overflow-wrap: anywhere;
}


/* =========================================================
   CORE CONCEPT
   ========================================================= */

.project-core-card {
    position: relative;

    margin-top: 18px;
    padding: clamp(34px, 5vw, 58px);

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--project-radius-large);

    background:
        radial-gradient(circle at 90% 5%,
            rgba(120, 200, 255, 0.13),
            transparent 35%),
        radial-gradient(circle at 15% 100%,
            rgba(255, 255, 255, 0.04),
            transparent 42%),
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.068),
            rgba(255, 255, 255, 0.018));

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 28px 80px rgba(0, 0, 0, 0.24);

    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
}

.project-core-card::before {
    content: "";

    position: absolute;
    top: 0;
    right: 11%;
    left: 11%;

    height: 1px;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
}

.project-core-card::after {
    content: "LANDFALL";

    position: absolute;
    right: -15px;
    bottom: -23px;

    color: rgba(255, 255, 255, 0.018);

    font-size: clamp(64px, 12vw, 112px);
    font-weight: 850;
    line-height: 0.9;
    letter-spacing: -0.075em;

    white-space: nowrap;

    pointer-events: none;
    user-select: none;
}

.project-core-card__label {
    position: relative;
    z-index: 1;

    color: var(--project-accent);

    font-size: var(--font-ui-xs);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0.16em;
}

.project-core-card__title {
    position: relative;
    z-index: 1;

    max-width: 820px;

    margin: 22px 0 32px !important;
    padding: 0 !important;

    border: 0 !important;

    color: var(--project-text-primary);

    font-size: clamp(34px, 5vw, 52px);
    font-weight: 770;
    line-height: 1.22;
    letter-spacing: -0.055em;

    word-break: keep-all;
    overflow-wrap: anywhere;
}

.project-core-card__content {
    position: relative;
    z-index: 1;

    max-width: 780px;
    min-width: 0;
}

.project-core-card__content p {
    margin: 0 0 17px;

    color: var(--project-text-secondary);

    font-size: clamp(14px, 1.7vw, 16px);
    font-weight: 450;
    line-height: 1.82;
    letter-spacing: -0.012em;

    word-break: keep-all;
    overflow-wrap: anywhere;
}

.project-core-card__content p:last-child {
    margin-bottom: 0;
}

.project-core-card__content strong {
    color: #edf7ff;
    font-weight: 720;
}

.project-core-flow {
    position: relative;
    z-index: 1;

    display: flex;

    margin-top: 38px;

    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.project-core-flow__item {
    max-width: 100%;

    padding: 8px 13px;

    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.03);
    color: #929299;

    font-size: var(--font-ui-xs);
    font-weight: 650;
    line-height: 1.2;

    word-break: keep-all;
    overflow-wrap: anywhere;
}

.project-core-flow__item--active {
    border-color: rgba(120, 200, 255, 0.35);

    background: rgba(120, 200, 255, 0.11);
    color: #9ed9ff;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.project-core-flow__arrow {
    color: #515158;

    font-size: var(--font-ui-xs);
    line-height: 1;
}


/* =========================================================
   WORLD / DISASTER
   ========================================================= */

.project-information-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin-top: 18px;
}

.project-information-card {
    position: relative;

    display: flex;

    min-width: 0;
    min-height: 305px;

    padding: clamp(28px, 4vw, 38px);

    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--project-border);
    border-radius: var(--project-radius-large);

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.014));

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.032),
        0 18px 50px rgba(0, 0, 0, 0.14);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.project-information-card__label {
    color: var(--project-accent);

    font-size: var(--font-ui-xs);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0.15em;

    overflow-wrap: anywhere;
}

.project-information-card__title {
    margin: 19px 0 24px !important;
    padding: 0 !important;

    border: 0 !important;

    color: var(--project-text-primary);

    font-size: clamp(24px, 3vw, 31px);
    font-weight: 750;
    line-height: 1.28;
    letter-spacing: -0.045em;

    word-break: keep-all;
    overflow-wrap: anywhere;
}

.project-information-card p {
    margin: 0 0 15px;

    color: var(--project-text-secondary);

    font-size: var(--font-ui-md);
    font-weight: 450;
    line-height: 1.8;
    letter-spacing: -0.012em;

    word-break: keep-all;
    overflow-wrap: anywhere;
}

.project-information-card p:last-child {
    margin-bottom: 0;
}

.project-hazard-list {
    display: flex;

    margin-top: 2px;

    flex-wrap: wrap;
    gap: 9px;
}

.project-hazard {
    max-width: 100%;

    padding: 9px 13px;

    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.028);
    color: #b4b4ba;

    font-size: var(--font-ui-xs);
    font-weight: 650;
    line-height: 1.25;

    word-break: break-word;
    overflow-wrap: anywhere;
}


/* =========================================================
   CHAPTER FLOW
   ========================================================= */

.chapter-flow {
    margin-top: 112px;
}

.chapter-flow__header {
    max-width: 720px;

    margin-bottom: 38px;
}

.chapter-flow__label {
    margin: 0;

    color: var(--project-accent);

    font-size: var(--font-ui-xs);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0.15em;
}

.chapter-flow__title {
    margin: 15px 0 0 !important;
    padding: 0 !important;

    border: 0 !important;

    color: var(--project-text-primary);

    font-size: clamp(34px, 5vw, 48px);
    font-weight: 760;
    line-height: 1.12;
    letter-spacing: -0.055em;

    word-break: keep-all;
    overflow-wrap: anywhere;
}

.chapter-flow__description {
    max-width: 640px;

    margin: 18px 0 0;

    color: var(--project-text-secondary);

    font-size: var(--font-body);
    font-weight: 450;
    line-height: 1.72;
    letter-spacing: -0.012em;

    word-break: keep-all;
    overflow-wrap: anywhere;
}

.chapter-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;

    gap: 18px;
}

.chapter-card {
    --chapter-accent: #78c8ff;

    position: relative;

    display: flex;

    min-width: 0;
    min-height: 285px;

    padding: 32px;

    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--project-border);
    border-radius: var(--project-radius-large);

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.047),
            rgba(255, 255, 255, 0.014));

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 18px 50px rgba(0, 0, 0, 0.14);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.chapter-card::before {
    content: "";

    position: absolute;
    top: 0;
    right: 32px;
    left: 32px;

    height: 2px;

    background:
        linear-gradient(90deg,
            var(--chapter-accent),
            transparent 72%);

    opacity: 0.85;
}

.chapter-card::after {
    content: attr(data-chapter);

    position: absolute;
    right: 18px;
    bottom: -18px;

    color: rgba(255, 255, 255, 0.022);

    font-size: clamp(84px, 12vw, 118px);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.07em;

    white-space: nowrap;

    pointer-events: none;
    user-select: none;
}

.chapter-card__number {
    position: relative;
    z-index: 1;

    color: var(--chapter-accent);

    font-size: var(--font-ui-xs);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0.15em;

    overflow-wrap: anywhere;
}

.chapter-card__title {
    position: relative;
    z-index: 1;

    margin: 22px 0 15px !important;
    padding: 0 !important;

    border: 0 !important;

    color: var(--project-text-primary);

    font-size: clamp(26px, 3vw, 32px);
    font-weight: 750;
    line-height: 1.24;
    letter-spacing: -0.045em;

    word-break: keep-all;
    overflow-wrap: anywhere;
}

.chapter-card__summary {
    position: relative;
    z-index: 1;

    max-width: 470px;

    margin: 0;

    color: var(--project-text-secondary);

    font-size: var(--font-ui-md);
    font-weight: 450;
    line-height: 1.72;

    word-break: keep-all;
    overflow-wrap: anywhere;
}

.chapter-card__list {
    position: relative;
    z-index: 1;

    margin: 21px 0 0;
    padding: 0;

    list-style: none;
}

.chapter-card__list li {
    position: relative;

    margin: 8px 0;
    padding-left: 16px;

    color: #909097;

    font-size: var(--font-ui-sm);
    font-weight: 500;
    line-height: 1.5;

    word-break: keep-all;
    overflow-wrap: anywhere;
}

.chapter-card__list li::before {
    content: "";

    position: absolute;
    top: 0.62em;
    left: 0;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--chapter-accent);

    transform: translateY(-50%);
}

.chapter-card__footer {
    position: relative;
    bottom: auto;
    left: auto;
    z-index: 1;

    margin-top: auto;
    padding-top: 26px;

    color: #696970;

    font-size: var(--font-ui-xs);
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: 0.045em;

    word-break: keep-all;
    overflow-wrap: anywhere;
}


/* 챕터별 포인트 컬러 */

.chapter-card--chapter-01 {
    --chapter-accent: #76c9ff;
}

.chapter-card--chapter-02 {
    --chapter-accent: #f0cc72;
}

.chapter-card--chapter-03 {
    --chapter-accent: #8bd9b6;
}

.chapter-card--extra {
    --chapter-accent: #c8c8ce;
}


/* =========================================================
   POINTER HOVER
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

    .project-profile-card:hover,
    .project-information-card:hover,
    .chapter-card:hover {
        transform: translateY(-4px);

        border-color: var(--project-border-hover);

        background:
            linear-gradient(145deg,
                rgba(255, 255, 255, 0.066),
                rgba(255, 255, 255, 0.02));

        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.045),
            0 24px 64px rgba(0, 0, 0, 0.21);
    }
}


/* =========================================================
   PROJECT RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
    .project-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .project-overview {
        margin-bottom: 84px;
    }

    .project-overview__header {
        margin-bottom: 34px;
        padding-bottom: 34px;
    }

    .project-overview__label {
        margin-bottom: 17px;
    }

    .project-overview__description {
        margin-top: 20px;
    }

    .project-information-grid,
    .chapter-grid {
        grid-template-columns: 1fr;
    }

    .project-core-card {
        border-radius: 22px;
    }

    .project-core-card::after {
        right: -8px;
        bottom: -12px;
    }

    .project-information-card,
    .chapter-card {
        border-radius: 22px;
    }

    .project-information-card {
        min-height: 0;
    }

    .chapter-flow {
        margin-top: 82px;
    }

    .chapter-card {
        min-height: 260px;
        padding: 28px 25px;
    }

    .chapter-card::before {
        right: 25px;
        left: 25px;
    }
}

@media (max-width: 520px) {
    .project-profile-grid {
        grid-template-columns: 1fr;

        gap: 11px;
    }

    .project-profile-card {
        min-height: 128px;

        padding: 21px;
    }

    .project-profile-card__value {
        padding-top: 21px;
    }

    .project-core-card {
        padding: 30px 23px;

        border-radius: 20px;
    }

    .project-core-card__title {
        margin-top: 18px !important;
        margin-bottom: 25px !important;
    }

    .project-core-flow {
        gap: 7px;
    }

    .project-core-flow__arrow {
        display: none;
    }

    .project-information-card {
        padding: 27px 23px;

        border-radius: 20px;
    }

    .chapter-card {
        padding: 27px 23px;

        border-radius: 20px;
    }

    .chapter-card::before {
        right: 23px;
        left: 23px;
    }

    .chapter-card::after {
        right: 10px;

        font-size: 82px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .project-profile-card,
    .project-information-card,
    .chapter-card {
        transition: none;
    }
}

/* =========================================================
   SECTION DIVIDER
   ========================================================= */

.section-divider {
    width: 100%;

    margin: 88px 0;

    border: 0;
    border-top: 1px solid #25272c;
}

@media (max-width: 760px) {
    .section-divider {
        margin: 64px 0;
    }
}

/* =========================================================
   MOBILE BASE
   ========================================================= */

@media (max-width: 600px) {
    body {
        padding: 24px 16px;
    }

    .lockscreen {
        width: 100%;
        max-width: 320px;
    }

    .notification-popup {
        width: 100%;
        max-width: 340px;
    }

    .quick-message-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quick-message-button {
        min-width: 0;
        min-height: 40px;
        padding-block: 9px;
    }

    .news-lower-main {
        padding: 18px 20px;
    }

    .news-headline {
        font-size: 1.45em;
    }
}

.character-showcase {
    --character-bg: #111;
    --character-text: #f5f6f8;
    --character-body: #b3b7bf;
    --character-muted: #737880;
    --character-line: rgba(255, 255, 255, 0.10);

    position: relative;
    width: 100%;
    margin: 0;
}


/* =========================================================
   BASE DOSSIER
   ========================================================= */

.character-dossier {
    --character-accent: #78c8ff;
    --character-accent-rgb: 120, 200, 255;

    position: relative;
    isolation: isolate;

    /*
     * 배경과 장식은 브라우저 전체 폭을 사용하고,
     * 내부 콘텐츠는 기존 980px 본문 위치에 맞춥니다.
     */
    width: 100vw;
    max-width: none !important;
    margin: 0;
    margin-left: calc(50% - 50vw);

    padding:
        clamp(86px, 11vw, 150px) max(24px, calc((100vw - 980px) / 2 + 24px));

    overflow: hidden;

    border-top: 1px solid var(--character-line);
}

.character-dossier:last-child {
    border-bottom: 1px solid var(--character-line);
}

.character-dossier::before {
    content: attr(data-ghost);

    position: absolute;
    z-index: -3;

    top: clamp(76px, 9vw, 118px);
    right: -0.045em;

    color: rgba(255, 255, 255, 0.021);

    font-size: clamp(80px, 16vw, 178px);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.085em;

    white-space: nowrap;

    pointer-events: none;
    user-select: none;
}

.character-dossier::after {
    content: "";

    position: absolute;
    z-index: -4;
    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(var(--character-accent-rgb), 0.045),
            transparent 34%);
}

.character-dossier__hero {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: clamp(92px, 13vw, 160px) minmax(0, 1fr);

    gap: clamp(22px, 5vw, 66px);
    align-items: end;
}

.character-dossier__serial {
    display: flex;

    flex-direction: column;
    gap: 10px;
}

.character-dossier__serial-label {
    color: var(--character-muted);

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.16em;
}

.character-dossier__serial strong {
    color: var(--character-accent);

    font-size: clamp(54px, 8vw, 92px);
    font-weight: 850;
    line-height: 0.82;
    letter-spacing: -0.075em;

    text-shadow:
        0 0 38px rgba(var(--character-accent-rgb), 0.13);
}

.character-dossier__identity {
    min-width: 0;
}

.character-dossier__eyebrow {
    margin-bottom: 14px;

    color: var(--character-accent);

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.16em;
}

.character-dossier__name {
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    color: var(--character-text);

    font-size: clamp(42px, 6vw, 72px);
    font-weight: 820;
    line-height: 0.9;
    letter-spacing: -0.075em;

    word-break: keep-all;
}

.character-dossier__role-line {
    display: flex;

    margin-top: 24px;

    flex-wrap: wrap;
    align-items: center;
    gap: 12px;

    color: #a4a9b1;

    font-size: var(--font-ui-sm);
    font-weight: 650;
    line-height: 1.4;
}

.character-dossier__role-line i {
    display: block;

    width: 34px;
    height: 1px;

    background: var(--character-accent);

    opacity: 0.7;
}

.character-dossier__body {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.75fr);

    gap: clamp(46px, 8vw, 100px);

    margin-top: clamp(66px, 8vw, 104px);
    padding-left: clamp(0px, 7vw, 108px);
}

.character-dossier__narrative {
    position: relative;

    min-width: 0;
}

.character-dossier__narrative::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: -34px;

    width: 1px;

    background:
        linear-gradient(180deg,
            var(--character-accent),
            rgba(var(--character-accent-rgb), 0.08));
}

.character-dossier__narrative p {
    margin: 0;

    color: var(--character-body);

    font-size: clamp(15px, 1.7vw, 17px);
    font-weight: 440;
    line-height: 1.95;
    letter-spacing: -0.012em;

    word-break: keep-all;
    overflow-wrap: anywhere;
}

.character-dossier__narrative p+p {
    margin-top: 24px;
}

.character-dossier__narrative .character-dossier__lead {
    color: #e5e7ea;

    font-size: clamp(18px, 2.3vw, 23px);
    font-weight: 620;
    line-height: 1.68;
    letter-spacing: -0.028em;
}

/* =========================================================
   CHARACTER QUOTE
   ========================================================= */

.character-dossier__quote {
    position: relative;
    z-index: 2;

    display: block;

    margin: clamp(70px, 9vw, 118px) 0 0;
    padding: 30px 32px 32px;

    overflow: hidden;

    border: 1px solid rgba(var(--character-accent-rgb), 0.18);
    border-radius: 14px;

    background:
        linear-gradient(135deg,
            rgba(var(--character-accent-rgb), 0.075),
            rgba(255, 255, 255, 0.018) 55%,
            rgba(0, 0, 0, 0.08));

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 18px 45px rgba(0, 0, 0, 0.16);
}

.character-dossier__quote::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 130px;
    height: 2px;

    background: var(--character-accent);

    box-shadow:
        0 0 24px rgba(var(--character-accent-rgb), 0.38);
}

.character-dossier__quote p {
    position: relative;
    z-index: 1;

    margin: 0;
    padding: 0;

    color: var(--character-text);

    font-size: clamp(22px, 3.2vw, 23px);
    font-weight: 680;
    line-height: 1.5;
    letter-spacing: -0.035em;

    word-break: keep-all;
    overflow-wrap: anywhere;
}

/* =========================================================
   DECORATIVE AMBIENT WORDS
   ========================================================= */

.character-dossier__ambient {
    position: absolute;
    z-index: -2;

    inset: 0;

    pointer-events: none;
    user-select: none;
}

.character-dossier__ambient span {
    position: absolute;

    color: rgba(var(--character-accent-rgb), 0.10);

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.22em;
}

.character-dossier__ambient span:nth-child(1) {
    top: 29%;
    right: 4%;
}

.character-dossier__ambient span:nth-child(2) {
    top: 53%;
    left: 2%;
    transform: rotate(-90deg);
    transform-origin: left top;
}

.character-dossier__ambient span:nth-child(3) {
    right: 8%;
    bottom: 9%;
}


/* =========================================================
   PLAYER SIGNAL RAIL
   ========================================================= */

.character-dossier--player {
    --character-accent: #76c9ff;
    --character-accent-rgb: 118, 201, 255;
}

.character-dossier--player .character-dossier__body {
    grid-template-columns: minmax(0, 1fr);

    max-width: 820px;

    gap: 0;
}

.character-dossier--player::after {
    background:
        radial-gradient(circle at 86% 28%,
            rgba(118, 201, 255, 0.08),
            transparent 31%),
        linear-gradient(90deg,
            rgba(118, 201, 255, 0.04),
            transparent 38%);
}

.character-dossier--player .character-dossier__hero::after {
    content: "";

    position: absolute;
    right: 1%;
    bottom: -24px;

    width: min(340px, 35vw);
    height: 1px;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(118, 201, 255, 0.55));
}

.character-dossier--player .character-dossier__hero::before {
    content: "";

    position: absolute;
    right: 1%;
    bottom: -28px;

    width: 9px;
    height: 9px;

    border: 1px solid #76c9ff;
    border-radius: 50%;

    box-shadow:
        0 0 0 7px rgba(118, 201, 255, 0.06);
}

.character-dossier__signal {
    position: relative;

    display: flex;

    flex-direction: column;
    gap: 38px;

    padding-left: 0;
}

.character-signal {
    position: relative;

    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);

    gap: 16px;
}

.character-signal__dot {
    position: relative;
    z-index: 1;

    display: block;

    width: 11px;
    height: 11px;

    margin-top: 5px;
    margin-left: 0;

    border: 2px solid #1a1c20;
    border-radius: 50%;

    background: #6d737c;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.16);
}

.character-signal--active .character-signal__dot {
    background: var(--character-accent);

    box-shadow:
        0 0 0 1px var(--character-accent),
        0 0 0 7px rgba(var(--character-accent-rgb), 0.08),
        0 0 20px rgba(var(--character-accent-rgb), 0.28);
}

.character-signal small {
    display: block;

    color: var(--character-muted);

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.15em;
}

.character-signal strong {
    display: block;

    margin-top: 7px;

    color: #e7e9ec;

    font-size: var(--font-body);
    font-weight: 760;
    letter-spacing: 0.04em;
}

.character-signal p {
    margin: 7px 0 0;

    color: #858a92;

    font-size: var(--font-ui-xs);
    font-weight: 500;
    line-height: 1.6;

    word-break: keep-all;
}


/* =========================================================
   JIWOO / WEATHER ORBIT
   ========================================================= */

.character-dossier--jiwoo {
    --character-accent: #ffd76f;
    --character-accent-rgb: 255, 215, 111;
}

.character-dossier--jiwoo::after {
    background:
        radial-gradient(circle at 83% 34%,
            rgba(255, 215, 111, 0.095),
            transparent 32%),
        linear-gradient(90deg,
            rgba(255, 215, 111, 0.035),
            transparent 38%);
}

.character-dossier__weather-orbit {
    position: absolute;
    z-index: -1;

    top: 68px;
    right: -68px;

    width: clamp(250px, 34vw, 430px);
    aspect-ratio: 1;

    opacity: 0.68;

    pointer-events: none;
}

.weather-orbit {
    position: absolute;
    inset: 50% auto auto 50%;

    border: 1px solid rgba(255, 215, 111, 0.18);
    border-radius: 50%;

    transform: translate(-50%, -50%);
}

.weather-orbit--01 {
    width: 100%;
    height: 100%;
}

.weather-orbit--02 {
    width: 72%;
    height: 72%;

    border-style: dashed;
}

.weather-orbit--03 {
    width: 40%;
    height: 40%;
}

.weather-orbit__core {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #ffd76f;

    transform: translate(-50%, -50%);

    box-shadow:
        0 0 0 12px rgba(255, 215, 111, 0.05),
        0 0 44px rgba(255, 215, 111, 0.30);
}

.character-dossier--jiwoo .character-dossier__body--jiwoo {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
}

/* =========================================================
   JIWOO / FIELD PROFILE
   ========================================================= */

.jiwoo-profile {
    position: relative;

    min-width: 0;
    padding-top: 8px;
}


/* 상단 라벨 */

.jiwoo-profile__header {
    display: flex;

    margin-bottom: 25px;

    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.jiwoo-profile__header>span {
    color: var(--character-accent);

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.16em;
}

.jiwoo-profile__header>small {
    display: inline-flex;

    align-items: center;
    gap: 7px;

    color: #777c84;

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.14em;
}

.jiwoo-profile__header>small::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--character-accent);

    box-shadow:
        0 0 0 5px rgba(255, 215, 111, 0.07),
        0 0 16px rgba(255, 215, 111, 0.28);
}


/* 레이더 중심 시각 요소 */

.jiwoo-profile__radar {
    position: relative;

    width: min(250px, 100%);
    aspect-ratio: 1;

    margin: 0 auto 38px;

    overflow: hidden;

    border: 1px solid rgba(255, 215, 111, 0.20);
    border-radius: 50%;

    background:
        radial-gradient(circle at center,
            rgba(255, 215, 111, 0.065),
            rgba(255, 215, 111, 0.015) 42%,
            transparent 72%);

    box-shadow:
        inset 0 0 50px rgba(255, 215, 111, 0.025),
        0 0 45px rgba(255, 215, 111, 0.025);
}

.jiwoo-profile__radar-ring {
    position: absolute;

    top: 50%;
    left: 50%;

    border: 1px solid rgba(255, 215, 111, 0.13);
    border-radius: 50%;

    transform: translate(-50%, -50%);
}

.jiwoo-profile__radar-ring--outer {
    width: 82%;
    height: 82%;
}

.jiwoo-profile__radar-ring--middle {
    width: 58%;
    height: 58%;

    border-style: dashed;
}

.jiwoo-profile__radar-ring--inner {
    width: 30%;
    height: 30%;
}

.jiwoo-profile__radar-axis {
    position: absolute;

    top: 50%;
    left: 50%;

    background: rgba(255, 215, 111, 0.09);

    transform: translate(-50%, -50%);
}

.jiwoo-profile__radar-axis--horizontal {
    width: 100%;
    height: 1px;
}

.jiwoo-profile__radar-axis--vertical {
    width: 1px;
    height: 100%;
}

.jiwoo-profile__radar-sweep {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 50%;
    height: 50%;

    transform-origin: left top;
    transform: rotate(-24deg);

    background:
        conic-gradient(from 270deg at 0 0,
            rgba(255, 215, 111, 0.18),
            transparent 35deg);

    clip-path: polygon(0 0, 100% 0, 0 100%);

    opacity: 0.75;
}

.jiwoo-profile__radar-point {
    position: absolute;

    top: 28%;
    right: 25%;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--character-accent);

    box-shadow:
        0 0 0 7px rgba(255, 215, 111, 0.06),
        0 0 22px rgba(255, 215, 111, 0.40);
}

.jiwoo-profile__radar-content {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 72%;

    text-align: center;

    transform: translate(-50%, -50%);
}

.jiwoo-profile__radar-content small {
    display: block;

    color: #777c84;

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.14em;
}

.jiwoo-profile__radar-content strong {
    display: block;

    margin-top: 8px;

    color: #f2f0e9;

    font-size: var(--font-title-sm);
    font-weight: 820;
    line-height: 1.08;
    letter-spacing: 0.025em;
}

.jiwoo-profile__radar-content p {
    margin: 9px 0 0;

    color: #858a92;

    font-size: var(--font-ui-xs);
    font-weight: 550;
    line-height: 1.5;

    word-break: keep-all;
}


/* 역할 정보 */

.jiwoo-profile__functions {
    position: relative;

    display: flex;

    flex-direction: column;
    gap: 28px;
}

.jiwoo-profile__functions::before {
    content: "";

    position: absolute;

    top: 6px;
    bottom: 6px;
    left: 13px;

    width: 1px;

    background:
        linear-gradient(180deg,
            rgba(255, 215, 111, 0.58),
            rgba(255, 215, 111, 0.05));
}

.jiwoo-profile__function {
    position: relative;

    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);

    gap: 17px;
}

.jiwoo-profile__function-number {
    position: relative;
    z-index: 1;

    display: flex;

    width: 27px;
    height: 27px;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 215, 111, 0.36);
    border-radius: 50%;

    background: #111;

    color: var(--character-accent);

    font-size: var(--font-ui-xs);
    font-weight: 800;
    letter-spacing: 0.05em;
}

.jiwoo-profile__function small {
    display: block;

    color: #70757d;

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.14em;
}

.jiwoo-profile__function strong {
    display: block;

    margin-top: 6px;

    color: #e7e8e9;

    font-size: var(--font-ui-md);
    font-weight: 760;
    letter-spacing: 0.025em;
}

.jiwoo-profile__function p {
    margin: 7px 0 0;

    color: #858a92;

    font-size: var(--font-ui-xs);
    line-height: 1.6;

    word-break: keep-all;
}


/* TMI는 하단의 작은 기록으로 축소 */

.jiwoo-profile__personal {
    margin-top: 34px;
    padding-top: 21px;

    border-top: 1px solid rgba(255, 215, 111, 0.16);
}

.jiwoo-profile__personal>small {
    display: block;

    margin-bottom: 13px;

    color: #666b73;

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.15em;
}

.jiwoo-profile__personal p {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);

    gap: 8px;

    margin: 7px 0 0;

    color: #747981;

    font-size: var(--font-ui-xs);
    line-height: 1.55;

    word-break: keep-all;
}

.jiwoo-profile__personal p span {
    color: var(--character-accent);

    font-size: var(--font-ui-xs);
    font-weight: 800;
    letter-spacing: 0.08em;
}


/* =========================================================
   TAEWOO / DATA GRID + PROCESS
   ========================================================= */

.character-dossier--taewoo {
    --character-accent: #8fe0bc;
    --character-accent-rgb: 143, 224, 188;
}

.character-dossier--taewoo::after {
    background:
        radial-gradient(circle at 82% 29%,
            rgba(143, 224, 188, 0.075),
            transparent 34%),
        linear-gradient(90deg,
            rgba(143, 224, 188, 0.03),
            transparent 40%);
}

.character-dossier__data-grid {
    position: absolute;
    z-index: -2;

    top: 48px;
    right: -20px;

    width: min(470px, 46vw);
    height: 340px;

    opacity: 0.34;

    background-image:
        linear-gradient(rgba(143, 224, 188, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 224, 188, 0.10) 1px, transparent 1px);

    background-size: 28px 28px;

    mask-image:
        linear-gradient(135deg,
            rgba(0, 0, 0, 0.9),
            transparent 74%);
    -webkit-mask-image:
        linear-gradient(135deg,
            rgba(0, 0, 0, 0.9),
            transparent 74%);

    pointer-events: none;
}

.taewoo-process {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr 48px 1fr 48px 1fr;

    gap: 16px;
    align-items: center;

    margin: clamp(52px, 7vw, 80px) 0 0;
    padding: 22px 0;

    border-top: 1px solid rgba(143, 224, 188, 0.20);
    border-bottom: 1px solid rgba(143, 224, 188, 0.12);
}

.taewoo-process>i {
    position: relative;

    display: block;

    height: 1px;

    background:
        linear-gradient(90deg,
            rgba(143, 224, 188, 0.18),
            rgba(143, 224, 188, 0.70));
}

.taewoo-process>i::after {
    content: "";

    position: absolute;
    top: 50%;
    right: -1px;

    width: 6px;
    height: 6px;

    border-top: 1px solid #8fe0bc;
    border-right: 1px solid #8fe0bc;

    transform: translateY(-50%) rotate(45deg);
}

.taewoo-process__step {
    display: grid;
    grid-template-columns: auto 1fr;

    column-gap: 13px;
    align-items: baseline;
}

.taewoo-process__step span {
    grid-row: 1 / span 2;

    color: var(--character-accent);

    font-size: var(--font-ui-sm);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.taewoo-process__step small {
    color: #6d737b;

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.14em;
}

.taewoo-process__step strong {
    margin-top: 4px;

    color: #dde1e4;

    font-size: var(--font-ui-md);
    font-weight: 700;
}

.taewoo-console {
    overflow: hidden;

    border: 1px solid rgba(143, 224, 188, 0.17);
    border-radius: 10px;

    background:
        linear-gradient(180deg,
            rgba(6, 13, 11, 0.84),
            rgba(8, 12, 11, 0.60));

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 18px 50px rgba(0, 0, 0, 0.22);
}

.taewoo-console__header {
    display: flex;

    padding: 10px 12px;

    align-items: center;
    gap: 6px;

    border-bottom: 1px solid rgba(143, 224, 188, 0.10);

    background: rgba(255, 255, 255, 0.018);
}

.taewoo-console__header span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #49514d;
}

.taewoo-console__header span:first-child {
    background: #8fe0bc;
}

.taewoo-console__header small {
    margin-left: auto;

    color: #59625e;

    font-family: Consolas, "Courier New", monospace;
    font-size: var(--font-ui-xs);
    font-weight: 700;
    letter-spacing: 0.09em;
}

.taewoo-console pre {
    margin: 0;
    padding: 18px;

    overflow: hidden;

    background: transparent;
}

.taewoo-console code {
    color: #8fa79b;

    font-family: Consolas, "Courier New", monospace;
    font-size: var(--font-ui-xs);
    font-weight: 600;
    line-height: 1.75;

    white-space: pre-wrap;
    word-break: break-word;
}


/* =========================================================
   SUBTLE MOTION
   ========================================================= */

@media (hover: hover) and (pointer: fine) {
    .character-dossier__quote:hover::before {
        width: 220px;

        transition: width 260ms ease;
    }

    .character-dossier--player:hover .character-signal--active .character-signal__dot {
        box-shadow:
            0 0 0 1px var(--character-accent),
            0 0 0 10px rgba(var(--character-accent-rgb), 0.08),
            0 0 30px rgba(var(--character-accent-rgb), 0.34);
    }

    .character-dossier--jiwoo:hover .weather-orbit--02 {
        transform:
            translate(-50%, -50%) rotate(9deg);

        transition: transform 700ms ease;
    }

    .character-dossier--taewoo:hover .character-dossier__data-grid {
        opacity: 0.47;

        transition: opacity 300ms ease;
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 840px) {
    .character-dossier__hero {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .character-dossier__serial {
        flex-direction: row;
        align-items: baseline;
        gap: 12px;
    }

    .character-dossier__serial strong {
        font-size: 52px;
    }

    .character-dossier__body,
    .character-dossier--jiwoo .character-dossier__body--jiwoo {
        grid-template-columns: 1fr;

        gap: 54px;

        padding-left: 0;
    }

    .character-dossier__narrative::before {
        left: -18px;
    }

    .character-dossier__signal,
    .jiwoo-profile,
    .taewoo-console {
        max-width: 560px;
    }

    .taewoo-process {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .taewoo-process>i {
        width: 1px;
        height: 22px;

        margin-left: 13px;

        background:
            linear-gradient(180deg,
                rgba(143, 224, 188, 0.18),
                rgba(143, 224, 188, 0.70));
    }

    .taewoo-process>i::after {
        top: auto;
        right: auto;
        bottom: -1px;
        left: 50%;

        transform:
            translateX(-50%) rotate(135deg);
    }

    .character-dossier__quote {
        grid-template-columns: 1fr;

        gap: 16px;
    }
}

@media (max-width: 600px) {
    .character-dossier {
        padding: 72px 16px 88px;
    }

    .character-dossier::before {
        top: 90px;
        right: -6px;

        font-size: 66px;
    }

    .character-dossier__name {
        font-size: clamp(38px, 11vw, 52px);
    }

    .character-dossier__role-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .character-dossier__role-line i {
        width: 50px;
    }

    .character-dossier__body {
        margin-top: 54px;
    }

    .character-dossier__narrative {
        padding-left: 15px;
    }

    .character-dossier__narrative::before {
        left: 0;
    }

    .character-dossier__quote {
        border-radius: 12px;
        padding: 24px 22px 26px;
        margin-top: 66px;
    }

    .character-dossier__quote p {
        line-height: 1.55;
        font-size: 23px;
    }

    .character-dossier__weather-orbit {
        top: 130px;
        right: -120px;

        width: 290px;

        opacity: 0.40;
    }

    .character-dossier__data-grid {
        top: 115px;
        right: -130px;

        width: 310px;
        height: 250px;
    }

    .jiwoo-profile__radar {
        width: min(230px, 82vw);
    }

    .jiwoo-profile__functions {
        max-width: 360px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .character-dossier__quote::before,
    .character-signal__dot,
    .weather-orbit,
    .character-dossier__data-grid {
        transition: none !important;
    }
}

/* =========================================================
   PROJECT OVERVIEW V2 — EDITORIAL
   ========================================================= */

.project-overview--editorial {
    --project-text-primary: #f4f5f7;
    --project-text-secondary: #a0a4ab;
    --project-text-tertiary: #686d75;
    --project-accent: #78c8ff;
    --project-line: rgba(255, 255, 255, 0.11);

    width: 100%;
    margin: 0 0 120px;
}


/* =========================================================
   QUICK ACCESS
   ========================================================= */

.document-nav {
    border-top: 1px solid #25272c;
    position: relative;

    display: flex;

    width: 100%;
    margin: 34px 0 92px;
    padding: 0;

    align-items: center;
    gap: 34px;

    overflow-x: auto;

    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);

}

.document-nav__label {
    flex: 0 0 auto;

    padding: 16px 0;

    color: #666b73;

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.17em;
}

.document-nav__links {
    display: flex;

    flex: 0 0 auto;
    align-items: center;
    gap: 24px;
}

.document-nav__link {
    transition: color 150ms ease,
        background-color 150ms ease;
    position: relative;

    display: inline-flex;

    padding: 16px 0;

    align-items: center;
    gap: 7px;

    border-radius: 0;

    background: transparent !important;

    color: #92979f !important;
    text-decoration: none !important;

    font-size: var(--font-ui-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.document-nav__link::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;

    height: 1px;

    background: var(--project-accent);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 160ms ease;
}

.document-nav__link:hover {
    background: rgba(120, 200, 255, 0.07);
    color: var(--project-accent) !important;
}

.document-nav__link:hover::after {
    transform: scaleX(1);
}

.document-nav__number {
    color: #4f545b;

    font-size: var(--font-ui-xs);
}


/* =========================================================
   HERO
   ========================================================= */

.project-overview--editorial .project-overview__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);

    max-width: none;
    margin: 0;
    padding: 0 0 62px;

    align-items: end;
    gap: 54px;

    border-bottom: 1px solid var(--project-line);
}

.project-overview__heading {
    min-width: 0;
}

.project-overview--editorial .project-overview__label {
    display: inline-flex;

    margin: 0 0 24px;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    color: var(--project-accent);

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.17em;
}

.project-overview--editorial .project-overview__label::before {
    width: 28px;
    height: 1px;

    border-radius: 0;

    box-shadow: none;
}

.project-overview--editorial .project-overview__title {
    max-width: 760px;

    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.project-overview--editorial .project-overview__description {
    max-width: 670px;

    margin-top: 25px;

    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.8;
}

.project-overview__edition {
    position: relative;

    display: flex;

    min-height: 170px;
    padding: 0 0 4px 30px;

    flex-direction: column;
    justify-content: flex-end;

    border-left: 1px solid var(--project-line);
}

.project-overview__edition::before {
    content: "";

    position: absolute;
    top: 0;
    left: -1px;

    width: 1px;
    height: 44px;

    background: var(--project-accent);
}

.project-overview__edition span {
    color: var(--project-text-tertiary);

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.2em;
}

.project-overview__edition strong {
    margin-top: 10px;

    color: var(--project-text-primary);

    font-size: 23px;
    font-weight: 760;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.project-overview__edition small {
    margin-top: 25px;

    color: #555a62;

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.15em;
}


/* =========================================================
   META RAIL
   ========================================================= */

.project-meta-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    margin: 0 0 92px;

    border-bottom: 1px solid var(--project-line);
}

.project-meta-rail__item {
    position: relative;

    display: flex;

    min-width: 0;
    min-height: 142px;
    padding: 29px 25px 27px;

    flex-direction: column;
    justify-content: flex-end;

    border-right: 1px solid var(--project-line);
}

.project-meta-rail__item:first-child {
    padding-left: 0;
}

.project-meta-rail__item:last-child {
    padding-right: 0;

    border-right: 0;
}

.project-meta-rail__item small {
    margin-bottom: auto;

    color: var(--project-text-tertiary);

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.16em;
}

.project-meta-rail__item strong {
    color: var(--project-text-primary);

    font-size: clamp(17px, 2vw, 21px);
    font-weight: 740;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.project-meta-rail__item span {
    margin-top: 7px;

    color: var(--project-text-secondary);

    font-size: var(--font-ui-xs);
    line-height: 1.5;
}


/* =========================================================
   CORE MANIFESTO
   ========================================================= */

.project-manifesto {
    position: relative;
    isolation: isolate;

    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);

    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
    padding:
        clamp(82px, 10vw, 132px) max(24px, calc((100vw - 980px) / 2 + 24px));

    gap: 50px;

    overflow: hidden;

    border-top: 1px solid rgba(120, 200, 255, 0.18);
    border-bottom: 1px solid rgba(120, 200, 255, 0.13);

    background:
        radial-gradient(circle at 82% 24%,
            rgba(120, 200, 255, 0.09),
            transparent 34%),
        linear-gradient(120deg,
            rgba(255, 255, 255, 0.018),
            transparent 42%);
}

.project-manifesto::before {
    content: attr(data-ghost);

    position: absolute;
    z-index: -1;

    top: 16px;
    right: -0.04em;

    color: rgba(255, 255, 255, 0.018);

    font-size: clamp(90px, 17vw, 210px);
    font-weight: 850;
    line-height: 0.8;
    letter-spacing: -0.08em;

    white-space: nowrap;

    pointer-events: none;
}

.project-manifesto__marker {
    display: flex;

    padding-top: 9px;

    flex-direction: column;
    gap: 12px;
}

.project-manifesto__marker span {
    color: var(--project-accent);

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.16em;
}

.project-manifesto__marker strong {
    color: rgba(120, 200, 255, 0.28);

    font-size: 46px;
    font-weight: 780;
    line-height: 1;
}

.project-manifesto__main {
    min-width: 0;
}

.project-manifesto__main h2 {
    max-width: 820px;

    margin: 0 0 42px !important;
    padding: 0 !important;

    border: 0 !important;

    color: var(--project-text-primary);

    font-size: clamp(34px, 5.4vw, 58px);
    font-weight: 760;
    line-height: 1.18;
    letter-spacing: -0.055em;

    word-break: keep-all;
}

.project-manifesto__copy {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 34px;
}

.project-manifesto__copy p {
    margin: 0;

    color: var(--project-text-secondary);

    font-size: var(--font-ui-sm);
    line-height: 1.8;

    word-break: keep-all;
}

.project-manifesto__copy strong {
    color: #e9f6ff;
}

.project-manifesto__flow {
    grid-column: 2;

    display: flex;

    margin-top: 56px;

    align-items: center;
    gap: 14px;
}

.project-manifesto__flow span {
    position: relative;

    color: #747982;

    font-size: var(--font-ui-xs);
    font-weight: 700;
}

.project-manifesto__flow span::before {
    content: attr(data-step);

    display: block;

    margin-bottom: 6px;

    color: #484d54;

    font-size: var(--font-ui-xs);
    letter-spacing: 0.12em;
}

.project-manifesto__flow i {
    width: 34px;
    height: 1px;

    background: rgba(255, 255, 255, 0.13);
}

.project-manifesto__flow .project-manifesto__flow-active {
    color: var(--project-accent);
}

.project-manifesto__flow .project-manifesto__flow-active::before {
    color: rgba(120, 200, 255, 0.6);
}


/* =========================================================
   WORLD / HAZARD
   ========================================================= */

.project-world-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);

    margin-top: 110px;

    gap: 68px;
}

.project-section-index {
    display: flex;

    margin-bottom: 26px;

    align-items: center;
    justify-content: space-between;

    color: var(--project-accent);
}

.project-section-index span {
    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.16em;
}

.project-section-index strong {
    color: #464b52;

    font-size: var(--font-ui-xs);
    font-weight: 750;
}

.project-world h2,
.project-hazard-system h2 {
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    color: var(--project-text-primary);

    font-size: clamp(29px, 4.2vw, 45px);
    font-weight: 750;
    line-height: 1.22;
    letter-spacing: -0.05em;

    word-break: keep-all;
}

.project-world__copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    margin-top: 40px;

    gap: 34px;
}

.project-world__copy p {
    margin: 0;

    color: var(--project-text-secondary);

    font-size: var(--font-ui-sm);
    line-height: 1.85;

    word-break: keep-all;
}

.project-hazard-system {
    padding-left: 40px;

    border-left: 1px solid var(--project-line);
}

.project-hazard-system h2 {
    font-size: clamp(26px, 3.4vw, 37px);
}

.project-hazard-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    margin-top: 37px;

    column-gap: 20px;
}

.project-hazard-matrix span {
    display: flex;

    min-height: 49px;

    align-items: center;
    gap: 13px;

    border-top: 1px solid var(--project-line);

    color: #c6c9ce;

    font-size: var(--font-ui-xs);
    font-weight: 650;
}

.project-hazard-matrix b {
    color: #52575e;

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.08em;
}


/* =========================================================
   CHAPTER TIMELINE
   ========================================================= */

.project-overview--editorial .chapter-flow {
    margin-top: 125px;
}

.project-overview--editorial .chapter-flow__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);

    margin: 0 0 58px;
    padding: 0;

    align-items: end;
    gap: 48px;

    border: 0;
}

.project-overview--editorial .chapter-flow__header .project-section-index {
    grid-column: 1 / -1;

    margin-bottom: 0;
}

.project-overview--editorial .chapter-flow__title {
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    color: var(--project-text-primary);

    font-size: clamp(31px, 4.6vw, 48px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.project-overview--editorial .chapter-flow__description {
    margin: 0;

    color: var(--project-text-secondary);

    font-size: var(--font-ui-sm);
    line-height: 1.8;

    word-break: keep-all;
}

.chapter-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    margin: 0;
    padding: 0;

    list-style: none;

    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.chapter-step {
    position: relative;

    min-width: 0;
    padding: 40px 26px 0 0;
}

.chapter-step:not(:last-child) {
    margin-right: 26px;

    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.chapter-step::before {
    content: "";

    position: absolute;
    top: -5px;
    left: 0;

    width: 9px;
    height: 9px;

    border: 2px solid #111;
    border-radius: 50%;

    background: var(--project-accent);

    box-shadow:
        0 0 0 1px rgba(120, 200, 255, 0.3),
        0 0 16px rgba(120, 200, 255, 0.2);
}

.chapter-step__number {
    margin-bottom: 22px;

    color: rgba(120, 200, 255, 0.48);

    font-size: 33px;
    font-weight: 780;
    line-height: 1;
}

.chapter-step small {
    color: #686d75;

    font-size: var(--font-ui-xs);
    font-weight: 750;
    letter-spacing: 0.15em;
}

.chapter-step h3 {
    margin: 9px 0 15px;

    color: var(--project-text-primary);

    font-size: 21px;
    font-weight: 740;
    line-height: 1.3;
    letter-spacing: -0.035em;
}

.chapter-step p {
    min-height: 92px;

    margin: 0;

    color: var(--project-text-secondary);

    font-size: var(--font-ui-xs);
    line-height: 1.75;

    word-break: keep-all;
}

.chapter-step>span {
    display: block;

    margin-top: 24px;
    padding-top: 14px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    color: #686d75;

    font-size: var(--font-ui-xs);
    font-weight: 650;
    line-height: 1.5;
}

.chapter-step--extra::before {
    background: #777c84;

    box-shadow: none;
}

.chapter-step--extra .chapter-step__number {
    color: #595e66;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .project-overview--editorial .project-overview__hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-overview__edition {
        min-height: 0;
        padding: 24px 0 0;

        border-top: 1px solid var(--project-line);
        border-left: 0;
    }

    .project-overview__edition::before {
        top: -1px;
        left: 0;

        width: 46px;
        height: 1px;
    }

    .project-meta-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-meta-rail__item:nth-child(2) {
        border-right: 0;
    }

    .project-meta-rail__item:nth-child(n + 3) {
        border-top: 1px solid var(--project-line);
    }

    .project-meta-rail__item:nth-child(3) {
        padding-left: 0;
    }

    .project-manifesto {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-manifesto__marker {
        flex-direction: row;
        align-items: center;
    }

    .project-manifesto__marker strong {
        font-size: var(--font-title-lg);
    }

    .project-manifesto__copy {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-manifesto__flow {
        grid-column: 1;

        flex-wrap: wrap;
    }

    .project-world-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-hazard-system {
        padding: 44px 0 0;

        border-top: 1px solid var(--project-line);
        border-left: 0;
    }

    .chapter-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        border-top: 0;
    }

    .chapter-step {
        padding: 35px 26px 45px 0;

        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .chapter-step:nth-child(2) {
        margin-right: 0;

        border-right: 0;
    }
}

@media (max-width: 600px) {
    .document-nav {
        margin-bottom: 68px;
    }

    .project-overview--editorial .project-overview__hero {
        padding-bottom: 42px;
    }

    .project-meta-rail {
        grid-template-columns: minmax(0, 1fr);

        margin-bottom: 68px;
    }

    .project-meta-rail__item {
        min-height: 112px;
        padding: 24px 0;

        border-top: 1px solid var(--project-line);
        border-right: 0;
    }

    .project-meta-rail__item:first-child {
        border-top: 0;
    }

    .project-manifesto {
        padding:
            72px 24px 76px;

        gap: 30px;
    }

    .project-manifesto__main h2 br {
        display: none;
    }

    .project-manifesto__flow {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));

        gap: 8px;
    }

    .project-manifesto__flow i {
        display: none;
    }

    .project-world-layout {
        margin-top: 82px;
    }

    .project-world__copy {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-hazard-matrix {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-overview--editorial .chapter-flow {
        margin-top: 92px;
    }

    .project-overview--editorial .chapter-flow__header {
        grid-template-columns: minmax(0, 1fr);

        gap: 18px;
    }

    .chapter-timeline {
        grid-template-columns: minmax(0, 1fr);

        padding-left: 24px;

        border-left: 1px solid rgba(255, 255, 255, 0.15);
    }

    .chapter-step {
        margin: 0 !important;
        padding: 32px 0 48px 22px;

        border-top: 0 !important;
        border-right: 0 !important;
    }

    .chapter-step::before {
        top: 39px;
        left: -29px;
    }

    .chapter-step p {
        min-height: 0;
    }
}

/* =========================================================
   LANDFALL Scene Direction
   Namespace: lf-dir-
   Style: Transparent Direction Note
   Icon Mode: Direct Inline SVG
   ========================================================= */

.lf-dir-card {
    --lf-dir-blue: #74b8ff;
    --lf-dir-blue-strong: #4f9dff;
    --lf-dir-amber: #e0a94f;
    --lf-dir-amber-soft: #ecc478;
    --lf-dir-text: #e9edf5;
    --lf-dir-muted: #aab4c6;
    --lf-dir-dim: #6b7488;
    --lf-dir-line: rgba(132, 152, 192, 0.13);
    --lf-dir-line-soft: rgba(233, 237, 245, 0.09);
    --lf-dir-line-blue: rgba(116, 184, 255, 0.16);
    --lf-dir-line-amber: rgba(236, 196, 120, 0.34);

    position: relative;

    margin: 26px 0 34px 0;
    padding: 28px 32px 32px 32px;

    background: transparent;
    border: 1px solid var(--lf-dir-line-blue);
    border-radius: 14px;

    color: var(--lf-dir-text);
    font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;

    box-shadow: none;
    overflow: hidden;
}

.lf-dir-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;

    width: 3px;

    background: var(--lf-dir-blue);
    border-radius: 0 999px 999px 0;
    box-shadow: 0 0 14px rgba(116, 184, 255, 0.32);
}

.lf-dir-card::after {
    display: none;
    content: none;
}

.lf-dir-inner {
    position: relative;
    z-index: 1;
}

/* ---------- Header ---------- */

.lf-dir-header {
    margin-bottom: 20px;
    padding-bottom: 18px;

    border-bottom: 1px solid var(--lf-dir-line-soft);
}

.lf-dir-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 11px;

    color: var(--lf-dir-blue);
    font-size: 0.76em;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.lf-dir-dot {
    width: 8px;
    height: 8px;

    border-radius: 999px;
    background: var(--lf-dir-blue);
    box-shadow: 0 0 12px rgba(116, 184, 255, 0.48);
}

.lf-dir-type {
    color: var(--lf-dir-blue);
}

.lf-dir-separator {
    color: var(--lf-dir-dim);
    font-weight: 600;
}

.lf-dir-code {
    color: var(--lf-dir-amber-soft);
}

.lf-dir-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;

    flex-wrap: wrap;
}

.lf-dir-title {
    margin: 0;

    color: var(--lf-dir-text);
    font-size: 1.58em;
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -0.035em;

    border: 0 !important;
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.lf-dir-title::before,
.lf-dir-title::after {
    display: none !important;
    content: none !important;
}

.lf-dir-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    padding-top: 2px;
}

.lf-dir-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 8px 14px;

    background: transparent;
    border: 1px solid var(--lf-dir-line-soft);
    border-radius: 999px;

    color: var(--lf-dir-dim);
    font-size: 0.8em;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.lf-dir-chip-text {
    color: var(--lf-dir-dim);
    font-weight: 900;
    letter-spacing: 0.02em;
}

/* ---------- Direct Inline SVG ---------- */

.lf-dir-svg {
    display: block;

    width: 1.25em;
    height: 1.25em;

    color: currentColor;

    stroke: currentColor;
    fill: none;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;

    flex-shrink: 0;
}

.lf-dir-chip-icon {
    width: 1.14em;
    height: 1.14em;

    color: var(--lf-dir-dim);
    stroke: var(--lf-dir-dim);

    transform: translateY(0.02em);
}

/* ---------- Purpose / Mood ---------- */

.lf-dir-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;

    margin: 0 0 24px 0;
}

.lf-dir-summary-box {
    padding: 16px 18px;

    background: transparent;
    border: 1px solid var(--lf-dir-line-soft);
    border-radius: 10px;

    box-shadow: none;
}

.lf-dir-summary-label {
    margin-bottom: 8px;

    color: var(--lf-dir-amber-soft);
    font-size: 0.76em;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.lf-dir-summary-text {
    margin: 0;

    color: var(--lf-dir-muted);
    font-size: 0.91em;
    font-weight: 600;
    line-height: 1.72;
    word-break: keep-all;
}

/* ---------- Section Title ---------- */

.lf-dir-section-title {
    margin: 28px 0 14px 0;

    color: var(--lf-dir-dim);
    font-size: 0.76em;
    font-weight: 900;
    letter-spacing: 0.16em;
}

/* ---------- Direction Grid ---------- */

.lf-dir-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 34px;
}

.lf-dir-spec-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;

    align-items: start;

    padding: 0 0 14px 0;
    border-bottom: 1px solid var(--lf-dir-line-soft);
}

.lf-dir-spec-row:last-child {
    border-bottom: 0;
}

.lf-dir-label {
    display: inline-grid;
    grid-template-columns: 20px auto;
    align-items: center;
    column-gap: 8px;

    padding-left: 0;

    color: var(--lf-dir-blue);
    font-size: 0.77em;
    font-weight: 900;
    letter-spacing: 0.09em;
    line-height: 1.35;

    white-space: nowrap;
}

.lf-dir-label::before {
    display: none;
    content: none;
}

.lf-dir-label .lf-dir-svg {
    color: var(--lf-dir-blue);
    stroke: var(--lf-dir-blue);

    transform: translateY(0.04em);
}

.lf-dir-value {
    color: var(--lf-dir-muted);
    font-size: 0.88em;
    font-weight: 560;
    line-height: 1.68;
    word-break: keep-all;
}

/* ---------- Character ---------- */

.lf-dir-character {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;

    align-items: start;

    padding: 15px 17px;

    background: transparent;
    border: 1px solid var(--lf-dir-line-blue);
    border-radius: 10px;

    box-shadow: none;
}

.lf-dir-character .lf-dir-value {
    color: var(--lf-dir-text);
    font-size: 0.92em;
    line-height: 1.7;
}

/* ---------- Focus / Trigger ---------- */

.lf-dir-focus {
    margin-top: 26px;
    padding: 16px 19px;

    background: transparent;
    border: 1px solid var(--lf-dir-line-amber);
    border-left: 4px solid var(--lf-dir-amber);
    border-radius: 0 10px 10px 0;
}

.lf-dir-focus-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 9px;

    color: var(--lf-dir-amber-soft);
    font-size: 0.78em;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.lf-dir-focus-icon {
    width: 1.18em;
    height: 1.18em;

    color: var(--lf-dir-amber-soft);
    stroke: var(--lf-dir-amber-soft);

    transform: translateY(0.03em);
}

.lf-dir-focus-text {
    margin: 0;

    color: var(--lf-dir-text);
    font-size: 0.93em;
    font-weight: 650;
    line-height: 1.72;
    word-break: keep-all;
}

.lf-dir-focus-text strong {
    color: var(--lf-dir-amber-soft);
    font-weight: 900;
}

/* ---------- Implementation Notes ---------- */

.lf-dir-notes {
    margin-top: 16px;
    padding: 17px 20px;

    background: transparent;
    border: 1px solid var(--lf-dir-line-soft);
    border-radius: 10px;
}

.lf-dir-notes-title {
    margin-bottom: 11px;

    color: var(--lf-dir-dim);
    font-size: 0.76em;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.lf-dir-notes-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.lf-dir-notes-list li {
    position: relative;

    margin: 7px 0;
    padding-left: 18px;

    color: var(--lf-dir-muted);
    font-size: 0.86em;
    font-weight: 600;
    line-height: 1.62;
}

.lf-dir-notes-list li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 0.68em;

    width: 5px;
    height: 5px;

    background: var(--lf-dir-blue);
    border-radius: 999px;
    opacity: 0.75;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
    .lf-dir-card {
        padding: 24px 20px 26px 20px;
        border-radius: 14px;
    }

    .lf-dir-card::before {
        top: 14px;
        bottom: 14px;
    }

    .lf-dir-title {
        font-size: 1.34em;
    }

    .lf-dir-summary {
        grid-template-columns: 1fr;
    }

    .lf-dir-spec-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .lf-dir-spec-row,
    .lf-dir-character {
        grid-template-columns: 102px minmax(0, 1fr);
        gap: 12px;
    }

    .lf-dir-label {
        font-size: 0.72em;
        grid-template-columns: 18px auto;
    }

    .lf-dir-label .lf-dir-svg {
        width: 1.2em;
        height: 1.2em;
    }

    .lf-dir-value {
        font-size: 0.86em;
    }

    .lf-dir-chip {
        font-size: 0.76em;
    }
}












/* =========================================================
   CONTENT OVERFLOW SAFETY
   ========================================================= */

/* 일반 미디어가 본문 너비를 밀어내지 않도록 제한 */

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}


/* Markdown 코드 블록 및 긴 문자열 */

pre {
    max-width: 100%;

    overflow-x: auto;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

code,
kbd,
samp {
    max-width: 100%;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* 채팅 영역 */

.chat-line,
.chat-input-row {
    width: 100%;
    min-width: 0;
}


/* 닉네임 모달 */

.nickname-modal__checkbox {
    display: flex;
    width: 100%;
    min-width: 0;
    margin: 16px 0 2px;
    padding: 13px 14px;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #30343a;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition:
        border-color 150ms ease,
        background-color 150ms ease;
}

.nickname-modal__checkbox:hover {
    border-color: #4a5059;
    background: rgba(255, 255, 255, 0.04);
}

.nickname-modal__checkbox input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    flex: 0 0 auto;
    accent-color: #78c8ff;
    cursor: pointer;
}

.nickname-modal__checkbox span {
    min-width: 0;
    color: #c4c8cf;
    font-size: var(--font-ui-md);
    font-weight: 650;
    line-height: 1.45;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

[data-player-background][hidden],
[data-player-name-state][hidden] {
    display: none !important;
}


/* 긴 일반 텍스트 */

.dialogue,
.narration,
.emergency-alert,
.warning-alert,
.sfx,
.vfx,
.lock-preview,
.notification-sender,
.character-card__name,
.character-card__type,
.character-card__role,
.project-profile-card__value,
.project-profile-card__subvalue,
.project-information-card__title,
.project-information-card p,
.chapter-card__title,
.chapter-card__summary,
.chapter-card__list li {
    word-break: keep-all;
    overflow-wrap: anywhere;
}


/* 뉴스 라벨 및 제목 */


/* 재난 태그에 긴 단어가 들어갈 경우 */


/* 표가 존재할 경우 페이지 대신 표 내부에서 스크롤 */

table {
    display: block;

    max-width: 100%;
    overflow-x: auto;
}

/* v136 mobile touch targets */
@media (max-width: 600px) {
    .chat-input, .chat-send-button { height: 44px; min-height: 44px; }
    .chat-input { font-size: 16px; }
}
