html:not(.theme-ready) *, html:not(.theme-ready) *::before, html:not(.theme-ready) *::after {
    transition: none !important;
}
/* hidden 은 브라우저 기본값이 display:none 이라 .d-flex 같은 유틸에 밀린다.
   JS 로 감추는 자리마다 클래스를 따로 두지 않도록 여기서 못을 박는다. */
[hidden] { display: none !important; }
/* ── 테마 변수 ─────────────────────────────── */
:root {
    --clr-bg:         #0e0e14;
    --clr-surface:    #161621;
    --clr-surface2:   #1e1e2e;
    --clr-border:     rgba(255,255,255,.09);
    --clr-text:       #e2e2ef;
    --clr-muted:      #8888aa;
    --clr-accent:     #7c6ff7;
    --clr-accent-hover: #9b95fa;
    --nav-w:          240px;
    --header-h:       52px;
    --top-offset:     var(--header-h);
}
[data-theme="light"] {
    --clr-bg:         #f4f4f8;
    --clr-surface:    #ffffff;
    --clr-surface2:   #ededf5;
    --clr-border:     rgba(0,0,0,.1);
    --clr-text:       #1a1a2e;
    --clr-muted:      #666688;
    --clr-accent:     #5a4fd8;
    --clr-accent-hover: #4038b8;
}

/* ── 팀 컬러 ───────────────────────────────── */
:root {
    --clr-townsfolk: #4a9eff;
    --clr-outsider:  #34d4c8;
    --clr-minion:    #f5a623;
    --clr-demon:     #e85c5c;
    --clr-traveller: #b06ee8;
    --clr-fabled:    #e8c84a;
    --clr-loric:     #62c97c;
}

/* ── 기본 ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    /* 모든 크기가 rem 이라 이 한 줄이 글자 크기 전체를 정한다.
       15px 이던 시절엔 .68rem 짜리 보조 문구가 10px 로 떨어져서
       iOS 앱 심사에서 "hard to read type" 으로 리젝됐다 (2026-08-26, Guideline 4).
       내리려면 가장 작은 rem 값(.68rem)이 12px 밑으로 가지 않는지 먼저 보라. */
    font-size: 17px;
    background: var(--clr-bg);
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

a { color: var(--clr-accent); text-decoration: none; }
a:hover { color: var(--clr-accent-hover); }

/* ── 헤더 ──────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    z-index: 1000;
    gap: .75rem;
}

.site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--clr-text);
    letter-spacing: -.02em;
    white-space: nowrap;
    /* 헤더에서 가장 먼저 양보하는 자리. 이게 안 줄면 영어 브랜드명("Custom Clocktower")이
       좁은 화면에서 로그인·설정 버튼을 화면 밖으로 밀어낸다. */
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
}
.site-header .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.site-header .brand img {
    width: 1.6rem;
    height: 1.6rem;
    display: block;
    border-radius: 4px;
    flex-shrink: 0;
}

.header-spacer { flex: 1; }

.header-btn {
    background: none;
    border: 1px solid var(--clr-border);
    color: var(--clr-muted);
    border-radius: 8px;
    padding: .3rem .6rem;
    font-size: .85rem;
    cursor: pointer;
    transition: border-color .15s, color .15s;
    white-space: nowrap;
}
.header-btn:hover { color: var(--clr-text); border-color: var(--clr-accent); }

/* ── 헤더 우측 버튼 ── */
.header-account {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    max-width: 10rem;
    /* 닉네임이 길어도 설정 버튼을 밀어내지 않도록 줄어들 수 있어야 한다.
       flex 아이템은 min-width:auto 라 내용보다 작아지지 않는다.
       다만 0 까지 내려가면 아바타까지 사라지므로 아바타 한 칸은 남긴다. */
    min-width: 2.3rem;
    flex-shrink: 1;
    overflow: hidden;
}
.header-account .ha-avatar {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--clr-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 800;
    flex-shrink: 0;
}
.header-account .ha-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 설정 버튼은 어떤 경우에도 줄어들거나 밀려나지 않는다. */
#btnSettings { flex-shrink: 0; }
.header-login { flex-shrink: 0; }
/* 좁은 화면에서는 글자를 접고 아이콘만 남긴다. */
@media (max-width: 480px) {
    .header-account .ha-name,
    .header-login .btn-label { display: none; }
}

/* ── 설정 패널 (우측 서랍) ── */
.settings-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1090;
}
.settings-backdrop.open { display: block; }
.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(330px, 88vw);
    background: var(--clr-surface);
    border-left: 1px solid var(--clr-border);
    z-index: 1100;
    transform: translateX(100%);
    /* 닫혀 있을 때 화면 밖에 그대로 있으면 Tab 으로 포커스가 들어간다.
       visibility 로 빼서 접근성 트리와 탭 순서에서 함께 제외한다.
       숨길 때는 미끄러져 나간 뒤(0.2s 지연), 보일 때는 곧바로 바꾼다 —
       열자마자 포커스를 옮겨야 하는데 지연이 걸리면 focus() 가 먹지 않는다. */
    visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.settings-panel.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .2s ease, visibility 0s linear 0s;
}
.settings-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--clr-border);
    background: var(--clr-surface);
}
.settings-head h2 {
    margin: 0;
    font-size: .95rem;
    font-weight: 800;
    color: var(--clr-text);
    display: flex;
    align-items: center;
    gap: .45rem;
}
.settings-head h2 i { color: var(--clr-accent); font-size: .85rem; }
.settings-close {
    background: none;
    border: none;
    color: var(--clr-muted);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    padding: .25rem .4rem;
    border-radius: 6px;
}
.settings-close:hover { color: var(--clr-text); background: var(--clr-surface2); }
.settings-body {
    padding: .95rem 1rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}
