@font-face {
    font-family: 'JapaneseFont';
    src: url('https://fonts.gstatic.com/s/notosansjp/v56/-F6jfjtqLzI2JPCgQBnw7HFyzSD-AsregP8VFBEj75s.ttf') format('truetype');
    font-weight: 400;
    unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FFF, U+3400-4DBF;
    font-display: swap;
}

@font-face {
    font-family: 'JapaneseFont';
    src: url('https://fonts.gstatic.com/s/notosansjp/v56/-F6jfjtqLzI2JPCgQBnw7HFyzSD-AsregP8VFPYk75s.ttf') format('truetype');
    font-weight: 700;
    unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FFF, U+3400-4DBF;
    font-display: swap;
}

@font-face {
    font-family: 'ChineseFont';
    src: url('https://fonts.gstatic.com/ea/notosanssc/v1/NotoSansSC-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'ChineseFont';
    src: url('https://fonts.gstatic.com/ea/notosanssc/v1/NotoSansSC-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'EnglishFont';
    src: url('https://fonts.gstatic.com/s/geist/v4/gyByhwUxId8gMEwSGFWfOw.woff2') format('woff2');
    font-weight: 400;
    unicode-range: U+0100-024F;
    font-display: swap;
}

@font-face {
    font-family: 'EnglishFont';
    src: url('https://fonts.gstatic.com/s/geist/v4/gyByhwUxId8gMEwcGFU.woff2') format('woff2');
    font-weight: 400;
    unicode-range: U+0020-007E, U+00A0-00FF;
    font-display: swap;
}

@font-face {
    font-family: 'EnglishFont';
    src: url('https://fonts.gstatic.com/s/geist/v4/gyByhwUxId8gMEwSGFWfOw.woff2') format('woff2');
    font-weight: 600;
    unicode-range: U+0100-024F;
    font-display: swap;
}

@font-face {
    font-family: 'EnglishFont';
    src: url('https://fonts.gstatic.com/s/geist/v4/gyByhwUxId8gMEwcGFU.woff2') format('woff2');
    font-weight: 600;
    unicode-range: U+0020-007E, U+00A0-00FF;
    font-display: swap;
}

@font-face {
    font-family: 'EnglishFont';
    src: url('https://fonts.gstatic.com/s/geist/v4/gyByhwUxId8gMEwSGFWfOw.woff2') format('woff2');
    font-weight: 700;
    unicode-range: U+0100-024F;
    font-display: swap;
}

@font-face {
    font-family: 'EnglishFont';
    src: url('https://fonts.gstatic.com/s/geist/v4/gyByhwUxId8gMEwcGFU.woff2') format('woff2');
    font-weight: 700;
    unicode-range: U+0020-007E, U+00A0-00FF;
    font-display: swap;
}

@font-face {
    font-family: 'EnglishFont';
    src: url('https://fonts.gstatic.com/s/geist/v4/gyByhwUxId8gMEwSGFWfOw.woff2') format('woff2');
    font-weight: 800;
    unicode-range: U+0100-024F;
    font-display: swap;
}

@font-face {
    font-family: 'EnglishFont';
    src: url('https://fonts.gstatic.com/s/geist/v4/gyByhwUxId8gMEwcGFU.woff2') format('woff2');
    font-weight: 800;
    unicode-range: U+0020-007E, U+00A0-00FF;
    font-display: swap;
}

* {
    font-family: 'EnglishFont', 'Noto Sans', 'Apple SD Gothic Neo', "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.02rem;
}

html[lang="ja"] * {
    font-family: 'Noto Sans JP', 'EnglishFont', 'Noto Sans', 'Apple SD Gothic Neo', "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[lang="zh"] *,
html[lang="zh-CN"] *,
html[data-lang="cn"] * {
    font-family: 'ChineseFont', 'EnglishFont', 'Noto Sans', 'Apple SD Gothic Neo', "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 색 전역 선언 */

:root {
    --bg-color: #111111;
    --card-background: #232323;
    --border-red: rgba(115, 0, 0);
    --label-red: #ff7777;
}

h2, h3 {
    font-weight: 600;
}

/* html{ scrollbar-gutter: stable both-edges; }*/
/* ===== Global Styles ===== */

/* i18n Loading State - Prevent FOUC (Flash of Untranslated Content) */
/* Only hide translatable text elements, keep layout visible */
/*
html.i18n-loading [data-i18n],
html.i18n-loading [data-i18n-tooltip] {
    opacity: 0.5;
    transition: opacity 0.15s ease-in;
}
*/
/* Show elements after i18n is loaded */
/*
html:not(.i18n-loading) [data-i18n],
html:not(.i18n-loading) [data-i18n-tooltip] {
    opacity: 1;
}*/

.adsbygoogle-noablate {
    right: 86px !important;
}

body {
    background-color: #222222;
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    min-height: 100vh;
    opacity: 1;
    transition: opacity 0.3s ease;
    /*letter-spacing: -0.025em; */
}


/* 전체 레이아웃 */
.container {
    display: flex;
    min-height: 100vh;
    opacity: 1;
    transition: opacity 0.3s ease;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.super-highlight {
    position: relative;
    border-radius: 10px;
}

.super-highlight::before {
    content: "";
    position: absolute;
    inset: 0;
    /* 상하좌우 0 */
    padding: 1px;
    /* 테두리 두께 */
    border-radius: inherit;
    /* 부모와 동일한 라운드 */
    background: linear-gradient(45deg, #b1c0ec, #efefef, #c4ffff, #efefef, #e4c2d3, #efefef, #c6a9f9, #ba7f96, #efefef, #c4ffff);
    /* 내부는 투명, 테두리 영역만 보이도록 마스킹 */
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    /* Safari */
    mask-composite: exclude;
    /* Other browsers */
    pointer-events: none;
    /* 클릭 방해 방지 */
    background-size: 150% auto;
    /*animation: gradient 4s linear infinite; */
    animation: none
}

.container {
    background:
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.01) 49%, rgba(255, 255, 255, 0.01) 51%, transparent 52%) 0 0 / 30px 30px,
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.01) 49%, rgba(255, 255, 255, 0.01) 51%, transparent 52%) 0 0 / 30px 30px,
        #111;
}


/* 메인 컨텐츠 영역 */
.main-wrapper {
    left: 40px;
    width: calc(100% - 160px);
    position: relative;
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
    flex: 1;
    padding: 32px;
    max-width: 1200px;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* PC: 네비게이션 고정 확장 시 */

/* PC: 네비게이션 고정 확장 시 - Main Wrapper */
@media screen and (min-width: 1441px) {
    body.nav-expanded .main-wrapper {
        left: 120px;
        width: calc(100% - 240px);
    }

    body.nav-expanded .page-end-ad-region,
    body.nav-expanded .footer-container {
        left: 120px;
        width: calc(100% - 240px);
    }
}

@media screen and (max-width: 1440px) {

    .main-wrapper,
    .page-end-ad-region,
    .footer-container {
        left: 0;
        transition: none;
    }
}

.header-container {
    padding: 0px 0px 10px 0px;
    margin: 0;
}

.header-title {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.header-container.header-container--with-ad {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 1200px;
    padding-bottom: 16px;
}

.header-container--with-ad .header-title {
    flex: 1 1 320px;
    min-width: 0;
}

.header-container--with-ad .header-title-row {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.header-container--with-ad .nitro-ad-container--header {
    flex: 0 0 728px;
    width: 728px;
    max-width: 728px;
    margin-right: 0;
    margin-left: auto;
}

.header-container h1 {
    font-size: 28px;
    color: rgb(255, 255, 255, 0.9);
    margin: 0 0 6px 0;
}

.page-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

.main-content {
    background: var(--card-background);
    border-radius: 12px;
    padding: 24px;
}

.main-content h1 {
    font-size: 24px;
    margin: 0 0 16px 0;
}

/* 내비게이션 경로 서식 */
.navigation-path {
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 0px 0px 0px;
}

.navigation-path a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.navigation-path a:hover {
    color: rgba(255, 255, 255, 1);
}

.navigation-path .separator {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.navigation-path .current-page {
    color: rgba(255, 255, 255, 0.3);
}

.page-bottom-container {
    width: 100%;
}

.page-end-ad-region,
.footer-container {
    width: calc(100% - 160px);
    max-width: 1200px;
    position: relative;
    left: 40px;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.page-end-ad-region {
    box-sizing: border-box;
    margin: 24px auto 0;
    z-index: 1;
}

.page-end-ad-region:has([data-nitro-placement-empty]) {
    margin-top: 0;
}

.footer-container {
    margin: auto auto 0px auto !important;
    padding-bottom: 20px;
    padding-top: 20px;
    background-color: transparent;
    z-index: 10;
}

@media screen and (max-width: 1200px) {
    .page-end-ad-region {
        width: calc(100% - 32px);
        left: 0;
    }

    .footer-container {
        width: 100%;
        left: 0;
    }
}

.footer-text {
    margin-top: auto;
    max-width: 1200px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 0px 10px 0px 10px;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    min-height: 20px;
    margin-top: 10px;
}

.footer-legal-links a,
.footer-legal-links button {
    color: inherit;
    font: inherit;
    text-decoration: underline;
}

.footer-legal-links button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.footer-legal-links [data-ccpa-link="1"]:empty,
.footer-legal-links #ncmp-consent-link:empty {
    display: none;
}

.nitro-ad-container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
}

.nitro-ad-container--with-placeholder {
    position: relative;
}

.nitro-ad-slot-frame {
    position: relative;
}

.nitro-ad-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 4px;
    background: var(--card-background);
    background: color-mix(in srgb, var(--card-background) 94%, white);
    color: rgba(255, 255, 255, 0.38);
    font-size: 11px;
    letter-spacing: 0.08em;
    pointer-events: none;
    text-transform: uppercase;
}

.nitro-ad-container--with-placeholder .nitro-ad-slot {
    position: relative;
    z-index: 1;
}

.nitro-ad-container--banner .nitro-ad-placeholder,
.nitro-ad-container--leaderboard .nitro-ad-placeholder,
.nitro-ad-container--multi-size-banner .nitro-ad-placeholder {
    right: auto;
    left: 50%;
    width: min(100%, 976px);
    transform: translateX(-50%);
}

.nitro-ad-container--has-content .nitro-ad-placeholder,
.nitro-ad-slot-frame:has([data-nitro-creative-visible], [data-nitro-placement-empty]) .nitro-ad-placeholder {
    display: none;
}

.nitro-ad-slot {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.nitro-ad-container--banner .nitro-ad-slot,
.nitro-ad-container--leaderboard .nitro-ad-slot {
    max-width: 976px;
    height: 90px;
}

.nitro-ad-container--multi-size-banner .nitro-ad-slot {
    max-width: 976px;
}

.nitro-ad-slot[data-nitro-collapse-until-rendered="true"],
.nitro-ad-slot[data-nitro-collapse-on-empty="true"]:is([data-nitro-creative-visible], [data-nitro-placement-empty]) {
    min-height: 0 !important;
    height: var(--nitro-rendered-height, 0px) !important;
}

.nitro-ad-container--rectangle .nitro-ad-slot {
    width: 300px;
    height: 250px;
}

.nitro-ad-container--incontent .nitro-ad-slot {
    width: 100%;
    height: 250px;
}

.nitro-ad-container--section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.nitro-ad-container--gap-after {
    margin-bottom: 16px;
}

@media (max-width: 1100px) {
    .header-container.header-container--with-ad {
        flex-wrap: wrap;
        padding-bottom: 16px;
    }

    .header-container--with-ad .nitro-ad-container--header {
        flex-basis: 100%;
        width: 100%;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .footer-container {
        display: flex;
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .footer-text {
        margin-top: 0;
    }

    .header-container--with-ad .nitro-ad-container--header {
        max-width: 320px;
        margin-right: auto;
        margin-left: auto;
    }

    .nitro-ad-container--banner .nitro-ad-slot,
    .nitro-ad-container--leaderboard .nitro-ad-slot {
        height: 50px;
    }
}


/* 다크 테마 스타일 */
:root {
    color-scheme: dark;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* 선택 텍스트 스타일 */
::selection {
    background: rgba(68, 88, 201, 0.7);
    color: #ffffff;
}


/* 모바일 헤더 */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #151515;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-header.hide {
    transform: translateY(-100%);
}

.mobile-header.active {
    background-color: transparent;
    border-bottom: none;
}

.mobile-header.active .mobile-logo-container {
    opacity: 0;
    visibility: hidden;
}

.mobile-logo-container {
    width: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-logo-container img[src*="lufel.webp"],
.mobile-logo-container img[data-april-fools-role="logo-mark"] {
    height: 30px;
    width: auto;
    filter: grayscale(100%) contrast(1.5);
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.9));
}

.mobile-logo-container img[src*="lufelnet.png"],
.mobile-logo-container img[data-april-fools-role="logo-text"] {
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0px 2px 0px rgba(255, 255, 255, 0.9)) invert(1);
    opacity: 0.85;
}

/* 햄버거 버튼 위치 수정 */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 10px;
    /* 헤더 내 위치 조정 */
    right: 20px;
    /* 오른쪽으로 변경 */
    z-index: 1002;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: 0.3s;
}

/* 모바일 메뉴가 열렸을 때 햄버거 버튼 애니메이션 */
.hamburger-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 맨 위로 가기 버튼 */
.floating-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: none;
    /* 초기에는 숨김 */
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-top-btn img {
    width: 24px;
    height: 24px;
}

.floating-top-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-3px);
}



/* 태블릿 반응형 (769px ~ 1440px) */
@media screen and (max-width: 1440px) and (min-width: 769px) {
    .main-wrapper {
        margin-left: 0;
        width: 100%;
        padding-top: 80px;
        transform: translateX(0px);
        max-width: none;
    }

    /* 모바일 헤더 표시 */
    .mobile-header {
        display: block;
        /* 태블릿에서도 헤더 표시 */
    }

    .mobile-header.active {
        pointer-events: none;
    }

    /* 태블릿 햄버거 버튼 */
    .hamburger-btn {
        display: block !important;
        /* 강제로 표시 */
        left: 20px !important;
        right: auto !important;
    }

    .mobile-header.active .hamburger-btn {
        pointer-events: auto;
        left: calc(var(--nav-expanded-width, 240px) + 12px) !important;
        right: auto !important;
    }

    .mobile-logo-container {
        display: none !important;
    }
}

/* 뒤로가기 버튼 */
.back-button {
    width: 60px;
    height: 35px;
    padding: 16px 0px 0px 10px;
    display: block;
    object-fit: contain;
}

/* 뒤로가기 버튼 링크 */
.back-button-link {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 1000;
}

.back-button-link:hover {
    transform: scale(1.1);
}

/* 모바일 반응형 스타일 */
@media screen and (max-width: 1200px) {
    .main-wrapper {
        margin-left: 0;
        width: calc(100% - 32px);
        transform: translateX(0px);
        padding: 16px;
        padding-top: 60px;
    }

    .logo-container {
        padding: 10px 20px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .back-button-link {
        position: fixed;
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        z-index: 1002;
        /* 헤더보다 위에 표시 */
    }

    .back-button {
        width: 40px;
        height: 25px;
        object-fit: contain;
    }

    .floating-top-btn {
        bottom: 20px;
        right: 20px;
    }
}

@media screen and (max-width: 768px) {
    .logo-container {
        margin: 0;
    }
}


/* 툴팁 스타일 */
.tooltip-text {
    position: relative;
    cursor: help !important;
    color: rgb(207, 194, 177, 1);
}

.tooltip-text[data-tooltip]:not(.help-icon, .tooltip-icon, .tooltip-text--bracketed),
.tooltip-text--bracketed > .tooltip-text-label {
    text-decoration: underline dotted;
    text-decoration-color: color-mix(in srgb, currentColor 70%, transparent);
    text-underline-offset: 0.2em;
}

.tooltip-text::before {
    width: 40vw;
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 4px;
    border: 1px solid rgb(255, 247, 185);
    font-size: 14px;
    white-space: pre-wrap;
    max-width: 300px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
}

.tooltip-text.show-bottom::before {
    bottom: auto;
    top: 100%;
}

.tooltip-text:hover::before {
    visibility: visible;
    opacity: 1;
}

/* JS 커서 추종 툴팁이 활성화될 때 기존 ::before 숨김 (데스크톱) */
.tooltip-text.js-tooltip-active::before {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Desktop: Always use JS floating tooltip; disable CSS ::before globally */
@media (min-width: 1201px) {

    .tooltip-text::before,
    .tooltip-text::after {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* 커서 추종 툴팁 컨테이너 */
.cursor-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    display: none;
    pointer-events: none;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 14px;
    max-width: 300px;
    white-space: pre-wrap;
    z-index: 2000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: lufel-tooltip-enter 140ms ease-out;
}

@keyframes lufel-tooltip-enter {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lufel-tooltip-centered-enter {
    from { opacity: 0; transform: translate(-50%, 4px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes lufel-tooltip-opacity-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.persona-tooltip {
    animation: lufel-tooltip-centered-enter 140ms ease-out;
}

.chart-tip {
    animation: lufel-tooltip-opacity-enter 140ms ease-out;
}

/* 『』 문자 간격 조정 */
/*
.bracket-left { display: inline-block; margin-left: -0.4em; }

.bracket-right { display: inline-block; margin-right: -0.3em; }*/

.number-value {
    color: #c0a0a0;
}

/* Tooltip number highlighting */
.tooltip-num {
    color: #ffcc66;
}

.tooltip-text:is([data-skill-tooltip], [data-tooltip-title])::before {
    display: none;
}

.tooltip-text:is([data-skill-tooltip], [data-tooltip-title]):is(:focus-visible, [aria-expanded="true"]) {
    color: #f0f0f0;
    background-color: #3b3b3b;
    border-radius: 4px;
}

.tooltip-panel {
    --tooltip-safe-top: env(safe-area-inset-top, 0px);
    --tooltip-safe-right: env(safe-area-inset-right, 0px);
    --tooltip-safe-bottom: env(safe-area-inset-bottom, 0px);
    --tooltip-safe-left: env(safe-area-inset-left, 0px);
    --tooltip-surface: #101010;
    --tooltip-panel-fade: 120ms;
    position: fixed;
    z-index: 2000;
    box-sizing: border-box;
    border-radius: 8px;
    color: #e2e2e2;
    box-shadow: 0 4px 8px rgb(0 0 0 / 36%);
    font-size: 14px;
    line-height: 1.55;
    transition: opacity var(--tooltip-panel-fade) ease-out, visibility 0s;
}

.tooltip-panel[inert] {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition-delay: 0s, var(--tooltip-panel-fade);
}

.tooltip-panel::before {
    content: '';
    position: absolute;
    left: calc(var(--tooltip-anchor-x) - 4px);
    width: 8px;
    height: 5px;
    background: var(--tooltip-surface);
    pointer-events: none;
}

.tooltip-panel[data-placement="below"]::before {
    bottom: calc(100% - 1px);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.tooltip-panel[data-placement="above"]::before {
    top: calc(100% - 1px);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.tooltip-panel[data-linked]:is([data-placement="above"], [data-placement="below"])::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    height: 8px;
}

.tooltip-panel[data-linked][data-placement="below"]::after {
    bottom: 100%;
}

.tooltip-panel[data-linked][data-placement="above"]::after {
    top: 100%;
}

.tooltip-panel[data-placement="sheet"]::before {
    display: none;
}

.tooltip-panel-surface {
    max-height: inherit;
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: inherit;
    background: var(--tooltip-surface);
    overflow-wrap: anywhere;
}

.tooltip-panel[data-linked] .tooltip-panel-surface {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 30%);
}

.tooltip-panel[data-linked] .tooltip-panel-heading {
    flex: none;
}

.tooltip-panel-tabs:not([hidden]) {
    display: flex;
    flex: none;
    gap: 4px;
    margin: 0 12px 8px;
    border-bottom: 1px solid rgb(255 255 255 / 20%);
}

.tooltip-panel-tabs button {
    min-height: 44px;
    padding: 4px 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #ddd;
    font: inherit;
    cursor: pointer;
}

.tooltip-panel-tabs button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.tooltip-panel-tabs button[aria-selected="true"] {
    border-bottom-color: currentColor;
    color: #f1d4ff;
}

.tooltip-panel-heading {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding-inline: 12px 2px;
    background: var(--tooltip-surface);
    color: #f6f6f6;
    line-height: 1.3;
}

.tooltip-panel-heading > strong {
    font-weight: 600;
}

.tooltip-panel-close {
    position: relative;
    flex: 0 0 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #cccccc;
    cursor: pointer;
}

.tooltip-panel-close::before,
.tooltip-panel-close::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 12px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
}

.tooltip-panel-close::after {
    transform: rotate(-45deg);
}

.tooltip-panel-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -5px;
}

.tooltip-panel-description {
    padding: 0 12px 12px;
    white-space: pre-line;
}

.tooltip-panel-description > div + div {
    margin-top: 8px;
}

.tooltip-panel-description > div > strong {
    display: block;
    color: #d6d6d6;
}

.tooltip-panel[data-linked] .tooltip-panel-description {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding-bottom: 4px;
}

.tooltip-panel[data-placement="sheet"] .tooltip-panel-description {
    font-size: 16px;
    line-height: 1.5;
}

.tooltip-panel-link:not([hidden]) {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    flex: none;
    min-height: 44px;
    margin-inline: 8px;
    padding-inline: 4px;
    color: #d9b9f4;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tooltip-panel-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

/* Mobile tooltip banner */
.tooltip-mobile-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 40px 12px 16px;
    border-radius: 8px;
    z-index: 1000;
    width: 50%;
    max-width: 90%;
    text-align: left;
    font-size: 13px;
    animation: lufel-tooltip-banner-enter 180ms ease-out;
}

.tooltip-banner-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    padding: 4px 8px;
    cursor: pointer;
}

@keyframes lufel-tooltip-banner-enter {
    from {
        opacity: 0;
        transform: translate(-50%, 6px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cursor-tooltip,
    .tooltip-mobile-banner,
    .persona-tooltip,
    .chart-tip {
        animation: none;
    }

    .tooltip-panel {
        --tooltip-panel-fade: 0s;
    }
}

/* 모바일에서 기존 툴팁 스타일 제거 */
@media (max-width: 1200px) {

    .tooltip-text::before,
    .tooltip-text::after {
        display: none;
    }
}

@media screen and (max-width: 1440px) {
    .bracket-left {
        margin-left: 0;
    }

    .bracket-right {
        margin-right: 0;
    }
}

/* apple 기기에서 괄호 간격 조정 */
@supports (-webkit-touch-callout: none) {

    .bracket-left,
    .bracket-right {
        letter-spacing: normal;
    }
}



body {
    overflow-y: auto;
    /* overlay는 Chrome 114 이후 deprecated */
}


/* 모바일 환경에서 가로 스크롤 방지 */
body {
    overflow-x: hidden !important;
    /* 가로 스크롤 숨김 */
    position: relative;
    /* 자식 요소의 기준점 설정 */
    width: 100%;
    /* 전체 너비 설정 */
}

.container {
    width: 100%;
    max-width: 100vw !important;
    /* viewport 너비를 넘지 않도록 설정 */
    overflow-x: hidden !important;
    /* 컨테이너 레벨에서도 가로 스크롤 방지 */
}



.filter-options label {
    --filter-icon-corner: 32px;
}

.filter-options img:is([src$="속성_물리.png"], [src$="속성_핵열.png"], [src$="속성_만능.png"]) {
    transform: scale(.95);
}

.filter-options label:has(> img) {
    position: relative;
    isolation: isolate;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.filter-options label:has(> img)::before {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: -1;
    height: 100%;
    aspect-ratio: 1;
    translate: -50% -50%;
    pointer-events: none;
    background: var(--card-background, #292929);
    border-radius: 50%;
}

@media (hover: hover) {
    .filter-options label:has(> img):hover::before {
        background: #454545;
    }
}

.filter-options label:has(> img):has(> input:checked)::before {
    background: #632d32;
}

/* PC 환경에서만 호버 효과 적용 */
@media (hover: hover) and (pointer: fine) {
    .filter-options label:hover {
        filter: brightness(1.1);
        background-color: rgb(255, 255, 255, 0.4);
    }
}

/* 모바일 환경에서는 호버 효과 제거 */
@media (hover: none) and (pointer: coarse) {
    .filter-options label:hover {
        filter: none;
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* 480px 미만에서는 필터 옵션의 호버 효과만 제거 */
@media screen and (max-width: 479px) {
    .filter-options label:hover {
        filter: none !important;
        transform: none !important;
        opacity: 1 !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
    }

    /* 체크박스 선택 상태는 유지 */
    .filter-options input[type="checkbox"]:checked+label {
        background-color: rgba(255, 255, 255, 0.4) !important;
    }
}



/* html이나 body에 추가 */
html {
    overflow-y: scroll;
    /* 항상 세로 스크롤바 표시 */
}

/* 언어 안내 메시지 스타일 */
.language-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 20px;
    color: #856404;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 1200px) {
    .language-notice {
        margin: 16px 0;
    }
}

.language-notice p {
    margin: 0;
}

/* 네비 오픈 시 배경 스크롤 잠금 (모바일) */
html.nav-locked,
body.nav-locked {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* iOS 대응: body를 fixed로 만들 때 레이아웃 깨짐 방지용 안전 설정은 JS에서 처리 */


.drag-me * {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;

    /* 혹시 포커스가 들어와도 캐럿 자체를 숨김 (크롬 대응) */
    caret-color: transparent;
    outline: none;
}

.drag-me:focus,
.drag-me *:focus {
    outline: none;
}

.drag-me:is(input, textarea) {
    caret-color: transparent !important;
}
/* Shared feedback for icon filters and newly revealed content. */
@media (prefers-reduced-motion: no-preference) {
    body .filter-options label {
        transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
    }

    body .filter-options label img,
    body .filter-options label .star-container {
        transition: scale 160ms ease, filter 160ms ease;
    }

    body .filter-options label:active { transform: scale(.94); }
    body .filter-options input:checked + img,
    body .filter-options input:checked + .star-container { scale: 1.08; }

    body .persona-filter-options .persona-filter-label,
    body .filter-item[data-checked] { transition: transform 150ms ease, background-color 150ms ease; }
    body .persona-filter-options .persona-filter-label:active,
    body .filter-item[data-checked]:active { transform: scale(.94); }
    body .persona-filter-options .persona-filter-label img,
    body .filter-item[data-checked] .filter-icon { transition: scale 160ms ease; }
    body .persona-filter-options .persona-filter-label:has(input:checked) img,
    body .filter-item[data-checked="true"] .filter-icon { scale: 1.08; }
}

@media (prefers-reduced-motion: reduce) {
    body .filter-options label,
    body .filter-options label img,
    body .filter-options label .star-container { transition: none; }
    body .filter-options label:active { transform: none; }
    body .persona-filter-options .persona-filter-label,
    body .persona-filter-options .persona-filter-label img,
    body .filter-item[data-checked],
    body .filter-item[data-checked] .filter-icon { transition: none; }
}
