﻿@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');
@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-1Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-2ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-3Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-9Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

:root {
    --color-point: #3359d9;
    --color-bg: #d5dbe5;
    --color-fg: #ffffff;
    --color-text-dark: #333333;
    --color-text-light: #999999;
    --font-title: 'Paperozi', sans-serif;
    --radius-lg: 10px;
    --radius-md: 8px;
    --radius-sm: 5px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    
    /* 페어 화면 전용 변수 */
    --pair-violet: var(--color-point);
    --pair-ink: #151414;
    --pair-panel-light: rgba(255, 255, 255, 0.62);
    --pair-panel-dark: rgba(0, 0, 0, 0.62);
    --pair-muted-dark: #9b9fa9;
}

body.dark-mode {
    --color-bg: #1a1a1a;
}

/* 화면 요소에 사용하는 가벼운 등장 애니메이션 */
.animated.fadedown {
    animation: fadedown 0.8s ease both;
    animation-delay: var(--animation-delay, 0s);
    transition: none;
}
.animated.fadeup {
    animation: fadeup 0.8s ease both;
    animation-delay: var(--animation-delay, 0s);
    transition: none;
}
.animated.fadein {
    animation: fadein 0.7s ease both;
    animation-delay: var(--animation-delay, 0s);
    transition: none;
}
.profile-stage-fade {
    animation: fadein 0.45s ease both;
}

@keyframes fadein {
    0% { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadedown {
    0% {
        opacity: 0;
        -webkit-transform: translateY(-10%);
        transform: translateY(-10%);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeup {
    0% {
        opacity: 0;
        -webkit-transform: translateY(10%);
        transform: translateY(10%);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

/* 사용자 지정 스크롤바 */
::-webkit-scrollbar {
    width: 14px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
}
::-webkit-scrollbar-thumb {
    background-color: var(--color-point);
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-point);
    opacity: 0.8;
}
body.dark-mode ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

.btn_tool {
    display: none !important;
}

body {
    background-color: var(--color-bg);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-text-dark);
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
    overflow-x: visible;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

button, input {
    font-family: inherit;
    outline: none;
    border: none;
}

#wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}


#content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 80px auto 80px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.main-body {
    display: contents;
}

.content-main {
    width: var(--content-width, 800px);
    max-width: 100%;
    min-height: 500px;
    background: var(--color-fg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    box-sizing: border-box;
    color: var(--color-text-dark);
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 6px solid var(--color-point);
}
.category-title h2 {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-text-dark);
}
.category-title span {
    font-size: 14px;
    color: var(--color-text-light);
}

.article-header {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-point);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.article-title {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text-dark);
    padding-left: 15px;
    border-left: 6px solid var(--color-point);
    line-height: 1.2;
}

.article-date {
    position: absolute;
    top: 5px;
    right: 0;
    font-size: 13px;
    color: var(--color-text-light);
}

.article-content {
    font-size: 16px;
    color: var(--color-text-dark);
    line-height: 1.8;
    word-break: break-all;
    overflow-wrap: break-word;
}

.article-content img {
    max-width: 100% !important;
    height: auto !important;
}

.img-dl-btn {
    position: absolute;
    bottom: 25px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--color-text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
}

.img-dl-btn:hover {
    background: var(--color-point) !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

.article-content figure:hover .img-dl-btn,
.article-content *:hover > .img-dl-btn {
    opacity: 1;
    transform: translateY(0);
}

.article-content table {
    width: 100% !important;
    table-layout: fixed;
    border-collapse: collapse;
}

.article-content iframe {
    max-width: 100% !important;
}

.article-content blockquote[data-ke-style='style2'] {
    border-color: #d0d0d0;
    border-width: 0 0 0 4px;
    border-style: solid;
    padding: 1px 0 0 12px;
    color: var(--color-text-light);
    line-height: 1.75;
    font-size: 1em;
    text-align: left;
    margin: 20px 0;
}
.article-content a {
    color: var(--color-point);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: 0.2s;
}

.article-content a:hover {
    opacity: 0.8;
    text-decoration-thickness: 2px;
}

.article-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 25px 20px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    margin: 25px 0;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    font-family: 'JetBrains Mono', monospace;
}


.article-content code {
    font-family: 'JetBrains Mono', monospace;
    background: #f0f2f5;
    color: #e03131;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    font-weight: 400;
}

.article-content pre::-webkit-scrollbar {
    height: 8px;
}
.article-content pre::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.article-content pre::-webkit-scrollbar-track {
    background: transparent;
}

.cover-item { margin-bottom: 50px; }
.cover-item:last-child { margin-bottom: 0; }

.post-wide-summary {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.wide-summary-item a {
    display: flex;
    gap: 25px;
    padding: 20px;
    background: var(--color-fg);
    border-radius: var(--radius-md);
    border: 1px solid #eee;
    transition: 0.3s;
    align-items: center;
}
.wide-summary-item a:hover {
    border-color: var(--color-point);
}
.wide-summary-item .thumb {
    width: 260px;
    height: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}
.wide-summary-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.wide-summary-item .info h3 { font-size: 19px; color: var(--color-point); margin-bottom: 10px; font-weight: 700; }
.wide-summary-item .info p {
    font-size: 14px;
    color: var(--color-text-dark);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wide-summary-item .info .date { font-size: 12px; color: var(--color-text-light); opacity: 0.6; }

.title-only-list { border-top: 1px solid #eee; }
.title-only-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}
.title-only-item:hover { background: #f8f9fa; }
.title-only-item h3 { font-size: 15px; font-weight: 500; color: var(--color-text-dark); }
.title-only-item .date { font-size: 13px; color: var(--color-text-light); }

.title-only-item .added-price {color:var(--color-point);}


.post-wide-overlay {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.wide-overlay-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}
.wide-overlay-item .thumb { width: 100%; height: 100%; }
.wide-overlay-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; opacity: 0.8; }
.wide-overlay-item:hover .thumb img { transform: scale(1.05); opacity: 0.5; }

.wide-overlay-item .overlay-info {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: rgba(0,0,0,0.3);
    transition: 0.4s;
    color: #fff;
    opacity: 0;
}
.wide-overlay-item:hover .overlay-info { opacity: 1; background: rgba(0,0,0,0.6); }

.wide-overlay-item .overlay-info h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: 0.4s;
}
.wide-overlay-item:hover .overlay-info h3 { transform: translateY(0); }
.wide-overlay-item .overlay-info p {
    font-size: 15px;
    max-width: 600px;
    line-height: 1.6;
    opacity: 0.9;
    transform: translateY(20px);
    transition: 0.4s 0.1s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wide-overlay-item:hover .overlay-info p { transform: translateY(0); }
.wide-overlay-item .overlay-info .date {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 10px;
    transform: translateY(20px);
    transition: 0.4s 0.2s;
}
.wide-overlay-item:hover .overlay-info .date { transform: translateY(0); }

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.post-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-fg);
    border: 1px solid #eee;
    transition: box-shadow 0.3s;
    height: 100%;
}

.post-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative; 
}
.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-item:hover .post-thumb img {
    transform: scale(1.1);
}

.post-thumb .no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-thumb .no-img img {
    width: 60px;
    height: auto;
}

.post-item .title-box {
    background: var(--color-point);
    color: #fff;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 55px;
    flex: 1;
}
.post-item .title-box .price-tag {
    font-size: 11px;
    font-weight: 300;
    opacity: 0.8;
    margin-bottom: 0px;
    line-height: 100%;
}
.post-item .title-box h3 {
    font-size: 16px;
    font-weight: 600;
    white-space: normal;
    word-break: break-all;
    width: 100%;
}

.article-subtitle {
    font-size: 16px;
    color: var(--color-text-light);
    font-weight: 400;
    padding-left: 25px;
}

.protected-view {
    text-align: center;
    padding: 60px 20px;
}
.protected-view .protected-icon {
    font-size: 50px;
    color: var(--color-point);
    margin-bottom: 25px;
}
.protected-view .protected-icon img {
    max-width: 150px;
    height: auto;
    vertical-align: middle;
}
.protected-view .protected-msg {
    font-size: 16px;
    color: var(--color-text-dark);
    line-height: 1.6;
    margin-bottom: 35px;
}
.protected-view .protected-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 350px;
    margin: 0 auto;
}
.protected-view input[type="password"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    font-family: inherit;
    background: #fbfbfb;
}
.protected-view button {
    padding: 0 25px;
    background: var(--color-point);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.protected-view button:hover {
    filter: brightness(1.1);
}
.admin-fixed-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 28px;
    height: 28px;
    background: var(--color-fg);
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 9999;
    font-size: 14px;
    transition: 0.3s;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}
.admin-fixed-btn:hover {
    color: var(--color-point);
}

/* 날짜 숨기기 옵션 */
.date-hidden .date-text {
    display: none !important;
}



.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.article-tags a {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}
.article-tags a:hover { background: var(--color-point); color: #fff; }

.tt_box_namecard { display: none !important; }

.comment-area {
    margin-top: 20px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}
.comment-area .comment-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-point);
    margin-bottom: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}
.comment-area .comment-title i {
    font-size: 14px;
    transition: 0.3s;
}
.comment-area.collapsed .comment-title i { transform: rotate(-90deg); }

.comment-container {
    margin-top: 20px;
}

.comment-list { margin-bottom: 40px; }
.comment-list ul li {
    padding: 25px 0;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
}
.comment-list ul li .author {
    font-weight: 700;
    color: var(--color-text-dark);
    margin-right: 10px;
}
.comment-list ul li .date {
    font-size: 12px;
    color: var(--color-text-light);
}
.comment-list ul li p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-light);
    word-break: break-all;
}
.comment-form {
    background: var(--color-fg);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid #eee;
}
.comment-form textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    resize: none;
    font-family: inherit;
    margin-bottom: 15px;
    background: #fff;
}
.comment-form .submit-btn {
    background: var(--color-point);
    color: #fff;
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.comment-form .submit-btn:hover { filter: brightness(1.1); }

#footer {
    text-align: center;
    font-size: 12px;
    color: var(--color-text-light);
    position: fixed;
    left: 10px;
    bottom: 10px;
    z-index: 900;
    line-height: 1;
}
#footer a,
#footer svg {
    display: block;
}
body.has-tag-profile #footer,
body#tt-body-tag #footer,
body:has(.tag-profile-wrapper) #footer {
    display: none;
}

#paging {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}
#paging a, #paging span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--color-fg);
    color: var(--color-text-dark);
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s;
}
#paging a:hover {
    background: var(--color-point);
    color: #fff;
    transform: translateY(-2px);
}

#paging span {
    background: var(--color-fg);
    color:var(--color-text-dark);
    font-weight: 800;
    box-shadow: 0 0px 5px rgba(0,0,0,0.3);
}
#paging span.selected {
    background: var(--color-point);
    color: #fff;
    font-weight: 800;
}

#paging .prev, #paging .next {
    font-size: 11px;
}
#paging .prev i, #paging .next i {
    margin: 0;
}
#paging .no-more-prev, #paging .no-more-next {
    opacity: 0.2;
    pointer-events: none;
}
.post-list-wrap {
    margin-bottom: 40px;
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(3, 1fr);
}

