:root {
    --screen-bg: #070b11;
    --screen-bg-2: #0d1522;
    --blue-black: ##292a30;
    --blue-black-2: #132033;
    --blue-black-3: #1d2d44;
    --line: rgba(255,255,255,0.08);
    --line-strong: rgba(255,255,255,0.18);
    --line-blue: rgba(86,133,255,0.25);
    --text: #edf4ff;
    --muted: #9eb2d4;
    --blue: #4a86ff;
    --blue-soft: #8fb2ff;
    --yellow: #ffff00;
    --yellow-soft: rgba(255,255,0,0.18);
    --shadow: 0 22px 36px rgba(0,0,0,0.34);
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
}

#bo_list.member-screen-wrap,
#bo_list.member-screen-wrap * {
    box-sizing: border-box;
}

#bo_list.member-screen-wrap {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh;
    padding: 0 !important;
    color: var(--text);
    overflow: visible !important;
    isolation: isolate;
}

    #bo_list.member-screen-wrap::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -2;
        pointer-events: none;
        background: radial-gradient(circle at 50% 0%, rgba(255,255,0,0.06), transparent 16%), radial-gradient(circle at 50% 100%, rgba(74,134,255,0.10), transparent 26%), linear-gradient(180deg, rgba(54,54,60,0.76), rgba(54,54,60,0.68)), linear-gradient(180deg, #141c2a 0%, #0b1119 46%, #06090f 100%);
    }

    #bo_list.member-screen-wrap::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background-image: linear-gradient(rgba(255,255,255,0.066) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.066) 1px, transparent 1px);
        background-size: 36px 36px;
        opacity: 0.7;
    }

@media all and (min-width: 769px) {
    html, body {
        overflow: hidden !important;
    }
}

@media all and (max-width: 768px) {
    html, body {
        width: 100% !important;
        height: auto !important;
        min-height: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        zoom: 1 !important;
    }
}

#bo_list .masked-box {
    width: 100% !important;
    height: 100vh;
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    overflow-y: auto;
    overflow-x: visible !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    #bo_list .masked-box::-webkit-scrollbar {
        display: none;
    }

#bo_list .member-screen {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: visible !important;
    background: transparent !important;
}

/* stage가 배경 전체 담당 */
#bo_list .member-screen__stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    padding: 118px 40px 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    overflow: visible !important;
}

    #bo_list .member-screen__stage::before,
    #bo_list .member-screen__stage::after {
        display: none !important;
    }

#bo_list .masked-box,
#bo_list .member-screen,
#bo_list .member-screen__stage {
    overflow: visible !important;
}

/* 기존 stage 바깥 배경 레이어는 숨김 */
#bo_list .member-screen__bg,
#bo_list .member-screen__grid,
#bo_list .member-screen__diag,
#bo_list .member-screen__wave,
#bo_list .member-screen__band {
    display: none !important;
}

#bo_list .member-screen__topbar {
    position: absolute;
    top: 22px;
    left: 28px;
    right: 28px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

#bo_list .screen-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

#bo_list .screen-profile__badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.35), transparent 40%), linear-gradient(180deg, #274067, #101826);
    box-shadow: 0 0 20px rgba(74,134,255,0.16);
}

#bo_list .screen-profile__text {
    display: grid;
    gap: 3px;
}

    #bo_list .screen-profile__text strong {
        font-size: 16px;
        line-height: 1;
        font-weight: 900;
        letter-spacing: 0.04em;
        color: #fff;
    }

    #bo_list .screen-profile__text span {
        display: inline-flex;
        align-items: center;
        gap: 0.38rem;
        width: max-content;
        padding: 0.24rem 0.52rem;
        border-radius: 6px;
        border: 1px solid rgba(255,255,0,0.22);
        background: linear-gradient(180deg, rgba(255,255,0,0.14), rgba(255,255,0,0.05));
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

        #bo_list .screen-profile__text span::before {
            content: "";
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--yellow);
            box-shadow: 0 0 10px var(--yellow);
        }