.settings-group > h3 {
    margin: 0 0 .5rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    color: var(--clr-muted);
}
.settings-seg { display: flex; gap: .35rem; }
.settings-seg .seg-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    color: var(--clr-muted);
    border-radius: 8px;
    padding: .45rem .35rem;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.settings-seg .seg-btn:hover { color: var(--clr-text); border-color: var(--clr-accent); }
.settings-seg .seg-btn.active {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
}
.settings-hint {
    margin: .45rem 0 0;
    font-size: .74rem;
    line-height: 1.6;
    color: var(--clr-muted);
}
.settings-link {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .6rem;
    border-radius: 8px;
    color: var(--clr-text);
    text-decoration: none;
    font-size: .85rem;
}
.settings-link:hover { background: var(--clr-surface2); color: var(--clr-text); }
.settings-link i { width: 1rem; text-align: center; color: var(--clr-muted); font-size: .82rem; }
.settings-link.is-danger { color: var(--clr-danger); }
.settings-link.is-danger i { color: var(--clr-danger); }

/* ── 사이드바 ──────────────────────────────── */
.sidebar {
    position: fixed;
    top: var(--top-offset);
    left: 0;
    bottom: 0;
    width: var(--nav-w);
    background: var(--clr-surface);
    border-right: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 900;
    transition: transform .2s ease;
}