.post-list-wrap.grid_2 { grid-template-columns: repeat(2, 1fr); }
.post-list-wrap.grid_3 { grid-template-columns: repeat(3, 1fr); }
.post-list-wrap.grid_4 { grid-template-columns: repeat(4, 1fr); }
.post-list-wrap.list_shop { grid-template-columns: repeat(3, 1fr); }

.list-item { height: 100%; display: flex; flex-direction: column; }
.list-item a { border: 1px solid #eee; border-radius: 8px; overflow: hidden; height: 100%; transition: box-shadow 0.3s, transform 0.3s; background: var(--color-fg); display: flex; flex-direction: column; width: 100%; }
.list-thumb { position: relative; overflow: hidden; background: #eee; }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; display: block; }
.list-item:hover .list-thumb img { transform: scale(1.05); }

.list-info { padding: 15px; }
.list-title { font-size: 17px; font-weight: 700; color: var(--color-point); margin-bottom: 8px; line-height: 1.4; }
.list-summary { font-size: 13.5px; color: var(--color-text-dark); line-height: 1.6; display: none; margin-bottom: 10px; }
.list-date { font-size: 12px; color: var(--color-text-light); opacity: 0.6; }

.post-list-wrap .list-thumb,
.grid_2 .list-thumb, .grid_3 .list-thumb, .grid_4 .list-thumb, .list_shop .list-thumb { aspect-ratio: 4 / 3; }

.post-list-wrap.list_summary { display: flex; flex-direction: column; gap: 20px; }
.list_summary .list-item a { border: 1px solid #eee; border-radius: 8px; overflow: hidden; height: auto; transition: 0.3s; background: var(--color-fg); display: flex; flex-direction: row; align-items: center; padding: 20px; gap: 25px; }
.list_summary .list-item a:hover { border-color: var(--color-point); box-shadow: none; }
.list_summary .list-thumb { width: 260px; height: 160px; border-radius: 8px; flex-shrink: 0; overflow: hidden; }
.list_summary .list-info { padding: 0; display: flex; flex-direction: column-reverse; justify-content: center; text-align: left; flex: 1; }
.list_summary .list-title { font-size: 19px; color: var(--color-point); margin-bottom: 5px; font-weight: 700; line-height: 1.4; }
.list_summary .list-summary { 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    color: var(--color-text-dark);
    line-height: 1.6;
    margin-bottom: 10px;
    margin-top: 10px;
    opacity: 0.6;
}
.list_summary .list-date { font-size: 12px; color: var(--color-text-light); opacity: 0.6; }

.post-list-wrap.list_title { display: block; border-top: 1px solid #eee; }
.list_title .list-item { border-bottom: 1px solid #eee; }
.list_title .list-item a { border: none; border-radius: 0; display: block; padding: 25px 30px; transform: none; box-shadow: none; height: auto; }
.list_title .list-item a:hover { background: #f9f9f9; }
.list_title .list-thumb { display: none; }
.list_title .list-info { padding: 0; display: flex; flex-direction: row; align-items: flex-start; width: 100%; position: relative; }
.list_title .added-price { display: block; font-size: 14px; color: var(--color-point); margin-bottom: 5px; font-weight: 600;flex-shrink: 0; margin-right: 10px; }
.list_title .list-title-row { display: flex; width: 100%; align-items: center; justify-content: space-between; position: relative; }
.list_title .list-text-bundle { display: flex; flex-direction: column; align-items: flex-start; }
.list_title .list-title { margin-bottom: 0; font-size: 16px; font-weight: 500; color: var(--color-text-dark); }
.list_title .list-date-wrap { position: absolute; right:0;  pointer-events: none; display: flex; align-items: center; height: 100%; }
.list_title .list-date { font-size: 13px; color: var(--color-text-light); opacity: 0.8; }
.list_title .list-summary { display: none; }

.post-list-wrap.wide_1 { display: flex; flex-direction: column; gap: 20px; }
.post-list-wrap.wide_2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.wide_1 .list-item a, .wide_2 .list-item a { height: auto; border: none; background: transparent; }
.wide_1 .list-thumb, .wide_2 .list-thumb { aspect-ratio: 16 / 7; border-radius: 10px; }
.wide_1 .list-info, .wide_2 .list-info { padding: 15px 5px; text-align: center; }

.list-overlay { display: none; }

.list_shop .list-overlay, .cover_shop .list-overlay { 
    display: flex;
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.5); 
    align-items: center; justify-content: center; 
    opacity: 0; transition: 0.3s; color: #fff; text-align: center; z-index: 5;
    pointer-events: none;
}
.list_shop .list-item:hover .list-overlay, .cover_shop .post-item:hover .list-overlay { opacity: 1; }
.list_shop .shop-price, .cover_shop .shop-price { font-size: 20px; font-weight: 800; }
.list_shop .list-title-hover, .cover_shop .list-title-hover { display: none; }

.list_shop .list-info, .cover_shop .list-info {
    min-height: 50px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cover_shop .added-price {
    display: none;
}

.post-list-wrap .list-item a:hover,
.grid_2 .list-item a:hover,
.grid_3 .list-item a:hover,
.grid_4 .list-item a:hover {
    transform: none;
}
.post-list-wrap:not(.list_summary):not(.list_title):not(.wide_1):not(.wide_2) .list-info,
.grid_2 .list-info,
.grid_3 .list-info,
.grid_4 .list-info {
    background: var(--color-point);
    color: #fff;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    flex: 1;
    overflow: hidden;
}
.post-list-wrap:not(.list_summary):not(.list_title):not(.wide_1):not(.wide_2) .list-title,
.grid_2 .list-title,
.grid_3 .list-title,
.grid_4 .list-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    white-space: normal;
    word-break: break-all;
    width: 100%;
    margin-bottom: 0;
    line-height: 1.3;
}
.post-list-wrap:not(.list_summary):not(.list_title):not(.wide_1):not(.wide_2) .list-title-row,
.grid_2 .list-title-row, .grid_3 .list-title-row, .grid_4 .list-title-row, .list_shop .list-title-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
}
.post-list-wrap:not(.list_summary):not(.list_title):not(.wide_1):not(.wide_2) .list-text-bundle,
.grid_2 .list-text-bundle, .grid_3 .list-text-bundle, .grid_4 .list-text-bundle, .list_shop .list-text-bundle {
    display: contents;
}
.post-list-wrap:not(.list_summary):not(.list_title):not(.wide_1):not(.wide_2) .list-date-wrap,
.grid_2 .list-date-wrap, .grid_3 .list-date-wrap, .grid_4 .list-date-wrap {
    position: static;
    transform: none;
    height: auto;
    width: 100%;
    text-align: center;
    margin-bottom: 2px;
}
.post-list-wrap:not(.list_summary):not(.list_title):not(.wide_1):not(.wide_2) .list-date,
.grid_2 .list-date,
.grid_3 .list-date,
.grid_4 .list-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    opacity: 1;
    font-weight: 300;
    order: -1;
}
.post-list-wrap:not(.list_summary):not(.list_title):not(.wide_1):not(.wide_2) .added-price,
.grid_2 .added-price,
.grid_3 .added-price,
.grid_4 .added-price {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 11px !important;
    margin-bottom: 2px !important;
    order: -1;
}

.wide_1 .list-item a,
.wide_2 .list-item a {
    position: relative;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.wide_1 .list-item a:hover,
.wide_2 .list-item a:hover {
    transform: none;
    box-shadow: none;
}
.wide_1 .list-thumb,
.wide_2 .list-thumb {
    border-radius: 0;
}
.wide_1 .list-thumb img,
.wide_2 .list-thumb img {
    opacity: 0.8;
    transition: 0.6s;
}
.wide_1 .list-item:hover .list-thumb img,
.wide_2 .list-item:hover .list-thumb img {
    transform: scale(1.05);
    opacity: 0.5;
}
.wide_1 .list-info,
.wide_2 .list-info {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    transition: 0.4s;
    color: #fff;
    opacity: 0;
    text-align: center;
}
.wide_1 .list-item a:hover .list-info,
.wide_2 .list-item a:hover .list-info {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}
.wide_1 .list-title,
.wide_2 .list-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: 0.4s;
    white-space: normal;
    text-overflow: clip;
}
.wide_1 .list-item:hover .list-title,
.wide_2 .list-item:hover .list-title {
    transform: translateY(0);
}
.wide_1 .list-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.6;
    transform: translateY(20px);
    transition: 0.4s 0.1s;
}
.wide_1 .list-item:hover .list-summary {
    transform: translateY(0);
}
.wide_1 .list-date-wrap, 
.wide_2 .list-date-wrap {
    display: block;
}
.wide_1 .added-price, 
.wide_2 .added-price {
    display: none;
}

/* 자유 비율 상점 스타일 */
.post-list-wrap.list_free_a {
    display: grid;
    grid-template-columns: repeat(var(--free-a-cols, 3), 1fr);
    gap: 20px;
}
.list_free_a .list-thumb {
    aspect-ratio: var(--free-a-ratio, 1/1) !important;
}

.post-list-wrap.list_free_b {
    display: grid;
    grid-template-columns: repeat(var(--free-b-cols, 2), 1fr);
    gap: 20px;
}
.list_free_b .list-thumb {
    aspect-ratio: var(--free-b-ratio, 3/4) !important;
}

.list_free_a .list-item a, .list_free_b .list-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-fg);
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}
/* 자유 비율 모드 전환 */
/* 오버레이 모드: 하단 정보 숨기기, 이미지/오버레이만 표시 */
.mode_overlay.list_free_a .list-info, .mode_overlay.list_free_b .list-info,
.mode_free_a_overlay.list_free_a .list-info, .mode_free_b_overlay.list_free_b .list-info {
    display: none !important;
}
/* 오버레이 모드에서 링크 컨테이너의 박스 스타일 제거 */
.mode_overlay.list_free_a .list-item a, .mode_overlay.list_free_b .list-item a,
.mode_free_a_overlay.list_free_a .list-item a, .mode_free_b_overlay.list_free_b .list-item a {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.mode_overlay.list_free_a .list-item:hover .list-overlay, .mode_overlay.list_free_b .list-item:hover .list-overlay,
.mode_free_a_overlay.list_free_a .list-item:hover .list-overlay, .mode_free_b_overlay.list_free_b .list-item:hover .list-overlay {
    opacity: 1;
}

/* 정보 박스 모드: 하단 정보 박스 표시, 오버레이 숨기기 */
.mode_info-box.list_free_a .list-info, .mode_info-box.list_free_b .list-info,
.mode_free_a_info-box.list_free_a .list-info, .mode_free_b_info-box.list_free_b .list-info {
    display: flex !important;
    flex-direction: column;
    padding: 15px 10px;
    text-align: center;
    background: var(--color-fg);
    border: 1px solid #f0f0f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}
.mode_info-box.list_free_a .list-overlay, .mode_info-box.list_free_b .list-overlay,
.mode_free_a_info-box.list_free_a .list-overlay, .mode_free_b_info-box.list_free_b .list-overlay {
    display: none !important;
}

.list_free_a .list-title-hover, .list_free_b .list-title-hover {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
}
.list_free_a .shop-price, .list_free_b .shop-price {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
}
.list_free_a .list-overlay, .list_free_b .list-overlay {
    display: flex;
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); 
    align-items: flex-end; justify-content: center; 
    padding-bottom: 40px;
    opacity: 0; transition: 0.3s; color: #fff; text-align: center; z-index: 5;
    pointer-events: none;
}
.list_free_a .list-shop-info, .list_free_b .list-shop-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
}
.wide_1 .list-date,
.wide_2 .list-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
    margin-top: 10px;
    transform: translateY(20px);
    transition: 0.4s 0.2s;
}
.wide_1 .list-item:hover .list-date,
.wide_2 .list-item:hover .list-date {
    transform: translateY(0);
}