#bo_list .screen-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

#bo_list .screen-actions__btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.10);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    box-shadow: 0 8px 16px rgba(0,0,0,0.16);
}

    #bo_list .screen-actions__btn.is-yellow {
        border-color: rgba(255,255,0,0.24);
        box-shadow: 0 0 18px rgba(255,255,0,0.08), 0 8px 16px rgba(0,0,0,0.16);
    }

#bo_list .member-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#bo_list .member-side-title {
    margin: 0 0 20px;
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
}

#bo_list .member-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 28px !important;
    justify-content: center !important;
    align-items: flex-start;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    list-style: none;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
}

    #bo_list .member-list > li {
        width: 252px !important;
        max-width: none !important;
        flex: 0 0 252px !important;
        height: auto !important;
        aspect-ratio: 252 / 520;
        margin-bottom: 10px !important;
        opacity: 0;
        transform: perspective(1000px) rotateY(28deg) translateY(20px);
        transform-origin: right center;
        overflow: visible !important;
        padding: 8px;
    }

#bo_list .no-data {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    border: 1px dashed rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.03);
}

#bo_list .item {
    top: -170px;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    transition: transform .3s;
}

    #bo_list .item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 140%;
        height: 100%;
/*        background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0) 100%);
        transform: skewX(-20deg) translateX(-160%);
        transition: .5s;*/
        pointer-events: none;
        z-index: 30;
    }

    #bo_list .item:hover::before {
/*        transform: skewX(-20deg) translateX(120%);
        transition: .8s;*/
    }

#bo_list .g-card {

    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%), linear-gradient(180deg, var(--blue-black) 0%, var(--blue-black-2) 100%);
    border: 1px solid rgba(255,255,255,0.12);
    clip-path: polygon(0 18px, 18px 0, calc(100% - 24px) 0, 100% 20px, 100% calc(100% - 16px), calc(100% - 18px) 100%, 0 100%, 0 calc(100% - 26px), 8px calc(100% - 34px), 8px 92px, 0 82px);
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--shadow);
    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
}

#bo_list .item:hover .g-card {
    transform: translateY(-14px) scale(1.02);
    box-shadow: 0 30px 56px rgba(0,0,0,0.46), 0 0 0 1px rgba(255,255,0,0.18), 0 0 22px rgba(255,255,0,0.10);
    filter: saturate(1.05);
}

#bo_list .member-card-item.is-active .g-card {
    transform: translateY(-8px);
    box-shadow: 0 28px 58px rgba(0,0,0,0.46), 0 0 0 1px rgba(255,255,0,0.22), 0 0 24px rgba(255,255,0,0.12);
}

#bo_list .g-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 18%, rgba(255,255,255,0) 72%, rgba(255,255,255,0.04) 100%), linear-gradient(rgba(138,170,235,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(138,170,235,0.05) 1px, transparent 1px);
    background-size: auto, 18px 18px, 18px 18px;
    opacity: 0.62;
}

#bo_list .focus-ring {
    position: absolute;
    inset: -6px;
    z-index: 10;
    border: 1px solid rgba(255,255,0,0.16);
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 28px rgba(255,255,0,0.08);
    transition: opacity .3s ease;
}

#bo_list .item:hover .focus-ring,
#bo_list .member-card-item.is-active .focus-ring {
    opacity: 1;
}

#bo_list .g-notch::before,
#bo_list .g-notch::after {
    content: "";
    position: absolute;
    top: 0;
    width: 54px;
    height: 11px;
    background: #263247;
    z-index: 9;
}

#bo_list .g-notch::before {
    left: 18px;
    clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%);
}

#bo_list .g-notch::after {
    right: 18px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%);
}

#bo_list .g-top-ui {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 11;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-left: 82px;
}