@media (max-width: 767px) {
    .sidebar {
        transform: translateX(-100%);
        width: min(var(--nav-w), 85vw);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-backdrop {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 899;
    }
    .sidebar-backdrop.open { display: block; }
}

.nav-section { padding: .75rem .5rem .25rem; }
.nav-section-label {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--clr-muted);
    padding: 0 .5rem;
    margin-bottom: .25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .5rem .75rem;
    border-radius: 8px;
    color: var(--clr-muted);
    font-size: .88rem;
    font-weight: 500;
    transition: background .15s, color .15s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.nav-item:hover, .nav-item.active {
    background: var(--clr-surface2);
    color: var(--clr-text);
}
.nav-item.active { color: var(--clr-accent); }
.nav-item i { width: 1.1rem; text-align: center; font-size: .9rem; }
.app-nav-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    font-size: .78rem;
    text-align: center;
    flex: 1;
}
.app-nav-label span {
    display: block;
    white-space: nowrap;
}
.nav-item.app-nav-highlight {
    background: linear-gradient(135deg, #dff7ec, #e8f1ff);
    color: #154a37;
    border: 1px solid rgba(21,74,55,.12);
    justify-content: center;
    text-align: center;
}
.nav-item.app-nav-highlight:hover,
.nav-item.app-nav-highlight.active {
    background: linear-gradient(135deg, #d3f1e4, #ddeaff);
    color: #154a37;
}
.nav-item.app-nav-highlight i {
    color: #154a37;
}
.nav-item.app-nav-highlight > i {
    width: auto;
    flex: 0 0 auto;
}

.sidebar-bottom {
    margin-top: auto;
}
/* 계정·테마가 설정 패널로 옮겨가 평소에는 내용이 없다.
   앱 WebView 에서 구독 블록이 열릴 때만 구분선과 여백을 준다. */
.sidebar-bottom.has-content {
    padding: .75rem;
    border-top: 1px solid var(--clr-border);
}

/* ── 사용자 정보 ─────────────────────────────── */
.user-block {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .6rem;
    border-radius: 8px;
    background: var(--clr-surface2);
    margin-bottom: .75rem;
}
.user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--clr-accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700;
    flex-shrink: 0;
}
.user-name { font-size: .85rem; font-weight: 600; color: var(--clr-text); }
.user-id { font-size: .72rem; color: var(--clr-muted); }

.side-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    border-radius: 8px;
    padding: .55rem .75rem;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s, transform .1s;
    margin-bottom: .45rem;
}
.side-link-btn:hover { opacity: .92; color: inherit; }
.side-link-btn:active { transform: scale(.98); }
.side-link-btn.coffee {
    background: #fff4de;
    color: #7b4b13;
    border: 1px solid rgba(123,75,19,.12);
}
@keyframes coffee-steam-rise {
    0%   { transform: translateY(0)     scaleX(1);   opacity: .65; }
    60%  { transform: translateY(-6px)  scaleX(1.4); opacity: .3;  }
    100% { transform: translateY(-11px) scaleX(.7);  opacity: 0;   }
}
.coffee-steam-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.coffee-steam-wrap::before,
.coffee-steam-wrap::after {
    content: '';
    position: absolute;
    bottom: 64%;
    width: 3px;
    height: 8px;
    border-radius: 999px;
    background: rgba(123,75,19,.55);
    animation: coffee-steam-rise 1.5s ease-in infinite;
    pointer-events: none;
}
.coffee-steam-wrap::before { left: 22%; }
.coffee-steam-wrap::after  { left: 56%; animation-delay: .75s; }
.side-link-btn.contact {
    background: var(--clr-surface2);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
    text-align: left;
}
.side-link-btn.contact .contact-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}
.side-link-btn.contact .contact-title {
    font-size: .84rem;
    font-weight: 800;
}
.side-link-btn.contact .contact-desc {
    font-size: .72rem;
    color: var(--clr-muted);
    margin-top: .12rem;
}
.side-link-btn.contact:hover .contact-desc {
    color: var(--clr-text);
}
.kakao-room-list {
    display: grid;
    gap: .75rem;
}
.kakao-room-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    width: 100%;
    background: var(--clr-surface2);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
    border-radius: 14px;
    padding: .95rem 1rem;
    text-decoration: none;
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.kakao-room-card:hover {
    color: var(--clr-text);
    border-color: rgba(254,229,0,.55);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(254,229,0,.12);
}
.kakao-room-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FEE500;
    color: #191919;
    flex-shrink: 0;
    font-size: 1.05rem;
}
.kakao-room-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.kakao-room-name {
    font-size: .92rem;
    font-weight: 800;
    color: var(--clr-text);
}
.kakao-room-desc {
    margin-top: .2rem;
    font-size: .79rem;
    color: var(--clr-muted);
    line-height: 1.5;
}
.kakao-room-arrow {
    color: var(--clr-muted);
    flex-shrink: 0;
}
.side-link-btn.app-game {
    background: linear-gradient(135deg, #dff7ec, #e8f1ff);
    color: #154a37;
    border: 1px solid rgba(21,74,55,.12);
    line-height: 1.45;
    text-align: center;
}
.side-link-btn.app-game:hover { color: #154a37; }
/* ── 앱 전용 구독/동의 버튼 ── */
.app-only-block { margin-bottom: .75rem; }
.side-link-btn.app-subscribe {
    background: linear-gradient(135deg, #7c6ff7, #c084fc);
    color: #fff;
    border: 1px solid rgba(124,111,247,.4);
}
.side-link-btn.app-subscribe:hover { color: #fff; opacity: .92; }
.side-link-btn.app-subscribe i { animation: heart-beat 1.6s ease-in-out infinite; }
.side-link-btn.app-subscribed {
    background: var(--clr-surface2);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
}
.side-link-btn.app-subscribed:hover { color: var(--clr-text); border-color: var(--clr-accent); }
.side-link-btn.app-consent {
    background: var(--clr-surface2);
    color: var(--clr-muted);
    border: 1px solid var(--clr-border);
    font-weight: 600;
}
.side-link-btn.app-consent:hover { color: var(--clr-text); border-color: var(--clr-accent); }
.side-link-btn.app-restore {
    background: transparent;
    border: 1px solid var(--clr-border);
    color: var(--clr-muted);
}
.side-link-btn.app-restore:hover { color: var(--clr-text); border-color: var(--clr-accent); }
/* 구독 시 웹 광고 완전 숨김 + 인앱은 AdSense 대신 네이티브 AdMob 사용 */
html.botc-app-hide-ads #pageTopAd,
html.botc-app-hide-ads #pageRailAd,
html.botc-app-hide-ads .page-rail,
html.botc-app-hide-ads .adsbygoogle,
html.botc-app-hide-ads .botc-cp-strip,
html.botc-app-hide-ads .page-coupang-rail-box,
html.botc-app-hide-ads .page-coupang-rail-link { display: none !important; }
html.botc-app-hide-ads .page-shell { grid-template-columns: minmax(0, 1fr) !important; }
/* 앱 안에서는 스토어 밖 결제(후원) 경로를 어떤 형태로도 노출하지 않는다.
   서버가 UA 로 이미 걸러 내지만, 나중에 후원 버튼을 다시 붙였을 때
   앱에서 새어 나가는 것을 막는 안전망이다. App Store 3.1.1. */
html.botc-app-hide-ads #supportModal,
html.botc-app-hide-ads [data-bs-target="#supportModal"],
html.botc-app-hide-ads .side-link-btn.coffee,
html.botc-app-hide-ads .support-mobile-link,
html.botc-app-hide-ads .support-qr-wrap { display: none !important; }
/* ── 앱 설치/열기 유도 배너 (모바일 브라우저, 주 1회) ── */
.app-promo-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    box-shadow: 0 -6px 24px rgba(0,0,0,.28);
}
.app-promo-icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
}
.app-promo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.app-promo-text strong { font-size: .9rem; color: var(--clr-text); }
.app-promo-text span { font-size: .76rem; color: var(--clr-muted); }
.app-promo-open {
    flex-shrink: 0;
    border: none;
    border-radius: 8px;
    padding: .5rem .9rem;
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7c6ff7, #c084fc);
    cursor: pointer;
}
.app-promo-close {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border: none; background: none;
    color: var(--clr-muted);
    font-size: 1.3rem; line-height: 1;
    cursor: pointer;
}
.app-support-links {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .65rem;
    margin-bottom: .65rem;
}
.app-store-link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .5rem .6rem;
    border-radius: 8px;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface2);
    color: var(--clr-text);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 700;
}
.app-store-link:hover {
    color: var(--clr-text);
    border-color: var(--clr-accent);
}
.app-qr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.app-qr-card {
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
}
.app-qr-card img {
    width: min(100%, 220px);
    display: block;
    margin: 0 auto .75rem;
    border-radius: 14px;
    background: #fff;
    padding: .5rem;
}
.app-qr-card h6 {
    margin: 0 0 .35rem;
    font-size: .95rem;
    font-weight: 800;
}
.app-qr-card a {
    font-size: .82rem;
    word-break: break-all;
}
/* ── 후원 모달 ──────────────────────────── */
.support-modal-img {
    width: min(100%, 200px);
    /* img 의 width/height 속성은 자리를 미리 잡아 두라고 달아 놓은 것이다.
       여기서 height 를 auto 로 풀어 줘야 그 둘이 비율로 쓰이고, 안 그러면
       속성값 451px 이 그대로 높이가 되어 세로로 늘어난다. */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.28);
}
.support-hero {
    background: linear-gradient(135deg, var(--clr-accent) 0%, #c084fc 100%);
    margin: -1rem -1rem 1.25rem;
    padding: 1.8rem 1.5rem 1.4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}
.support-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.12) 0%, transparent 65%);
    pointer-events: none;
}
.support-hero-icon {
    font-size: 2.6rem;
    margin-bottom: .5rem;
    display: block;
    line-height: 1;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,.25));
}
.support-hero-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 .4rem;
    letter-spacing: -.01em;
}
.support-hero-sub {
    font-size: .82rem;
    color: rgba(255,255,255,.82);
    margin: 0;
    line-height: 1.65;
}
.support-qr-wrap {
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    text-align: center;
}
.support-qr-label {
    margin-top: .7rem;
    font-size: .78rem;
    color: var(--clr-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
}
.support-tabs {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin: 0 0 .75rem;
}
.support-tabs .nav-link {
    border-radius: 999px;
    border: 1.5px solid var(--clr-border);
    background: transparent;
    color: var(--clr-muted);
    font-size: .8rem;
    font-weight: 700;
    padding: .35rem .9rem;
    transition: border-color .18s, color .18s, background .18s, box-shadow .18s;
}
.support-tabs .nav-link:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background: transparent;
}
.support-tabs .nav-link.active {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: #fff;
    box-shadow: 0 3px 14px rgba(124,111,247,.35);
}
.supporter-section-hd {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .7rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--clr-muted);
    text-transform: uppercase;
    letter-spacing: .07em;
}
.supporter-section-hd::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--clr-border);
}
.supporter-pane-card {
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    border-radius: 14px;
    padding: .9rem;
}
.supporter-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.supporter-list li {
    background: var(--clr-surface);
    border: 1.5px solid var(--clr-border);
    border-radius: 10px;
    padding: .55rem .75rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--clr-text);
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
    cursor: default;
}
.supporter-list li .supporter-icon {
    font-size: .78rem;
    flex-shrink: 0;
    opacity: .65;
}
.supporter-list li:hover {
    border-color: var(--clr-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(124,111,247,.18);
}
.supporter-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    padding: 1.4rem 0;
    color: var(--clr-muted);
    font-size: .85rem;
}
.supporter-empty-icon {
    font-size: 2rem;
    opacity: .35;
}
.support-mobile-link {
    display: none;
    text-align: center;
}
.supporters-trigger {
    background: linear-gradient(135deg, #f3f0ff, #faf5ff);
    color: #6d28d9;
    border: 1px solid rgba(109,40,217,.14);
}
.supporters-trigger:hover {
    opacity: .88;
    color: #6d28d9;
}
.supporters-trigger i {
    animation: heart-beat 1.4s ease-in-out infinite;
}
@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    14%       { transform: scale(1.3); }
    28%       { transform: scale(1); }
    42%       { transform: scale(1.18); }
    56%       { transform: scale(1); }
}
.supporters-trigger:hover i {
    animation-play-state: paused;
    transform: scale(1.25);
    transition: transform .15s;
}
.supporters-modal-dialog {
    max-width: 680px;
}
.supporters-modal-content {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.supporters-hero {
    position: relative;
    padding: 2.2rem 1.5rem 1.8rem;
    text-align: center;
    background: var(--clr-surface2);
    border-bottom: 1px solid var(--clr-border);
    overflow: hidden;
}
/* no hero::before - keep it clean flat */
.supporters-burst {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.supporters-burst span {
    position: absolute;
    top: 45%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
}
@keyframes sp-burst {
    0%   { opacity: 0; transform: translate(-50%,-50%) translate(0,0) rotate(0deg) scale(.25); }
    8%   { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%,-50%) translate(var(--tx),var(--ty)) rotate(var(--rot)) scale(.8); }
}
.supporters-hero-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(124,111,247,.08));
    border: 1px solid rgba(139,92,246,.28);
    margin-bottom: .9rem;
    font-size: 1.45rem;
    box-shadow: 0 4px 20px rgba(139,92,246,.2);
}
.supporters-hero-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    z-index: 10;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
    color: var(--clr-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    padding: 0;
}
.supporters-hero-close:hover {
    background: var(--clr-surface2);
    color: var(--clr-text);
    border-color: var(--clr-accent);
}
.supporters-hero h5 {
    position: relative;
    z-index: 1;
    margin: 0 0 .4rem;
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: -.03em;
}
.supporters-hero p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--clr-muted);
    font-size: .82rem;
}
.supporters-modal-body {
    padding: 1.25rem 1.25rem 1.4rem;
}
.supporters-modal .support-tabs .nav-link.active {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: #fff;
    box-shadow: 0 2px 12px rgba(124,111,247,.3);
}
.supporters-modal .support-tabs .nav-link:hover:not(.active) {
    border-color: rgba(124,111,247,.4);
    color: var(--clr-accent);
    background: transparent;
}
.supporter-name-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.supporter-name-chip {
    display: inline-flex;
    align-items: center;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    font-size: .83rem;
    font-weight: 600;
    color: var(--clr-text);
    transition: transform .12s, border-color .15s, background .15s, box-shadow .15s;
    cursor: default;
    white-space: nowrap;
}
.supporter-name-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(139,92,246,.35);
    background: rgba(139,92,246,.05);
    box-shadow: 0 3px 10px rgba(124,111,247,.12);
}
.supporters-modal .supporter-pane-card {
    background: transparent;
    border: none;
    padding: 0;
}
.supporters-modal .supporter-section-hd {
    display: none; /* replaced by section-label badges */
}
.supporters-section {
    padding: 0;
}
.supporters-section + .supporters-section {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--clr-border);
}
.supporters-section-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .24rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: .8rem;
}
.supporters-section-label--build {
    background: rgba(99,102,241,.1);
    color: #818cf8;
    border: 1px solid rgba(99,102,241,.2);
}
.supporters-section-label--donate {
    background: rgba(251,113,133,.1);
    color: #fb7185;
    border: 1px solid rgba(251,113,133,.2);
}
.supporters-section-label--build i {
    display: inline-block;
    animation: code-bounce 2s ease-in-out infinite;
}
@keyframes code-bounce {
    0%, 100% { transform: translateY(0); }
    40%       { transform: translateY(-3px); }
    60%       { transform: translateY(-1px); }
}
.supporters-section-label--donate i {
    display: inline-block;
    animation: donate-beat 1.3s ease-in-out infinite;
}
@keyframes donate-beat {
    0%, 100% { transform: scale(1); }
    15%       { transform: scale(1.35); }
    30%       { transform: scale(1); }
    45%       { transform: scale(1.2); }
    60%       { transform: scale(1); }
}
.supporters-modal .supporter-empty {
    padding: 2.5rem 0;
}
.supporter-list li:nth-child(n+11) { display: none; }
@media (max-width: 767px) {
    .support-modal-pc { display: none; }
    .support-mobile-link { display: block; }
    .app-qr-grid { grid-template-columns: 1fr; }
    .supporter-list { grid-template-columns: 1fr; }
    .supporter-list li:nth-child(n+6) { display: none; }
    .support-hero { padding: 1.4rem 1.2rem 1.2rem; }
    .supporters-modal-dialog { max-width: calc(100vw - 1rem); margin: .5rem auto; }
}

