body {
            font-family: 'Pretendard', sans-serif;
        }

        .image-item {
            transition: transform 0.2s;
            /* 호버 효과 */
            max-width: 100px;
            /* 이미지 박스의 최대 너비 설정 */
        }

        .image-item:hover {
            transform: scale(1.05);
            /* 클릭 시 확대 효과 */
        }

        .image-item .text-center {
            font-size: 0.8em;
            /* 부모 요소의 글자 크기에 상대적 */
            max-width: 100%;
            /* 최대 너비 설정 */
            white-space: nowrap;
            /* 줄 바꿈 방지 */
            overflow: hidden;
            /* 넘치는 텍스트 숨기기 */
            text-overflow: ellipsis;
            /* 넘치는 텍스트에 생략 부호 표시 */
        }

        .footer-text {
            color: white;
            font-weight: bold;
            font-family: 'Jalnan', sans-serif;
            text-align: center;
            text-shadow: 1px 1px 0 black;
            /* 검은색 테두리 효과 */
        }

        /* 공통 네비게이션 스타일은 css/style.css에서 관리 */

        .selected-image {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1000;
            /* 항상 위에 표시되도록 */
            text-align: center;
            background-color: white;
            /* 배경색 추가 */
            padding: 20px;
            /* 패딩 추가 */
            border-radius: 10px;
            /* 테두리 둥글게 */
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            /* 그림자 효과 */
            max-width: 90%;
            max-height: 90%;
            overflow-y: auto;
            display: none;
        }

        .image-container {
            display: flex;
            flex-wrap: wrap;
            /* 여러 줄로 감싸기 */
            justify-content: center;
            /* 가로 가운데 정렬 */
            align-items: center;
            /* 세로 가운데 정렬 (필요시) */
        }

        .text-center {
            max-width: 100px;
            /* 이미지와 텍스트의 최대 너비 설정 */
            margin: 0 auto;
            /* 가운데 정렬 */
            word-wrap: break-word;
            /* 긴 단어는 줄 바꿈 */
        }

        .footer-links {
            display: flex;
            justify-content: center;
            /* 가운데 정렬 */
            flex-wrap: wrap;
            /* 여러 줄로 감싸기 */
        }

        .text-center {
            white-space: nowrap;
            /* 줄 바꿈 방지 */
        }

        /* 컨텐츠 컨테이너 조정 */
        .content-container {
            margin-top: 80px;
            padding-top: 20px;
        }

        @media (max-width: 480px) {
            .content-container {
                margin-top: 80px;
            }
        }