/* 상세 페이지가 아닌 곳(홈, 목록)에서만 적용 */
body:not(#tt-body-post):not(#tt-body-page) .article-view {
    position: relative;
    margin: 20px 0;
}
body:not(#tt-body-post):not(#tt-body-page) .comment-area,
body:not(#tt-body-post):not(#tt-body-page) .container_postbtn {
    display: none !important;
}

/* 상세 페이지에서는 원래대로 복구 */
#tt-body-post .article-view, 
#tt-body-page .article-view {
    position: static;
    margin: 0;
}
.related-posts {display: none;}

.container_postbtn {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 20px 0 !important;
    margin-top: 30px !important;
    position: relative !important;
}
.postbtn_like {
    display: flex !important;
    align-items: center !important;
    background: var(--color-fg) !important;
    padding: 6px !important;
    border-radius: 50px !important;
    border: 1px solid #edf2f7 !important;
    position: relative !important;
}
.postbtn_like .wrap_btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 2px !important;
    position: relative !important;
}

.postbtn_like .btn_post {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 20px !important;
    padding: 0 5px !important;
    border-radius: 20px !important;
    background: transparent !important;
    border: none !important;
    color: var(--color-text-dark) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.postbtn_like .btn_post:hover {
    background: #f7f9fc !important;
    color: var(--color-point) !important;
}
.bundle_post {
    display: flex !important;
    flex-direction: column !important;
    background-color: var(--color-fg) !important;
    border: 1px solid #eef1f5 !important;
    border-radius: var(--radius-md) !important;
    padding: 8px 0 !important;
    min-width: 160px !important;
    height: auto !important;
    text-align: left !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 999999 !important;
}
.layer_post {
    display: none;
    position: absolute !important;
    left: 0 !important;
    top: 100% !important;
    padding: 0 !important;
    margin-top: 5px !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    z-index: 999999 !important;
}
/* 티스토리 기본 스크립트로 열릴 때 display: block으로 변하지만 다중 글에서 꼬이는 문제 해결 */
.wrap_btn button[aria-expanded="true"] + .layer_post,
.wrap_btn button[aria-expanded="true"] ~ .layer_post {
    display: block !important;
}

.another_category {
    margin: 30px 0 0 !important;
    padding: 15px !important;
    border: 1px solid #eef1f5 !important;
    border-radius: var(--radius-lg) !important;
    background: var(--color-fg) !important;
}
.another_category h4 a {
    color: var(--color-point) !important;
    font-weight: 800 !important;
}

.another_category table { width: 100% !important; border-collapse: collapse !important; }
.another_category table th {
    text-align: left !important;
    padding: 5px 0 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 100% !important;
}
.another_category table th a {
    color: var(--color-text-dark) !important;
    transition: 0.2s !important;
}
.another_category table th a:hover {
    color: var(--color-point) !important;
    padding-left: 5px !important;
}
.another_category table td {
    text-align: right !important;
    padding: 10px 0 !important;
    font-size: 12px !important;
    color: var(--color-text-light) !important;
}
.another_category table tr { border-bottom: 1px solid #f9f9f9 !important; }
.another_category table tr:last-child { border-bottom: none !important; }
.another_category span {
    font-size: 11px !important;
    color: var(--color-point) !important;
    opacity: 0.7 !important;
    font-weight: 600 !important;
}

.article-content figure.fileblock,
.article-content #tt-body-page figure.fileblock {
    margin: 30px auto !important;
    width: 100% !important;
    max-width: 500px !important;
    height: auto !important;
    border: 1px solid #eef1f5 !important;
    border-radius: var(--radius-md) !important;
    background: #f8fafc !important;
    overflow: hidden !important;
    position: relative !important;
    transition: 0.3s !important;
}
.article-content figure.fileblock a {
    display: flex !important;
    align-items: center !important;
    padding: 15px 20px !important;
    height: auto !important;
    text-decoration: none !important;
}
.article-content figure.fileblock a:hover {
    background: #fff !important;
    border-color: var(--color-point) !important;
}
.article-content figure.fileblock a::after {
    content: "\f019" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    right: 25px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 16px !important;
    color: var(--color-point) !important;
    background: none !important;
    opacity: 0.5 !important;
    transition: 0.2s !important;
}
.article-content figure.fileblock a:hover::after { opacity: 1; transform: translateY(-50%) scale(1.1); }

.article-content figure.fileblock .image {
    position: static !important;
    width: 42px !important;
    height: 42px !important;
    background: var(--color-point) !important;
    border-radius: var(--radius-sm) !important;
    margin: 0 15px 0 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.article-content figure.fileblock .image::before {
    content: "\f15b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 18px;
}

.article-content figure.fileblock .desc {
    position: static !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
}

.article-content figure.fileblock .filename {
    margin: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
}

.article-content figure.fileblock .name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--color-text-dark) !important;
    max-width: 250px !important;
    height: auto !important;
}

.article-content figure.fileblock .size {
    margin: 0 !important;
    font-size: 11px !important;
    color: var(--color-text-light) !important;
    font-family: 'JetBrains Mono', monospace !important;
    opacity: 0.8 !important;
    height: auto !important;
}

.article-content figure.fileblock.censorship { opacity: 0.5; }

.tt-wrap-cmt .tt-box-modify {
    position: absolute !important;
    top: 15px !important;
    right: 0 !important;
    z-index: 100 !important;
}

.tt-wrap-cmt .tt-button-modify {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    background: #f7f9fc !important;
    color: var(--color-text-light) !important;
    transition: 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
}
.tt-wrap-cmt .tt-button-modify::before {
    content: "\f142" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    color: inherit !important;
}

.tt-wrap-cmt .tt-button-modify:hover,
.tt-wrap-cmt .tt-box-modify.tt-box-modify-open .tt-button-modify {
    background: var(--color-point) !important;
    color: #fff !important;
}

.tt-list-modify {
    position: absolute !important;
    top: 38px !important;
    right: 0 !important;
    background: var(--color-fg) !important;
    border: 1px solid #eef1f5 !important;
    border-radius: var(--radius-md) !important;
    padding: 8px 0 !important;
    min-width: 120px !important;
    display: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
}
.tt-box-modify.tt-box-modify-open .tt-list-modify {
    display: flex !important;
}

.tt-list-modify li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tt-list-modify li a {
    display: block !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    color: var(--color-text-dark) !important;
    text-align: left !important;
    transition: 0.2s !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.tt-list-modify li a:hover {
    background: #f7f9fc !important;
    color: var(--color-point) !important;
}
.tt-wrap-cmt .tt_desc {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: var(--color-text-dark) !important;
    margin-top: 10px !important;
}

.tt-wrap-cmt .tt_date {
    font-size: 12px !important;
    color: var(--color-text-light) !important;
    opacity: 0.7 !important;
    margin-top: 5px !important;
}

.tt-txt-mention {
    display: inline-block !important;
    background: #f0f4ff !important;
    color: var(--color-point) !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-right: 4px !important;
}
.tt-txt-mention::before { display: none !important; }

.tt-link-comment .tt_txt_g {
    font-size: 12px !important;
    color: var(--color-point) !important;
    font-weight: 700 !important;
    opacity: 0.8 !important;
    transition: 0.2s !important;
}
.tt-link-comment:hover .tt_txt_g { opacity: 1; }

.tt-box-tooltip {
    background: var(--color-point) !important;
    border-radius: var(--radius-sm) !important;
    color: #fff !important;
    font-size: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}



@media screen and (max-width: 1000px) {
    #content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px;
        margin: 0 auto;
        overflow-x: hidden;
    }
    
    .main-body {
        display: block !important;
        width: 100% !important;
    }

    .content-main {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 20px;
        padding: 25px 20px;
        min-height: auto;
    }

    .post-list-wrap { grid-template-columns: 1fr; gap: 15px; }
    .post-list-wrap.grid_4 { grid-template-columns: repeat(2, 1fr); }
    .post-list-wrap.grid_3 { grid-template-columns: repeat(2, 1fr); }
    .post-list-wrap.list_shop { grid-template-columns: repeat(2, 1fr); }
    .post-list-wrap.list_free_a { --free-a-cols: 2; }
    .post-list-wrap.list_free_b { --free-b-cols: 2; }

    .list_summary .list-thumb { width: 220px; height: 140px; }
    .list_summary .list-info { padding: 15px 20px; }
    
    .wide-summary-item a {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }
    .wide-summary-item .thumb { width: 100%; height: 200px; }

    /* 모바일에서 오버레이 정보 가시성 개선 */
    .wide_1 .list-info, .wide_2 .list-info, .list_shop .list-overlay, .list_free_a .list-overlay, .list_free_b .list-overlay {
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.4) !important;
    }
    .wide_1 .list-title, .wide_2 .list-title, .wide_1 .list-summary, .wide_1 .list-date, .wide_2 .list-date, .list_free_a .list-title-hover, .list_free_b .list-title-hover {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
    .wide_1 .list-info, .wide_2 .list-info { padding: 20px; }
    .wide_1 .list-title, .wide_2 .list-title { font-size: 20px; }
    .wide_1 .list-summary { font-size: 13px; -webkit-line-clamp: 3; line-clamp: 3; }

    .profile-img {
        left: 50%;
        bottom: -35px;
        transform: translateX(-50%);
        width: 110px;
        height: 110px;
    }
    
    .profile-info {
        flex-direction: column;
    }
    
    .profile-text {
        text-align: center;
    }

    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-fixed-btn {
        display: none !important;
    }


}

@media screen and (max-width: 600px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    .post-list-wrap.grid_2, .post-list-wrap.grid_3, .post-list-wrap.grid_4, .post-list-wrap.list_shop, .post-list-wrap.wide_2, .post-list-wrap.list_free_a, .post-list-wrap.list_free_b { 
        grid-template-columns: 1fr !important; 
    }
    .list_summary .list-item a { flex-direction: column; gap: 0; }
    .list_summary .list-thumb { width: 100%; height: 200px; border-radius: 8px 8px 0 0; }
    .list_summary .list-info { padding: 20px; }
    .list_summary .list-title { font-size: 17px; }
    
    .article-title {
        font-size: 22px;
    }
    
    .summary-item h3 {
        font-size: 16px;
    }
    
    .wide-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wide-list-item .thumb {
        width: 100%;
        height: 180px;
    }
}