/* ── 시계피 카카오방 버튼 & 모달 ──────────── */
.kakao-room-trigger {
    background: #fffde7;
    color: #78540a;
    border: 1px solid rgba(202,138,4,.16);
}
.kakao-room-trigger:hover {
    opacity: .88;
    color: #78540a;
}
.kakao-modal-dialog { max-width: 500px; }
.kakao-modal-content {
    background: var(--clr-surface);
    border: 1px solid rgba(254,229,0,.2);
    color: var(--clr-text);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.kakao-hero {
    position: relative;
    padding: 2.2rem 1.5rem 1.8rem;
    text-align: center;
    background: var(--clr-surface2);
    border-bottom: 1px solid var(--clr-border);
    overflow: hidden;
}

.kakao-hero-icon {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 16px;
    background: #FEE500; color: #191919;
    margin-bottom: .9rem; font-size: 1.45rem;
    box-shadow: 0 4px 20px rgba(254,229,0,.3);
}
.kakao-hero-close {
    position: absolute; top: .85rem; right: .85rem; z-index: 10;
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--clr-border); background: var(--clr-surface);
    color: var(--clr-muted); display: flex; align-items: center;
    justify-content: center; font-size: .8rem; cursor: pointer;
    transition: background .15s, color .15s; padding: 0;
}
.kakao-hero-close:hover { background: var(--clr-surface2); color: var(--clr-text); }
.kakao-hero h5 {
    position: relative; z-index: 1;
    margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 900; letter-spacing: -.02em;
}
.kakao-hero p { position: relative; z-index: 1; margin: 0; color: var(--clr-muted); font-size: .82rem; }
.kakao-modal-body { padding: 1.1rem; }
/* ── 본문 ──────────────────────────────────── */
/* body가 flex 컨테이너라 본문이 남는 높이를 모두 차지한다.
   .main-content 자체에는 min-height를 두지 않는다 — 애드센스가 광고 슬롯 조상들에
   height/min-height 인라인(!important)을 주입해 어차피 무력화되기 때문. */
