/* About 페이지 스타일 */
.about-content {
    display: grid;
    gap: clamp(14px, 2.5vw, 24px);
    max-width: 960px;
    box-sizing: border-box;
    margin-inline: auto;
    padding: clamp(18px, 4vw, 48px);
    color: #fff;
}

.about-content > .section-card-cut {
    min-width: 0;
    padding: clamp(18px, 3vw, 32px);
}

.about-section { min-width: 0; }
.about-section h2 { margin: 0 0 12px; font-size: 20px; }
.about-section p { margin: 0; line-height: 1.7; color: #dedede; overflow-wrap: anywhere; }
.about-intro h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.025em; }
.about-intro p { max-width: 62ch; word-break: keep-all; }
.about-intro .about-intro-note { margin-top: 8px; color: #bdbdbd; font-size: 14px; }

.about-community {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--section-divider-color);
}

.about-support {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 18px 32px;
    align-items: start;
    margin-top: 18px;
    padding-top: 20px;
    border-top: 1px solid var(--section-divider-color);
}
.about-support-actions .donate-button {
    margin-top: 10px;
    min-height: 44px;
    padding-inline: 12px;
    background: #771d23;
    color: #fff;
    font-size: 14px;
}

.about-support-actions .donate-button:hover { background: #8d2530; transform: none; }
.support-inline-methods:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.support-inline-methods [hidden] { display: none; }
.about-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
    margin-top: 8px;
}

.about-contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    max-width: 100%;
    color: #eee;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.about-contact-links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-contact-links .discord-icon { color: #969fff; }
.about-contact-links .twitter-icon { color: #fff; }

.about-disclosure summary,
#about-supporters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid #555;
    color: #f4f4f4;
    background: #202020;
    text-decoration: none;
}

.about-disclosure summary:hover,
#about-supporters-toggle:hover { background: #302426; text-decoration: none; }

.about-contact :is(.discord-icon, .twitter-icon) {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: var(--about-social-icon) center / contain no-repeat;
}

.about-contact .discord-icon { --about-social-icon: url("../img/logo/discord.svg"); }
.about-contact .twitter-icon { --about-social-icon: url("../img/logo/x.svg"); }
.about-content :is(a, summary, button):focus-visible { outline: 2px solid var(--label-red); outline-offset: 3px; }
.about-disclosure summary,
#about-supporters-toggle { cursor: pointer; list-style: none; font: inherit; }
.about-disclosure summary::-webkit-details-marker { display: none; }
.about-disclosure[open] summary svg,
#about-supporters-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.about-disclosure-content { padding-top: 16px; }
.about-disclosure-content h3 { margin: 0 0 12px; font-size: 16px; }
.supporters-list {
    grid-column: 1 / -1;
    min-width: 0;
    padding-top: 16px;
    border-top: 1px solid var(--section-divider-color);
}

