/* ============================================================================
   honor-pro.css — 명예의 전당 올림픽 시상식 (2026-05-28)

   컨셉: 올림픽 메달 세리머니 — Top 3 시상대 + 지역기 상승 애니메이션
   레퍼런스: 올림픽 시상식 / 토스 / On Running celebration
   ============================================================================ */

/* ─────────────────────────────────────────────────────────────────────────
   무대 (스테이지) — 시상대를 받쳐주는 배경
   ───────────────────────────────────────────────────────────────────────── */
.honor-stage {
    position: relative;
    max-width: 980px;
    margin: 24px auto 8px;
    padding: 28px 16px 0;
    background: linear-gradient(180deg,
        rgba(234,179,8,0.06)  0%,
        rgba(234,179,8,0.02) 60%,
        transparent 100%);
    border-radius: 24px;
    overflow: hidden;
}
[data-theme="dark"] .honor-stage,
html[data-theme="dark"] .honor-stage {
    background: linear-gradient(180deg,
        rgba(234,179,8,0.10)  0%,
        rgba(234,179,8,0.04) 60%,
        transparent 100%);
}

/* 스포트라이트 (1등 위에 살짝 비추는 빛) */
.honor-stage::before {
    content: '';
    position: absolute;
    top: -40px; left: 50%;
    width: 320px; height: 280px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center,
        rgba(234,179,8,0.20) 0%,
        transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   지역기 — 깃대 + 깃발 (1·2·3등은 깃대 길이로 단차 표현)
   ───────────────────────────────────────────────────────────────────────── */
.honor-flags {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    max-width: 760px;
    margin: 0 auto 8px;          /* 시상대와 8px 간격 */
    align-items: end;             /* 깃대·깃발이 시상대 직전에 자리잡도록 */
    z-index: 1;
}
.honor-flagpole {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 깃대 길이가 등수마다 달라 시상대 높이 차이를 만든다.
   1등 깃대가 가장 길어서 깃발이 가장 높이, 3등이 가장 낮음. */
.honor-flagpole--1 { padding-top: 0; }
.honor-flagpole--2 { padding-top: 36px; }
.honor-flagpole--3 { padding-top: 64px; }

/* 깃대 라인 — 깃발 위쪽으로만 짧게 (시상대를 침범하지 않음) */
.honor-flagpole__line {
    width: 2px;
    height: 48px;
    background: linear-gradient(180deg, var(--ro-text-sub) 0%, transparent 100%);
    opacity: 0.35;
}
[data-theme="dark"] .honor-flagpole__line,
html[data-theme="dark"] .honor-flagpole__line { opacity: 0.55; }

.honor-flag {
    position: relative;
    z-index: 2;
    width: 88px;
    height: 64px;
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18), 0 2px 4px rgba(0,0,0,0.10);
    overflow: hidden;
    /* 등장 애니메이션: 솟구침 + 페이드 */
    opacity: 0;
    transform: translateY(16px) scale(0.92);
    animation: honor-flag-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
/* 실제 지역이 없을 때 — 러너온 로고 깃발이 바람에 흔들린다 */
.honor-flag--logo {
    background: linear-gradient(135deg, #90C320 0%, #6fae12 100%);
}
.honor-flag--logo .honor-flag__wave {
    display: block;
    width: 100%;
    height: 100%;
    /* 회전 시 모서리 빈틈이 보이지 않도록 살짝 키움(뒤 배경은 초록이라 티 안 남) */
    transform: scale(1.08);
    transform-origin: 50% 0;     /* 깃대(위)에 매달린 듯 위쪽 중심에서 흔들림 */
    animation: honor-flag-wave 3.4s ease-in-out infinite;
    will-change: transform;
}
.honor-flag--logo .honor-flag__wave > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
/* 등수마다 흔들림 위상 살짝 다르게 — 자연스러움 */
.honor-flagpole--1 .honor-flag--logo .honor-flag__wave { animation-delay: 0.0s; }
.honor-flagpole--2 .honor-flag--logo .honor-flag__wave { animation-delay: -1.1s; }
.honor-flagpole--3 .honor-flag--logo .honor-flag__wave { animation-delay: -2.2s; }

@keyframes honor-flag-wave {
    0%   { transform: scale(1.08) rotate(-3.2deg) translateX(-1px); }
    50%  { transform: scale(1.08) rotate(3.2deg)  translateX(1px); }
    100% { transform: scale(1.08) rotate(-3.2deg) translateX(-1px); }
}
@media (prefers-reduced-motion: reduce) {
    .honor-flag--logo .honor-flag__wave { animation: none; transform: scale(1); }
}

/* 4위 이하 '더보기'로 펼치기 전 숨김 */
.honor-grant--more { display: none; }

/* 공식 지역 심벌 출처표시(공공누리) 캡션 */
.honor-symbol-credit {
    max-width: 760px;
    margin: 14px auto 0;
    text-align: center;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--ro-text-sub);
    opacity: 0.85;
}

.honor-flagpole--3 .honor-flag { animation-delay: 0.10s; }
.honor-flagpole--2 .honor-flag { animation-delay: 0.30s; }
.honor-flagpole--1 .honor-flag { animation-delay: 0.55s; }

@keyframes honor-flag-pop {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .honor-flag { opacity: 1; transform: none; animation: none; }
}

.honor-flag > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.honor-flag__sub {
    position: absolute;
    top: 4px; left: 6px;
    z-index: 3;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(0,0,0,0.60);
    color: white;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: -0.02em;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
[data-theme="dark"] .honor-flag,
html[data-theme="dark"] .honor-flag {
    box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 3px 6px rgba(0,0,0,0.25);
}

/* ─────────────────────────────────────────────────────────────────────────
   시상대 (Podium)
   ───────────────────────────────────────────────────────────────────────── */
.honor-podium {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    max-width: 760px;
    margin: 0 auto;
    align-items: end;
    z-index: 1;
}
.honor-podium__step {
    position: relative;
    padding: 18px 12px 22px;
    background: var(--ro-surface);
    border: 1px solid var(--ro-border);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    text-align: center;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
    animation: honor-podium-rise 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
[data-theme="dark"] .honor-podium__step,
html[data-theme="dark"] .honor-podium__step {
    box-shadow: 0 -6px 20px rgba(0,0,0,0.35);
}
[data-theme="dark"] .honor-podium__step--1,
html[data-theme="dark"] .honor-podium__step--1 { background: linear-gradient(180deg, rgba(234,179,8,0.18), var(--ro-surface) 60%); }
[data-theme="dark"] .honor-podium__step--2,
html[data-theme="dark"] .honor-podium__step--2 { background: linear-gradient(180deg, rgba(148,163,184,0.18), var(--ro-surface) 60%); }
[data-theme="dark"] .honor-podium__step--3,
html[data-theme="dark"] .honor-podium__step--3 { background: linear-gradient(180deg, rgba(180,83,9,0.18), var(--ro-surface) 60%); }
/* 시상대 단차 — 1위 가장 높고 두꺼움, 3위 가장 낮음 (올림픽 시상대 비례) */
.honor-podium__step--1 { min-height: 280px; padding-bottom: 32px; animation-delay: 0.05s; border-top: 6px solid #eab308; background: linear-gradient(180deg, rgba(234,179,8,0.16), var(--ro-surface) 55%); transform-origin: bottom; }
.honor-podium__step--2 { min-height: 220px; padding-bottom: 24px; animation-delay: 0.20s; border-top: 5px solid #94a3b8; background: linear-gradient(180deg, rgba(148,163,184,0.14), var(--ro-surface) 55%); }
.honor-podium__step--3 { min-height: 180px; padding-bottom: 16px; animation-delay: 0.35s; border-top: 5px solid #b45309; background: linear-gradient(180deg, rgba(180,83,9,0.14), var(--ro-surface) 55%); }
/* 시상대 받침대 효과 — 카드 하단에 두꺼운 음영 띠 */
.honor-podium__step::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 8px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.06));
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    pointer-events: none;
}
[data-theme="dark"] .honor-podium__step::after,
html[data-theme="dark"] .honor-podium__step::after {
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.30));
}

@keyframes honor-podium-rise {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .honor-podium__step { animation: none; }
}

/* 메달 배지 */
.honor-medal {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    border: 3px solid var(--ro-surface);
}
.honor-medal--gold   { background: radial-gradient(circle at 30% 30%, #fde047, #ca8a04); }
.honor-medal--silver { background: radial-gradient(circle at 30% 30%, #f1f5f9, #64748b); }
.honor-medal--bronze { background: radial-gradient(circle at 30% 30%, #fed7aa, #b45309); }

.honor-podium__avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--ro-bg);
    margin: 14px auto 8px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--ro-border);
    overflow: hidden;
    font-size: 22px;
}
.honor-podium__avatar img { width: 100%; height: 100%; object-fit: cover; }
.honor-podium__nick {
    font-size: 14px;
    font-weight: 800;
    color: var(--ro-text);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
    /* 긴 닉네임 처리 — 한 줄 자르기, hover 시 tooltip */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 4px;
}
.honor-podium__region { font-size: 11px; color: var(--ro-text-sub); margin: 0 0 2px; font-weight: 600; }
.honor-podium__slogan {
    font-size: 10px;
    color: var(--ro-text-sub);
    margin: 0 0 8px;
    opacity: 0.75;
    font-style: italic;
    letter-spacing: -0.01em;
    /* 슬로건이 길면 잘림 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 4px;
}
@media (max-width: 600px) {
    .honor-podium__slogan { font-size: 9.5px; }
}
.honor-podium__dist {
    font-size: 18px;
    font-weight: 900;
    color: var(--ro-primary-600);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.honor-podium__step--1 .honor-podium__dist { font-size: 22px; }

@media (max-width: 600px) {
    .honor-flags { grid-template-columns: 1fr 1fr 1fr; gap: 6px; height: 160px; }
    .honor-flag { width: 64px; height: 48px; font-size: 11px; }
    .honor-podium { grid-template-columns: 1fr 1fr 1fr; }
    .honor-podium__step { padding: 14px 6px 20px; }
    .honor-podium__step--1 { min-height: 210px; padding-bottom: 24px; }
    .honor-podium__step--2 { min-height: 170px; padding-bottom: 18px; }
    .honor-podium__step--3 { min-height: 140px; padding-bottom: 14px; }
    .honor-podium__avatar { width: 44px; height: 44px; font-size: 18px; }
    .honor-podium__nick { font-size: 12.5px; }
    .honor-podium__dist { font-size: 14px; }
    .honor-podium__step--1 .honor-podium__dist { font-size: 16px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   시즌 카드 (헤더 아래) — 다크모드 호환
   라이트: 옅은 그린 ↗ 보라 그라데이션
   다크:   surface + 살짝 brand tint
   ───────────────────────────────────────────────────────────────────────── */
.honor-season-card {
    padding: 18px 22px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg,
        var(--ro-primary-50, rgba(34,197,94,0.10)),
        var(--ro-accent-50,  rgba(99,102,241,0.10)));
    border: 1px solid var(--ro-border);
    color: var(--ro-text);
}
[data-theme="dark"] .honor-season-card,
html[data-theme="dark"] .honor-season-card {
    background: linear-gradient(135deg,
        rgba(34,197,94,0.10),
        rgba(99,102,241,0.10));
    border-color: rgba(255,255,255,0.06);
}
.honor-season-card__head {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.honor-season-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.honor-season-card__badge--live  { background: var(--ro-success-500, #10b981); color: #fff; }
.honor-season-card__badge--ended { background: var(--ro-border);                color: var(--ro-text-sub); }
.honor-season-card__pulse {
    width: 6px; height: 6px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.6);
    animation: honor-pulse 1.8s ease-out infinite;
}
@keyframes honor-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(255,255,255,0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0);    }
    100% { box-shadow: 0 0 0 0   rgba(255,255,255,0);    }
}
@media (prefers-reduced-motion: reduce) {
    .honor-season-card__pulse { animation: none; }
}
.honor-season-card__meta {
    font-size: 13px;
    color: var(--ro-text-sub);
}
.honor-season-card__title {
    margin: 4px 0 4px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ro-text);
}
.honor-season-card__desc {
    margin: 0;
    font-size: 14px;
    color: var(--ro-text-sub);
    line-height: 1.55;
}

/* ─────────────────────────────────────────────────────────────────────────
   리워드 카탈로그 카드
   ───────────────────────────────────────────────────────────────────────── */
.honor-rewards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 600px) { .honor-rewards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .honor-rewards { grid-template-columns: 1fr 1fr 1fr; } }

.honor-reward {
    display: block;
    background: var(--ro-surface);
    border: 1px solid var(--ro-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 200ms;
}
.honor-reward:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.honor-reward__cover {
    aspect-ratio: 4 / 3;
    background: var(--ro-bg);
    background-size: cover;
    background-position: center;
    position: relative;
}
.honor-reward__cover--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--ro-primary-50, rgba(34,197,94,0.10)), var(--ro-bg));
    color: var(--ro-primary-700);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.01em;
}
.honor-reward__type {
    position: absolute;
    top: 12px; left: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.55);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.01em;
    backdrop-filter: blur(4px);
}
.honor-reward__body { padding: 16px 18px 18px; }
.honor-reward__name { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--ro-text); }
.honor-reward__desc { font-size: 13px; line-height: 1.6; color: var(--ro-text-sub); margin: 0 0 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.honor-reward__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ro-text-sub); }
.honor-reward__value { font-size: 15px; font-weight: 800; color: var(--ro-text); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.honor-reward__sponsor { font-size: 11.5px; color: var(--ro-text-sub); padding: 2px 10px; background: var(--ro-bg); border-radius: 999px; }

/* ─────────────────────────────────────────────────────────────────────────
   지급 내역 — 타임라인 형식
   ───────────────────────────────────────────────────────────────────────── */
.honor-grants { display: flex; flex-direction: column; gap: 12px; }
.honor-grant {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    background: var(--ro-surface);
    border: 1px solid var(--ro-border);
    border-radius: 14px;
}
.honor-grant__medal {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}
.honor-grant__medal--1 { background: radial-gradient(circle at 30% 30%, #fde047, #ca8a04); }
.honor-grant__medal--2 { background: radial-gradient(circle at 30% 30%, #f1f5f9, #64748b); }
.honor-grant__medal--3 { background: radial-gradient(circle at 30% 30%, #fed7aa, #b45309); }
.honor-grant__medal--n { background: var(--ro-border); color: var(--ro-text-sub); }
.honor-grant__main { min-width: 0; }
.honor-grant__title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ro-text);
    margin: 0 0 3px;
    letter-spacing: -0.01em;
    /* 긴 닉네임 한 줄 자르기 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.honor-grant__meta { font-size: 12px; color: var(--ro-text-sub); }
.honor-grant__date { font-size: 12px; color: var(--ro-text-sub); font-variant-numeric: tabular-nums; text-align: right; }

@media (max-width: 540px) {
    .honor-grant { grid-template-columns: 36px 1fr; gap: 10px; padding: 12px; }
    .honor-grant__medal { width: 36px; height: 36px; font-size: 12px; }
    .honor-grant__date { grid-column: 1 / -1; text-align: left; padding-left: 46px; margin-top: 2px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   랭킹 — 승부욕/성취감 강화 (내 순위 배너 · 티어 구분선 · 거리 차 · 본인 행)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 내 순위 배너 (스크롤해도 따라오는 sticky) ── */
.honor-myrank {
    position: sticky;
    top: 8px;
    z-index: 20;
    max-width: 760px;
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(120deg, #5b7d12 0%, #90C320 55%, #b6e04a 100%);
    box-shadow: 0 10px 26px rgba(91,125,18,0.32);
    overflow: hidden;
}
.honor-myrank::before {
    content: ""; position: absolute; right: -30px; top: -30px;
    width: 140px; height: 140px; border-radius: 50%;
    background: rgba(255,255,255,0.12); pointer-events: none;
}
.honor-myrank__badge {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,0.18); border: 2px solid rgba(255,255,255,0.6);
    display: flex; align-items: center; justify-content: center;
}
.honor-myrank__rank { font-size: 22px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.honor-myrank__rank small { font-size: 11px; font-weight: 800; margin-left: 1px; }
.honor-myrank__body { min-width: 0; flex: 1 1 auto; }
.honor-myrank__label { margin: 0 0 2px; font-size: 12.5px; font-weight: 700; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.honor-myrank__km { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.honor-myrank__km span { font-size: 12px; font-weight: 800; opacity: 0.9; }
.honor-myrank__goal { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.honor-myrank__goal-label { font-size: 10.5px; font-weight: 700; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.04em; }
.honor-myrank__goal-val { font-size: 14px; font-weight: 900; letter-spacing: -0.01em; }
.honor-myrank__top { font-size: 14px; font-weight: 900; }
.honor-myrank__jump { margin-top: 2px; font-size: 11.5px; font-weight: 700; color: #fff; text-decoration: none; opacity: 0.95; border-bottom: 1px solid rgba(255,255,255,0.5); }
.honor-myrank__jump:hover { opacity: 1; }

/* ── 순위 섹션 헤더 ── */
.honor-rank-head { margin: 0 0 14px; }
.honor-rank-head__title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 18px; font-weight: 900; color: var(--ro-text); letter-spacing: -0.02em; }
.honor-rank-head__title span { font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(120deg,#5b7d12,#90C320); padding: 3px 9px; border-radius: 999px; letter-spacing: 0.03em; }
.honor-rank-head__sub { margin: 0; font-size: 12.5px; color: var(--ro-text-sub); }

/* ── 티어 구분선 (TOP 10/30/50/100) ── */
.honor-tier { display: flex; align-items: center; gap: 10px; margin: 8px 2px 2px; }
.honor-tier__line { flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--ro-border), transparent); }
.honor-tier__label { flex-shrink: 0; font-size: 11px; font-weight: 900; letter-spacing: 0.06em; color: var(--ro-primary-700, #5b7d12); background: var(--ro-primary-50, rgba(144,195,32,0.12)); padding: 3px 12px; border-radius: 999px; }

/* ── 앞 순위와의 거리 차 (승부욕) ── */
.honor-grant__gap { color: var(--ro-primary-700, #5b7d12); font-weight: 700; }

/* ── 본인 행 하이라이트 (성취감) ── */
.honor-grant--me {
    border-color: var(--ro-primary-400, #90C320);
    background: linear-gradient(90deg, var(--ro-primary-50, rgba(144,195,32,0.14)), var(--ro-surface) 70%);
    box-shadow: 0 0 0 2px rgba(144,195,32,0.30);
}
.honor-grant--me .honor-grant__medal--n { background: linear-gradient(120deg,#5b7d12,#90C320); color: #fff; }
.honor-grant__me-chip { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 900; color: #fff; background: #5b7d12; padding: 1px 8px; border-radius: 999px; vertical-align: middle; }
.honor-grant--flash { animation: honor-grant-flash 1.6s ease-out; }
@keyframes honor-grant-flash {
    0%, 100% { box-shadow: 0 0 0 2px rgba(144,195,32,0.30); }
    30%      { box-shadow: 0 0 0 5px rgba(144,195,32,0.55); }
}

/* ── 다크모드 ── */
html[data-theme="dark"] .honor-myrank { box-shadow: 0 12px 30px rgba(0,0,0,0.45); }
html[data-theme="dark"] .honor-rank-head__sub { color: #A0A0A0; }
html[data-theme="dark"] .honor-tier__label { color: #b6e04a; background: rgba(144,195,32,0.16); }
html[data-theme="dark"] .honor-grant__gap { color: #b6e04a; }
html[data-theme="dark"] .honor-grant--me { background: linear-gradient(90deg, rgba(144,195,32,0.18), #1E1E1E 70%); }

@media (max-width: 540px) {
    .honor-myrank { gap: 10px; padding: 12px 14px; }
    .honor-myrank__badge { width: 46px; height: 46px; }
    .honor-myrank__rank { font-size: 18px; }
    .honor-myrank__km { font-size: 17px; }
    .honor-myrank__goal-val { font-size: 12.5px; }
}
/* ── 행별 진행 막대 (1위 대비 거리 시각화 — 리더보드 시인성) ── */
.honor-grant__bar {
    height: 6px;
    margin: 5px 0 6px;
    background: var(--ro-border);
    border-radius: 999px;
    overflow: hidden;
}
.honor-grant__bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #5b7d12, #90C320);
    transform-origin: left center;
    animation: honor-bar-grow 0.7s cubic-bezier(.4,0,.2,1) both;
}
@keyframes honor-bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.honor-grant--me .honor-grant__bar > span { background: linear-gradient(90deg, #b45309, #f59e0b); }
html[data-theme="dark"] .honor-grant__bar { background: #333; }

/* ── 내 순위 배너 — 성취 티어 배지 ── */
.honor-myrank__tier {
    display: inline-block; margin-left: 6px;
    font-size: 10.5px; font-weight: 900;
    background: rgba(255,255,255,0.22); color: #fff;
    padding: 1px 8px; border-radius: 999px; vertical-align: middle;
}

/* ── 시상대 — 선두와의 격차 ── */
.honor-podium__behind { margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--ro-text-sub); }
.honor-podium__behind--lead { color: #ca8a04; font-weight: 900; }
html[data-theme="dark"] .honor-podium__behind--lead { color: #fde047; }

@media (prefers-reduced-motion: reduce) {
    .honor-grant--flash { animation: none; }
    .honor-grant__bar > span { animation: none; }
}