.main-content {
    padding-top: var(--top-offset);
    margin-left: var(--nav-w);
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}
@media (max-width: 767px) {
    .main-content { margin-left: 0; }
}

.page-inner {
    max-width: 1540px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}
/* 좁은 화면에서는 머리글 바로 아래에 24px 이 더 붙어, 첫 줄이 화면 한참 아래에서
   시작했다. 세로가 귀한 쪽이라 위쪽 여백만 줄인다 — 아래쪽은 그대로 둔다. */
@media (max-width: 767px) {
    .page-inner { padding-top: .55rem; }
}
/* 레일 폭과 간격은 상단 배너 정렬에도 쓰이므로 변수로 둔다.
   두 값이 어긋나면 배너와 본문의 중심축이 바로 틀어진다. */
:root {
    --rail-w:    300px;
    --shell-gap: 2rem;
}
.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--rail-w);
    gap: var(--shell-gap);
    align-items: start;
    flex: 1;
}
.page-body {
    min-width: 0;
    order: 1;
}
.page-rail {
    min-width: 0;
    position: sticky;
    top: calc(var(--top-offset) + 1.5rem);
    align-self: start;
    order: 2;
}
.page-ad-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    padding: .9rem;
    overflow: hidden;
}
.page-rail-ad {
    min-height: 600px;
}
.page-rail-ad-inner {
    width: 100%;
    min-height: 600px;
}
/* AdSense가 슬롯 폭보다 넓은 광고를 넣고 인라인 max-width:none 을 박아버린다.
   레일 밖으로 삐져나가 잘리는 걸 막는 최후 방어선. */