#bo_list .g-id {
    padding: 0.24rem 0.42rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #eef4ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    box-shadow: 0 6px 12px rgba(0,0,0,0.18);
}

#bo_list .g-rank {
    width: 40px;
    height: 26px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    color: #0e1520;
    font-size: 14px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff68a, var(--yellow));
    /*    clip-path: polygon(0 0,100% 0,100% 100%,0 76%);*/
    box-shadow: 0 0 14px rgba(255,255,0,0.22);
}


#bo_list .g-no {
    font-family: 'Orbitron';
    position: absolute;
    top: 54px;
    right: 12px;
    z-index: 5;
    font-size: 72px;
    line-height: .88;
    font-family: 'exo';
    font-weight: 900;
    letter-spacing: -0.08em;
    color: rgba(142,178,255,0.10);
    text-shadow: 0 0 16px rgba(74,134,255,0.08);
}

#bo_list .g-thumb,
#bo_list .ui-thumb {
    position: absolute;
    left: 0;
    right: 0;
    top: 58px;
    bottom: 122px;
    z-index: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 82%, transparent 100%);
}

    #bo_list .g-thumb img,
    #bo_list .ui-thumb img {
        position: absolute;
        top: 0;
        left: 50%;
        width: 124%;
        height: 100%;
        object-fit: cover;
        object-position: center 12%;
        transform: translateX(-50%) scale(1.02);
        transition: transform .45s ease;
        filter: saturate(1.02) contrast(1.04);
    }

#bo_list .g-aura {
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: 126px;
    height: 148px;
    z-index: 2;
    background: radial-gradient(circle at 50% 45%, rgba(67,126,255,0.34), rgba(67,126,255,0.08) 34%, transparent 68%);
    filter: blur(18px);
    opacity: 0.7;
}

#bo_list .g-scan {
    position: absolute;
    top: -30%;
    left: 0;
    width: 100%;
    height: 34%;
    z-index: 6;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.16), transparent);
    mix-blend-mode: screen;
    pointer-events: none;
    animation: memberScan 4.8s linear infinite;
}

@keyframes memberScan {
    0% {
        top: -30%;
        opacity: 0;
    }

    18% {
        opacity: 1;
    }

    100% {
        top: 120%;
        opacity: 0;
    }
}

#bo_list .g-kanji {
    position: absolute;
    left: 14px;
    bottom: 144px;
    z-index: 2;
    font-size: 60px;
    line-height: .88;
    font-weight: 900;
    letter-spacing: -0.08em;
    color: rgba(255,255,255,0.10);
    text-shadow: 0 0 8px rgba(255,255,255,0.06);
    pointer-events: none;
    word-break: keep-all;
}

/* 펜타코드: 맨 위 왼쪽 */
#bo_list .pentacode--front {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 14;
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin: 0;
}

#bo_list .penta {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(8,14,25,0.96), rgba(25,40,68,0.96));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 6px 14px rgba(0,0,0,0.28);
    overflow: hidden;
    backdrop-filter: blur(3px);
}

    #bo_list .penta img,
    #bo_list .pentacode img {
        width: 20px;
        height: 20px;
        object-fit: contain;
        filter: brightness(0) invert(1);
        opacity: 1;
        animation: floating 3s ease-in-out infinite alternate;
    }

@keyframes floating {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-3px);
    }
}

/* 하단 패널: 흰 배경 제거 */
#bo_list .g-bottom,
#bo_list .ui-profile {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 7;
    min-height: 126px;
    padding: 16px 16px 18px;
    background: linear-gradient(180deg, rgba(7,12,20,0.22) 0%, rgba(9,16,28,0.84) 18%, rgba(12,20,34,0.96) 100%);
    clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -12px 30px rgba(0,0,0,0.24);
}

    #bo_list .g-bottom::before,
    #bo_list .ui-profile::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,0,0.08) 12%, transparent 34%), linear-gradient(180deg, rgba(255,255,255,0.06), transparent 28%);
        pointer-events: none;
    }