/* 커버 공지 타입 */
.post-notice {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.notice-item {
    background: var(--color-fg);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 0px;
    border: 1px solid #f0f0f0;
}
.notice-thumb {
    width: 100%;
    margin-bottom: 25px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}
.notice-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.notice-header {
    margin-bottom: 15px;
}

.notice-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 30px 30px 15px 30px;
}

.notice-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f7f9fc;
    color: var(--color-text-light);
    border-radius: 50%;
    font-size: 13px;
    transition: 0.2s;
}
.notice-link-icon:hover {
    background: var(--color-point);
    color: #fff;
}

.notice-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-dark);
    white-space: pre-wrap;
    word-break: break-all;
    padding: 0 30px 30px 30px;
}

@media screen and (max-width: 600px) {
    .notice-title {
        font-size: 18px;
    }
    .notice-body {
        font-size: 14px;
    }
}

/* ==========================================================================
   페어 홈 및 성장형 캐릭터 프로필
   ========================================================================== */

/* 스킨 폰트 옵션 */
body,
body.font-default {
    --profile-display-font: 'Zalando Sans', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    --profile-pair-font: 'Zalando Sans', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    --profile-pair-hangul-font: 'Paperozi', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    --profile-support-font: 'Pretendard', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    --profile-message-font: 'Paperozi', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    --main-logo-font: 'Zalando Sans', 'Paperozi', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    --main-dday-font: 'Zalando Sans', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    --main-logo-weight: 600;
    --main-dday-weight: 500;
    --profile-name-weight: 600;
    --profile-pair-weight: 600;
    --profile-support-weight: 400;
}
body.font-serif {
    --profile-display-font: 'Playfair Display', 'Noto Serif Display', 'KoPubWorld Batang', 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC', serif;
    --profile-pair-font: 'Cinzel', 'Noto Serif Display', 'KoPubWorld Batang', 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC', serif;
    --profile-pair-hangul-font: 'KoPubWorld Batang', 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC', 'Noto Serif Display', serif;
    --profile-support-font: 'KoPubWorld Batang', 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC', 'Noto Serif Display', serif;
    --profile-message-font: 'KoPubWorld Batang', 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC', 'Noto Serif Display', serif;
    --main-logo-font: 'Playfair Display', 'KoPubWorld Batang', 'Noto Serif Display', 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC', serif;
    --main-dday-font: 'Playfair Display', 'Noto Serif Display', 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC', serif;
    --main-logo-weight: 600;
    --main-dday-weight: 500;
    --profile-name-weight: 500;
    --profile-pair-weight: 500;
    --profile-support-weight: 400;
    font-family: 'Cinzel', 'Playfair Display', serif;
}
body.font-serif .char-eng-name,
body.font-serif .pair-name-display {
    font-family: var(--profile-display-font);
}
body.font-gothic {
    --profile-display-font: 'Pretendard', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    --profile-pair-font: 'Pretendard', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    --profile-pair-hangul-font: 'Pretendard', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    --profile-support-font: 'Pretendard', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    --profile-message-font: 'Pretendard', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    --main-logo-font: 'Pretendard', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    --main-dday-font: 'Pretendard', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    --main-logo-weight: 700;
    --main-dday-weight: 600;
    --profile-name-weight: 700;
    --profile-pair-weight: 600;
    --profile-support-weight: 400;
    font-family: 'Pretendard', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
}
body.font-cursive {
    --profile-display-font: 'Pinyon Script', 'Noto Serif Display', 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC', serif;
    --profile-pair-font: 'Pinyon Script', 'Noto Serif Display', 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC', serif;
    --profile-pair-hangul-font: 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC', 'Noto Serif Display', serif;
    --profile-support-font: 'Pinyon Script', 'Noto Serif Display', 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC', serif;
    --profile-message-font: 'KoPubWorld Batang', 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC', 'Noto Serif Display', serif;
    --main-logo-font: 'Pinyon Script', 'Noto Serif Display', 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC', serif;
    --main-dday-font: 'Playfair Display', 'Noto Serif Display', 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC', serif;
    --main-logo-weight: 400;
    --main-dday-weight: 500;
    --profile-name-weight: 400;
    --profile-pair-weight: 400;
    --profile-support-weight: 400;
    font-family: 'Pinyon Script', 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC', serif;
}
body.font-cursive .bubble-quote {
    font-family: 'Pretendard', sans-serif;
}
body.font-cursive .char-eng-name {
    white-space: nowrap;
}
body.font-cursive .char-eng-name br {
    display: none;
}
body.font-cursive .char-eng-name span + span::before {
    content: " ";
}
body.font-cursive.has-pair-home .main-subtitle {
    font-family: var(--main-dday-font);
}

/* 메인 홈과 프로필 외의 일반 페이지는 스킨 폰트 옵션과 무관하게 기본 폰트를 사용한다. */
body.font-default:not(.has-pair-home):not(.has-tag-profile),
body.font-serif:not(.has-pair-home):not(.has-tag-profile),
body.font-gothic:not(.has-pair-home):not(.has-tag-profile),
body.font-cursive:not(.has-pair-home):not(.has-tag-profile) {
    font-family: 'Pretendard', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
}

.char-eng-name,
.pair-name-display {
    font-family: var(--profile-display-font);
}
.pair-name-display.is-hangul {
    font-family: var(--profile-pair-hangul-font);
}

/* 커버 홈에서 기본 레이아웃 숨김 */
body.has-pair-home {
    --pair-violet: var(--color-point);
    --pair-ink: #151414;
    --pair-panel: rgba(255, 255, 255, 0.72);
    overflow-x: hidden !important;
    padding: 0 !important;
    background-color: var(--color-bg);
}
body.has-pair-home #wrap {
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
body.has-pair-home #content {
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.has-pair-home .content-main {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    min-height: auto !important;
}

/* 메인 슬라이더 프레임 */
.pair-home-slider-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.pair-slider-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pair-slider-track {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}
.pair-slider-track.cover-only {
    width: 100%;
    transform: translateX(0) !important;
}

.pair-slide {
    width: 50%;
    height: 100%;
    position: relative;
    background-color: var(--color-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background 0.8s ease;
}
.pair-slider-track.cover-only > .pair-slide {
    width: 100%;
    flex: 0 0 100%;
}

/* 좌측 상단 고정 BGM 플레이어 */
.bgm-player-fixed {
    position: fixed;
    top: 11px;
    left: -6px;
    width: min(450px, calc(100vw - 16px));
    max-width: none;
    min-height: 143px;
    padding: 0 28px 0 0;
    gap: 10px;
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    z-index: 1000 !important;
    display: flex;
    transition: all 0.3s ease;
}
.bgm-player-fixed::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 16px;
    width: min(450px, calc(100vw - 16px));
    height: 111px;
    border-radius: 0 50px 50px 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.75) 43.5%, rgba(255,255,255,0.6) 100%);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.27);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
body.dark-mode .bgm-player-fixed::before {
    background: linear-gradient(90deg, rgba(0,0,0,0.75) 43.5%, rgba(0,0,0,0.6) 100%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.bgm-player-fixed.no-bgm {
    min-height: auto;
    width: auto;
    padding: 0;
}
.bgm-player-fixed.no-bgm::before,
.bgm-player-fixed.no-bgm .bgm-info-controls {
    display: none !important;
}
.bgm-avatar-container {
    position: relative;
    z-index: 1;
    width: 143px;
    height: 143px;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: var(--pair-violet);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.bgm-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bgm-info-controls {
    position: relative;
    z-index: 1;
    width: 244px;
    flex: 0 1 244px;
    gap: 11px;
    overflow: visible;
    display: flex;
    flex-direction: column;
}
.bgm-text-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Paperozi', 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.dark-mode .bgm-text-row {
    color: #fff;
}
.bgm-icon-node {
    flex: 0 0 auto;
    color: var(--color-point);
    font-size: 13px;
}
body.dark-mode .bgm-icon-node {
    color: #fff;
}
.bgm-track-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.bgm-title-marquee-inner {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    white-space: nowrap;
    will-change: transform;
}
.bgm-title-text {
    display: inline-block;
    white-space: nowrap;
}
.bgm-track-title.is-marquee {
    text-overflow: clip;
}
.bgm-track-title.is-marquee .bgm-title-marquee-inner {
    max-width: none;
    animation: bgmTitleMarquee var(--bgm-marquee-duration, 16s) linear infinite;
}
.bgm-track-title.is-marquee .bgm-title-text {
    padding-right: 36px;
}
@keyframes bgmTitleMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.bgm-controls-row {
    display: grid;
    grid-template-columns: repeat(4, 24px) 1fr;
    gap: 0;
    align-items: center;
}
.bgm-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3d4048;
    font-size: 13px;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 1;
    transition: all 0.2s;
    padding: 0;
}
body.dark-mode .bgm-btn {
    color: #fff;
}
.bgm-btn:hover {
    color: var(--color-point);
}
.bgm-progress-container {
    grid-column: 1 / -1;
    width: 244px;
    height: 13px;
    margin: 9px 0 0;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.51);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.25);
    position: relative;
    cursor: pointer;
}
body.dark-mode .bgm-progress-container {
    background: rgba(109, 109, 109, 0.51);
}
.bgm-progress-bar {
    min-width: 0;
    height: 13px;
    border-radius: 50px;
    background: var(--pair-violet);
    transition: width 0.1s linear;
}

/* 우측 상단 고정 재화 표시 */
.top-currency-container {
    position: fixed;
    top: 24px;
    right: 30px;
    z-index: 1000 !important;
    display: flex;
    align-items: center;
    gap: 18px;
}
.currency-item {
    width: 169px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 0 12px;
    border: 0;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    color: var(--pair-ink);
    font-family: 'Paperozi', 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    backdrop-filter: blur(5px);
}
body.dark-mode .currency-item {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.25);
    color: #fff;
}
.currency-item .currency-val {
    min-width: 0;
    width: 100%;
    margin-left: 8px;
    flex: 1 1 auto;
    text-align: right;
    white-space: nowrap;
}
.currency-icon,
.currency-item i {
    width: 30px;
    height: 30px;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    flex: 0 0 30px;
}
body.dark-mode .currency-item i {
    color: #fff;
}
.cog-menu-btn, .hamburger-menu-btn {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}
.cog-menu-btn i, .hamburger-menu-btn i {
    font-size: 32px;
}
.cog-menu-btn {
    margin-left: 15px;
}
body.dark-mode .cog-menu-btn, body.dark-mode .hamburger-menu-btn {
    background: transparent;
    border-color: transparent;
    color: #fff;
}
body.light-mode.inverse-admin-ui .cog-menu-btn,
body.light-mode.inverse-admin-ui .hamburger-menu-btn {
    color: #fff;
}
body.dark-mode.inverse-admin-ui .cog-menu-btn,
body.dark-mode.inverse-admin-ui .hamburger-menu-btn {
    color: #111;
}
.cog-menu-btn:hover, .hamburger-menu-btn:hover {
    transform: scale(1.05);
    color: var(--pair-violet);
}