/* ── 2026-10-07 UI refresh ───────────────────────────────────────────── */
body.profile-page { min-height:100vh; margin:0; background:linear-gradient(145deg,#f8fafc 0%,#f5f3ff 48%,#fdf2f8 100%); color:#0f172a; }
.profile-page .content-container { width:min(calc(100% - 28px),1080px); max-width:1080px !important; margin:88px auto 34px; padding:0; overflow:hidden; border:1px solid #e9e4f0 !important; border-radius:22px !important; background:rgba(255,255,255,.95) !important; box-shadow:0 12px 34px rgba(76,29,149,.055) !important; backdrop-filter:none !important; }
.profile-content { padding:clamp(18px,3vw,30px); }
.profile-hero { max-width:780px; margin:0 auto 20px; text-align:center; }
.profile-eyebrow { margin:0 0 7px; color:#7c3aed; font-size:10px; font-weight:950; letter-spacing:.16em; }
.profile-hero h1 { margin:0; color:#312e81; font-size:clamp(2rem,5vw,2.8rem); font-weight:950; line-height:1.1; letter-spacing:-.045em; }
.profile-hero > p:not(.profile-eyebrow) { margin:10px auto 0; color:#64748b; font-size:13px; font-weight:650; line-height:1.6; }
.profile-meta { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:13px; }
.profile-meta span { padding:6px 9px; border:1px solid #e9d5ff; border-radius:999px; background:#faf5ff; color:#6b21a8; font-size:9px; font-weight:850; }
.profile-page .data-status { margin-bottom:14px; border-radius:14px; box-shadow:none; }
.profile-cover { width:100%; margin:14px 0 22px; overflow:hidden; border:1px solid #ede9fe; border-radius:14px; }
.profile-cover img { display:block; width:100%; height:150px; object-fit:cover; }
.profile-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:11px; }
.profile-section-heading span { color:#8b5cf6; font-size:9px; font-weight:950; letter-spacing:.14em; }
.profile-section-heading h2 { margin:2px 0 0; color:#312e81; font-size:19px; font-weight:900; }
.profile-section-heading small { color:#94a3b8; font-size:10px; font-weight:750; }
.profile-page .image-container { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; width:100%; margin:0 0 20px; align-items:stretch; }
.profile-page .image-item { min-width:0; max-width:none; margin:0; padding:7px; overflow:hidden; cursor:pointer; border:1px solid #e5e7eb; border-radius:13px; background:#fff; box-shadow:0 3px 10px rgba(15,23,42,.035); transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease; }
.profile-page .image-item:hover { transform:translateY(-2px); border-color:#c4b5fd; box-shadow:0 7px 18px rgba(109,40,217,.09); }
.profile-page .profile-thumb { display:block; width:100% !important; aspect-ratio:1; object-fit:contain; border-radius:9px; background:#f8fafc; }
.profile-page .image-item .profile-name { max-width:100%; margin:6px 0 1px; color:#334155 !important; font-family:'Pretendard',sans-serif !important; font-size:10px !important; font-weight:850 !important; line-height:1.25; text-align:center; white-space:normal; overflow:visible; text-overflow:clip; word-break:keep-all; }
.profile-page .selected-image { width:min(92vw,430px); max-width:430px !important; max-height:82vh !important; padding:16px !important; border:1px solid #e9e4f0; border-radius:18px !important; box-shadow:0 22px 60px rgba(15,23,42,.25) !important; }
.profile-page .selected-image #displayImage { width:min(260px,70vw) !important; height:min(260px,70vw) !important; box-shadow:none !important; }
.profile-page #imageDescription { padding:12px !important; border:1px solid #eef2f7; border-radius:11px !important; background:#f8fafc !important; color:#334155 !important; font-size:13px; font-weight:750; line-height:1.55; }
.profile-contact { width:100%; margin:18px 0 0; padding:12px 14px; border:1px solid #e9d5ff; border-radius:13px; background:#fff; text-align:center; box-shadow:none; }
.profile-contact p { margin:0; color:#374151; font-family:'Pretendard',sans-serif; }
.profile-contact-link { background:linear-gradient(90deg,#7c3aed,#db2777); background-clip:text; -webkit-background-clip:text; color:transparent; font-weight:700; text-decoration:underline; text-decoration-color:#8b5cf6; }
.profile-contact-link:hover { background:none; color:#6b21a8; }

@media (max-width:760px) {
    .profile-page .content-container { width:calc(100% - 16px); margin-top:76px; margin-bottom:24px; border-radius:17px !important; }
    .profile-content { padding:13px; }
    .profile-hero { margin-bottom:14px; }
    .profile-hero h1 { font-size:clamp(1.75rem,8vw,2.2rem); }
    .profile-hero > p:not(.profile-eyebrow) { font-size:11px; }
    .profile-meta { gap:4px; }
    .profile-meta span { padding:5px 7px; }
    .profile-cover { margin:11px 0 17px; }
    .profile-cover img { height:110px; }
    .profile-section-heading { align-items:center; margin-bottom:9px; }
    .profile-section-heading h2 { font-size:16px; }
    .profile-page .image-container { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
    .profile-page .image-item { padding:5px; border-radius:10px; }
    .profile-page .image-item .profile-name { margin-top:4px; font-size:8.5px !important; }
}
@media (max-width:390px) {
    .profile-page .image-container { grid-template-columns:repeat(3,minmax(0,1fr)); }
}


.profile-page .profile-modal-image {
    display: block;
    margin: 0 auto 12px;
    border-radius: 12px;
}

/* Profile search and accessible dialog polish (2026-10-09) -------------- */
body.profile-page .profile-content { min-width: 0; }
body.profile-page .profile-section-heading { margin-top: 7px; }
body.profile-page .profile-tools {
    margin: 0 0 16px;
    padding: 15px;
    border: 1px solid #ede9fe;
    border-radius: 15px;
    background: #f8f7ff;
}
body.profile-page .profile-search-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 850;
    color: #312e81;
}
body.profile-page .profile-search-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
body.profile-page #profileSearch {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #ddd6fe;
    border-radius: 11px;
    background: #fff;
    color: #0f172a;
    font: 650 16px/1.35 'Pretendard',sans-serif;
}
body.profile-page #profileSearch::placeholder { color: #94a3b8; }
body.profile-page .profile-clear-search {
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid #ddd6fe;
    border-radius: 11px;
    background: #fff;
    color: #5b21b6;
    font: 800 12px/1.35 'Pretendard',sans-serif;
    cursor: pointer;
}
body.profile-page .profile-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
}
body.profile-page .profile-filter {
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font: 800 12px/1.3 'Pretendard',sans-serif;
    cursor: pointer;
}
body.profile-page .profile-filter.is-active,
body.profile-page .profile-filter[aria-pressed="true"] {
    border-color: #6d28d9;
    background: #6d28d9;
    color: #fff;
}
body.profile-page .profile-result-count {
    margin-left: auto;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
body.profile-page .profile-no-results {
    margin: 18px 0 30px;
    padding: 22px 12px;
    border: 1px dashed #c4b5fd;
    border-radius: 14px;
    background: #faf5ff;
    color: #64748b;
    text-align: center;
    font-size: 13px;
    font-weight: 750;
}
body.profile-page .profile-tools [hidden],
body.profile-page .image-item[hidden],
body.profile-page .profile-no-results[hidden],
body.profile-page .selected-image[hidden],
body.profile-page .profile-modal-backdrop[hidden] { display: none !important; }
body.profile-page .image-item {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    font-family: inherit;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}
body.profile-page .profile-thumb {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
}
body.profile-page .image-item .profile-name {
    display: block;
    width: 100%;
    overflow-wrap: anywhere;
}
body.profile-page .image-item:focus-visible,
body.profile-page .profile-tools button:focus-visible,
body.profile-page .profile-modal-close:focus-visible,
body.profile-page #profileSearch:focus-visible {
    outline: 3px solid #8b5cf6;
    outline-offset: 3px;
}
body.profile-page.profile-modal-open { overflow: hidden; }
body.profile-page .profile-modal-backdrop:not([hidden]) {
    position: fixed;
    z-index: 1400;
    inset: 0;
    display: block;
    background: rgba(15,23,42,.65);
    backdrop-filter: blur(3px);
}
body.profile-page .selected-image:not([hidden]) {
    position: fixed;
    z-index: 1401;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: min(92vw,430px);
    max-width: 430px !important;
    max-height: min(84dvh,680px) !important;
    padding: 24px 20px 20px !important;
    overflow-y: auto;
    border: 1px solid #e9e4f0;
    border-radius: 20px !important;
    background: #fff;
    box-shadow: 0 24px 75px rgba(15,23,42,.3) !important;
}
body.profile-page .profile-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    font: 400 26px/1 sans-serif;
    cursor: pointer;
}
body.profile-page .profile-modal-close:hover { background: #ede9fe; color: #6d28d9; }
body.profile-page .profile-modal-eyebrow {
    margin: 0 34px 6px;
    color: #7c3aed;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}
body.profile-page #profileModalTitle {
    max-width: 100%;
    margin: 0 0 16px;
    color: #312e81;
    font-size: clamp(17px,4vw,21px);
    font-weight: 900;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}
body.profile-page .selected-image #displayImage {
    display: block;
    width: min(230px,55vw) !important;
    height: min(230px,55vw) !important;
    object-fit: contain;
    border-radius: 14px;
    background: #f8fafc;
}
body.profile-page #imageDescription {
    box-sizing: border-box;
    width: 100%;
    margin-top: 14px;
    padding: 14px !important;
    background: #f5f3ff !important;
    border: 1px solid #ddd6fe !important;
    color: #312e81 !important;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
body.profile-page .profile-modal-tip {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.6;
    text-align: center;
}
@media (max-width: 760px) {
    body.profile-page .profile-tools { padding: 12px; }
    body.profile-page .profile-filter-row { gap: 6px; }
    body.profile-page .profile-result-count { width: 100%; margin-left: 0; }
    body.profile-page .profile-section-heading small { max-width: 45%; text-align: right; }
    body.profile-page .selected-image:not([hidden]) {
        padding: 24px 15px 16px !important;
    }
    body.profile-page .image-item .profile-name { font-size: 10px !important; line-height: 1.4; }
}
@media (max-width: 390px) {
    body.profile-page .profile-filter { padding: 8px 10px; font-size: 11px; }
    body.profile-page .profile-result-count { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    body.profile-page .image-item { transition: none; }
}

/* APK original sprites: static composite, with the existing profile border. */
body.profile-page .profile-apk-native-caption {
    padding: 10px 14px;
    margin: 0 0 16px;
    color: #475569;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}
body.profile-page .profile-apk-native-caption strong { color: #4c1d95; }

/* Conceal the broken-image glyph only while a failed APK thumbnail is retried.
   The load event restores the exact native still or original animated GIF. */
body.profile-page .profile-thumb.profile-image-retrying,
body.profile-page #displayImage.profile-image-retrying { visibility: hidden; }

/* Keep the fixed-menu offset on the page, without a collapsing top margin. */
body.app-page.profile-page{padding-top:72px}
body.app-page.profile-page .content-container{margin:0 auto 32px!important}
body.app-page.profile-page .profile-content{padding-top:20px}
@media(max-width:1024px){body.app-page.profile-page{padding-top:86px}}
@media(max-width:760px){
 body.app-page.profile-page .content-container{margin:0 auto 24px!important}
 body.app-page.profile-page .profile-content{padding-top:16px}
}

/* 150071 includes transparent overscan around a native 200px portrait.
   Keep the 200px center at the SAME apparent size as every other profile. */
body.profile-page .image-item[data-apk-profile-id="150071"] img.profile-thumb{
    width:160% !important;max-width:none !important;height:auto !important;
    margin:-30% -30% -30% -30%;border-radius:0;background:transparent;
}
body.profile-page .selected-image[data-overscan="native"] #displayImage{
    width:min(368px,calc(92vw - 44px)) !important;
    height:min(368px,calc(92vw - 44px)) !important;
    max-width:none;background:transparent;border-radius:0;
}