/* 이름 장식 */
#bo_list .g-bottom-deco {
    position: absolute;
    inset: 12px 14px auto 14px;
    height: 18px;
    pointer-events: none;
}

#bo_list .g-bottom-line {
    position: absolute;
    left: 0;
    top: 8px;
    width: 68px;
    height: 2px;
    background: linear-gradient(90deg, var(--yellow), rgba(255,255,0,0));
}


#bo_list .g-name-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 25px;
    padding-right: 76px;
}

#bo_list .g-name-mark {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-top: 7px;
    background: linear-gradient(135deg, var(--yellow), #fff08a);
    clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
    box-shadow: 0 0 10px rgba(255,255,0,0.18);
}

#bo_list .g-name-stack {
    min-width: 0;
}

#bo_list .g-name,
#bo_list .name {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #f1f6ff;
    font-size: 24px;
    line-height: .94;
    font-weight: 900;
    letter-spacing: -0.06em;
    word-break: keep-all;
    transition: color .3s ease, transform .3s ease;
    text-shadow: 0 0 12px rgba(74,134,255,0.14);
}

#bo_list .g-sub {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.2rem;
    margin-top: 0.35rem;
}

#bo_list .g-eng {
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #8fb2ff;
    text-transform: uppercase;
}

#bo_list .g-ori {
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    color: rgba(255,255,255,0.68);
}

#bo_list .g-meta {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    text-align: right;
    color: rgba(255,255,255,0.46);
    font-size: 8px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0.14em;
}

    #bo_list .g-meta span {
        display: block;
        margin-bottom: 3px;
    }

    #bo_list .g-meta strong {
        display: block;
        color: #ffffff;
        font-size: 16px;
        text-shadow: 0 0 10px rgba(255,255,255,0.08);
    }
/* 노란 스캔 라인 (게임 느낌) */
#bo_list .g-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient( 120deg, transparent 0%, rgba(255,255,0,0.0) 30%, rgba(255,255,0,0.4) 50%, rgba(255,255,0,0.0) 70%, transparent 100% );
    transform: skewX(-20deg);
    transition: 0.5s;
    pointer-events: none;
    z-index: 20;
}

/* hover 시 번쩍 */
#bo_list .item:hover .g-card::after {
    left: 140%;
    transition: 0.7s;
}
#bo_list .item:hover .g-bottom-line {
    width: 120px;
    background: linear-gradient(90deg, #ffff00, rgba(255,255,0,0));
    box-shadow: 0 0 10px rgba(255,255,0,0.5);
}

@media all and (max-width: 1400px) {
    #bo_list .member-list > li {
        width: 236px !important;
        flex: 0 0 236px !important;
        aspect-ratio: 236 / 500;
    }
}

@media all and (max-width: 1024px) {
    #bo_list .member-screen__stage {
        padding: 108px 20px 60px;
    }

    #bo_list .member-list {
        gap: 18px !important;
    }

        #bo_list .member-list > li {
            width: 220px !important;
            flex: 0 0 220px !important;
            aspect-ratio: 220 / 472;
        }
}

@media all and (max-width: 768px) {
    #body .fix-layout {
        padding: 0 10px !important;
    }

    #bo_list .member-screen {
        min-height: auto;
    }

    #bo_list .member-screen__topbar {
        left: 16px;
        right: 16px;
        top: 16px;
    }

    #bo_list .member-screen__stage {
        min-height: auto;
        padding: 96px 14px 40px;
    }

    #bo_list .member-list {
        gap: 12px !important;
    }

        #bo_list .member-list > li {
            width: calc((100% - 12px) / 2) !important;
            flex: 0 0 calc((100% - 12px) / 2) !important;
            aspect-ratio: 1 / 2.08;
            margin-bottom: 8px !important;
        }

    #bo_list .g-top-ui {
        padding-left: 72px;
    }

    #bo_list .pentacode--front {
        top: 12px;
        left: 12px;
        gap: 5px;
    }

    #bo_list .penta {
        width: 40px;
        height: 40px;
    }

        #bo_list .penta img,
        #bo_list .pentacode img {
            width: 30px;
            height: 30px;
        }

    #bo_list .g-name {
        font-size: 18px;
    }

    #bo_list .g-kanji {
        font-size: 44px;
        bottom: 136px;
    }

    #bo_list .g-bottom {
        min-height: 118px;
    }

    #bo_list .g-thumb img,
    #bo_list .ui-thumb img {
        width: 132%;
    }
}