.page-ad-card ins.adsbygoogle,
.page-ad-card iframe {
    max-width: 100% !important;
}
/* 쿠팡 이벤트 가로 띠 — 상단/하단 배너 자리에 그림만 흘려 보낸다. */
.botc-cp-strip {
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.botc-cp-strip::-webkit-scrollbar { display: none; }
.botc-cp-track {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: max-content;
    height: 100%;
}
.botc-cp-item {
    display: block;
    flex: 0 0 auto;
    height: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    background: var(--clr-surface2);
}
.botc-cp-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-coupang-rail-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 600px;
}
.page-coupang-rail-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}
.page-coupang-rail-img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
/* 상단 배너는 page-inner 바깥에 있어서, 그냥 두면 사이드바를 뺀 전체 폭 기준으로
   가운데 정렬된다. 본문은 오른쪽 레일만큼 좁으므로 중심축이 어긋나 배너가 오른쪽으로
   치우쳐 보인다. page-inner와 같은 박스를 주고 오른쪽에 레일 폭만큼 여백을 더해
   본문 열과 중심을 맞춘다. */
.page-top-ad {
    display: block;
    max-width: 1540px;
    margin: 0 auto;
    padding: 0 calc(1rem + var(--shell-gap) + var(--rail-w)) 0 1rem;
    width: 100%;
    text-align: center;
    overflow: hidden;
}
.page-top-ad-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.page-top-ad-slot {
    display: block;
    margin: 0 auto;
}
@media (max-width: 1199px) {
    :root {
        --rail-w:    260px;
        --shell-gap: 1.5rem;
    }
}
@media (max-width: 991px) {
    /* 레일이 사라지므로 상단 배너의 오른쪽 보정도 같이 0이 된다. */
    :root {
        --rail-w:    0px;
        --shell-gap: 0px;
    }
    .page-shell {
        grid-template-columns: 1fr;
    }
    .page-rail {
        display: none;
    }
}
@media (max-width: 767px) {
    body.has-mobile-bottom-ad {
        padding-bottom: calc(var(--mobile-bottom-ad-h, 76px) + env(safe-area-inset-bottom));
    }
    .page-top-ad {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1035;
        max-width: none;
        background: var(--clr-bg);
        border-top: 1px solid var(--clr-border);
        padding: 0 0 env(safe-area-inset-bottom);
    }
}
/* ── 플래시 메시지 ───────────────────────────── */
.flash-msg {
    padding: .65rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: .875rem;
    font-weight: 500;
}
.flash-success { background: rgba(98,201,124,.15); border: 1px solid rgba(98,201,124,.3); color: #62c97c; }
.flash-error   { background: rgba(232,92,92,.15);  border: 1px solid rgba(232,92,92,.3);  color: #e85c5c; }
.flash-info    { background: rgba(74,158,255,.15); border: 1px solid rgba(74,158,255,.3); color: #4a9eff; }

/* ── 공통 버튼 ────────────────────────────────── */
.btn-primary-custom {
    background: var(--clr-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .45rem 1rem;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.btn-primary-custom:hover { background: var(--clr-accent-hover); color: #fff; }
.btn-primary-custom:active { transform: scale(.97); }

.btn-ghost {
    background: var(--clr-surface2);
    color: var(--clr-muted);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    padding: .45rem 1rem;
    font-size: .875rem;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.btn-ghost:hover { color: var(--clr-text); background: var(--clr-surface); }

/* ── 공통 페이지 컴포넌트 ─────────────────────
   모든 페이지는 아래 클래스를 사용해 제목/툴바/검색/페이저를 구성한다.
   페이지 전용 CSS에서 이 컴포넌트의 크기·색을 재정의하지 말 것. */
.page-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.page-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--clr-text);
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: .5rem;
    line-height: 1.35;
}
.page-desc {
    margin: .2rem 0 0;
    font-size: .82rem;
    color: var(--clr-muted);
    line-height: 1.6;
}

.page-toolbar {
    position: sticky;
    top: var(--top-offset);
    z-index: 100;
    background: var(--clr-bg);
    padding: .7rem 0 .5rem;
    margin-bottom: .75rem;
}
@media (max-width: 767px) {
    .page-toolbar { padding: .35rem 0 .4rem; margin-bottom: .5rem; }
}
.page-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}
.page-toolbar-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.page-toolbar-count {
    font-size: .8rem;
    color: var(--clr-muted);
    margin-bottom: .45rem;
}

/* 검색줄 오른쪽에 붙는 소형 버튼들.
   추가 버튼이 한 줄을 통째로 차지하지 않도록 검색창과 같은 줄에 둔다. */
.page-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    flex-shrink: 0;
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    color: var(--clr-muted);
    border-radius: 10px;
    padding: .5rem .7rem;
    font-size: .8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, color .15s;
}
.page-search-btn:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
/* 검색창·검색 버튼과 높이를 맞춘다. 폭만 줄여 한 줄에 같이 선다. */
.page-btn.page-btn-sm {
    padding: .5rem .7rem;
    font-size: .78rem;
    border-radius: 10px;
    gap: .3rem;
    flex-shrink: 0;
}
/* 좁은 화면에서는 글자를 접고 아이콘만 남긴다 */
@media (max-width: 560px) {
    .page-btn.page-btn-sm .btn-label, .page-search-btn .btn-label { display: none; }
    .page-btn.page-btn-sm, .page-search-btn { padding-left: .6rem; padding-right: .6rem; }
}

.page-search { position: relative; flex: 1; min-width: 130px; }
.page-search i {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-muted);
    font-size: .82rem;
    pointer-events: none;
}
.page-search input {
    width: 100%;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 10px;
    padding: .5rem .75rem .5rem 2.1rem;
    color: var(--clr-text);
    font-size: .875rem;
    outline: none;
    transition: border-color .15s;
    font-family: inherit;
}
.page-search input:focus { border-color: var(--clr-accent); }
.page-search input::placeholder { color: var(--clr-muted); }

.page-select {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 10px;
    padding: .48rem 1.8rem .48rem .65rem;
    color: var(--clr-text);
    font-size: .82rem;
    outline: none;
    cursor: pointer;
    transition: border-color .15s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .65rem center;
    background-size: 8px;
    font-family: inherit;
}
.page-select:focus { border-color: var(--clr-accent); }

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .5rem .85rem;
    border-radius: 10px;
    border: 1px solid var(--clr-accent);
    background: var(--clr-accent);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    text-decoration: none;
    transition: opacity .15s, transform .1s;
}
.page-btn:hover { opacity: .9; color: #fff; }
.page-btn:active { transform: scale(.98); }
.page-btn.outline {
    background: transparent;
    color: var(--clr-accent);
}
.page-btn.outline:hover { background: color-mix(in srgb, var(--clr-accent) 10%, transparent); color: var(--clr-accent); }

.page-pager {
    display: flex;
    justify-content: center;
    gap: .3rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.page-pager a, .page-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 .5rem;
    border-radius: 8px;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
    color: var(--clr-text);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.page-pager a:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
.page-pager .active { background: var(--clr-accent); border-color: var(--clr-accent); color: #fff; }
.page-pager .disabled { opacity: .4; pointer-events: none; }

.page-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--clr-muted);
    font-size: .9rem;
}
.page-empty i { font-size: 2rem; display: block; margin-bottom: .6rem; }

/* ── 공통 푸터 (항상 바닥에 고정) ─────────────── */
.site-footer {
    margin-top: auto;
    margin-left: var(--nav-w);
    flex: 0 0 auto;
    border-top: 1px solid var(--clr-border);
    background: var(--clr-surface);
    padding: 1.3rem 1rem calc(.9rem + env(safe-area-inset-bottom));
    color: var(--clr-muted);
    font-size: .78rem;
    line-height: 1.7;
}
.site-footer-inner {
    max-width: 1540px;
    margin: 0 auto;
    width: 100%;
}
.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.1rem;
    margin-bottom: .6rem;
}
.site-footer-links a { color: var(--clr-muted); }
.site-footer-links a:hover { color: var(--clr-text); }
/* 후원은 다른 링크와 같은 줄에 있되 한눈에 들어와야 한다 */
.site-footer-coffee { color: #c9974a !important; font-weight: 600; }
.site-footer-coffee:hover { color: #e0b06a !important; }
.site-footer-note { margin: 0; }
@media (max-width: 767px) {
    .site-footer { margin-left: 0; }
}

/* ── 푸카 흐름도 ──────────────────────────── */
.pf-hist-item { background:var(--clr-surface2); border:1px solid var(--clr-border); border-radius:10px; padding:.65rem .9rem; font-size:.84rem; }
.pf-hist-item .pf-hist-q { font-weight:600; color:var(--clr-muted); margin-bottom:.35rem; font-size:.82rem; }
.pf-hist-item .pf-hist-ans { display:inline-flex; align-items:center; gap:.3rem; padding:.1rem .5rem; border-radius:999px; font-size:.76rem; font-weight:800; margin-bottom:.35rem; }
.pf-hist-item .pf-hist-ans.yes { background:rgba(34,197,94,.15); color:#22c55e; }
.pf-hist-item .pf-hist-ans.no  { background:rgba(239,68,68,.15);  color:#ef4444; }
.pf-hist-item .pf-hist-result  { margin-top:.1rem; color:var(--clr-text); font-size:.88rem; line-height:1.7; }
.pf-card { background:var(--clr-surface); border:1px solid var(--clr-border); border-radius:14px; padding:1.25rem 1.4rem; margin-bottom:1rem; }
.pf-card.pf-card--active { border-color:rgba(90,79,216,.5); box-shadow:0 0 0 3px rgba(90,79,216,.08); }
.pf-card.pf-card--end { border-color:rgba(34,197,94,.4); background:linear-gradient(135deg,rgba(34,197,94,.07),rgba(59,130,246,.07)); }
.pf-step-label { display:inline-flex; align-items:center; gap:.35rem; font-size:.73rem; font-weight:800; letter-spacing:.04em; color:var(--clr-muted); text-transform:uppercase; margin-bottom:.6rem; }
.pf-step-dot { width:6px; height:6px; border-radius:50%; background:var(--clr-accent); }
.pf-question { font-size:1.02rem; font-weight:700; color:var(--clr-text); line-height:1.55; margin-bottom:1rem; }
.pf-info-text { font-size:.93rem; color:var(--clr-text); line-height:1.65; margin-bottom:1rem; }
.pf-info-text strong { color:#22c55e; }
.pf-action-note { background:var(--clr-surface2); border-radius:10px; padding:.65rem .85rem; font-size:.84rem; color:var(--clr-muted); line-height:1.6; margin-bottom:1rem; }
.pf-btns { display:flex; gap:.6rem; }
.pf-btn { flex:1; padding:.65rem 0; border-radius:10px; border:1.5px solid; font-size:.93rem; font-weight:800; cursor:pointer; transition:background .15s,transform .1s; display:flex; align-items:center; justify-content:center; gap:.4rem; }
.pf-btn:active { transform:scale(.97); }
.pf-btn-yes { border-color:#22c55e; color:#22c55e; background:rgba(34,197,94,.08); }
.pf-btn-yes:hover { background:rgba(34,197,94,.18); }
.pf-btn-no  { border-color:#ef4444; color:#ef4444; background:rgba(239,68,68,.08); }
.pf-btn-no:hover { background:rgba(239,68,68,.18); }
.pf-btn-restart { flex:none; padding:.65rem 1.4rem; border-color:var(--clr-accent); color:var(--clr-accent); background:rgba(90,79,216,.08); font-size:.88rem; }
.pf-btn-restart:hover { background:rgba(90,79,216,.18); }
.pf-end-title { font-size:1.05rem; font-weight:800; color:#22c55e; margin-bottom:.65rem; display:flex; align-items:center; gap:.5rem; }
.pf-end-body { font-size:.9rem; color:var(--clr-text); line-height:1.7; }
.pf-end-body + .pf-btns { margin-top:1rem; }
.pf-prog-dot { width:8px; height:8px; border-radius:50%; background:var(--clr-border); transition:background .2s; }
.pf-prog-dot.done { background:#22c55e; }
.pf-prog-dot.active { background:var(--clr-accent); }

/* ── 후원 알림 토스트 ────────────────────── */
@keyframes toast-heart-beat {
    0%, 100% { transform: scale(1); }
    20%       { transform: scale(1.35); }
    40%       { transform: scale(1); }
    60%       { transform: scale(1.2); }
    80%       { transform: scale(1); }
}
@keyframes toast-slide-up {
    from { transform: translateY(120%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes toast-slide-down {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(120%); opacity: 0; }
}
@keyframes toast-progress {
    from { width: 100%; }
    to   { width: 0%; }
}
#supporter-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--clr-surface);
    border: 1px solid rgba(245,158,11,.45);
    border-radius: 16px;
    width: 260px;
    box-shadow: 0 12px 40px rgba(0,0,0,.28);
    overflow: hidden;
    pointer-events: none;
}
#supporter-toast.visible {
    display: flex;
    animation: toast-slide-up .45s cubic-bezier(.34,1.56,.64,1) forwards;
    pointer-events: auto;
}
#supporter-toast.hiding {
    display: flex;
    animation: toast-slide-down .45s cubic-bezier(.4,0,.6,1) forwards;
    pointer-events: none;
}
.toast-body {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
}
.toast-icon {
    color: #f59e0b;
    font-size: 1.2rem;
    flex-shrink: 0;
    animation: toast-heart-beat 1.4s ease-in-out infinite;
}
.toast-text {
    flex: 1;
    font-size: .88rem;
    font-weight: 500;
    color: var(--clr-text);
    line-height: 1.4;
}
.toast-text strong {
    color: #f59e0b;
    font-weight: 800;
}
#supporter-toast .toast-close {
    background: none;
    border: none;
    color: var(--clr-muted);
    cursor: pointer;
    padding: .1rem .2rem;
    font-size: .8rem;
    flex-shrink: 0;
    line-height: 1;
}
#supporter-toast .toast-close:hover { color: var(--clr-text); }
.toast-progress-bar {
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 0 0 16px 16px;
    width: 100%;
    transform-origin: left;
}
.toast-progress-bar.running {
    animation: toast-progress 10s linear forwards;
}
@media (max-width: 480px) {
    #supporter-toast {
        right: .75rem;
        bottom: .75rem;
        width: calc(100vw - 1.5rem);
    }
}

/* ── 백치천재 아이콘 ──────────────────────── */
@keyframes savant-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.savant-spin {
    animation: savant-rotate 3s linear infinite;
}