/* 슬라이드 이동 버튼 */
.slide-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--color-text-dark);
    cursor: pointer;
    z-index: 80;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    opacity: 0.8;
}
body.dark-mode .slide-nav-btn {
    background: rgba(30,30,30,0.5);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.slide-nav-btn:hover {
    background: var(--color-point);
    color: #fff;
    border-color: var(--color-point);
    transform: translateY(-50%) scale(1.08);
    opacity: 1;
}
.slide-nav-btn[aria-disabled="true"] {
    cursor: default;
    pointer-events: none;
    opacity: 0.45;
}
.slide-prev { left: 20px; }
.slide-next { right: 20px; }

/* 홈 화면 좌측 폴라로이드 */
.main-left-frame {
    position: absolute;
    left: 8vw;
    top: 25vh;
    width: 200px;
    z-index: 50;
}
.polaroid-card {
    background: #fff;
    padding: 10px 10px 24px 10px;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0,0,0,0.03);
    transform: rotate(-3deg);
    transition: all 0.3s ease;
}
.polaroid-card:hover {
    transform: rotate(0deg) scale(1.02);
}
.polaroid-img-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 3px;
    overflow: hidden;
    background: #eee;
    position: relative;
}
body.dark-mode .polaroid-img-wrapper {
    background: #333;
}
.polaroid-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.polaroid-slide.active {
    opacity: 1;
    z-index: 2;
}
.polaroid-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
}
.polaroid-dots .dot {
    width: 10px;
    height: 2px;
    background: rgba(0,0,0,0.12);
    border-radius: 1px;
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
}
.polaroid-dots .dot.active {
    background: var(--color-point);
    width: 16px;
}

/* 홈 화면 중앙 전신 영역 */
.main-center-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 500px;
    padding-bottom: 70px;
    position: relative;
    margin: 0 auto;
}
.main-illustration-wrap {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.illustration-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.main-fullbody {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}
#main-fb-1 {
    max-width: var(--fullbody-max-width-1, 100%) !important;
}
#main-fb-2 {
    max-width: var(--fullbody-max-width-2, 100%) !important;
}
#main-fb-3 {
    max-width: var(--fullbody-max-width-3, 100%) !important;
}
.main-fullbody.active {
    opacity: 1;
    z-index: 1;
}
.bubble-speech-wrap {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 20;
    display: flex;
    justify-content: center;
}
.bubble-quote {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-dark);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: absolute;
    white-space: nowrap;
}
body.dark-mode .bubble-quote {
    background: rgba(30,30,30,0.85);
    border-color: rgba(255, 255, 255, 0.08);
    color: #eee;
}
.bubble-quote.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}
.main-logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.main-dday {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-point);
    margin-bottom: 6px;
    text-transform: uppercase;
}
.main-logo-title {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--color-text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.main-logo-image {
    max-width: var(--logo-max-width, 250px);
    object-fit: contain;
    margin-bottom: 10px;
}
.main-subtitle {
    font-size: 11px;
    max-width: 380px;
    line-height: 1.5;
    color: var(--color-text-light);
}

/* ==================== 프로필 슬라이드 ==================== */
.profile-slide-panel {
    padding: 0 10vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.keyword-sidebar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 30;
}
.left-sidebar { left: 4vw; }
.right-sidebar { right: 4vw; }
.kw-btn {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    border: 1px solid rgba(255, 255, 255, 0.4);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    cursor: default;
    transition: all 0.3s ease;
}
body.dark-mode .kw-btn {
    background: rgba(40, 40, 40, 0.65);
    border-color: rgba(255, 255, 255, 0.05);
    color: #ddd;
}
.char-block {
    position: fixed;
    top: 10%;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.5s ease;
    display: block;
}
.left-char {
    left: 0;
}
.right-char {
    right: 0;
}
.profile-quote-bubble {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #000;
    text-align: center;
    text-shadow: 0 0 44.8px #FFF, 0 0 27.7px #FFF;
    font-family: 'Paperozi', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    max-width: none;
    margin-bottom: 12px;
}
body.dark-mode .profile-quote-bubble {
    color: #FFF;
    text-shadow: 0 0 44.8px #000, 0 0 27.7px #000;
}
.char-info-wrap {
    position: fixed;
    top: 20%;
    z-index: 50;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: none;
}
.char-info-wrap * {
    pointer-events: auto;
}
.left-info-wrap {
    left: 5%;
}
.right-info-wrap {
    right: 5%;
}
.char-sprite-wrap {
    position: fixed;
    top: 10%;
    z-index: 2;
    pointer-events: none;
    display: block;
}
.sprite-wrap-l {
    left: 10%;
}
.sprite-wrap-r {
    right: 10%;
}
.char-sprite,
#prof-sprite-l,
#prof-sprite-r {
    display: block;
    width: auto;
    max-width: 100%;
    transition: opacity 0.5s ease;
    pointer-events: auto;
}

/* 전신 이미지 원본 모달 */
.fullbody-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 60px 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s ease, visibility 0.32s ease;
}
.fullbody-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.fullbody-modal-close {
    position: fixed;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    z-index: 100000;
    transition: transform 0.2s ease, color 0.2s ease;
    opacity: 0.85;
}
.fullbody-modal-close:hover {
    color: var(--color-point, #a896d8);
    opacity: 1;
    transform: scale(1.1);
}
.fullbody-modal-content {
    display: inline-block;
    max-width: 90vw;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    transition: opacity 0.32s ease, transform 0.32s ease;
}
.fullbody-modal-overlay.active .fullbody-modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.fullbody-modal-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 4px;
}
.char-name-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.char-eng-name {
    color: #000;
    text-align: center;
    text-shadow: 0 0 8px #FFF;
    font-family: 'Paperozi', sans-serif;
    font-size: 96px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -7.68px;
    margin-bottom: 8px;
}
body.dark-mode .char-eng-name {
    color: #FFF;
    text-shadow: 0 0 8px #000;
}
.char-badge-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.char-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    vertical-align: middle;
    padding: 6px 12px;
    border-radius: 5px;
    box-shadow: 0 0 8px 0 #FFF;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    border: none;
}
body.dark-mode .char-badge {
    box-shadow: 0 0 8px 0 #000;
}

.profile-center-area {
    width: 25%;
    height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 30px;
    z-index: 20;
}
.pair-name-display {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.growth-selector-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.brace-symbol {
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    color: var(--color-point);
    opacity: 1;
}
.growth-avatar-tabs {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
.growth-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.growth-label {
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -1.12px;
    color: var(--color-point);
    transition: color 0.3s;
    max-width: 50px;
    word-break: break-all;
}
.growth-tab-thumb-wrap {
    position: relative;
    width: 61px;
    height: 61px;
    border-radius: 50%;
    border: none;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.growth-tab-thumb-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.57);
    transition: background 0.3s;
    pointer-events: none;
}
body.dark-mode .growth-tab-thumb-wrap {
    background: #222;
}
body.dark-mode .growth-tab-thumb-wrap::after {
    background: rgba(0, 0, 0, 0.57);
}
.growth-tab-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.growth-tab-btn.active .growth-tab-thumb-wrap {
    box-shadow: 0 0 11.8px 0 rgba(0, 0, 0, 0.65);
    transform: none;
    border-color: transparent;
}
body.dark-mode .growth-tab-btn.active .growth-tab-thumb-wrap {
    box-shadow: 0 0 11.8px 0 rgba(255, 255, 255, 0.65);
}
.growth-tab-btn.active .growth-tab-thumb-wrap::after {
    background: transparent !important;
}
.growth-tab-btn.active .growth-label {
    color: var(--color-point);
}

.combined-illustration-wrap {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: opacity 0.5s ease;
    pointer-events: none;
    display: block;
}
.combined-sprite {
    display: block;
    width: auto;
    max-width: 100%;
    pointer-events: auto;
}


.fullbody-bottom-gradient {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50vh;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%);
    pointer-events: none;
    z-index: 10;
}
body.dark-mode .fullbody-bottom-gradient {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%);
}
/* ==================== 내비게이션과 메뉴 서랍 ==================== */

.drawer-category h3 {
    color: var(--color-point);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
}
.menu-drawer .drawer-menu-list,
.menu-drawer .drawer-menu-list h3,
.menu-drawer .drawer-menu-list a,
.menu-drawer .drawer-category,
.menu-drawer .drawer-category h3,
.menu-drawer .drawer-category a {
    font-family: 'Pretendard', 'Noto Sans KR', 'Noto Sans JP', sans-serif;
}
.drawer-category ul li a {
    display: block;
    padding: 13px 4px;
    background: transparent;
    color: var(--color-text-light);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}
.drawer-category ul li a:hover {
    background: var(--color-bg);
    color: var(--color-point);
}
.drawer-category li.has-sub > a,
.widget-category li.has-sub > a {
    position: relative;
    padding-right: 24px;
}
.drawer-category li.has-sub > a::after,
.widget-category li.has-sub > a::after {
    content: "\f107";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    opacity: 0.65;
    transition: transform 0.2s ease;
}
.drawer-category li.has-sub.is-open > a::after,
.widget-category li.has-sub.is-open > a::after {
    transform: translateY(-50%) rotate(180deg);
}
.drawer-category li.has-sub.is-folded:not(.is-open) > ul,
.drawer-category li.has-sub.is-folded:not(.is-open) > .sub_category_list,
.widget-category li.has-sub.is-folded:not(.is-open) > ul,
.widget-category li.has-sub.is-folded:not(.is-open) > .sub_category_list {
    display: none;
}
.drawer-category .sub_category_list,
.drawer-category li ul ul,
.widget-category .sub_category_list,
.widget-category li ul ul {
    margin: 3px 0 8px 10px;
}
.drawer-category .sub_category_list a,
.drawer-category li ul ul a,
.widget-category .sub_category_list a,
.widget-category li ul ul a {
    font-size: 12px;
    opacity: 0.82;
}
/* BGM 제목 흐름 애니메이션 */
@keyframes textScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 화면 높이에 따른 크기 조정 */
@media screen and (max-height: 700px) {
    .main-illustration-wrap { height: 45vh; }
}

@media screen and (max-width: 900px) {
    .profile-slide-panel {
        padding: 0 40px;
    }
    .left-sidebar { left: 15px; }
    .right-sidebar { right: 15px; }
}

/* 태그 프로필 화면일 때 전체화면 풀뷰포트 적용 */
.tag-profile-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 80 !important;
    background: var(--color-bg) !important;
}

body.has-pair-home .main-slide-panel {
    background-color: var(--color-bg);
    background-image:
        linear-gradient(180deg, color-mix(in srgb, var(--color-point) 32%, transparent) 0%, color-mix(in srgb, var(--color-point) 12%, transparent) 100%),
        var(--main-bg-image, none);
    background-size: cover;
    background-position: center top;
}

body.has-pair-home .main-slide-panel::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    z-index: 2;
    width: 100vw;
    height: 52vh;
    transform: translateX(-50%);
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
}

body.has-pair-home .main-slide-panel > * {
    z-index: 2;
}

body.has-pair-home .slide-nav-btn {
    width: 67px;
    height: 67px;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    color: rgba(61, 64, 72, 0.82);
    font-size: 44px;
    opacity: 1;
}