/*----------프로필-----------*/

/* 글로벌 화이트 테마 */
.white-tactical-ui {
    position: fixed;
    inset: 0;
    background: #f7f7f5;
    color: #111;
    font-family: 'Orbitron', 'SDgothic', sans-serif;
    overflow: hidden;
}

/* 배경 파라락스 블러 */
.bg-parallax {
    position: absolute;
    inset: -12%;
    z-index: 0;
    overflow: hidden;
    will-change: transform;
}


.blurred-body {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: 80%;
    background-position: 90% 8%;
    background-repeat: no-repeat;
    filter: blur(5px) brightness(0.52) saturate(0.9);
    opacity: 0.72;
    transform: scale(1.22);
    will-change: transform;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to right, rgba(248,248,246,0.92) 0%, rgba(248,248,246,0.30) 18%, rgba(30,30,30,0.28) 50%, rgba(248,248,246,0.30) 82%, rgba(248,248,246,0.92) 100%), linear-gradient(to bottom, rgba(15,15,15,0.55) 0%, rgba(255,255,255,0.04) 8%, rgba(255,255,255,0.12) 20%, rgba(255,255,255,0.45) 55%, rgba(255,255,255,0.92) 100%);
}

/* =========================
   2. 중앙 전신
   ========================= */
.portrait-parallax {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    will-change: transform;
}

.main-portrait-wrap {
    top: 240px;
    position: relative;
    width: 1280px;
    max-width: 70vw;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}


    /* 전신 뒤 그림자 */
    .main-portrait-wrap::before {
        content: "";
        position: absolute;
        bottom: 7%;
        left: 50%;
        width: 560px;
        height: 120px;
        transform: translateX(-50%);
        background: radial-gradient(circle, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.16) 42%, rgba(0,0,0,0) 76%);
        filter: blur(28px);
        z-index: 0;
    }
#character_body {
    position: relative;
    z-index: 1;
    height: 128vh;
    max-height: none;
    width: auto;
    object-fit: contain;
    object-position: center bottom;
    transform-origin: center bottom;
    filter: drop-shadow(0 30px 24px rgba(0,0,0,0.14)) drop-shadow(40px 52px 110px rgba(0,0,0,0.24));
    will-change: transform;
}


/* =========================
   3. 좌우 패널 배치
   ========================= */
.ui-parallax {
    position: absolute;
    inset: 0;
    z-index: 10;
    padding: 48px 54px 42px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.side-panel {
    width: 420px;
    height: 100%;
    pointer-events: auto;
}

.left-panel {
    margin-left: 75px;
    display: flex;
    align-items: flex-start;
}

.right-panel {
    margin-right: 40px;
    height: 80%;
    display: flex;
    justify-content: flex-end;
}

.panel-inner {
    margin-top: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 오른쪽 박스는 조금 더 얇고 길게 */
.right-panel .panel-inner {
    width: 380px;
}


/* =========================
   4. 박스 스타일
   ========================= */
.glass-ui {
    background: rgba(255,255,255,0.50);
    border: 1px solid rgba(0,0,0,0.10);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 26px 28px;
    border-radius: 0;
}



/* =========================
   5. 타이포 대비 크게
   ========================= */
.name-box {
    margin-top: 8px;
    margin-bottom: 16px;
}


.ch-name {
    font-size: 78px;
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.07em;
    margin: 0;
    color: #111;
}

.ori-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.45;
    margin: 0 0 6px;
    text-transform: uppercase;
}


.catch-box {
    border-left: 6px solid #111;
    padding-left: 18px;
    margin-top: 18px;
    max-width: 340px;
}


.label,
.g-label,
.data-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.45);
}