.supporter-tier + .supporter-tier { margin-top: 16px; }
.supporter-tier h4 { margin: 0 0 8px; color: #ddd; }
.supporter-tier ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.supporter-tier li {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgb(255 255 255 / 10%);
    color: #eee;
    font-size: 14px;
    overflow-wrap: anywhere;
}
#about-update-history { margin-top: 16px; }

.donate-button { background-color: var(--label-red); color: var(--card-background); border: none; padding: 10px 20px; font-size: 16px; border-radius: 0; cursor: pointer; font-weight: bold; transition: all 0.3s ease; margin-top: 0px; }
.donate-button:hover { background-color: #ffdcdc; transform: translateY(-2px); }

/* 모달 스타일 */
.modal { display: none; position: fixed; z-index: 1000; inset: 0; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(3px); box-sizing: border-box; }
.modal-content { background-color: var(--card-background); margin: 0; padding: 30px; border: 1px solid var(--label-red); width: min(80%, 600px); max-height: calc(100vh - 48px); overflow-y: auto; border-radius: 0; color: #fff; position: relative; box-sizing: border-box; }
.close-button { color: var(--label-red); position: absolute; right: 20px; top: 15px; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-button:hover { color: #fff; }
.modal-content h2 { color: var(--label-red); margin-bottom: 20px; text-align: center; font-size: 24px; background: var(--section-divider-paint); background-position-y: bottom, bottom, bottom 1px; padding-bottom: 10px; }
.donation-message { margin-bottom: 20px; line-height: 1.6; text-align: center; }
#donation-message-en, #donation-message-jp { margin-bottom: 20px; line-height: 1.6; font-style: italic; color: #bbb; font-size: 14px; text-align: left; margin-top:0}

/* about-section 내 영어 번역용 스타일 */
.about-section .donation-message-en { text-align: left; font-size: 12px; color: rgba(255, 255, 255, 0.5); margin-top: 5px; font-style: italic; }
.donation-methods { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 30px; }
.bmc-container { margin-bottom: 0px; }

/* 카카오페이 QR 모달 */

/* 교환코드 모달 */
.modal-content h3 { color: var(--label-red); margin-bottom: 15px; text-align: center; font-size: 20px; background: var(--section-divider-paint); background-position-y: bottom, bottom, bottom 1px; padding-bottom: 10px; }
.exchange-notice { text-align: center; color: #bbb; font-size: 14px; margin-bottom: 20px; line-height: 1.6; background-color: rgba(211, 142, 142, 0.1); padding: 10px; border-radius: 0; border-left: 3px solid var(--label-red); }
.exchange-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; max-height: 400px; overflow-y: auto; padding: 10px; background-color: rgba(255, 255, 255, 0.05); border-radius: 0;
    /* 스크롤 성능 개선 */scroll-behavior: smooth; -webkit-overflow-scrolling: touch; 
    /* GPU 가속 및 성능 최적화 */transform: translateZ(0); will-change: scroll-position; contain: layout style paint; 
    /* 커스텀 스크롤바 */scrollbar-width: thin; scrollbar-color: var(--label-red) rgba(255, 255, 255, 0.05); }

/* 웹킷 브라우저용 스크롤바 스타일 */
.exchange-codes::-webkit-scrollbar { width: 8px; }
.exchange-codes::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 4px; }
.exchange-codes::-webkit-scrollbar-thumb { background: var(--label-red); border-radius: 4px; transition: background 0.2s ease; }
.exchange-codes::-webkit-scrollbar-thumb:hover { background: #b39c70; }
.code-item { background-color: rgba(211, 142, 142, 0.1); padding: 8px 12px; border-radius: 0; font-size: 12px; color: #fff; border: 1px solid rgba(211, 142, 142, 0.3); cursor: pointer; transition: all 0.1s ease; text-align: center;
    /* GPU 가속 활성화 */will-change: background-color, border-color; transform: translateZ(0); }
.code-item:hover { background-color: rgba(211, 142, 142, 0.2); border-color: var(--label-red); }
.code-item:active { transform: translateZ(0) scale(0.98); }

/* 복사 완료 상태 */
.code-item.copied { background-color: rgba(211, 142, 142, 0.5); border-color: var(--label-red); color: var(--card-background); font-weight: bold; }

/* 복사 실패 상태 */
.code-item.copy-failed { background-color: rgba(255, 100, 100, 0.3); border-color: #ff6464; color: #ffcccc; }

.recent-update-content-text { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: baseline; padding-block: 13px; border-top: 1px solid rgb(255 255 255 / 13%); }
.about-update-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #bfbfbf; font-variant-numeric: tabular-nums; }
.about-update-meta .version { color: var(--label-red); }
.recent-update-content-text .content { font-size: 14px; white-space: pre-line; }

@media (max-width: 640px) {
    .about-community { margin-top: 18px; padding-top: 18px; }
    .about-support { grid-template-columns: minmax(0, 1fr); }
    .recent-update-content-text { grid-template-columns: minmax(0, 1fr); gap: 5px; }
}

/* 반응형 스타일 */
@media screen and (max-width: 1200px) { 
    .modal { padding: 16px; }
    .modal-content { width: 90%; max-height: calc(100vh - 32px); padding: 20px; }
    .donation-methods { flex-direction: column; }
    .exchange-codes { grid-template-columns: 1fr; max-height: 300px; }
    .code-item { font-size: 12px; }
}