body.has-pair-home .slide-prev { left: 31px; }
body.has-pair-home .slide-next { right: 26px; }

body.has-pair-home .slide-nav-btn:hover {
    background: transparent;
    color: var(--pair-violet);
}

body.has-pair-home .main-left-frame {
    left: clamp(18px, 1.51vw, 29px);
    top: clamp(120px, 17.22vh, 186px);
    width: clamp(245px, 17.97vw, 345px);
}

body.has-pair-home .polaroid-card {
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    transform: none;
}

body.has-pair-home .polaroid-card:hover {
    transform: translateY(-2px);
}

body.has-pair-home .polaroid-img-wrapper {
    aspect-ratio: 345 / 141;
    border-radius: 15px;
}

body.has-pair-home .polaroid-dots {
    position: absolute;
    left: 13px;
    top: calc(100% + 13px);
    justify-content: flex-start;
    gap: 6px;
    margin: 0;
}

body.has-pair-home .polaroid-dots .dot {
    width: 41px;
    height: 5px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.48);
}

body.has-pair-home .polaroid-dots .dot.active {
    width: 41px;
    background: var(--pair-violet);
}

body.has-pair-home .main-center-showcase {
    position: relative;
    z-index: 10;
    width: min(720px, 72vw);
    padding-bottom: 128px;
    justify-content: flex-end;
}

body.has-pair-home .main-illustration-wrap {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 60vh;
    width: min(720px, 72vw);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 0;
    z-index: 1;
}

body.has-pair-home .main-fullbody {
    max-height: none !important;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
}

body.has-pair-home .bubble-speech-wrap {
    position: static;
}

body.has-pair-home .bubble-quote {
    position: fixed;
    top: 50%;
    left: 50%;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    color: #fff;
    font-family: 'Paperozi', 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 500;
    text-shadow: 0 0 27.7px #000, 0 0 44.8px #000;
    display: none;
    z-index: 20;
}

body.has-pair-home .bubble-quote.active {
    display: block;
}

#main-bubble-1, #main-bubble-2, #main-bubble-3 {
    left: calc(50% + var(--bubble-x, 32.3vw));
    top: calc(50% + var(--bubble-y, -51vh));
}



body.has-pair-home .main-logo-area {
    position: relative;
    z-index: 100 !important;
    margin-top: -4px;
    color: #000;
    text-shadow: 0 0 4px #fff;
}

body.has-pair-home .main-dday {
    margin-bottom: 8px;
    color: #000;
    font-family: var(--main-dday-font);
    font-size: 20px;
    font-weight: var(--main-dday-weight);
    letter-spacing: 0;
}

body.has-pair-home .main-logo-title {
    margin-bottom: 7px;
    color: #000;
    font-family: var(--main-logo-font);
    font-size: 36px;
    font-weight: var(--main-logo-weight);
    letter-spacing: 0;
}

body.has-pair-home .main-logo-image {
    margin-bottom: 7px;
}

body.has-pair-home .main-subtitle {
    width: 374px;
    max-width: min(374px, 82vw);
    color: #000;
    font-size: 12px;
    line-height: 1.05;
}

body.has-pair-home .navbar-inner a {
    gap: 25px;
}

.bottom-purple-navbar {
    left: 50%;
    bottom: 0;
    width: max-content;
    max-width: calc(100vw - 24px);
    height: auto;
    transform: translateX(-50%);
    padding: 11px 50px;
    align-items: flex-end;
    background: transparent;
    box-shadow: none;
    position: fixed;
    z-index: 1000 !important;
    display: flex;
    transition: transform 0.3s ease;
}

/* s_tag 페이지: 기본 25px 내려가고 마우스오버 시 다시 올라옴 */
body:has(.tag-profile-wrapper) .bottom-purple-navbar,
body#tt-body-tag .bottom-purple-navbar {
    transform: translate(-50%, 30px);
}

body:has(.tag-profile-wrapper) .bottom-purple-navbar:hover,
body#tt-body-tag .bottom-purple-navbar:hover {
    transform: translate(-50%, 0);
}

.bottom-purple-navbar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    border-radius: 20px 20px 0 0;
    background: var(--pair-violet);
    box-shadow: 0 -2px 8.6px rgba(0, 0, 0, 0.12);
}

.navbar-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    gap: 18px;
    align-items: flex-end;
    display: flex;
}

.navbar-inner a {
    width: auto;
    min-width: 51px;
    color: #fff;
    font-family: 'Paperozi', 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 500;
    gap: 25px;
    letter-spacing: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
}

.navbar-inner a i {
    width: auto;
    min-width: 51px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3d4048;
    font-size: 27px;
    text-shadow: 0 0 4px #fff;
}

.menu-drawer {
    position: fixed;
    top: 95px;
    right: -300px;
    width: 200px;
    height: auto;
    max-height: none;
    padding: 29px 18px;
    border-radius: 30px 0 0 30px;
    background: #fff;
    box-shadow: 0 0 10.7px rgba(0, 0, 0, 0.5);
    gap: 14px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-drawer.open {
    right: 0;
}

.drawer-close,
.drawer-menu-list {
    display: none !important;
}

.drawer-category ul {
    gap: 0;
}

.drawer-category li.has-sub > a {
    padding-right: 24px;
    padding-left: 24px;
}

.drawer-category .sub_category_list a,
.drawer-category li ul ul a {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 12px;
}

.drawer-overlay,
.drawer-overlay.open {
    display: none;
}

body.dark-mode .main-slide-panel::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%);
}

body.dark-mode .polaroid-card {
    background: #000;
    border-color: #333;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

body.dark-mode .polaroid-dots .dot {
    background: rgba(255, 255, 255, 0.48);
}

body.dark-mode .main-logo-area,
body.dark-mode .main-dday,
body.dark-mode .main-logo-title,
body.dark-mode .main-subtitle {
    color: #fff;
    text-shadow: 0 0 4px #000;
}

body.dark-mode .menu-drawer {
    background: #000;
    box-shadow: 0 0 10.7px rgba(255, 255, 255, 0.5);
}

body.dark-mode .navbar-inner a i {
    color: var(--color-point);
    text-shadow: 0 0 4px #000000;
}

@media screen and (max-width: 900px) {
    .bgm-player-fixed {
        transform: scale(0.62);
        transform-origin: left top;
    }

    .top-currency-container {
        top: 12px;
        right: 12px;
        gap: 6px;
    }

    .currency-item {
        width: auto;
        min-width: 68px;
        height: 28px;
        padding: 0 9px;
        font-size: 12px;
    }

    .currency-icon,
    .currency-item i {
        width: 18px;
        height: 18px;
        font-size: 14px;
        flex-basis: 18px;
    }

    body.has-pair-home .main-left-frame {
        top: 118px;
        width: 190px;
    }

    body.has-pair-home .main-center-showcase {
        width: 86vw;
        padding-bottom: 96px;
    }

    body.has-pair-home .main-illustration-wrap {
        position: fixed;
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
        width: 86vw;
        height: 52vh;
        margin: 0;
    }

    body.has-pair-home .bubble-speech-wrap {
        top: 42%;
        left: 68%;
    }

    body.has-pair-home .bubble-quote {
        font-size: 14px;
    }

    body.has-pair-home .main-logo-title {
        font-size: 28px;
    }

    body.has-pair-home .main-dday {
        font-size: 16px;
    }

    body.has-pair-home .slide-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 30px;
    }

    body.has-pair-home .slide-prev { left: 8px; }
    body.has-pair-home .slide-next { right: 8px; }

    .bottom-purple-navbar {
        width: max-content;
        max-width: calc(100vw - 24px);
        height: auto;
        padding: 8px 24px;
    }
    .bottom-purple-navbar::before {
        height: 42px;
    }

    .navbar-inner {
        gap: 8px;
        justify-content: space-around;
    }

    .navbar-inner a {
        width: auto;
        min-width: 42px;
        font-size: 10px;
    }

    .navbar-inner a i {
        width: auto;
        min-width: 42px;
        height: 34px;
        font-size: 22px;
    }

    .menu-drawer.open {
        right: 0;
    }
}

/* 태그 프로필 공통 스타일 */
/* 태그 프로필 레이아웃 */

.tag-profile-wrapper .profile-center-area {
    position: absolute;
    bottom: 121px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    height: auto;
    padding-bottom: 0;
    width: max-content;
    max-width: calc(100vw - 32px);
}
.tag-profile-wrapper .pair-name-display {
    margin-bottom: 16px;
    color: #000;
    font-family: var(--profile-pair-font);
    font-size: clamp(28px, 2.1vw, 40px);
    font-weight: var(--profile-pair-weight);
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: none;
    text-shadow: 0 0 8px #fff;
    text-align: center;
}
.tag-profile-wrapper .growth-selector-wrap {
    margin-bottom: 0;
    gap: 46px;
    align-items: flex-end;
    justify-content: center;
}
.tag-profile-wrapper .brace-symbol {
    width: auto;
    height: 61px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    color: var(--color-point);
    opacity: 1;
}

/* 성장 단계별 원본 해상도가 달라도 전신의 표시 크기를 일정하게 유지 */
.tag-profile-wrapper .char-sprite,
.tag-profile-wrapper .combined-sprite {
    object-fit: contain;
    flex-shrink: 0;
}

.has-tag-profile .profile-slide-panel {
    padding: 0;
    background-position: center;
    background-size: cover;
}
.dark-mode.has-tag-profile .profile-slide-panel {
}

/* 프로필에서는 BGM을 아바타 쪽으로 접어 두고 클릭 시 펼친다. */
.has-tag-profile .bgm-player-fixed,
.has-tag-profile .bgm-player-fixed::before,
.has-tag-profile .bgm-info-controls {
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.25s ease;
}
.has-tag-profile .bgm-avatar-container {
    cursor: pointer;
}
.has-tag-profile .bgm-player-fixed:not(.is-expanded) {
    left: -35px;
    width: 143px;
    padding-right: 0;
}
.has-tag-profile .bgm-player-fixed:not(.is-expanded)::before {
    transform: translateX(-307px);
}
.has-tag-profile .bgm-player-fixed:not(.is-expanded) .bgm-info-controls {
    opacity: 0;
    transform: translateX(-307px);
    pointer-events: none;
}
.has-tag-profile .bgm-player-fixed.is-expanded {
    left: -6px;
}
.has-tag-profile .bgm-player-fixed.is-expanded::before,
.has-tag-profile .bgm-player-fixed.is-expanded .bgm-info-controls {
    opacity: 1;
    transform: translateX(0);
}