.catch-text {
    font-size: 26px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 8px 0 0;
    color: #111;
}



/* =========================
   6. 왼쪽 스탯
   ========================= */
.stats-section {
    width: 300px;
    margin-top: 8px;
}

.g-item {
    margin-bottom: 18px;
}

.g-track {
    width: 100%;
    height: 10px;
    background: rgba(0,0,0,0.08);
    margin: 8px 0 6px;
    overflow: hidden;
}

.g-fill {
    height: 100%;
    background: #111;
}

    .g-fill.limit {
        background: #d46c3c;
    }

.g-val {
    display: block;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: #222;
}
.hex-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-end;
    height: 180px;
    margin-top: 28px;
}

.stat-bar-unit {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.s-track {
    width: 22px;
    height: 100%;
    background: rgba(0,0,0,0.06);
    position: relative;
}

    .s-track span {
        position: absolute;
        bottom: 0;
        width: 100%;
        background: #111;
    }

.s-name {
    margin-top: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    opacity: 0.55;
/*    writing-mode: vertical-lr;*/
}

/* =========================
   7. 오른쪽 정보 패널
   ========================= */
.scroll-box {
    overflow-y: auto;
    padding-right: 22px;
    padding-left: 20px;
}


    .scroll-box::-webkit-scrollbar {
        width: 2px;
    }

    .scroll-box::-webkit-scrollbar-thumb {
        background: #000;
    }

.profile-header {
    display: flex;
    gap: 18px;
    margin-bottom: 26px;
    align-items: flex-start;
}

.thumb-box img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.14);
}

.header-data {
    font-size: 13px;
    line-height: 1.8;
    color: #222;
}

.stream-group {
    margin-top: 10px;
}


    .stream-group span {
        display: inline-block;
        margin: 4px 6px 0 0;
        background: #111;
        color: #fff;
        font-size: 10px;
        padding: 3px 7px;
        letter-spacing: 0.05em;
    }

.data-block {
    margin-bottom: 28px;
}
.data-label {
    font-size: 12px;
    font-weight: 900;
    border-bottom: 2px solid #000;
    display: inline-block;
    margin-bottom: 12px;
    padding-right: 20px;
}

.data-content {
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: -0.04em;
    color: #2d2d2d;
    text-align: justify;
}


/* 액시옴 블랙 카드 */
.axiom-card {
    background: #000;
    color: #fff;
    padding: 10px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.ax-img {
    width: 200px;
/*    filter: invert(1);*/
}

.ax-type {
    font-size: 10px;
    opacity: 0.6;
    display: block;
}

.ax-name {
    font-size: 20px;
    font-weight: 700;
}

/* =========================
   8. 하단 대사
   ========================= */
.bottom-dialogue {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    width: 860px;
    max-width: 48vw;
    text-align: center;
    z-index: 20;
}

.diag-inner {
    display: inline-block;
    min-width: 420px;
    padding: 18px 28px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111;
    text-shadow: 0 1px 0 rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.52);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* =========================
   9. 아이콘
   ========================= */
.p-icon {
    width: 34px;
    margin-top: -6px;
    margin-right: 8px;
    filter: brightness(0);
}

.bgm-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 30px;
    color: #111 !important;
    opacity: 1 !important;
}

/* BGM 조절 박스 */
#bgmControlBox {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 15px;
    z-index: 9999;
}


/* =========================
   10. 반응형
   ========================= */
@media (max-width: 1600px) {
    .ch-name {
        font-size: 72px;
    }

    #character_body {
        height: 88vh;
    }

    .side-panel {
        width: 360px;
    }

    .right-panel .panel-inner {
        width: 420px;
    }

    .bottom-dialogue {
        width: 620px;
    }
}

.inventory-section {
    width: 300px;
    margin-top: 0;
}

    .inventory-section .inven-inner {
        margin-top: 10px;
        max-height: 220px;
        overflow-y: auto;
        padding-right: 6px;
    }

.white-tactical-ui .highlight_1 {
    display: block;
    color: #222 !important;
    font-size: 22px !important;
    font-weight: bold !important;
    line-height: 1.2;
    margin-bottom: 15px;
}




@media (max-width: 768px) {
    html, body {
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .white-tactical-ui {
        position: relative;
        inset: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 0 0 40px;
    }

    .bg-parallax {
        position: fixed;
        inset: 0;
        z-index: 0;
        transform: none !important;
    }

    .ui-parallax {
        position: relative;
        inset: auto;
        z-index: 5;
        padding: 20px 16px 0;
        transform: none !important;
        pointer-events: auto;
        display: block;
    }

    .mobile-flow {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .portrait-parallax {
        position: relative !important;
        inset: auto !important;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        margin: 0;
        transform: none !important;
        pointer-events: none;
    }

    .main-portrait-wrap {
        top: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        justify-content: center;
    }

    #character_body {
        height: auto;
        width: 92vw;
        max-width: 520px;
        max-height: none;
        object-fit: contain;
        transform: none !important;
    }

    .bottom-dialogue {
        position: relative !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        margin: 0;
        text-align: center;
        z-index: 6;
    }

    .diag-inner {
        display: block;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
        padding: 16px 18px;
        font-size: 24px;
        line-height: 1.35;
        font-family: 'SDgothic', 'Noto Sans KR', sans-serif !important;
        font-weight: 700;
    }

    .identity-section,
    .right-panel,
    .stats-section,
    .inventory-section {
        width: 100%;
    }

    .right-panel {
        margin: 0;
        height: auto;
        display: block;
    }

        .right-panel .panel-inner {
            width: 100%;
            margin-top: 0;
        }

            .right-panel .panel-inner.glass-ui.scroll-box {
                max-height: none;
                overflow: visible;
                padding: 22px 18px;
            }

    .stats-section,
    .inventory-section {
        box-sizing: border-box;
    }

        .inventory-section .inven-inner {
            max-height: none;
            overflow: visible;
            padding-right: 0;
        }

    .ori-name {
        font-size: 14px;
        margin-bottom: 4px;
        font-family: 'Arial', 'Helvetica Neue', sans-serif !important;
        font-weight: 700;
        letter-spacing: 0.06em;
    }

    .ch-name {
        font-size: 48px;
        line-height: 0.98;
        letter-spacing: -0.05em;
        font-family: 'Noto Sans KR', sans-serif !important;
        font-weight: 900;
        -webkit-text-size-adjust: 100%;
        word-break: keep-all;
    }

    .catch-text {
        font-size: 20px;
        line-height: 1.35;
        font-family: 'Noto Sans KR', sans-serif !important;
        font-weight: 800;
        word-break: keep-all;
    }

    #layer-bg,
    #layer-portrait,
    #layer-ui {
        transform: none !important;
    }

    .bg-parallax,
    .blurred-body,
    .bg-overlay {
        display: none !important;
    }


    .pentacodes img[src=""],
    .pentacodes img:not([src]) {
        display: none !important;
    }

    .right-panel .panel-inner.glass-ui.scroll-box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 18px 14px !important;
        overflow-x: hidden !important;
    }
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #111 !important;
    text-decoration: none;
/*    border: 1px solid rgba(0,0,0,0.2);*/
/*    border-radius: 50%;*/
    transition: all 0.2s ease;
}

    .back-btn:hover {
/*        background: #111;*/
        color: #ffff00;
        transform: translateY(-1px);
    }