.tag-profile-wrapper .char-info-wrap {
    top: 20%;
    width: 24.7vw;
    max-width: none;
}
.tag-profile-wrapper .left-info-wrap {
    left: 0;
}
.tag-profile-wrapper .right-info-wrap {
    right: 0;
}
.tag-profile-wrapper .profile-quote-bubble {
    width: 100%;
    margin-bottom: 12px;
    color: #000;
    font-family: var(--profile-message-font);
    font-size: clamp(16px, 1.25vw, 24px);
    text-shadow: 0 0 8px #fff;
}
.dark-mode .tag-profile-wrapper .profile-quote-bubble {
    color: #fff;
    text-shadow: 0 0 8px #000;
}
.tag-profile-wrapper .char-eng-name {
    width: 100%;
    margin: 0 0 8px;
    color: #000;
    font-family: var(--profile-display-font);
    font-size: clamp(56px, 5vw, 96px);
    font-weight: var(--profile-name-weight);
    line-height: 0.96;
    letter-spacing: -0.08em;
    text-shadow: 0 0 8px #fff;
}
.tag-profile-wrapper .char-kor-name {
    margin-bottom: 14px;
    color: #000;
    font-family: var(--profile-support-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: center;
    text-shadow: 0 0 8px #fff;
}
.dark-mode .tag-profile-wrapper .char-kor-name {
    color: #fff;
    text-shadow: 0 0 8px #000;
}
.dark-mode .tag-profile-wrapper .char-eng-name {
    color: #fff;
    text-shadow: 0 0 8px #000;
}
.tag-profile-wrapper .char-badge-list {
    gap: 11px;
    flex-wrap: nowrap;
}
.tag-profile-wrapper .char-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    vertical-align: middle;
    min-width: 0;
    width: auto;
    height: auto;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 0 8px #fff;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}
.dark-mode .tag-profile-wrapper .char-badge {
    box-shadow: 0 0 8px #000;
}

.tag-profile-wrapper .keyword-sidebar {
    position: fixed;
    left: auto;
    right: auto;
    top: auto;
    bottom: 9.25vh;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: none;
}
.tag-profile-wrapper .left-sidebar {
    left: 0;
    right: auto;
    align-items: flex-start;
}
.tag-profile-wrapper .right-sidebar {
    right: 0;
    left: auto;
    align-items: flex-end;
}
.tag-profile-wrapper .kw-btn {
    width: auto;
    height: auto;
    padding: 10px 25px;
    border: 0;
    border-radius: 0 50px 50px 0;
    box-shadow: 0 0 8px #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: horizontal-tb;
    text-align: center;
    font-family: 'Pretendard', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 4px;
    backdrop-filter: none;
}
.tag-profile-wrapper .right-sidebar .kw-btn {
    border-radius: 50px 0 0 50px;
}
.dark-mode .tag-profile-wrapper .kw-btn {
    box-shadow: 0 0 8px #000;
}
.tag-profile-wrapper .profile-catchphrase {
    position: fixed;
    bottom: 32px;
    z-index: 31;
    max-width: 36vw;
    color: #000;
    font-family: var(--profile-message-font);
    font-size: clamp(16px, 1.25vw, 24px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.57em;
    white-space: nowrap;
    text-shadow: 0 0 8px #fff;
}
.tag-profile-wrapper .catchphrase-l {
    left: 29px;
}
.tag-profile-wrapper .catchphrase-r {
    right: 15px;
    text-align: right;
}
.dark-mode .tag-profile-wrapper .profile-catchphrase {
    color: #fff;
    text-shadow: 0 0 8px #000;
}

.dark-mode .tag-profile-wrapper .pair-name-display {
    color: #fff;
    text-shadow: 0 0 8px #000;
}

/* 선택한 프로필 UI만 전체 모드와 반대 명암으로 표시한다. */
body.light-mode.inverse-profile-ui .tag-profile-wrapper .profile-quote-bubble {
    color: #fff;
    text-shadow: 0 0 8px #000;
}
body.dark-mode.inverse-profile-ui .tag-profile-wrapper .profile-quote-bubble {
    color: #000;
    text-shadow: 0 0 8px #fff;
}
body.light-mode.inverse-profile-ui .tag-profile-wrapper .char-eng-name,
body.light-mode.inverse-profile-ui .tag-profile-wrapper .char-kor-name {
    color: #fff;
    text-shadow: 0 0 8px #000;
}
body.dark-mode.inverse-profile-ui .tag-profile-wrapper .char-eng-name,
body.dark-mode.inverse-profile-ui .tag-profile-wrapper .char-kor-name {
    color: #000;
    text-shadow: 0 0 8px #fff;
}
body.light-mode.inverse-profile-ui .tag-profile-wrapper .char-badge,
body.light-mode.inverse-profile-ui .tag-profile-wrapper .kw-btn {
    box-shadow: 0 0 8px #000;
}
body.dark-mode.inverse-profile-ui .tag-profile-wrapper .char-badge,
body.dark-mode.inverse-profile-ui .tag-profile-wrapper .kw-btn {
    box-shadow: 0 0 8px #fff;
}
.tag-profile-wrapper .growth-avatar-tabs {
    gap: 11px;
}

/* 스킨 폰트 옵션별 프로필 타이포그래피 */
.tag-profile-wrapper .pair-name-display.is-hangul {
    font-family: var(--profile-pair-hangul-font);
}

body.font-cursive .tag-profile-wrapper .char-eng-name,
body.font-cursive .tag-profile-wrapper .pair-name-display,
body.font-cursive .tag-profile-wrapper .profile-quote-bubble,
body.font-cursive .tag-profile-wrapper .char-kor-name,
body.font-cursive .tag-profile-wrapper .profile-catchphrase {
    letter-spacing: 0;
}

body.font-gothic .tag-profile-wrapper .profile-quote-bubble,
body.font-gothic .tag-profile-wrapper .profile-catchphrase {
    font-weight: 500;
}

/* 가나가 포함된 문자열은 일본어 CJK 자형을 우선 사용 */
body.font-default .tag-profile-wrapper .is-japanese,
body.font-gothic .tag-profile-wrapper .is-japanese {
    font-family: 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans TC', 'Pretendard', sans-serif;
}
body.font-serif .tag-profile-wrapper .is-japanese {
    font-family: 'Noto Serif JP', 'Noto Serif KR', 'Noto Serif SC', 'Noto Serif TC', 'Noto Serif Display', serif;
}
body.font-cursive .tag-profile-wrapper .is-japanese {
    font-family: 'Pinyon Script', 'Noto Serif JP', 'Noto Serif KR', 'Noto Serif SC', 'Noto Serif TC', 'Noto Serif Display', serif;
}

/* KoPubWorld 바탕 우선 적용 영역 */
body.font-serif .tag-profile-wrapper .profile-quote-bubble,
body.font-serif .tag-profile-wrapper .char-kor-name,
body.font-serif .tag-profile-wrapper .profile-catchphrase,
body.font-serif .tag-profile-wrapper .pair-name-display.is-hangul,
body.font-cursive .tag-profile-wrapper .profile-quote-bubble,
body.font-cursive .tag-profile-wrapper .profile-catchphrase {
    font-family: 'KoPubWorld Batang', 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC', serif;
    font-weight: 400;
}

/* 태블릿 및 작은 노트북 화면 */
@media screen and (max-width: 900px) {
    .tag-profile-wrapper .char-info-wrap {
        top: 18%;
        width: 32vw;
    }
    .tag-profile-wrapper .char-eng-name {
        font-size: clamp(34px, 7vw, 64px);
    }
    .tag-profile-wrapper .char-badge-list {
        gap: 4px;
        flex-wrap: wrap;
        padding: 0 8px;
    }
    .tag-profile-wrapper .char-badge {
        min-width: 0;
        font-size: 12px;
    }
    .tag-profile-wrapper .kw-btn {
        font-size: 13px;
    }
    .tag-profile-wrapper .profile-catchphrase {
        display: none;
    }
    .tag-profile-wrapper .profile-center-area {
        bottom: 9vh;
    }
    .tag-profile-wrapper .growth-tab-thumb-wrap {
        width: 50px;
        height: 50px;
    }
    .tag-profile-wrapper .brace-symbol {
        height: 50px;
    }
    .tag-profile-wrapper .growth-selector-wrap {
        gap: clamp(18px, 5vw, 46px);
    }
}

/* 작은 화면에서 조작 요소와 프로필 정보가 가로로 넘치지 않도록 조정 */
@media screen and (max-width: 600px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .top-currency-container {
        top: max(6px, env(safe-area-inset-top));
        right: max(6px, env(safe-area-inset-right));
        gap: 4px;
        max-width: calc(100vw - 12px);
    }
    .currency-item {
        min-width: 54px;
        height: 27px;
        padding: 0 6px;
        font-size: 10px;
    }
    .currency-icon,
    .currency-item i {
        width: 16px;
        min-width: 16px;
        height: 16px;
        font-size: 12px;
    }
    .cog-menu-btn,
    .hamburger-menu-btn {
        width: 28px;
        min-width: 28px;
        height: 28px;
    }
    .cog-menu-btn i,
    .hamburger-menu-btn i {
        font-size: 22px;
    }
    .has-tag-profile .menu-drawer {
        width: min(220px, calc(100vw - 24px));
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
    }

    .tag-profile-wrapper .char-info-wrap {
        top: 17%;
        width: 42vw;
    }
    .tag-profile-wrapper .profile-quote-bubble {
        margin-bottom: 7px;
        padding: 0 4px;
        font-size: 12px;
    }
    .tag-profile-wrapper .char-eng-name {
        font-size: clamp(28px, 10vw, 44px);
    }
    .tag-profile-wrapper .char-kor-name {
        font-size: 13px;
    }
    .tag-profile-wrapper .char-badge-list {
        padding: 0 4px;
    }
    .tag-profile-wrapper .char-badge {
        font-size: 11px;
    }
    .tag-profile-wrapper .keyword-sidebar {
        bottom: max(70px, 9vh);
        gap: 8px;
    }
    .tag-profile-wrapper .kw-btn {
        font-size: 11px;
        letter-spacing: 2px;
    }
    .tag-profile-wrapper .profile-center-area {
        bottom: max(74px, 10vh);
        max-width: calc(100vw - 16px);
    }
    .tag-profile-wrapper .pair-name-display {
        margin-bottom: 10px;
        font-size: clamp(24px, 8vw, 34px);
    }
    .tag-profile-wrapper .growth-selector-wrap {
        gap: clamp(8px, 3vw, 18px);
    }
    .tag-profile-wrapper .growth-avatar-tabs {
        gap: 6px;
    }
    .tag-profile-wrapper .growth-tab-thumb-wrap,
    .tag-profile-wrapper .brace-symbol {
        width: 42px;
        height: 42px;
    }
    .tag-profile-wrapper .growth-tab-label {
        font-size: 11px;
    }
    .fullbody-modal-overlay {
        padding: 48px 10px 16px;
    }
    .fullbody-modal-close {
        top: max(12px, env(safe-area-inset-top));
        right: max(14px, env(safe-area-inset-right));
    }
}

/* 모바일 전용 내비게이션과 프로필 최적화 */
@media screen and (max-width: 768px) {
    body.mobile-menu-open {
        overflow: hidden !important;
        touch-action: none;
    }

    /* 모바일 메인 전신은 화면 너비 안에서 잘리지 않도록 고정한다. */
    body.has-pair-home .main-fullbody,
    body.has-pair-home #main-fb-1,
    body.has-pair-home #main-fb-2,
    body.has-pair-home #main-fb-3 {
        left: 50% !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-top: 0 !important;
        object-fit: contain;
    }

    /* 모바일 커버 배너는 화면 최상단 중앙에서 전체 너비로 표시한다. */
    body.has-pair-home .main-left-frame {
        position: fixed !important;
        top: env(safe-area-inset-top) !important;
        left: 50% !important;
        width: 100% !important;
        max-width: none !important;
        margin: 50px 0 0 !important;
        padding: 0 !important;
        transform: translateX(-50%) !important;
        z-index: 60;
    }
    body.has-pair-home .polaroid-card,
    body.has-pair-home .polaroid-img-wrapper {
        width: 100% !important;
        border-radius: 0;
    }
    body.has-pair-home .polaroid-card {
        transform: none !important;
    }
    body.has-pair-home .polaroid-dots {
        top: auto;
        bottom: 10px;
        left: 50%;
        justify-content: center;
        transform: translateX(-50%);
    }
    body.has-pair-home .main-slide-panel.has-cover-banner .main-fullbody {
        top: calc(env(safe-area-inset-top) + 40.87vw + 62px) !important;
    }

    /* 모바일 한마디는 개별 좌표를 무시하고 디데이 바로 위에 배치한다. */
    body.has-pair-home .bubble-speech-wrap {
        position: static !important;
        top: auto !important;
        left: auto !important;
        order: 0;
        width: 100%;
        margin: 0 0 10px;
        transform: none !important;
    }
    body.has-pair-home .bubble-quote,
    body.has-pair-home #main-bubble-1,
    body.has-pair-home #main-bubble-2,
    body.has-pair-home #main-bubble-3 {
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: min(100%, 320px);
        margin: 0 auto;
        transform: none !important;
        white-space: normal;
        text-align: center;
    }
    body.has-pair-home .main-logo-area {
        order: 1;
    }

    /* 모바일에서는 BGM 플레이어와 숨겨진 재생 영역을 사용하지 않는다. */
    .bgm-player-fixed,
    #yt-bgm-player-hidden,
    #Youtube_Music_Iframe,
    #BGM_DOC_IFRAME {
        display: none !important;
    }

    /* 고정 애셋과 일반 게시글 상자가 겹치지 않도록 상단 여백을 확보한다. */
    body:not(.has-pair-home):not(.has-tag-profile) #content {
        margin-top: calc(64px + env(safe-area-inset-top)) !important;
        margin-bottom: 24px !important;
    }
    body:not(.has-pair-home):not(.has-tag-profile) .content-main {
        margin-top: 0 !important;
        padding: 24px 18px;
    }
    body:not(.has-pair-home):not(.has-tag-profile) .article-view {
        scroll-margin-top: calc(72px + env(safe-area-inset-top));
    }

    /* 하단 메뉴는 전체 화면 메뉴 안에서 제공한다. */
    .bottom-purple-navbar {
        display: none !important;
    }
    .menu-drawer,
    body.has-pair-home .menu-drawer,
    body.has-tag-profile .menu-drawer {
        top: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-height: none !important;
        padding: calc(18px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
        border-radius: 0 !important;
        gap: 22px;
        z-index: 2000;
        overflow-y: auto;
        overscroll-behavior: contain;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateX(100%);
        transition: transform 0.32s ease, opacity 0.2s ease, visibility 0.32s;
    }
    .menu-drawer.open,
    body.has-pair-home .menu-drawer.open,
    body.has-tag-profile .menu-drawer.open {
        right: auto !important;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }
    .drawer-close {
        position: sticky;
        top: 0;
        z-index: 2;
        width: 44px;
        height: 44px;
        margin-left: auto;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--color-bg);
        color: var(--color-text-dark);
        font-size: 24px;
        cursor: pointer;
    }
    .drawer-menu-list {
        display: block !important;
        flex: 0 0 auto;
    }
    .drawer-menu-list ul {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .drawer-category {
        flex: 1 1 auto;
        min-height: 0;
        padding-bottom: 20px;
    }
    .drawer-menu-list h3,
    .drawer-category h3 {
        margin: 4px 0 12px;
        color: var(--color-point);
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-align: center;
    }
    .drawer-category > ul {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .drawer-menu-list ul li a,
    .drawer-category ul li a {
        min-height: 48px;
        padding: 13px 16px;
        border-radius: 12px;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        font-size: 15px;
        font-weight: 400;
    }
    .drawer-menu-list ul li a {
        color: #3d4048;
    }
    .drawer-category ul li a {
        color: var(--color-text-light);
    }
    .drawer-category ul li a:hover {
        color: var(--color-point);
    }
    body.dark-mode .drawer-menu-list ul li a {
        color: var(--pair-muted-dark);
    }
    .drawer-category .sub_category_list,
    .drawer-category li ul ul {
        margin: 4px 0 8px 14px;
        padding-left: 10px;
        border-left: 2px solid color-mix(in srgb, var(--color-point) 45%, transparent);
    }

    /* 모바일 프로필은 정보와 전신을 순서대로 배치하고 화면 자체를 스크롤한다. */
    .tag-profile-wrapper {
        height: 100dvh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }
    .tag-profile-wrapper .profile-slide-panel {
        width: 100%;
        height: auto !important;
        min-height: 100dvh;
        padding: calc(76px + env(safe-area-inset-top)) 0 calc(32px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "info-left info-right"
            "fullbody fullbody"
            "keyword-left keyword-right"
            "profile-center profile-center";
        grid-template-rows: auto auto auto auto;
        row-gap: 24px;
        align-items: start;
        overflow: visible;
    }

    /* 성장 탭의 장식은 줄이고 선택 상태와 글자 가독성에 집중한다. */
    .tag-profile-wrapper .profile-center-area {
        position: relative;
        grid-area: profile-center;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: calc(100vw - 24px);
        max-width: 360px;
        margin: 0 auto;
        transform: none;
    }
    .tag-profile-wrapper .pair-name-display {
        margin-bottom: 12px;
        font-size: clamp(22px, 7vw, 30px);
        letter-spacing: -0.02em;
    }
    .tag-profile-wrapper .growth-selector-wrap {
        width: 100%;
        gap: 0;
    }
    .tag-profile-wrapper .brace-symbol {
        display: none !important;
    }
    .tag-profile-wrapper .growth-avatar-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(var(--growth-tab-count, 4), minmax(0, 1fr));
        gap: 8px;
        align-items: end;
    }
    .tag-profile-wrapper .growth-tab-btn {
        min-width: 0;
        gap: 6px;
        opacity: 0.62;
        transition: opacity 0.2s ease;
    }
    .tag-profile-wrapper .growth-tab-btn.active {
        opacity: 1;
    }
    .tag-profile-wrapper .growth-tab-thumb-wrap {
        width: 46px;
        height: 46px;
        border: 0;
        background: transparent;
        box-shadow: none !important;
    }
    .tag-profile-wrapper .growth-tab-thumb-wrap::after {
        display: none;
    }
    .tag-profile-wrapper .growth-label {
        max-width: 100%;
        overflow: hidden;
        color: var(--color-text-dark);
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .dark-mode .tag-profile-wrapper .growth-label {
        color: #fff;
    }
    .tag-profile-wrapper .growth-tab-btn.active .growth-label {
        color: var(--color-point);
        font-weight: 700;
    }

    .tag-profile-wrapper .char-info-wrap {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        min-width: 0;
        padding: 0 8px;
        align-self: start;
    }
    .tag-profile-wrapper .left-info-wrap {
        grid-area: info-left;
    }
    .tag-profile-wrapper .right-info-wrap {
        grid-area: info-right;
    }
    .tag-profile-wrapper .profile-quote-bubble {
        margin-bottom: 8px;
        padding: 0 6px;
        font-size: 12px;
        line-height: 1.35;
    }
    .tag-profile-wrapper .char-eng-name {
        margin-bottom: 5px;
        font-size: clamp(25px, 9vw, 38px);
        line-height: 0.98;
        letter-spacing: -0.05em;
    }
    .tag-profile-wrapper .char-kor-name {
        margin-bottom: 8px;
        font-size: 12px;
    }
    .tag-profile-wrapper .char-badge-list {
        gap: 4px;
        padding: 0 3px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .tag-profile-wrapper .char-badge {
        min-width: 0;
        font-size: 10px;
        box-shadow: none;
    }
    .tag-profile-wrapper .keyword-sidebar {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        gap: 6px;
        transform: none;
    }
    .tag-profile-wrapper .left-sidebar {
        grid-area: keyword-left;
        align-items: flex-start;
    }
    .tag-profile-wrapper .right-sidebar {
        grid-area: keyword-right;
        align-items: flex-end;
    }
    .tag-profile-wrapper .kw-btn {
        box-shadow: none;
        font-size: 10px;
        letter-spacing: 1px;
    }

    /* 전신은 정보 영역 다음 행에 배치해 텍스트와 겹치지 않게 한다. */
    .tag-profile-wrapper .char-block {
        position: relative;
        grid-area: fullbody;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 50%;
        max-width: 50% !important;
        height: auto;
    }
    .tag-profile-wrapper .left-char {
        justify-self: start;
    }
    .tag-profile-wrapper .right-char {
        justify-self: end;
    }
    .tag-profile-wrapper .char-sprite-wrap {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100%;
        max-width: 100% !important;
    }
    .tag-profile-wrapper .char-sprite,
    .tag-profile-wrapper #prof-sprite-l,
    .tag-profile-wrapper #prof-sprite-r {
        width: 100%;
        max-width: 100% !important;
        max-height: 70vh !important;
        object-fit: contain;
    }
    .sprite-wrap-l .char-sprite,
    #prof-sprite-l {
        object-position: left center;
    }
    .sprite-wrap-r .char-sprite,
    #prof-sprite-r {
        object-position: right center;
    }
    .tag-profile-wrapper .combined-illustration-wrap {
        position: relative !important;
        grid-area: fullbody;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100%;
        max-width: 100%;
        justify-self: center;
        transform: none !important;
    }
    .tag-profile-wrapper .combined-sprite {
        width: 100%;
        max-width: 100%;
        max-height: 70vh;
        object-fit: contain;
    }
}

/* 높이가 낮은 모바일 가로 화면 */
@media screen and (max-width: 768px) and (max-height: 540px) and (orientation: landscape) {
    .tag-profile-wrapper .char-info-wrap {
        top: auto;
    }
    .tag-profile-wrapper .keyword-sidebar {
        display: none;
    }
    .tag-profile-wrapper .profile-center-area {
        bottom: auto;
        transform: none;
    }
    .tag-profile-wrapper .pair-name-display {
        margin-bottom: 6px;
    }
}

/* 사용자가 애니메이션 최소화를 선택한 경우 */
@media (prefers-reduced-motion: reduce) {
    .animated.fadedown,
    .animated.fadeup,
    .animated.fadein,
    .profile-stage-fade {
        animation: none;
    }
    .fullbody-modal-overlay,
    .fullbody-modal-content,
    .has-tag-profile .bgm-player-fixed,
    .has-tag-profile .bgm-player-fixed::before,
    .has-tag-profile .bgm-info-controls {
        transition: none;
    }
}
