/* 개인 공간 > 운동게시판 > 러닝. 다른 게시판과 같은 어두운 바탕, 카드형. 달리는 중 화면은 화면 전체를 덮는다. */
.rn-bg { display: none; }
body.co .pagewrap.rn { position: relative; z-index: 1; max-width: 1080px; min-height: 100vh; min-height: 100dvh; color: #fff; --rn-ink: #fff; --rn-sub: var(--muted); --rn-line: var(--line); --rn-blue: var(--accent); --rn-soft: var(--accent-soft); }
.rn-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rn-head h2 { margin: 2px 0 0; font-size: 30px; font-weight: 750; letter-spacing: -.02em; color: var(--rn-ink); }
.rn-link { padding: 4px 2px; border: 0; background: none; color: var(--rn-sub); font: inherit; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.rn-link:hover { color: var(--rn-blue); }
.rn-link + .rn-link { margin-left: 12px; }

/* 메뉴: 넓은 화면은 제목 옆, 휴대폰은 화면 아래 */
.rn-nav { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--rn-line); border-radius: 999px; background: rgba(13, 13, 16, .92); }
.rn-nav button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--rn-sub); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.rn-nav svg { width: 18px; height: 18px; }
.rn-nav button:hover { color: var(--rn-ink); }
.rn-nav button[aria-current="page"] { background: var(--rn-ink); color: #fff; }
.rn-nav button.plus { background: var(--rn-blue); color: #fff; }
.rn-nav button.plus:hover { background: #fff; color: #fff; }

/* 카드 */
.rn-card, .rn-hero, .rn-stat, .rn-resume { border: 1px solid var(--rn-line); border-radius: 18px; background: #0d0d10; box-shadow: 0 10px 30px rgba(30, 60, 120, .07); }
.rn-card { padding: 20px 22px; margin-bottom: 16px; min-width: 0; }
.rn-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rn-card h3, .rn-log-top h3 { margin: 0; font-size: 16.5px; font-weight: 700; color: var(--rn-ink); }
.rn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rn-grid .rn-card { margin: 0; }
.rn-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--rn-sub); }
.rn-card-head .rn-note { margin: 0; }
.rn-empty { margin: 0; font-size: 14px; line-height: 1.7; color: var(--rn-sub); }
.rn-empty.big { padding: 60px 0 20px; text-align: center; font-size: 15px; }
.rn-center { text-align: center; }
body.co .pagewrap.rn .btn { background: #0d0d10; border-color: #3a3a44; color: var(--rn-ink); border-radius: 10px; }
body.co .pagewrap.rn .btn:hover { border-color: var(--rn-blue); color: var(--rn-blue); }

/* 오늘 */
.rn-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 14px; border-color: #b98a1f; background: rgba(185, 138, 31, .1); }
.rn-resume p { flex: 1 1 200px; margin: 0; font-size: 14px; color: #f0dcae; }
.rn-hero { display: flex; align-items: center; gap: 20px; padding: 28px 32px; margin-bottom: 16px; background: linear-gradient(120deg, #0d0d10 0%, #15171e 100%); overflow: hidden; }
.rn-hero-text { flex: 1; min-width: 0; }
.rn-date { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--rn-blue); }
.rn-hero h2 { margin: 8px 0 20px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 750; letter-spacing: -.02em; line-height: 1.25; color: var(--rn-ink); word-break: keep-all; }
.rn-start { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 0 38px; border: 0; border-radius: 999px; background: var(--rn-blue); color: #fff; font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; box-shadow: none; transition: transform .15s, box-shadow .2s; }
.rn-start:hover { transform: translateY(-1px); box-shadow: none; }
.rn-start:active { transform: scale(.98); }
.rn-hero-sub { margin: 14px 0 0; font-size: 13px; color: var(--rn-sub); }
.rn-hero-char { flex: none; display: grid; justify-items: center; gap: 4px; width: 230px; padding: 0; border: 0; background: none; color: var(--rn-ink); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.rn-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.rn-stat { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; }
.rn-stat b { font-size: 24px; font-weight: 750; letter-spacing: -.02em; color: var(--rn-ink); font-variant-numeric: tabular-nums; }
.rn-stat span { font-size: 12.5px; color: var(--rn-sub); }
.rn-goal + .rn-goal { margin-top: 14px; }
.rn-goal > div:first-child { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 14px; }
.rn-goal b { font-weight: 650; color: var(--rn-ink); }
.rn-goal span { color: var(--rn-sub); font-variant-numeric: tabular-nums; text-align: right; }
.rn-bar { height: 8px; border-radius: 999px; background: var(--rn-soft); overflow: hidden; }
.rn-bar i { display: block; height: 100%; border-radius: 999px; background: var(--rn-blue); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.rn-bar.warn i { background: #e0851a; }
.rn-level-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.rn-level-top b { font-size: 22px; font-weight: 750; color: var(--rn-blue); }
.rn-level-top span { font-size: 14.5px; font-weight: 650; color: var(--rn-ink); }
.rn-level-top em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--rn-sub); font-variant-numeric: tabular-nums; }
.rn-list { list-style: none; margin: 0; padding: 0; }
.rn-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rn-line); }
.rn-list li:first-child { border-top: 0; padding-top: 0; }
.rn-list li > div { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rn-list b { font-size: 15px; font-weight: 650; color: var(--rn-ink); overflow-wrap: anywhere; }
.rn-list span { font-size: 12.5px; color: var(--rn-sub); }
.rn-list.gear .rn-bar { margin-top: 5px; }
.rn-list li.off { opacity: .55; }
.rn-chip { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--rn-soft); color: var(--rn-blue); font-size: 11.5px; font-weight: 650; white-space: nowrap; vertical-align: 1px; }
.rn-chip.with { background: rgba(47, 158, 98, .15); color: #49c283; }

/* 기록 */
.rn-log-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rn-runs { display: grid; }
.rn-run { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 13px 4px; border: 0; border-top: 1px solid var(--rn-line); background: none; color: var(--rn-sub); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.rn-run:first-child { border-top: 0; }
.rn-run:hover { background: #14141a; }
.rn-run > span { display: grid; gap: 2px; min-width: 0; }
.rn-run b { font-size: 15px; font-weight: 650; color: var(--rn-ink); font-variant-numeric: tabular-nums; }
.rn-run-km { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 4px !important; }
.rn-run-km b { font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.rn-run .rn-chip { margin: 0; }
.rn-detail .rn-date { margin-bottom: 4px; }
.rn-res-top { display: flex; align-items: baseline; gap: 8px; }
.rn-res-km { font-size: clamp(56px, 12vw, 84px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; color: var(--rn-ink); font-variant-numeric: tabular-nums; }
.rn-res-top span { font-size: 20px; font-weight: 650; color: var(--rn-sub); }
.rn-res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 16px 0; }
.rn-res-grid > div { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--rn-line); border-radius: 14px; background: #14141a; box-shadow: none; }
.rn-res-grid b { font-size: 20px; font-weight: 750; color: var(--rn-ink); font-variant-numeric: tabular-nums; }
.rn-res-grid span { font-size: 12px; color: var(--rn-sub); }
.rn-kvs { display: grid; }
.rn-kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rn-line); font-size: 14.5px; }
.rn-kv:first-child { border-top: 0; }
.rn-kv span { flex: none; color: var(--rn-sub); }
.rn-kv b { font-weight: 600; color: var(--rn-ink); text-align: right; overflow-wrap: anywhere; }
.rn-memo { margin: 14px 0 0; padding: 14px 16px; border-radius: 12px; background: #14141a; font-size: 15px; line-height: 1.7; color: #d6d6de; white-space: pre-wrap; overflow-wrap: anywhere; }
.rn-map { display: block; width: 100%; height: auto; }
.rn-map-bg { fill: #14141a; }
.rn-map-grid { stroke: #25252c; stroke-width: 1; }
.rn-map-halo { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.rn-map-line { fill: none; stroke: var(--accent); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.rn-map-start { fill: #17a673; stroke: #fff; stroke-width: 2.5; }
.rn-map-end { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.rn-map-km { fill: #fff; stroke: var(--accent); stroke-width: 1.5; }
.rn-map-kmt { fill: #fff; font-size: 10px; font-weight: 700; text-anchor: middle; }
.rn-map-scale { stroke: #9c9ca8; stroke-width: 2; stroke-linecap: round; }
.rn-map-scalet { fill: #9c9ca8; font-size: 11px; text-anchor: end; }
.rn-splits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rn-splits li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 56px; align-items: center; gap: 10px; font-size: 13.5px; color: var(--rn-sub); }
.rn-splits b { color: var(--rn-ink); font-variant-numeric: tabular-nums; text-align: right; }

/* 통계 */
.rn-seg { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 14px; border: 1px solid var(--rn-line); border-radius: 12px; background: #0d0d10; }
.rn-seg button { min-width: 64px; min-height: 36px; border: 0; border-radius: 9px; background: none; color: var(--rn-sub); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rn-seg button[aria-selected="true"] { background: var(--rn-ink); color: #fff; }
.rn-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.rn-grid-line { stroke: #25252c; stroke-width: 1; }
.rn-axis { fill: #9c9ca8; font-size: 11px; font-variant-numeric: tabular-nums; }
.rn-axis.end { text-anchor: end; }
.rn-axis.mid { text-anchor: middle; }
.rn-val { fill: #fff; font-size: 12px; font-weight: 700; text-anchor: middle; }
.rn-hit { fill: transparent; }
.rn-bar-mark { fill: #3f4f6e; transition: fill .15s; }
.rn-col.now .rn-bar-mark { fill: var(--accent); }
.rn-col { cursor: pointer; outline: none; }
.rn-col:hover .rn-bar-mark, .rn-col:focus-visible .rn-bar-mark { fill: #fff; }
.rn-col:hover .rn-hit, .rn-col:focus-visible .rn-hit { fill: rgba(255, 255, 255, .06); }
.rn-line-mark { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rn-dot-mark { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.rn-col:hover .rn-dot-mark, .rn-col:focus-visible .rn-dot-mark { fill: #fff; }
.rn-tip { margin: 8px 0 0; min-height: 20px; font-size: 13px; color: var(--rn-sub); font-variant-numeric: tabular-nums; }

/* 캐릭터 · 아이템 · 배지 */
.rn-char .rn-bob { animation: rn-breathe 3.2s ease-in-out infinite; }
.rn-char.run .rn-bob { animation: rn-bounce .42s ease-in-out infinite; }
.rn-char.run .rn-arm.l { animation: rn-swing-a .84s ease-in-out infinite; }
.rn-char.run .rn-arm.r { animation: rn-swing-b .84s ease-in-out infinite; }
.rn-char.run .rn-leg.l { animation: rn-swing-b .84s ease-in-out infinite; }
.rn-char.run .rn-leg.r { animation: rn-swing-a .84s ease-in-out infinite; }
.rn-char.cheer .rn-bob { animation: rn-hop .7s ease-in-out infinite; }
.rn-zz { fill: #9c9ca8; font-size: 15px; font-weight: 700; }
@keyframes rn-breathe { 50% { transform: translateY(-2px); } }
@keyframes rn-bounce { 50% { transform: translateY(-5px); } }
@keyframes rn-hop { 50% { transform: translateY(-9px); } }
@keyframes rn-swing-a { 0%, 100% { transform: rotate(26deg); } 50% { transform: rotate(-26deg); } }
@keyframes rn-swing-b { 0%, 100% { transform: rotate(-26deg); } 50% { transform: rotate(26deg); } }
@media (prefers-reduced-motion: reduce) { .rn-char * { animation: none !important; } }
.rn-me { display: flex; align-items: center; gap: 24px; background: linear-gradient(120deg, #0d0d10 0%, #15171e 100%); }
.rn-stage { flex: none; width: 220px; }
.rn-me-info { flex: 1; min-width: 0; }
.rn-say { margin: 0 0 16px; font-size: 19px; font-weight: 700; line-height: 1.4; color: var(--rn-ink, #fff); word-break: keep-all; }
.rn-slot + .rn-slot { margin-top: 18px; }
.rn-slot h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #9c9ca8; }
.rn-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rn-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; column-gap: 10px; padding: 10px 12px; border: 1px solid var(--rn-line); border-radius: 12px; background: #0d0d10; color: var(--rn-ink); font: inherit; text-align: left; cursor: pointer; }
.rn-item b { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-item span { grid-column: 2; font-size: 11.5px; color: var(--rn-sub); }
.rn-swatch { grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #3a3a44; }
.rn-swatch.none { background: repeating-linear-gradient(45deg, #0d0d10 0 4px, #2a2a33 4px 8px); }
.rn-item:hover:not(:disabled) { border-color: var(--rn-blue); }
.rn-item.on { border-color: var(--rn-blue); background: var(--rn-soft); }
.rn-item.on span { color: var(--rn-blue); font-weight: 650; }
.rn-item.locked { opacity: .5; cursor: default; }
.rn-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.rn-badge { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border: 1px solid var(--rn-line, rgba(16, 32, 58, .12)); border-radius: 14px; background: #14141a; color: #6f6f7b; text-align: center; }
.rn-badge svg { width: 30px; height: 30px; padding: 9px; box-sizing: content-box; border-radius: 50%; background: #14141a; }
.rn-badge b { font-size: 13.5px; font-weight: 650; }
.rn-badge span { font-size: 11.5px; }
.rn-badge.on { background: #0d0d10; color: #fff; border-color: #3a3a44; }
.rn-badge.on svg { background: var(--accent); color: #fff; }
.rn-badge.on span { color: #9c9ca8; }

/* 시작 창 */
.rn-start-form .rn-pick { margin: 14px 0; }
.rn-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.rn-pick button { flex: 1 1 auto; min-height: 46px; padding: 0 16px; border: 1px solid #55555f; border-radius: 12px; background: none; color: inherit; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.rn-pick button[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.rn-with p { margin: 6px 0 8px; font-size: 13.5px; }
.rn-with input[type="text"] { margin-top: 10px; }
.rn-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.rn-checks label { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 14.5px; font-weight: 500; color: inherit; }
.rn-checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

/* 달리는 중: 화면 전체. 위 시간, 가운데 거리·페이스, 아래 큰 버튼 */
body.rn-lock { overflow: hidden; }
.rn-live { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; padding: calc(18px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #000 0%, #07080c 55%, #10131c 100%); color: #fff; overflow-y: auto; overscroll-behavior: contain; }
.rn-live-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; }
.rn-kind { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-gps { flex: none; display: inline-flex; align-items: center; gap: 6px; opacity: .92; }
.rn-gps::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ffd166; }
.rn-gps.on::before { background: #5ff0a8; }
.rn-gps.denied::before, .rn-gps.off::before { background: #ff8f8f; }
.rn-live-time { display: grid; justify-items: center; gap: 2px; margin-top: 5vh; }
.rn-time { font-size: clamp(64px, 20vw, 120px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.rn-live span { font-size: 13px; opacity: .8; }
.rn-live-main { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4vh; text-align: center; }
.rn-live-main div, .rn-live-sub div { display: grid; gap: 4px; }
.rn-live-main b { font-size: clamp(40px, 12vw, 68px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.rn-live-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 3vh; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .18); border-bottom: 1px solid rgba(255, 255, 255, .18); text-align: center; }
.rn-live-sub b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rn-live-mid { flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 110px; padding: 10px 0; }
.rn-live-char { width: 104px; flex: none; }
.rn-live-char.big { width: 190px; margin: 4vh auto 0; }
.rn-live .rn-say { margin: 0; max-width: 220px; padding: 12px 16px; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, .95); color: #fff; font-size: 15px; }
.rn-controls { display: grid; gap: 10px; width: 100%; max-width: 460px; margin: 0 auto; }
.rn-big { min-height: 72px; border: 0; border-radius: 22px; font: inherit; font-size: 21px; font-weight: 750; cursor: pointer; }
.rn-big.pause { background: #0d0d10; color: #000; }
.rn-big.go { background: #5ff0a8; color: #06351f; }
.rn-big.stop { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.rn-big.ghost { min-height: 52px; background: none; color: rgba(255, 255, 255, .8); font-size: 15px; font-weight: 600; text-decoration: underline; }
.rn-big:active { transform: scale(.985); }
.rn-big:disabled { opacity: .6; }
/* 결과 · 보상 */
.rn-live.result, .rn-live.reward { background: linear-gradient(180deg, #000 0%, #0b0b0e 60%); color: #fff; }
.rn-result { width: 100%; max-width: 520px; margin: 0 auto; }
.rn-res-title { margin: 6px 0 2px; font-size: 14px; font-weight: 700; color: var(--accent); text-align: left; }
.rn-live.reward .rn-res-title { text-align: center; font-size: 15px; color: #9c9ca8; }
.rn-live.result .rn-res-grid > div { border-color: rgba(16, 32, 58, .12); background: #0d0d10; }
.rn-live.result .rn-res-grid span, .rn-live.result .rn-res-top span { opacity: 1; color: #9c9ca8; }
.rn-field { display: grid; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 650; color: #9c9ca8; }
body.co .rn-live .rn-field input, body.co .rn-live .rn-field textarea, body.co .rn-live .rn-field select { margin: 0; padding: 12px 14px; border: 1px solid #3a3a44; border-radius: 12px; background: #0d0d10; color: #fff; font-size: 17px; color-scheme: dark; }
.rn-live .rn-field textarea { min-height: 84px; }
.rn-q { margin: 20px 0 8px; font-size: 16px; font-weight: 700; }
.rn-live.result .rn-pick button { flex: 1 1 28%; min-height: 48px; padding: 0 8px; border-color: #3a3a44; background: #0d0d10; color: #d6d6de; font-size: 14px; }
.rn-live.result .rn-pick button[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.rn-live.result .rn-checks { margin-top: 2px; font-weight: 500; color: #d6d6de; }
.rn-live.result .rn-checks label { color: #d6d6de; }
.rn-error { min-height: 20px; margin: 10px 0 0; font-size: 14px; color: #ff8080; }
.rn-live.result .rn-controls { margin-top: 8px; }
.rn-live.result .rn-big.go, .rn-live.reward .rn-big.go { background: var(--accent); color: #fff; }
.rn-live.result .rn-big.ghost { color: #9c9ca8; }
.rn-live.reward { align-items: center; text-align: center; }
.rn-live.reward .rn-say { margin: 14px auto 6px; background: none; padding: 0; font-size: 26px; font-weight: 800; }
.rn-exp { margin: 14px 0 0; font-size: 34px; font-weight: 800; color: var(--accent); }
.rn-levelup { margin: 4px 0 0; font-size: 17px; font-weight: 750; color: #49c283; }
.rn-live.reward .rn-level { width: 100%; max-width: 420px; margin: 18px auto 0; text-align: left; }
.rn-live.reward .rn-level span, .rn-live.reward .rn-level em { opacity: 1; }
.rn-new { width: 100%; max-width: 460px; margin: 22px auto 0; }
.rn-new p { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #9c9ca8; }
.rn-live .rn-badge span { opacity: 1; font-size: 11.5px; }
.rn-shoe { list-style: none; margin: 18px 0 0; padding: 0; font-size: 14px; color: #9c9ca8; font-variant-numeric: tabular-nums; }
.rn-live.reward .rn-controls { margin-top: auto; padding-top: 24px; }

@media (max-width: 760px) {
  body.co .pagewrap.rn { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .rn-head h2 { font-size: 26px; }
  .rn-nav { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; justify-content: space-between; padding: 6px 8px; border-radius: 22px; box-shadow: 0 14px 40px rgba(20, 40, 90, .22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .rn-nav button { flex: 1; flex-direction: column; gap: 2px; min-height: 52px; padding: 0; font-size: 11.5px; border-radius: 14px; }
  .rn-nav svg { width: 22px; height: 22px; }
  .rn-nav button[aria-current="page"] { background: none; color: var(--rn-blue); }
  .rn-nav button.plus { flex: none; width: 60px; height: 60px; min-height: 60px; margin-top: -22px; border-radius: 50%; box-shadow: none; }
  .rn-nav button.plus svg { width: 26px; height: 26px; }
  .rn-nav button.plus span { display: none; }
  .rn-hero { flex-direction: column-reverse; align-items: stretch; padding: 20px; text-align: center; }
  .rn-hero-char { width: 150px; margin: 0 auto; }
  .rn-start { width: 100%; min-height: 68px; font-size: 20px; }
  .rn-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rn-stat b { font-size: 22px; }
  .rn-grid { grid-template-columns: minmax(0, 1fr); }
  .rn-card { padding: 16px; }
  .rn-run { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) minmax(0, .9fr) auto; gap: 8px; font-size: 11.5px; }
  .rn-run b { font-size: 13.5px; }
  .rn-run-km b { font-size: 18px; }
  .rn-me { flex-direction: column; align-items: stretch; text-align: center; }
  .rn-stage { width: 190px; margin: 0 auto; }
  .rn-me .rn-level { text-align: left; }
  .rn-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rn-badges { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .rn-kv { font-size: 14px; }
}

/* 다른 게시판과 같은 어두운 바탕에 맞춘 마무리: 주 버튼은 흰 바탕에 검은 글씨 */
.rn-start, .rn-nav button.plus, .rn-nav button[aria-current="page"], .rn-seg button[aria-selected="true"], .rn-pick button[aria-checked="true"], .rn-live.result .rn-pick button[aria-checked="true"], .rn-big.pause, .rn-live.result .rn-big.go, .rn-live.reward .rn-big.go { background: #fff; border-color: #fff; color: #000; }
.rn-start:hover, .rn-nav button.plus:hover { background: #e6e6ea; color: #000; box-shadow: none; }
.rn-card, .rn-hero, .rn-stat, .rn-resume { box-shadow: none; border-radius: 10px; }
.rn-card, .rn-stat { background: rgba(10, 10, 14, .6); }
.rn-run:hover { background: #111118; }
.rn-live .rn-say { background: #1b1b21; color: #fff; }
.rn-live.reward .rn-say { background: none; }
.rn-live.result .rn-pick button { background: none; }
.rn-badge.on svg { color: #000; }
.rn-map-halo { stroke: #000; }
.rn-map-km { fill: #000; }
.rn-dot-mark { stroke: #000; }
.rn-bar-mark { fill: #3f4f6e; }
@media (max-width: 760px) { .rn-nav button[aria-current="page"] { background: none; color: var(--accent); } .rn-nav { box-shadow: none; border-color: #3a3a44; } }

/* 아바타 · 마이룸 · 마켓 */
.rn-avatar { display: block; width: 100%; height: auto; }
.rn-char .rn-arm, .rn-char .rn-leg, .rn-char .rn-head { transform-box: fill-box; }
.rn-char .rn-arm { transform-origin: 50% 6%; }
.rn-char.run .rn-leg.l, .rn-char.run .rn-leg.r { transform-origin: 50% 3%; }
.rn-char.sleepy .rn-head { transform-origin: 50% 100%; transform: rotate(-5deg); }
.rn-char.still * { animation: none !important; }
.rn-hero-char { width: 190px; }
.rn-live-char { width: 92px; }
.rn-live-char.big { width: 170px; }
.rn-stage { width: 180px; }
.rn-room { display: block; width: 100%; height: auto; border-radius: 10px; }
.rn-myroom, .rn-shop-top { display: flex; align-items: center; gap: 24px; }
.rn-room-frame { flex: 1 1 56%; min-width: 0; max-width: 640px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rn-room-frame.sm { flex: 0 1 380px; }
.rn-myroom .rn-me-info, .rn-shop-top .rn-me-info { flex: 1 1 40%; }
.rn-shop-top h3 { margin: 0 0 12px; font-size: 20px; }
.rn-wallet { margin-top: 18px; }
.rn-purse { display: inline-flex; align-items: baseline; gap: 8px; }
.rn-purse b { font-size: 30px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rn-purse span:last-child { font-size: 13.5px; color: var(--muted); }
.rn-coin { align-self: center; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e2b23c; color: #5a3d00; font-size: 14px; font-weight: 800; font-style: normal; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.rn-coin.sm { width: 16px; height: 16px; font-size: 10px; margin-right: 4px; vertical-align: -2px; }
.rn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rn-seg { flex-wrap: wrap; }
.rn-seg button { padding: 0 14px; }
.rn-items { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.rn-item { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 6px; padding: 10px 8px 12px; text-align: center; }
.rn-item b { max-width: 100%; }
.rn-item span { grid-column: auto; }
.rn-item span.price { color: #e2b23c; font-weight: 650; font-variant-numeric: tabular-nums; }
.rn-thumb { width: 86px; height: 86px; border-radius: 10px; background: #1b1b22; }
.rn-thumb.room { background: #e9edf3; }
.rn-item.locked { opacity: .55; cursor: pointer; }
.rn-exp span { font-size: 15px; font-weight: 600; color: var(--muted); }
@media (max-width: 760px) {
  .rn-myroom, .rn-shop-top { flex-direction: column; align-items: stretch; }
  .rn-room-frame, .rn-room-frame.sm { flex: none; max-width: none; }
  .rn-shop-top .rn-stage { width: 150px; margin: 0 auto; }
  .rn-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rn-thumb { width: 72px; height: 72px; }
  .rn-hero-char { width: 130px; }
  .rn-seg { display: flex; width: 100%; }
  .rn-seg button { flex: 1 1 auto; min-width: 0; padding: 0 8px; font-size: 13px; }
}

/* 얼굴 꾸미기 · 펫 · 미션 */
.rn-look { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.rn-look-side { position: sticky; top: 100px; display: grid; gap: 12px; justify-items: center; }
.rn-stage.look { width: 220px; }
.rn-stage.pet { width: 200px; }
.rn-row.center { justify-content: center; }
.rn-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.rn-chips button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 20px; background: none; color: #c9c9d2; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rn-chips button[aria-pressed="true"] { background: #fff; border-color: #fff; color: #000; }
.rn-opt + .rn-opt { margin-top: 18px; }
.rn-opt h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.rn-opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rn-opt-row button { min-width: 72px; min-height: 46px; padding: 0 14px; border: 1px solid #3a3a44; border-radius: 10px; background: none; color: #fff; font: inherit; font-size: 14.5px; cursor: pointer; }
.rn-opt-row button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.rn-opt-row button.swatch { min-width: 46px; width: 46px; padding: 0; border-radius: 50%; border-width: 2px; }
.rn-opt-row button.swatch[aria-pressed="true"] { outline: 2px solid #fff; outline-offset: 2px; }
.rn-kvs.sm { margin-top: 14px; }
.rn-kvs.sm .rn-kv { padding: 7px 0; font-size: 13.5px; }
.rn-inv { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.rn-inv input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.rn-item { position: relative; }
.rn-rare { position: absolute; top: 6px; left: 6px; padding: 1px 7px; border-radius: 999px; background: #1f2a44; color: #8fb4ff; font-size: 10.5px; font-style: normal; font-weight: 700; }
.rn-rare.sp { background: #3a2c0c; color: #f2c94c; }
.rn-items.pets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rn-p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: var(--muted); }
body.co .pagewrap.rn input[type="text"] { flex: 1 1 180px; width: auto; margin: 0; padding: 9px 12px; font-size: 15px; }
.rn-mission { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.rn-mission-mark { grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid #3a3a44; border-radius: 50%; font-size: 17px; font-weight: 700; }
.rn-mission.done .rn-mission-mark { border-color: #49c283; background: #49c283; color: #04210f; }
.rn-mission b { font-size: 16px; font-weight: 650; }
.rn-mission span:last-child { font-size: 12.5px; color: var(--muted); }
.rn-life { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.rn-life button { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rn-life button:hover { border-color: #55555f; }
.rn-life span { font-size: 12px; color: var(--muted); }
.rn-life b { font-size: 14.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-next { margin: 4px 0 0; font-size: 14px; color: #9c9ca8; }
.rn-live-char { display: flex; align-items: flex-end; }
.rn-live-pet { width: 46px; flex: none; margin-left: -6px; }
.rn-pet .rn-pet-bob { animation: rn-breathe 2.6s ease-in-out infinite; }
.rn-pet.run .rn-pet-bob { animation: rn-bounce .36s ease-in-out infinite; }
.rn-pet.still .rn-pet-bob, .rn-pet.sleepy .rn-pet-bob { animation: none; }
.rn-pet .rn-tail { transform-box: fill-box; transform-origin: 0% 100%; animation: rn-wag .8s ease-in-out infinite; }
.rn-pet.still .rn-tail, .rn-pet.sleepy .rn-tail { animation: none; }
@keyframes rn-wag { 50% { transform: rotate(14deg); } }
@media (max-width: 760px) {
  .rn-look { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rn-look-side { position: static; }
  .rn-stage.look { width: 170px; }
  .rn-items.pets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rn-opt-row button { min-width: 64px; }
  .rn-seg button { min-height: 40px; }
}

/* 알에서 자라는 캐릭터 */
.rn-tama.run .rn-foot.l { animation: rn-step .42s ease-in-out infinite; }
.rn-tama.run .rn-foot.r { animation: rn-step .42s ease-in-out infinite .21s; }
.rn-tama.run .rn-hand { transform-box: fill-box; transform-origin: 50% 50%; animation: rn-flap .42s ease-in-out infinite; }
.rn-tama.egg .rn-bob { transform-box: fill-box; transform-origin: 50% 100%; animation: rn-wobble 2.4s ease-in-out infinite; }
.rn-tama.still .rn-bob, .rn-tama.still .rn-foot, .rn-tama.still .rn-hand { animation: none !important; }
@keyframes rn-step { 50% { transform: translateY(-9px); } }
@keyframes rn-flap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes rn-wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.rn-stage.tama { width: 220px; }
.rn-hero-char { width: 200px; }
.rn-live-char { width: 120px; }
.rn-live-char.big { width: 190px; }
/* 자라는 모습: 여섯 단계가 한 줄로 이어진다 (좁은 화면에서는 세 칸씩 두 줄) */
.rn-evo-now { margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; background: var(--rn-soft); }
.rn-evo-now-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rn-evo-now-top b { font-size: 16.5px; font-weight: 750; letter-spacing: -.01em; }
.rn-evo-now-top span { font-size: 12.5px; color: var(--rn-sub); white-space: nowrap; }
.rn-evo-now .rn-bar { background: rgba(255, 255, 255, .1); }
.rn-evo { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.rn-evo-step { display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; padding: 12px 6px 12px; border: 1px solid var(--rn-line); border-radius: 16px; background: #101014; text-align: center; }
.rn-evo-pic { position: relative; display: grid; place-items: end center; width: 100%; max-width: 96px; aspect-ratio: 1; margin-bottom: 6px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #26262f, #17171c 72%); }
.rn-evo-pic svg { display: block; width: 84%; height: auto; margin-bottom: 4%; }
.rn-evo-pic i { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid #101014; line-height: 1; border-radius: 50%; background: #49c283; color: #04210f; font-size: 11px; font-style: normal; font-weight: 800; }
.rn-evo-step b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.rn-evo-lv { font-size: 12px; font-weight: 650; color: var(--rn-sub); font-variant-numeric: tabular-nums; }
.rn-evo-km { margin-top: 4px; padding: 3px 9px; border-radius: 999px; background: #1b1b22; font-size: 11.5px; font-weight: 600; color: var(--rn-sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rn-evo-step:not(.done):not(.cur) .rn-evo-pic svg { filter: grayscale(.85) brightness(.6); }
.rn-evo-step:not(.done):not(.cur) b { color: var(--rn-sub); }
.rn-evo-step.done .rn-evo-km { color: #6fd6a0; background: rgba(73, 194, 131, .12); }
.rn-evo-step.cur { border-color: var(--rn-blue); background: var(--rn-soft); box-shadow: 0 0 0 1px var(--rn-blue) inset; }
.rn-evo-step.cur .rn-evo-pic { background: radial-gradient(circle at 50% 38%, #3a3320, #1c1a14 72%); }
.rn-evo-step.cur .rn-evo-lv { color: var(--rn-blue); }
.rn-evo-step.cur .rn-evo-km { background: var(--rn-blue); color: #1a1200; font-weight: 750; }
/* 레벨별 달려야 하는 거리 */
.rn-lvs { display: grid; border: 1px solid var(--rn-line); border-radius: 14px; overflow: hidden; }
.rn-lv { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.rn-lv + .rn-lv { border-top: 1px solid var(--rn-line); }
.rn-lv > span { min-width: 0; text-align: right; color: #d6d6de; white-space: nowrap; }
.rn-lv > span:first-child { display: flex; align-items: center; gap: 7px; text-align: left; }
.rn-lv b { font-size: 14.5px; font-weight: 700; color: var(--rn-ink); }
.rn-lv i { padding: 1px 7px; border-radius: 999px; background: #1f2a44; color: #8fb4ff; font-size: 10.5px; font-style: normal; font-weight: 700; white-space: nowrap; }
.rn-lv.head { min-height: 34px; background: #121217; font-size: 11.5px; font-weight: 650; }
.rn-lv.head > span { color: var(--rn-sub); }
.rn-lv-left { font-size: 12.5px; color: var(--rn-sub) !important; }
.rn-lv.done > span, .rn-lv.done b { color: #7d7d89; }
.rn-lv.done .rn-lv-left { color: #49c283 !important; font-weight: 650; }
.rn-lv.next { background: var(--rn-soft); }
.rn-lv.next b, .rn-lv.next .rn-lv-left { color: var(--rn-blue) !important; font-weight: 750; }
.rn-items.tamas .rn-item span.price { display: inline-flex; align-items: center; font-size: 11.5px; }
.rn-items.tamas { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.rn-thumb.big { width: 110px; height: 110px; background: #1b1b22; }
@media (max-width: 760px) {
  .rn-evo { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .rn-lv { padding: 6px 10px; gap: 6px; font-size: 13px; }
  .rn-lv i { padding: 1px 5px; }
  .rn-items.tamas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rn-stage.tama { width: 170px; margin: 0 auto; }
  .rn-hero-char { width: 150px; }
}

/* 시작 창의 GPS 정확도 · 결과 화면의 끊김 안내 */
.rn-sig { display: flex; align-items: center; gap: 8px; margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; line-height: 1.5; }
.rn-sig:empty { display: none; }
.rn-sig::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ffd166; }
.rn-sig.good::before { background: #5ff0a8; }
.rn-sig.bad::before { background: #ff8f8f; }
.rn-sig.good { border-color: #2f9e62; }
.rn-weight { display: block; margin: 12px 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.rn-weight input { display: block; width: 100%; margin-top: 6px; }
.rn-warn { margin: 10px 0 0; padding: 10px 12px; border: 1px solid #b98a1f; border-radius: 8px; background: rgba(185, 138, 31, .1); font-size: 13.5px; line-height: 1.6; color: #f0dcae; }

/* 처음 화면 · 전체 순위 · 같이 뛰기 */
.rn-welcome { display: grid; gap: 16px; }
.rn-welcome h3 { font-size: 20px; }
.rn-welcome .rn-stage { margin: 0 auto; }
.rn-welcome .rn-row.center { align-items: stretch; }
.rn-welcome .kb-go { height: auto; min-height: 46px; }
.rn-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.rn-col-side { position: sticky; top: 100px; display: grid; gap: 0; }
.rn-col-main .rn-grid { grid-template-columns: minmax(0, 1fr); }
body.co .pagewrap.rn { max-width: 1240px; }
.rn-rank { list-style: none; margin: 0; padding: 0; }
.rn-rank li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.rn-rank li:first-child { border-top: 0; padding-top: 0; }
.rn-rank li.me { margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; border-top-color: transparent; background: var(--accent-soft); }
.rn-rank-n { flex: none; width: 22px; text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.rn-rank-n.top { color: #f2c94c; }
.rn-rank-pic { flex: none; width: 40px; height: 44px; }
.rn-rank-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rn-rank-who b { font-size: 14.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-rank-who b i { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #000; font-size: 10.5px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.rn-rank-who span { font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.rn-duel { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.rn-duel:first-of-type { border-top: 0; padding-top: 0; }
.rn-duel b { font-size: 14.5px; font-weight: 650; overflow-wrap: anywhere; }
.rn-duel > span { font-size: 12.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.rn-duel .rn-row { margin-top: 6px; }
.rn-duel.new b { color: var(--accent); }
.rn-duel.past { opacity: .8; }
.rn-duel.won > span { color: #49c283; }
.rn-duel.lost > span { color: #ff8f8f; }
body.co .pagewrap.rn .btn.primary { background: #fff; border-color: #fff; color: #000; }
@media (max-width: 1000px) {
  .rn-cols { grid-template-columns: minmax(0, 1fr); }
  .rn-col-side { position: static; }
}

/* 주머니 잠금: 까만 화면, 길게 눌러야 풀린다 */
.rn-pocket-btn { margin: 12px auto 0; padding: 10px 16px; border: 0; background: none; color: rgba(255, 255, 255, .75); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rn-pocket { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; background: #000; color: #3a3a44; text-align: center; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.rn-pocket[hidden] { display: none; }
.rn-pocket-time { font-size: 44px; font-weight: 700; color: #55555f; font-variant-numeric: tabular-nums; }
.rn-pocket-km { font-size: 16px; color: #4a4a55; font-variant-numeric: tabular-nums; }
.rn-pocket p { max-width: 300px; margin: 18px 0 0; font-size: 12.5px; line-height: 1.6; color: #33333b; }
.rn-pocket-open { position: relative; margin-top: 26px; min-height: 56px; padding: 0 26px; border: 1px solid #33333b; border-radius: 28px; background: none; color: #6f6f7b; font: inherit; font-size: 15px; overflow: hidden; touch-action: none; }
.rn-pocket-open::before { content: ""; position: absolute; inset: 0; background: #2a2a33; transform: scaleX(0); transform-origin: 0 50%; }
.rn-pocket-open.holding::before { transform: scaleX(1); transition: transform 1.2s linear; }
.rn-pocket-open { z-index: 0; }
/* 아이폰 웹: 화면이 꺼지면 측정이 멈춘다는 안내 (run.js rnIOS) */
.rn-ios-note { margin: 10px auto 0; max-width: 420px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 196, 122, .12); color: #ffd9a6; font-size: 13px; line-height: 1.55; text-align: center; word-break: keep-all; }
.rn-pocket .rn-pocket-ios { margin-top: 8px; color: #4a4a55; }
/* 웹(아이폰 등) 시작 창: 화면이 켜져 있어야 기록된다는 안내 (run.js rnAskStart) */
.rn-web-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 170, 60, .15); color: inherit; font-size: 13px; line-height: 1.55; word-break: keep-all; }
.rn-pocket-open::before { z-index: -1; }

/* 오늘 화면을 단순하게: 숫자는 한 줄 세 칸, 미션은 한 줄, 카드는 세로로 */
.rn-stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rn-line); border-radius: 10px; background: rgba(10, 10, 14, .6); }
.rn-stats.three .rn-stat { border: 0; border-radius: 0; background: none; padding: 14px 8px; text-align: center; justify-items: center; }
.rn-stats.three .rn-stat + .rn-stat { border-left: 1px solid var(--rn-line); }
.rn-mission.line { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--rn-line); border-radius: 10px; background: rgba(10, 10, 14, .6); }
.rn-mission.line > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.rn-mission.line > div span { font-size: 12px; color: var(--rn-sub); }
.rn-mission.line > div b { font-size: 15px; font-weight: 650; }
.rn-mission.line em { flex: none; font-style: normal; font-size: 13px; font-weight: 700; color: var(--rn-sub); }
.rn-log-top.manage { margin-top: 30px; }
/* 아래 메뉴 가운데 시작 단추: 위로 튀어나오지 않게 줄 안에 넣고, 세모를 동그라미 한가운데에 */
.rn-nav button.plus { gap: 0; padding: 0; }
.rn-nav button.plus svg { display: block; margin: 0; transform: translateX(1px); }
@media (max-width: 760px) {
  .rn-nav { align-items: center; }
  .rn-nav button.plus { display: grid; place-items: center; width: 52px; height: 52px; min-height: 52px; margin: 0 4px; }
  .rn-nav button.plus svg { width: 24px; height: 24px; }
  .rn-stats.three .rn-stat b { font-size: 20px; }
}
@media (max-width: 760px) { .rn-hero { padding-top: 4px; } }

/* ---------------------------------------------------------------- 러닝 대결: 출발선 */
.rn-live.race { overflow-y: auto; }
.rn-race-head { display: grid; justify-items: center; gap: 4px; margin-top: 4vh; text-align: center; }
.rn-race-head b { font-size: clamp(30px, 8vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.rn-race-line { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; margin: 5vh 0 0; padding: 18px 8px 16px; border-bottom: 3px dashed rgba(255, 255, 255, .55); }
.rn-race-line::after { content: "START"; position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); font-size: 11px; font-weight: 700; letter-spacing: .3em; opacity: .6; }
.rn-race-spot { display: grid; justify-items: center; gap: 4px; min-width: 0; text-align: center; }
.rn-race-spot b { max-width: 100%; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-race-spot em { padding: 2px 10px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .7); }
.rn-race-spot em.on { border-color: #5ff0a8; background: #5ff0a8; color: #06351f; font-weight: 700; }
.rn-race-spot em:empty { visibility: hidden; }
.rn-race-pic { width: min(34vw, 150px); height: auto; }
.rn-race-ghost { display: block; width: min(26vw, 110px); aspect-ratio: 1; margin: 12px 0 10px; border: 2px dashed rgba(255, 255, 255, .3); border-radius: 50%; animation: rn-race-wait 1.6s ease-in-out infinite; }
@keyframes rn-race-wait { 50% { opacity: .35; } }
.rn-race-vs { align-self: center; font-size: 15px; font-weight: 800; letter-spacing: .1em; opacity: .5; }
.rn-race-count { position: absolute; inset: -40px 0 0; display: grid; place-items: center; font-size: clamp(110px, 38vw, 200px); font-weight: 800; line-height: 1; text-shadow: 0 6px 40px rgba(0, 0, 0, .9); pointer-events: none; }
.rn-race-count[hidden] { display: none; }
.rn-race-msg { margin: 44px 0 0; text-align: center; font-size: 16px; font-weight: 600; line-height: 1.5; word-break: keep-all; }
.rn-race-tip { margin: 10px 0 0; text-align: center; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .6); word-break: keep-all; }
.rn-live.race .rn-controls { margin-top: auto; padding-top: 20px; }
.rn-big:disabled { opacity: .4; }
/* 달리는 중: 출발선(왼쪽)에서 도착선(오른쪽)까지 */
.rn-race-run { margin-top: 3vh; }
.rn-race-track { position: relative; height: 46px; margin: 0 22px 0 18px; border-bottom: 3px solid rgba(255, 255, 255, .3); }
.rn-race-flag { position: absolute; right: -4px; bottom: 0; width: 3px; height: 40px; background: #fff; }
.rn-race-flag::after { content: ""; position: absolute; left: 3px; top: 0; width: 16px; height: 12px; background: repeating-conic-gradient(#fff 0 25%, #000 0 50%) 0 0 / 8px 6px; }
.rn-race-dot { position: absolute; bottom: 0; left: 0; width: 34px; height: 38px; margin-left: -17px; opacity: .65; transition: left 1s linear; }
.rn-race-dot.me { opacity: 1; z-index: 1; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .7)); }
.rn-race-dot svg { width: 100%; height: 100%; }
.rn-live .rn-race-now { margin: 8px 0 0; text-align: center; font-size: 14px; font-weight: 650; }
.rn-race-run.won .rn-race-now, .rn-race-result.won { color: #5ff0a8; }
.rn-race-run.lost .rn-race-now, .rn-race-result.lost { color: #ff9c9c; }
.rn-race-result { margin: 0 0 14px; padding: 12px 14px; border: 1px solid currentColor; border-radius: 10px; text-align: center; font-size: 16px; font-weight: 700; word-break: keep-all; }
.rn-duel.race b { color: var(--accent); }

/* 앱의 오늘 화면: 러닝 대결 · 순위로 가는 줄 */
.rn-vs-line { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--rn-line); border-radius: 10px; background: rgba(10, 10, 14, .6); color: var(--rn-ink); font: inherit; text-align: left; cursor: pointer; }
.rn-vs-line.hot { border-color: var(--accent); }
.rn-vs-line > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.rn-vs-line > div span { font-size: 12px; color: var(--rn-sub); }
.rn-vs-line.hot > div span { color: var(--accent); font-weight: 650; }
.rn-vs-line > div b { font-size: 15px; font-weight: 650; }
.rn-vs-line em { flex: none; font-style: normal; font-size: 13px; font-weight: 700; color: var(--rn-sub); }

/* 달리는 화면의 셋째 줄: 케이던스 · 고도 상승 */
.rn-live-sub.more { margin-top: 0; border-top: 0; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }

/* 달리는 동안의 캐릭터: 땀방울 · 반짝이 · 알도 통통 뛴다 */
.rn-sweat { animation: rn-drip 1.2s linear infinite; }
.rn-sweat.b { animation-delay: .4s; }
.rn-sweat.c { animation-delay: .8s; }
.rn-char.hot .rn-sweat { animation-duration: .6s; }
.rn-spark { transform-box: fill-box; transform-origin: 50% 50%; animation: rn-twinkle 1s ease-in-out infinite; }
.rn-spark.b { animation-delay: .3s; }
.rn-spark.c { animation-delay: .6s; }
.rn-tama.egg.run .rn-bob { animation: rn-egg-run .42s ease-in-out infinite; }
.rn-char.joy .rn-bob { animation-duration: .34s; }
@keyframes rn-drip { 0% { opacity: 0; transform: translateY(-5px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(24px); } }
@keyframes rn-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@keyframes rn-egg-run { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-9px) rotate(5deg); } }
.rn-char.still .rn-sweat, .rn-char.still .rn-spark { display: none; }
/* 페이스 알림 */
.rn-live-sub div.over b { color: #ff8f8f; animation: rn-over .5s steps(2) infinite; }
@keyframes rn-over { 50% { opacity: .45; } }
.rn-start-form .rn-limit { margin-top: 4px; }
.rn-start-form .rn-auto { margin: 14px 0 12px; line-height: 1.4; }
.rn-live .rn-live-char { width: 150px; }
.rn-hr-note { font-size: 12.5px; opacity: .7; }

/* ---------------------------------------------------------------- 달리는 화면의 풍경: 도로 위를 달리고, 나무와 가로등이 지나간다 (낮 · 노을 · 밤) */
.rn-scene { --spd: 1; position: relative; flex: 1; min-width: 0; min-height: 150px; max-height: 230px; container-type: size; overflow: hidden; border-radius: 14px; isolation: isolate;
  --sky1: #6db7ff; --sky2: #cfe9ff; --hill: #8fc5a3; --town: #a9cdd9; --leaf: #3f9d5a; --leaf2: #2f8349; --trunk: #7a5a3c; --pole: #5b6470; --bulb: #dfe6ee; --road: #4a4d55; --line: rgba(255, 255, 255, .85); --grass: #5aa864; }
.rn-scene.dusk { --sky1: #4a4a8f; --sky2: #ff9f6b; --hill: #6d5a86; --town: #584a78; --leaf: #2f6b52; --leaf2: #24543f; --trunk: #4d3a2c; --pole: #3a3f4a; --bulb: #ffe9a8; --road: #3a3b44; --grass: #3f6b50; }
.rn-scene.night { --sky1: #060a1c; --sky2: #1a2550; --hill: #141d3d; --town: #1d2a52; --leaf: #17432f; --leaf2: #113424; --trunk: #2a2019; --pole: #2b303b; --bulb: #fff3b0; --road: #1d1e25; --line: rgba(255, 255, 255, .6); --grass: #173524; }
.rn-sc-sky { position: absolute; inset: 0; z-index: -3; background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 78%); }
.rn-scene.night .rn-sc-sky { background: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 31% 34%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 47% 12%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 58% 30%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 22% 46%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 68% 44%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 90% 40%, #fff 50%, transparent 52%), linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 80%); }
.rn-sc-orb { position: absolute; top: 14%; right: 12%; width: 34px; height: 34px; border-radius: 50%; background: #fff4b8; box-shadow: 0 0 26px 8px rgba(255, 240, 170, .65); }
.rn-scene.dusk .rn-sc-orb { top: 46%; right: 20%; background: #ffd08a; box-shadow: 0 0 40px 14px rgba(255, 170, 100, .6); }
.rn-scene.night .rn-sc-orb { width: 28px; height: 28px; background: #f4f1dc; box-shadow: 0 0 18px 4px rgba(240, 240, 220, .35), inset -7px -3px 0 0 #d6d2b8; }
.rn-sc-cloud { position: absolute; left: 100%; width: 74px; height: 20px; border-radius: 20px; background: rgba(255, 255, 255, .85); box-shadow: 22px -9px 0 2px rgba(255, 255, 255, .85); animation: rn-sc-cloud calc(46s / var(--spd)) linear infinite; }
.rn-sc-cloud.a { top: 16%; }
.rn-sc-cloud.b { top: 34%; transform: scale(.7); animation-duration: calc(70s / var(--spd)); animation-delay: -30s; opacity: .7; }
.rn-scene.night .rn-sc-cloud { display: none; }
.rn-scene.dusk .rn-sc-cloud { background: rgba(255, 200, 170, .6); box-shadow: 22px -9px 0 2px rgba(255, 200, 170, .6); }
.rn-sc-far, .rn-sc-side { position: absolute; left: 0; display: flex; width: max-content; will-change: transform; }
.rn-sc-far { bottom: 44px; z-index: -2; animation: rn-sc-far calc(30s / var(--spd)) linear infinite; }
.rn-sc-far .rn-sc-tile { width: 480px; height: 80px; flex: none; }
.rn-sc-side { bottom: 40px; z-index: -1; animation: rn-sc-side calc(5.6s / var(--spd)) linear infinite; }
.rn-sc-side .rn-sc-tile { width: 640px; height: 120px; flex: none; overflow: visible; }
.rn-sc-hill { fill: var(--hill); }
.rn-sc-town { fill: var(--town); }
.rn-sc-trunk { fill: var(--trunk); }
.rn-sc-leaf { fill: var(--leaf); }
.rn-sc-leaf.b { fill: var(--leaf2); }
.rn-sc-pole { stroke: var(--pole); stroke-width: 4; stroke-linecap: round; }
.rn-sc-bulb { fill: var(--bulb); }
.rn-sc-glow { fill: #ffe9a0; opacity: 0; }
.rn-scene.dusk .rn-sc-glow { opacity: .16; }
.rn-scene.night .rn-sc-glow { opacity: .3; }
.rn-scene.night .rn-sc-bulb { filter: drop-shadow(0 0 6px #ffe9a0); }
.rn-scene.night .rn-sc-town { fill: #24345f; }
.rn-sc-road { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; z-index: -1; background: var(--road); border-top: 5px solid var(--grass); }
.rn-sc-road::after { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 3px; background: repeating-linear-gradient(90deg, var(--line) 0 30px, transparent 30px 70px); animation: rn-sc-road calc(.62s / var(--spd)) linear infinite; }
.rn-scene.paused .rn-sc-far, .rn-scene.paused .rn-sc-side, .rn-scene.paused .rn-sc-cloud, .rn-scene.paused .rn-sc-road::after { animation-play-state: paused; }
@keyframes rn-sc-side { to { transform: translateX(-640px); } }
@keyframes rn-sc-far { to { transform: translateX(-480px); } }
@keyframes rn-sc-road { to { background-position-x: -70px; } }
@keyframes rn-sc-cloud { to { transform: translateX(calc(-100vw - 140px)); } }
/* 캐릭터는 도로 위에, 말풍선은 풍경 위쪽에 */
/* 풍경은 남는 높이만큼만 차지한다 (150~230px). 높이를 못 박아 두면 작은 화면에서 아래 단추를 덮는다 */
.rn-live-mid { flex: 1 0 auto; align-items: stretch; min-height: 0; padding: 12px 0; }
.rn-controls { flex: none; }
.rn-controls.pair { grid-template-columns: 1fr 1fr; }
@media (max-height: 820px) { .rn-live-time { margin-top: 2vh; } .rn-time { font-size: clamp(56px, 18vw, 120px); } .rn-live-main { margin-top: 2vh; } .rn-live-sub { margin-top: 1.6vh; padding: 10px 0; } .rn-live-mid { padding: 10px 0; } .rn-big { min-height: 64px; } }
.rn-live .rn-scene .rn-live-char { position: absolute; left: 16%; bottom: 8px; width: clamp(96px, 15vh, 128px); width: clamp(84px, 58cqh, 128px); }
.rn-scene .rn-say { position: absolute; top: 10px; left: 10px; right: auto; max-width: calc(100% - 20px); word-break: keep-all; margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13.5px; line-height: 1.4; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rn-scene .rn-shadow { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .rn-scene * , .rn-sc-road::after { animation: none !important; } }
/* 길 이쪽 편: 캐릭터 앞을 지나가는 나무와 덤불 */
.rn-sc-near { position: absolute; left: 0; bottom: -8px; z-index: 2; display: flex; width: max-content; will-change: transform; animation: rn-sc-near calc(3.6s / var(--spd)) linear infinite; pointer-events: none; }
.rn-sc-near .rn-sc-tile { width: 720px; height: 110px; flex: none; overflow: visible; filter: brightness(.82); }
.rn-scene.paused .rn-sc-near { animation-play-state: paused; }
.rn-scene .rn-say { z-index: 3; }
@keyframes rn-sc-near { to { transform: translateX(-720px); } }

/* ---------------------------------------------------------------- 돌보기: 기분 · 능력치 · 딸기 */
.rn-care { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--rn-line); border-radius: 10px; background: rgba(10, 10, 14, .6); }
.rn-care-mood { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; color: var(--rn-sub); }
.rn-care-mood b { color: var(--rn-ink); font-variant-numeric: tabular-nums; }
.rn-care-mood.low span { color: #ff9c9c; }
.rn-care-stats { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--rn-sub); }
.rn-care-stats b { color: var(--rn-ink); font-size: 15px; font-weight: 700; }
.rn-feed { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: center; gap: 1px; min-width: 76px; padding: 8px 10px; border: 1px solid #3a3a44; border-radius: 10px; background: none; color: var(--rn-ink); font: inherit; cursor: pointer; }
.rn-feed b { font-size: 17px; font-weight: 750; line-height: 1.1; }
.rn-feed span { font-size: 11.5px; color: var(--rn-sub); }
.rn-feed:active { transform: scale(.96); }
.rn-berry { width: 26px; height: 26px; }
.rn-grow { display: flex; justify-content: center; gap: 10px; margin: 12px 0 4px; }
.rn-grow div { display: grid; justify-items: center; gap: 2px; min-width: 66px; padding: 10px 8px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; }
.rn-grow span { font-size: 12px; opacity: .75; }
.rn-grow b { font-size: 19px; font-weight: 750; color: #5ff0a8; }
.rn-grow .berry { grid-auto-flow: row; }
.rn-grow .berry b { color: #ff8fa0; }
/* 달리는 화면: 지나온 길 */
.rn-view { position: absolute; bottom: 10px; right: 10px; z-index: 5; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rn-trail-box { position: absolute; inset: 0; z-index: 4; background: #0b1020; }
.rn-trail-box[hidden] { display: none; }
.rn-trail { width: 100%; height: 100%; }
.rn-trail-line { fill: none; stroke: #5fd0ff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.rn-trail-start { fill: #5ff0a8; stroke: #fff; stroke-width: 1.5; }
.rn-trail-me { fill: #ff5a6e; stroke: #fff; stroke-width: 2; }
.rn-trail-halo { fill: rgba(255, 90, 110, .3); animation: rn-race-wait 1.4s ease-in-out infinite; }
.rn-trail-empty { fill: rgba(255, 255, 255, .6); font-size: 12px; text-anchor: middle; }
/* 인증샷 카드 */
.rn-live.card { z-index: 420; align-items: center; background: rgba(0, 0, 0, .94); }
.rn-card-img { flex: 1; min-height: 0; max-width: 100%; object-fit: contain; border-radius: 14px; margin: 6px 0 14px; }
.rn-live.card .rn-controls { width: 100%; }
@media (max-width: 760px) { .rn-care { grid-template-columns: minmax(0, 1fr) auto; } }
/* ---------------------------------------------------------------- 살아 있는 캐릭터: 표정 · 몸짓 · 돌아다니기 */
.rn-tama .rn-bob { transform-box: fill-box; transform-origin: 50% 100%; }
.rn-hero-char { cursor: default; }
.rn-play { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.rn-play-pic { display: block; }
.rn-hero-char, .rn-stage.tama { padding-top: 34px; }
.rn-hero-lv { white-space: nowrap; padding: 4px 8px; border: 0; background: none; color: var(--rn-ink); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.rn-bubble { position: absolute; left: 50%; bottom: 92%; z-index: 2; width: max-content; max-width: 210px; padding: 7px 12px; border-radius: 14px; background: #fff; color: #1b1b21; font-size: 13px; font-weight: 650; line-height: 1.35; word-break: keep-all; opacity: 0; transform: translate(-50%, 6px) scale(.9); transition: opacity .2s, transform .2s; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); }
.rn-bubble::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.rn-bubble.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.rn-room-frame.live { position: relative; cursor: pointer; }
.rn-bubble.room { bottom: auto; top: 42%; left: 47%; transition: opacity .2s, transform .2s, left 1.2s linear; }
.rn-room-me { will-change: transform; }
/* 표정에 딸린 것들 */
.rn-mark { fill: #ffd84d; stroke: #2b2330; stroke-width: 3px; paint-order: stroke; font-size: 22px; font-weight: 800; }
.rn-mark.big { font-size: 34px; animation: rn-pop .5s ease-out both; transform-box: fill-box; transform-origin: 50% 100%; }
.rn-mark.big.sway { animation: rn-pop .5s ease-out both, rn-sway 1.6s ease-in-out .5s infinite; }
.rn-mark.sm { font-size: 17px; fill: #fff; }
.rn-mark.note { fill: #ffe27a; animation: rn-note 1.8s ease-in-out infinite; }
.rn-mark.note.b { fill: #9fe8cc; animation-delay: .9s; }
.rn-eye { transform-box: fill-box; transform-origin: 50% 50%; animation: rn-blink 4.4s infinite; }
.rn-beat, .rn-swirl, .rn-chew, .rn-orbit, .rn-heart, .rn-nom, .rn-sob, .rn-puff { transform-box: fill-box; transform-origin: 50% 50%; }
.rn-beat { animation: rn-beat .7s ease-in-out infinite; }
.rn-swirl { animation: rn-turn 1.1s linear infinite; }
.rn-chew { animation: rn-chew .34s ease-in-out infinite; }
.rn-heart { animation: rn-rise 2s ease-out infinite; }
.rn-heart.b { animation-delay: .6s; }
.rn-heart.c { animation-delay: 1.2s; }
.rn-orbit { animation: rn-orbit 1.4s ease-in-out infinite; }
.rn-orbit.b { animation-delay: -.47s; }
.rn-orbit.c { animation-delay: -.93s; }
.rn-nom { animation: rn-nom 1.4s ease-in-out infinite; }
.rn-tear { stroke-dasharray: 9 9; animation: rn-tear .5s linear infinite; }
.rn-tear.b { animation-delay: -.25s; }
.rn-sob { animation: rn-sob-l .8s ease-out infinite; }
.rn-sob.b { animation-name: rn-sob-r; animation-delay: .4s; }
.rn-puff { animation: rn-puff 1.6s ease-out infinite; }
.rn-puff.b { animation-delay: .5s; }
@keyframes rn-blink { 0%, 93%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(.08); } }
@keyframes rn-beat { 50% { transform: scale(1.22); } }
@keyframes rn-turn { to { transform: rotate(360deg); } }
@keyframes rn-chew { 50% { transform: scaleY(.45); } }
@keyframes rn-rise { 0% { opacity: 0; transform: translateY(8px) scale(.5); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px) scale(1.15); } }
@keyframes rn-orbit { 0% { transform: translateX(-30px) scale(.7); opacity: .5; } 50% { transform: translateX(30px) scale(1.1); opacity: 1; } 100% { transform: translateX(-30px) scale(.7); opacity: .5; } }
@keyframes rn-nom { 0%, 20% { transform: translate(8px, 0) scale(1); opacity: 1; } 60% { transform: translate(-16px, 2px) scale(.8); opacity: 1; } 80%, 100% { transform: translate(-22px, 4px) scale(.1); opacity: 0; } }
@keyframes rn-tear { to { stroke-dashoffset: -18; } }
@keyframes rn-sob-l { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(-16px, 14px); } }
@keyframes rn-sob-r { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(16px, 14px); } }
@keyframes rn-puff { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 30% { opacity: .85; } 100% { opacity: 0; transform: translate(18px, 6px) scale(1.3); } }
@keyframes rn-pop { 0% { opacity: 0; transform: scale(.2); } 70% { opacity: 1; transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes rn-note { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px) rotate(12deg); } }
@keyframes rn-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
/* 몸짓 */
.rn-char.act-jump .rn-bob { animation: rn-a-jump .8s cubic-bezier(.3, 0, .4, 1) infinite; }
.rn-char.act-hop .rn-bob { animation: rn-a-jump .5s cubic-bezier(.3, 0, .4, 1) infinite; }
.rn-char.act-pop .rn-bob { animation: rn-a-pop .5s ease-out both; }
.rn-char.act-flip .rn-bob { transform-origin: 50% 50%; animation: rn-a-flip 1.8s cubic-bezier(.4, 0, .3, 1) both; }
.rn-char.act-roll .rn-bob { transform-origin: 50% 50%; animation: rn-turn 1.1s linear infinite; }
.rn-char.act-spin .rn-bob { animation: rn-a-spin 1.1s ease-in-out infinite; }
.rn-char.act-dance .rn-bob { animation: rn-a-dance .8s ease-in-out infinite; }
.rn-char.act-sway .rn-bob { animation: rn-a-sway 1.8s ease-in-out infinite; }
.rn-char.act-wiggle .rn-bob { animation: rn-a-wiggle .3s ease-in-out infinite; }
.rn-char.act-laugh .rn-bob { animation: rn-a-laugh .24s ease-in-out infinite; }
.rn-char.act-stretch .rn-bob { animation: rn-a-stretch 2.6s ease-in-out infinite; }
.rn-char.act-droop .rn-bob { animation: rn-a-droop 3.2s ease-in-out infinite; }
.rn-char.act-tremble .rn-bob { animation: rn-a-tremble .14s linear infinite; }
.rn-char.act-float .rn-bob { animation: rn-a-float 1.6s ease-in-out infinite; }
.rn-char.act-puff .rn-bob { animation: rn-a-puff .5s ease-in-out infinite; }
.rn-char.act-tilt .rn-bob { animation: rn-a-tilt 2.8s ease-in-out both; }
.rn-char.act-nod .rn-bob { animation: rn-a-nod 3.2s ease-in infinite; }
.rn-char.act-munch .rn-bob { animation: rn-a-munch .34s ease-in-out infinite; }
.rn-char.act-walk .rn-bob { animation: rn-a-walk .5s ease-in-out infinite; }
.rn-char.act-walk.slow .rn-bob { animation-duration: .9s; }
.rn-char.act-walk .rn-foot.l, .rn-char.act-hop .rn-foot.l { animation: rn-step .5s ease-in-out infinite; }
.rn-char.act-walk .rn-foot.r, .rn-char.act-hop .rn-foot.r { animation: rn-step .5s ease-in-out infinite .25s; }
.rn-char.act-walk.slow .rn-foot { animation-duration: .9s; }
.rn-char.act-look .rn-eye { animation: rn-a-look 2.8s ease-in-out both; }
.rn-char.act-wave .rn-hand.r, .rn-char.act-dance .rn-hand, .rn-char.act-jump .rn-hand { transform-box: fill-box; transform-origin: 50% 50%; }
.rn-char.act-wave .rn-hand.r { animation: rn-a-wave .4s ease-in-out infinite; }
.rn-char.act-wave .rn-bob { animation: rn-a-sway 1.2s ease-in-out infinite; }
.rn-char.act-dance .rn-hand.l, .rn-char.act-jump .rn-hand.l { animation: rn-flap .4s ease-in-out infinite; }
.rn-char.act-dance .rn-hand.r, .rn-char.act-jump .rn-hand.r { animation: rn-flap .4s ease-in-out infinite .2s; }
@keyframes rn-a-jump { 0%, 100% { transform: translateY(0) scale(1.08, .92); } 50% { transform: translateY(-30px) scale(.95, 1.06); } }
@keyframes rn-a-pop { 0% { transform: translateY(0) scale(1.1, .9); } 40% { transform: translateY(-22px) scale(.94, 1.08); } 100% { transform: translateY(0) scale(1); } }
@keyframes rn-a-flip { 0% { transform: translateY(0) rotate(0); } 15% { transform: translateY(6px) rotate(0); } 55% { transform: translateY(-44px) rotate(-200deg); } 85% { transform: translateY(0) rotate(-360deg); } 100% { transform: translateY(0) rotate(-360deg); } }
@keyframes rn-a-spin { 0%, 100% { transform: scaleX(1); } 25% { transform: scaleX(.08) translateY(-4px); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(.08) translateY(-4px); } }
@keyframes rn-a-dance { 0%, 100% { transform: rotate(-10deg) translateY(0); } 25% { transform: rotate(0) translateY(-9px); } 50% { transform: rotate(10deg) translateY(0); } 75% { transform: rotate(0) translateY(-9px); } }
@keyframes rn-a-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes rn-a-wiggle { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-3px); } }
@keyframes rn-a-laugh { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(-3deg); } }
@keyframes rn-a-stretch { 0%, 100% { transform: scale(1); } 35%, 60% { transform: scale(.9, 1.15); } 80% { transform: scale(1.07, .95); } }
@keyframes rn-a-droop { 0%, 100% { transform: scale(1.04, .94) rotate(-2deg); } 50% { transform: scale(1.05, .92) rotate(2deg); } }
@keyframes rn-a-tremble { 0%, 100% { transform: translateX(-1.6px) scale(1.02, .97); } 50% { transform: translateX(1.6px) scale(1.02, .97); } }
@keyframes rn-a-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes rn-a-puff { 0%, 100% { transform: scale(1) translateX(-1.5px); } 50% { transform: scale(1.07) translateX(1.5px); } }
@keyframes rn-a-tilt { 0%, 100% { transform: rotate(0); } 18%, 82% { transform: rotate(9deg); } }
@keyframes rn-a-nod { 0%, 20% { transform: rotate(0); } 72% { transform: rotate(10deg) translateY(2px); } 80% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
@keyframes rn-a-munch { 50% { transform: scale(1.03, .96); } }
@keyframes rn-a-walk { 0%, 100% { transform: rotate(-4deg) translateY(0); } 25%, 75% { transform: rotate(0) translateY(-4px); } 50% { transform: rotate(4deg) translateY(0); } }
@keyframes rn-a-wave { 0%, 100% { transform: translate(8px, -36px) rotate(-30deg); } 50% { transform: translate(8px, -36px) rotate(25deg); } }
@keyframes rn-a-look { 0%, 100% { transform: translateX(0); } 20%, 40% { transform: translateX(-4px); } 60%, 80% { transform: translateX(4px); } }
.rn-char.still .rn-mark, .rn-char.still .rn-heart, .rn-char.still .rn-orbit, .rn-char.still .rn-sob, .rn-char.still .rn-puff { display: none; }

.rn-invite { margin: 0 0 8px; font-size: 30px; font-weight: 700; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.rn-avatar { overflow: visible; }

/* ---------------------------------------------------------------- 목표 판: 고리 · 요일 점 */
.rn-ring { position: relative; flex: none; }
.rn-ring svg { display: block; width: 100%; height: 100%; }
.rn-ring-bg { fill: none; stroke: var(--rn-soft); }
.rn-ring-fg { fill: none; stroke-linecap: round; }
.rn-ring-a, .rn-ring-b { stop-color: var(--rn-blue); }
.rn-ring-in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0; text-align: center; }
.rn-goalboard { display: grid; gap: 14px; }
.rn-goalboard span { font-size: 12.5px; font-weight: 650; color: var(--rn-sub); }
.rn-goalboard em { font-style: normal; font-size: 12.5px; line-height: 1.5; color: var(--rn-sub); word-break: keep-all; }
.rn-goalboard .done em { color: #49c283; font-weight: 700; }
.rn-goal-main { display: flex; align-items: center; gap: 18px; }
.rn-goal-main .rn-ring-in b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--rn-ink); font-variant-numeric: tabular-nums; }
.rn-goal-text { min-width: 0; display: grid; gap: 4px; }
.rn-goal-text p, .rn-goal-head p { margin: 0; font-size: 15px; font-weight: 600; color: var(--rn-sub); font-variant-numeric: tabular-nums; }
.rn-goal-text p b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--rn-ink); }
.rn-goal-week, .rn-goal-time { padding: 14px 16px; border: 1px solid var(--rn-line); border-radius: 16px; }
.rn-goal-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.rn-goal-head p b { font-size: 22px; font-weight: 800; color: var(--rn-ink); }
.rn-goal-head em { margin-left: auto; }
.rn-goal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.rn-goal-days li { display: grid; justify-items: center; gap: 5px; }
.rn-goal-days i { display: grid; place-items: center; width: 100%; max-width: 38px; aspect-ratio: 1; border-radius: 50%; background: var(--rn-soft); color: #000; font-size: 15px; font-style: normal; font-weight: 800; }
.rn-goal-days li.on i { background: var(--rn-blue); }
.rn-goal-days li.today i { box-shadow: 0 0 0 2px var(--rn-blue); }
.rn-goal-days li.today span { color: var(--rn-blue); }
.rn-goal-days li.later i { opacity: .55; }
.rn-goal-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rn-goal-time { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; }
.rn-goal-time > div:last-child { min-width: 0; display: grid; gap: 1px; }
.rn-goal-time .rn-ring-in b { font-size: 15px; font-weight: 800; color: var(--rn-ink); }
.rn-goal-time > div > b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--rn-ink); font-variant-numeric: tabular-nums; }
.rn-goal-time span, .rn-goal-time em { font-size: 11.5px; }
.rn-goal-time { gap: 10px; }
@media (max-width: 380px) { .rn-goal-times { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- 랭킹: 시상대 + 목록 */
.rn-vs-cup { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--rn-soft); font-size: 20px; }
.rn-rank-seg { display: flex; width: 100%; }
.rn-rank-seg button { flex: 1; }
.rn-rank-mine { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 12px 14px; border-radius: 16px; background: var(--rn-soft); }
.rn-rank-mine > div { display: grid; gap: 0; flex: none; }
.rn-rank-mine span { font-size: 11.5px; font-weight: 650; color: var(--rn-sub); }
.rn-rank-mine b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--rn-blue); font-variant-numeric: tabular-nums; }
.rn-rank-mine em { flex: 1; min-width: 0; font-style: normal; font-size: 13px; font-weight: 600; line-height: 1.45; text-align: right; color: var(--rn-ink); word-break: keep-all; font-variant-numeric: tabular-nums; }
.rn-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; margin: 6px 0 16px; padding: 0; list-style: none; }
.rn-podium li { position: relative; display: grid; justify-items: center; gap: 2px; min-width: 0; text-align: center; }
.rn-podium-pic { width: 64px; height: 72px; }
.rn-podium .p1 .rn-podium-pic { width: 84px; height: 94px; }
.rn-podium li > b { max-width: 100%; font-size: 14px; font-weight: 700; color: var(--rn-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-podium li > span { font-size: 12.5px; font-weight: 700; color: var(--rn-blue); font-variant-numeric: tabular-nums; }
.rn-podium li.me > b::after { content: " (나)"; font-weight: 600; color: var(--rn-sub); }
.rn-crown { font-style: normal; font-size: 22px; line-height: 1; margin-bottom: -6px; }
.rn-podium-step { width: 100%; margin-top: 8px; padding-top: 6px; border-radius: 12px 12px 0 0; font-size: 20px; font-weight: 800; color: #000; }
.rn-podium .p1 .rn-podium-step { height: 76px; background: linear-gradient(180deg, #ffd84d, #f2b01e); }
.rn-podium .p2 .rn-podium-step { height: 54px; background: linear-gradient(180deg, #dfe5ee, #b9c3d2); }
.rn-podium .p3 .rn-podium-step { height: 40px; background: linear-gradient(180deg, #f0b98a, #d38a52); }
.rn-podium li.none .rn-podium-step { opacity: .35; }
.rn-rank.board li { padding: 9px 0; }
.rn-rank-km { flex: none; font-size: 14.5px; font-weight: 750; color: var(--rn-ink); font-variant-numeric: tabular-nums; }
.rn-rank.board .btn.small { flex: none; min-height: 30px; padding: 3px 10px; }
.rn-rank.board li.me { padding: 9px 10px; }

/* ---------------------------------------------------------------- 런찌 가입자 관리 */
.rn-member-sort { flex-wrap: wrap; margin: 0; }
.rn-member-sort button { padding: 0 12px; min-height: 32px; font-size: 13px; }
.rn-member-find { margin: 0 0 12px; }
.rn-members { display: grid; }
.rn-member { display: grid; grid-template-columns: minmax(200px, 1.6fr) repeat(6, minmax(64px, .6fr)) 232px; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--rn-line); }
.rn-member:first-child { border-top: 0; }
.rn-member.off { opacity: .6; }
.rn-member > div { display: grid; gap: 2px; min-width: 0; }
.rn-member > div > span { font-size: 11.5px; color: var(--rn-sub); }
.rn-member > div > b { font-size: 14px; font-weight: 650; color: var(--rn-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rn-member-who { grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 10px; }
.rn-member-who > div { display: grid; gap: 2px; min-width: 0; }
.rn-member-who b { font-size: 15px; font-weight: 700; color: var(--rn-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-member-who span { font-size: 12px; color: var(--rn-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-member-who i { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--rn-soft); color: var(--rn-blue); font-size: 10.5px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.rn-member-who i.bad { background: rgba(255, 128, 128, .16); color: #ff8f8f; }
.rn-member-acts { display: flex !important; flex-wrap: wrap; justify-content: flex-end; gap: 6px !important; }
.rn-member-acts .btn.small { min-height: 30px; padding: 3px 10px; }
@media (max-width: 900px) {
  .rn-member { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 14px 2px; }
  .rn-member-who, .rn-member-acts { grid-column: 1 / -1; }
  .rn-member-acts { justify-content: flex-start; }
}

/* ---------------------------------------------------------------- 달리는 화면: 위의 숫자는 조금 줄이고, 아래 그림(풍경 · 지나온 길)은 남는 자리를 모두 쓴다 */
.rn-live-time { margin-top: 2.2vh; }
.rn-time { font-size: clamp(54px, 17vw, 104px); }
.rn-live-main { margin-top: 2.2vh; }
.rn-live-main b { font-size: clamp(36px, 10.6vw, 60px); }
.rn-live-sub { margin-top: 1.8vh; padding: 10px 0; }
.rn-live-sub b { font-size: 22px; }
.rn-live-mid { flex: 1 1 auto; min-height: 190px; padding: 12px 0 14px; }
.rn-scene { min-height: 190px; max-height: none; border-radius: 18px; }
.rn-live .rn-scene .rn-live-char { width: clamp(84px, 46cqh, 150px); }
@media (max-height: 820px) { .rn-live-time { margin-top: 1.4vh; } .rn-time { font-size: clamp(50px, 15.5vw, 104px); } .rn-live-main { margin-top: 1.4vh; } .rn-live-sub { margin-top: 1.2vh; padding: 8px 0; } .rn-live-mid { min-height: 170px; padding: 10px 0; } .rn-scene { min-height: 170px; } }
/* 10분마다 시간 글자에 불이 붙는다: --f 가 클수록 불길이 크고 빨리 일렁인다 */
.rn-time.fire { --f: 1; color: #fff6d8; text-shadow: 0 0 calc(3px * var(--f)) #ffe27a, 0 calc(-2px * var(--f)) calc(6px * var(--f)) #ffb020, 0 calc(-5px * var(--f)) calc(11px * var(--f)) #ff6a1a, 0 calc(-9px * var(--f)) calc(18px * var(--f)) rgba(255, 45, 0, .85); animation: rn-fire calc(1s - var(--f) * .09s) ease-in-out infinite alternate; }
.rn-time.f2 { --f: 1.6; } .rn-time.f3 { --f: 2.2; } .rn-time.f4 { --f: 2.9; } .rn-time.f5 { --f: 3.6; }
.rn-time.f6 { --f: 4.6; color: #fffbe8; }
@keyframes rn-fire {
  0% { text-shadow: 0 0 calc(3px * var(--f)) #ffe27a, calc(-1px * var(--f)) calc(-2px * var(--f)) calc(6px * var(--f)) #ffb020, calc(1px * var(--f)) calc(-5px * var(--f)) calc(11px * var(--f)) #ff6a1a, 0 calc(-8px * var(--f)) calc(17px * var(--f)) rgba(255, 45, 0, .8); }
  50% { text-shadow: 0 0 calc(4px * var(--f)) #fff0a8, calc(1px * var(--f)) calc(-3px * var(--f)) calc(7px * var(--f)) #ffc23a, calc(-1px * var(--f)) calc(-7px * var(--f)) calc(13px * var(--f)) #ff7a1a, calc(1px * var(--f)) calc(-12px * var(--f)) calc(22px * var(--f)) rgba(255, 60, 0, .9); }
  100% { text-shadow: 0 0 calc(3px * var(--f)) #ffd54a, calc(1.5px * var(--f)) calc(-2px * var(--f)) calc(6px * var(--f)) #ffa010, calc(-1.5px * var(--f)) calc(-6px * var(--f)) calc(12px * var(--f)) #ff5a1a, calc(-1px * var(--f)) calc(-10px * var(--f)) calc(19px * var(--f)) rgba(255, 30, 0, .85); }
}
.rn-live span.rn-fire-note { opacity: 1; font-weight: 700; color: #ffb648; }
@media (prefers-reduced-motion: reduce) { .rn-time.fire { animation: none; } }
.rn-live.result .rn-pick button { padding: 0 4px; font-size: 13px; letter-spacing: -.03em; white-space: nowrap; }

/* ---------------------------------------------------------------- 함께 뛰기: 풍경 속에서 옆에 같이 달리는 친구들 */
.rn-live-char > .rn-avatar { flex: none; }
.rn-mate { flex: none; width: 86%; height: auto; margin-left: -18%; overflow: visible; }
.rn-live .rn-scene .rn-live-char.group { left: 5%; width: clamp(80px, 40cqh, 132px); }
.rn-live .rn-scene .rn-live-char.g2 { width: clamp(76px, 37cqh, 122px); }
.rn-live .rn-scene .rn-live-char.g3 { left: 3%; width: clamp(72px, 34cqh, 112px); }
.rn-live .rn-scene .rn-live-char.g4, .rn-live .rn-scene .rn-live-char.g5 { left: 2%; width: clamp(68px, 31cqh, 100px); }
.rn-live-char.g3 .rn-mate { width: 78%; margin-left: -22%; }
.rn-live-char.g4 .rn-mate { width: 72%; margin-left: -26%; }
.rn-live-char.g5 .rn-mate { width: 66%; margin-left: -28%; }
.rn-mate-hearts { position: absolute; left: 78%; bottom: 74%; width: 34%; height: 46%; pointer-events: none; }
.rn-mate-hearts i { position: absolute; left: 50%; bottom: 0; font-style: normal; font-size: 20px; line-height: 1; color: #ff5d8f; text-shadow: 0 0 6px rgba(255, 93, 143, .6); opacity: 0; animation: rn-mate-heart 2.4s ease-out infinite; }
.rn-mate-hearts i:nth-child(2) { left: 10%; font-size: 15px; animation-delay: .8s; }
.rn-mate-hearts i:nth-child(3) { left: 82%; font-size: 13px; animation-delay: 1.6s; }
@keyframes rn-mate-heart { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.5); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -46px) scale(1.2); } }
.rn-scene.paused .rn-mate-hearts i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .rn-mate-hearts i { animation: none; opacity: .9; } }

/* ---------------------------------------------------------------- 출발 전 5 · 4 · 3 · 2 · 1 */
.rn-live.count { z-index: 410; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.rn-count-top { margin: 0; font-size: 18px; font-weight: 700; opacity: .8; }
.rn-count-n { font-size: clamp(170px, 56vw, 300px); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #d8ff3d; text-shadow: 0 0 60px rgba(200, 255, 40, .45); animation: rn-count .9s cubic-bezier(.2, .8, .2, 1) both; }
.rn-count-n.tick { animation: rn-count .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rn-count { 0% { transform: scale(1.5); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { transform: scale(.86); opacity: .55; } }
.rn-count-gps { margin: 6px 0 24px; font-size: 14.5px; font-weight: 600; color: #ffd166; }
.rn-count-gps.ok { color: #5ff0a8; }
.rn-live.count .rn-big.ghost { width: auto; padding: 0 24px; }
/* ---------------------------------------------------------------- 모두의 코스: 시작 창에서 고르는 길 */
.rn-course-pick:empty { display: none; }
.rn-course-pick { margin: 14px 0 6px; }
.rn-course-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.rn-course-title span { font-weight: 500; color: var(--muted); }
.rn-courses { display: flex; gap: 10px; margin: 0 -22px; padding: 2px 22px 10px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rn-courses::-webkit-scrollbar { display: none; }
.rn-course { flex: none; display: grid; justify-items: start; align-content: start; gap: 3px; width: 148px; padding: 10px; border: 1.5px solid var(--line); border-radius: 16px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; scroll-snap-align: start; }
.rn-course.on { border-color: var(--accent); background: var(--accent-soft); }
.rn-course b { max-width: 100%; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-course span { font-size: 11.5px; color: var(--muted); }
.rn-course .rn-course-km { font-size: 13px; font-weight: 700; color: inherit; font-variant-numeric: tabular-nums; }
.rn-course-map, .rn-course-free { width: 100%; aspect-ratio: 1.25; margin-bottom: 4px; border-radius: 11px; background: rgba(127, 140, 160, .16); }
.rn-course-free { display: grid; place-items: center; font-size: 34px !important; font-weight: 300; color: var(--muted); }
.rn-course-line { fill: none; stroke: #ff8a1f; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.rn-course-a { fill: #12a36d; stroke: #fff; stroke-width: 2; }
.rn-course-b { fill: #2f7cf6; stroke: #fff; stroke-width: 2; }
.rn-stars { display: inline-flex; align-items: center; gap: 1px; }
.rn-stars i { font-style: normal; font-size: 13px; line-height: 1; color: rgba(127, 140, 160, .4); }
.rn-stars i.on { color: #ffb400; }
.rn-stars em { margin-left: 5px; font-style: normal; font-size: 11px; font-weight: 650; color: var(--muted); }
.rn-course-pick .rn-note .rn-link { margin-left: 8px; }
.rn-trail-guide { fill: none; stroke: #ff8a1f; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 9; opacity: .9; }
.rn-live.result .rn-share-course { margin: 16px 0 0; align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
.rn-live.result .rn-share-course input { flex: none; margin-top: 2px; }

/* 결과 화면: 기록 저장 옆의 인증샷 단추 · 기록 목록의 달린 곳 */
.rn-save-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; }
.rn-big.shot { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); color: #fff; }
.rn-run-date i { display: block; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-shot-btn { min-width: 220px; min-height: 48px; }

/* 위치 꺼짐 알림 · 숫자를 다 세고 GPS 를 기다릴 때 */
.rn-geo-off .btn { flex: none; }
.rn-count-n.wait { font-size: clamp(90px, 28vw, 150px); animation: rn-race-wait 1.2s ease-in-out infinite; }
.rn-sig .rn-link { color: inherit; font-weight: 700; }

/* ---------------------------------------------------------------- 러닝 대결 방 */
.rn-room-make { width: 100%; min-height: 54px; margin: 0 0 14px; font-size: 17px; }
.rn-rooms { list-style: none; margin: 0; padding: 0; }
.rn-rooms li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--rn-line); }
.rn-rooms li:first-child { border-top: 0; padding-top: 0; }
.rn-rooms li > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rn-rooms b { font-size: 15px; font-weight: 700; color: var(--rn-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-rooms span { font-size: 12.5px; color: var(--rn-sub); }
.rn-rooms .btn { flex: none; }
.rn-room-lock { margin-right: 5px; font-style: normal; font-size: 13px; }
.rn-room-stage { position: relative; margin: 4vh 0 0; }
.rn-room-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; padding: 14px 4px 18px; border-bottom: 3px dashed rgba(255, 255, 255, .55); }
.rn-room-grid .rn-race-pic { width: min(20vw, 96px); }
.rn-room-grid .rn-race-ghost { width: min(16vw, 72px); }
.rn-room-grid .rn-race-spot b { font-size: 13px; }
.rn-room-grid .rn-race-spot.away { opacity: .45; }
.rn-live.room .rn-race-count { inset: 0; }
.rn-race-dot.out { opacity: .25; filter: grayscale(1); }

/* 랭킹: 거리 아래의 평균 페이스 */
.rn-rank-km { display: grid; justify-items: end; gap: 1px; }
.rn-rank-km b { font-size: 14.5px; font-weight: 750; color: var(--rn-ink); font-variant-numeric: tabular-nums; }
.rn-rank-km i { font-style: normal; font-size: 11.5px; color: var(--rn-sub); font-variant-numeric: tabular-nums; }
.rn-podium li > em { font-style: normal; font-size: 11.5px; color: var(--rn-sub); font-variant-numeric: tabular-nums; }
/* 방 대결: 풍경 속에서 함께 달리는 경쟁자들 (거리 차이만큼 앞뒤로 움직인다) */
.rn-rivals { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.rn-live .rn-scene .rn-live-char.versus { left: 38%; width: clamp(76px, 36cqh, 118px); z-index: 1; }
.rn-rival { position: absolute; bottom: 8px; left: 38%; width: clamp(64px, 30cqh, 98px); transition: left 1.6s cubic-bezier(.3, .1, .3, 1), opacity .4s; }
.rn-rival svg { display: block; width: 100%; height: auto; overflow: visible; }
.rn-rival-tag { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; opacity: 1 !important; }
.rn-rival.far { opacity: .7; }
.rn-rival.out { opacity: .3; filter: grayscale(1); }
.rn-rival.still * { animation-play-state: paused !important; }
.rn-rival:nth-child(even) .rn-rival-tag { bottom: calc(100% + 20px); }
.rn-rival:nth-child(3n) .rn-rival-tag { bottom: calc(100% + 40px); }

/* 결과 화면의 '오늘 러닝은 어땠나요?': 문구를 작은 알약 모양으로 (자리를 덜 차지하게) */
.rn-live.result .rn-pick { gap: 6px; }
.rn-live.result .rn-pick button { flex: 0 1 auto; min-height: 34px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; }
.rn-live.result .rn-q { margin: 16px 0 8px; font-size: 15px; }

/* 시작 창의 추천 코스: 네모난 지도 위에 km · 난이도 별 */
.rn-course { width: 164px; padding: 8px 8px 10px; }
.rn-course-sq { position: relative; width: 100%; aspect-ratio: 1; margin-bottom: 4px; border-radius: 12px; overflow: hidden; background: rgba(127, 140, 160, .16); }
.rn-course-sq > .rn-course-map, .rn-course-sq > .rn-course-free, .rn-course-sq > .rn-kmap { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; border-radius: 0; }
.rn-course-sq .rn-kmap-in { height: 100%; }
.rn-course-sq .rn-kmap, .rn-course-sq .rn-kmap * { pointer-events: none; }
.rn-course-over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 22px 8px 7px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .72)); }
.rn-course-over b { font-size: 16px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.rn-course-over .rn-stars i { font-size: 12px; color: rgba(255, 255, 255, .45); }
.rn-course-over .rn-stars i.on { color: #ffcc33; }
.rn-course-over .rn-stars em { display: none; }
.rn-course-tag { position: absolute; left: 6px; top: 6px; z-index: 5; padding: 2px 8px; border-radius: 999px; background: #2f7cf6; color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; }
.rn-course.on .rn-course-sq { box-shadow: 0 0 0 2px var(--accent); }
/* 인증샷 */
.rn-shot-note { margin: 0 0 10px; min-height: 18px; font-size: 13px; color: #9ff0c0; text-align: center; }
.rn-save-row.even { grid-template-columns: 1fr 1fr; }
.rn-course-over { padding: 6px 8px; background: rgba(12, 16, 26, .72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

/* 기록 상세의 인증샷 */
.rn-shot-box:empty { display: none; }
.rn-shot-box { margin: 16px 0 4px; }
.rn-shot-img { display: block; width: 100%; max-width: 420px; margin: 0 auto; border-radius: 18px; cursor: pointer; }
.rn-card-head { flex-wrap: wrap; }
.rn-card-head h3 { white-space: nowrap; }
.rn-card-head > span { margin-left: auto; text-align: right; }

/* ---------------------------------------------------------------- 배지: 얼굴이 있는 홀로그램 스티커 */
.rn-badges { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.rn-bdg { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; padding: 12px 6px 12px; border-radius: 22px; background: #14141a; text-align: center; }
.rn-bdg-pic { position: relative; width: 84px; margin-bottom: 4px; }
.rn-bdg .rn-medal { display: block; width: 100%; height: auto; overflow: visible; filter: grayscale(1) contrast(.7) brightness(1.15); opacity: .32; }
.rn-bdg-lock { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 30px; font-weight: 900; color: #8a94a6; }
.rn-bdg b { font-size: 13.5px; font-weight: 800; color: #8a94a6; letter-spacing: -.01em; }
.rn-bdg em { font-style: normal; font-size: 11.5px; font-weight: 800; line-height: 1.3; background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: saturate(1.4) brightness(.82); }
.rn-bdg span { font-size: 10.5px; line-height: 1.35; color: #8a94a6; font-variant-numeric: tabular-nums; }
.rn-bdg-bar { width: 78%; height: 6px; margin-top: 5px; border-radius: 999px; background: rgba(127, 140, 160, .22); overflow: hidden; }
.rn-bdg-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3)); }
.rn-bdg.on { background: linear-gradient(155deg, color-mix(in srgb, var(--c1) 22%, #14141a), color-mix(in srgb, var(--c3) 16%, #14141a)); }
.rn-bdg.on .rn-medal { filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .16)) drop-shadow(0 8px 10px color-mix(in srgb, var(--c2) 45%, transparent)); opacity: 1; }
.rn-bdg.on b { color: var(--rn-ink, #fff); }
.rn-bdg.on .rn-bdg-pic { animation: rn-bdg-bop 3.2s ease-in-out infinite; }
.rn-bdg:nth-child(odd) .rn-bdg-pic { rotate: -6deg; }
.rn-bdg:nth-child(even) .rn-bdg-pic { rotate: 5deg; }
.rn-bdg:nth-child(3n) .rn-bdg-pic { rotate: -2deg; animation-delay: -1.1s; }
.rn-bdg:nth-child(3n + 1) .rn-bdg-pic { animation-delay: -2.1s; }
.rn-bdg.on:active .rn-bdg-pic { animation: rn-bdg-pop .4s ease-out; }
@keyframes rn-bdg-bop { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.04); } }
@keyframes rn-bdg-pop { 0% { transform: scale(1); } 40% { transform: scale(1.22) rotate(8deg); } 100% { transform: scale(1); } }
.rn-medal-spark { transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; }
.rn-bdg.on .rn-medal-spark { animation: rn-twinkle 2.2s ease-in-out infinite; }
.rn-bdg.on .rn-medal-spark.b { animation-delay: 1.1s; }
@media (prefers-reduced-motion: reduce) { .rn-bdg.on .rn-bdg-pic, .rn-bdg.on .rn-medal-spark { animation: none; } .rn-bdg.on .rn-medal-spark { opacity: 1; } }
@media (max-width: 760px) { .rn-badges { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .rn-bdg-pic { width: 76px; } }
.rn-live.reward .rn-bdg { min-width: 112px; }
/* 펫: 다리 넷이 달릴 때 엇갈려 움직인다. 달리는 화면에서는 목줄을 매고 내 캐릭터 옆에서 달린다 */
.rn-pleg { transform-box: fill-box; transform-origin: 50% 8%; }
.rn-pet.run .rn-pleg.a { animation: rn-pleg .36s ease-in-out infinite; }
.rn-pet.run .rn-pleg.b { animation: rn-pleg .36s ease-in-out infinite -.18s; }
@keyframes rn-pleg { 0%, 100% { transform: rotate(26deg); } 50% { transform: rotate(-26deg); } }
.rn-pet .rn-tail { transform-origin: 100% 100%; }
.rn-live-pet { width: 62%; flex: none; margin-left: -4%; overflow: visible; }
.rn-leash { filter: drop-shadow(0 0 3px rgba(198, 255, 0, .7)); }
@media (prefers-reduced-motion: reduce) { .rn-pet.run .rn-pleg { animation: none; } }

/* 인증샷: 단추 셋(공유하기 · 저장하기 · 다시 찍기)과 오른쪽 위의 닫기 */
.rn-save-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rn-save-row.three .rn-big { min-height: 60px; font-size: 16.5px; padding: 0 4px; }
.rn-shot-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 18px; cursor: pointer; }

/* 돌보기: 기분 · 배부름 두 줄 + 배고플 때 흔들리는 먹이 단추 */
.rn-care-mood span { min-width: 104px; }
.rn-care-mood em { margin-left: 2px; font-style: normal; font-weight: 700; color: var(--rn-ink); }
.rn-care-mood.low em { color: #ff9c9c; }
.rn-care-mood.full .rn-bar i, .rn-care-mood.full .rn-bar > span { background: linear-gradient(90deg, #ff8fa3, #ff5c7a); }
.rn-care-mood.low .rn-bar i, .rn-care-mood.low .rn-bar > span { background: #ff6b6b; }
.rn-care-why { grid-column: 1; margin: 0; font-size: 12.5px; line-height: 1.45; color: #ff9c9c; }
.rn-care .rn-feed { grid-row: 1 / span 4; }
.rn-feed.call { border-color: #ff5c7a; animation: rn-feed-call 1.1s ease-in-out infinite; }
@keyframes rn-feed-call { 0%, 100% { transform: rotate(0) scale(1); } 20% { transform: rotate(-5deg) scale(1.05); } 40% { transform: rotate(5deg) scale(1.05); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .rn-feed.call { animation: none; } }
.rn-care .rn-care-mood { grid-template-columns: 124px minmax(0, 1fr) 42px; }
.rn-care .rn-care-mood b { text-align: right; }
.rn-care-mood span { min-width: 0; white-space: nowrap; }

/* 기록: 쪽 번호 */
.rn-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 4px 0 18px; }
.rn-pager button { min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--rn-line); border-radius: 12px; background: none; color: var(--rn-ink); font: inherit; font-weight: 650; font-variant-numeric: tabular-nums; cursor: pointer; }
.rn-pager button.on { border-color: transparent; background: var(--rn-blue); color: #fff; }
.rn-pager button:disabled { opacity: .35; cursor: default; }
.rn-pager span { color: var(--rn-sub); }
/* 함께 뛴 사람 이름 + 지우기 */
.rn-who { display: inline-flex; align-items: center; gap: 2px; }
.rn-who-x { width: 26px; height: 26px; margin-left: -2px; border: 0; border-radius: 50%; background: rgba(255, 107, 107, .16); color: #ff6b6b; font-size: 12px; line-height: 1; cursor: pointer; }
.rn-course-over b { flex: none; white-space: nowrap; font-size: 15px; }
.rn-course-over .rn-stars { flex: none; }
.rn-course-over .rn-stars i { font-size: 11px; }

/* 랭킹 시상대: 밤의 경기장 · 조명 · 색종이 + 형광 단상(1등 라임 · 2등 노랑 · 3등 주황) */
.rn-win { position: relative; overflow: hidden; margin: 4px 0 16px; padding: 14px 12px 0; border-radius: 22px; background: radial-gradient(120% 70% at 50% 108%, rgba(198, 255, 0, .22), rgba(198, 255, 0, 0) 60%), linear-gradient(180deg, #060a1c 0%, #101a44 46%, #1c1550 78%, #2a1456 100%); box-shadow: 0 14px 34px rgba(12, 16, 50, .32); isolation: isolate; }
.rn-win-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rn-win-sky .beam { position: absolute; top: -12%; width: 46%; height: 120%; transform-origin: 50% 0; background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 82%); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); mix-blend-mode: screen; animation: rn-beam 5.5s ease-in-out infinite alternate; }
.rn-win-sky .beam.a { left: -6%; transform: rotate(-24deg); }
.rn-win-sky .beam.b { left: 27%; background: linear-gradient(180deg, rgba(198, 255, 0, .38), rgba(198, 255, 0, 0) 84%); animation-duration: 4.2s; }
.rn-win-sky .beam.c { right: -6%; transform: rotate(24deg); animation-delay: -2.4s; }
@keyframes rn-beam { from { opacity: .55; } to { opacity: 1; } }
.rn-win-sky .lamps { position: absolute; top: 10px; width: 54px; height: 22px; border-radius: 5px; background: radial-gradient(circle at 5px 5px, #fff 0 2.6px, rgba(255, 255, 255, 0) 3.4px) 0 0 / 11px 11px, #1b2350; box-shadow: 0 0 22px 6px rgba(190, 215, 255, .5); }
.rn-win-sky .lamps.l { left: 12px; transform: rotate(-9deg); }
.rn-win-sky .lamps.r { right: 12px; transform: rotate(9deg); }
.rn-win-sky .crowd { position: absolute; left: 0; right: 0; bottom: 34%; height: 26px; opacity: .5; background: radial-gradient(circle at 6px 9px, #3a4686 0 5px, rgba(0, 0, 0, 0) 5.6px) 0 0 / 13px 13px, radial-gradient(circle at 6px 9px, #2a3370 0 5px, rgba(0, 0, 0, 0) 5.6px) 6px 9px / 13px 13px; -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0), #000 60%); mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0), #000 60%); }
.rn-win-sky u { position: absolute; top: -12px; width: 6px; height: 11px; border-radius: 2px; opacity: .92; animation: rn-confetti 6s linear infinite; }
.rn-win-sky u:nth-child(3n) { width: 8px; height: 8px; border-radius: 50%; }
.rn-win-sky u:nth-child(4n) { width: 4px; height: 14px; }
@keyframes rn-confetti { 0% { transform: translateY(-10px) rotate(0); } 100% { transform: translateY(360px) rotate(540deg); } }
.rn-win-title { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 2px 0 10px; font-size: 14px; font-weight: 800; letter-spacing: .08em; color: #fff; text-shadow: 0 0 14px rgba(198, 255, 0, .7); }
.rn-win-title i { font-style: normal; font-size: 17px; }
.rn-win .rn-podium { gap: 6px; margin: 0; align-items: end; }
.rn-win .rn-podium li { gap: 1px; }
.rn-podium-who { position: relative; display: grid; justify-items: center; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.rn-win .rn-podium-pic { width: 70px; height: 78px; overflow: visible; }
.rn-win .rn-podium .p1 .rn-podium-pic { width: 96px; height: 107px; }
.rn-win .rn-podium .p1 .rn-podium-who::before { content: ""; position: absolute; inset: -14% -22% 0; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(198, 255, 0, .55), rgba(198, 255, 0, 0) 68%); animation: rn-beam 2.4s ease-in-out infinite alternate; }
.rn-crown-g { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
.rn-win .rn-podium li > b { margin-top: 4px; font-size: 14px; font-weight: 800; color: #fff; }
.rn-win .rn-podium li.me > b::after { color: rgba(255, 255, 255, .7); }
.rn-win .rn-podium li > span { font-size: 13.5px; font-weight: 800; color: #c6ff00; }
.rn-win .rn-podium .p2 > span { color: #fff200; }
.rn-win .rn-podium .p3 > span { color: #ffa23a; }
.rn-win .rn-podium li > em { font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.rn-win .rn-podium-step { position: relative; display: grid; align-content: start; justify-items: center; gap: 0; width: 100%; margin-top: 8px; padding-top: 8px; border-radius: 14px 14px 0 0; color: #10140a; font-size: 0; }
.rn-win .rn-podium-step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; border-radius: 14px 14px 0 0; background: rgba(255, 255, 255, .55); }
.rn-win .rn-podium-step i { font-style: normal; font-size: 22px; line-height: 1.1; }
.rn-win .rn-podium-step b { font-size: 26px; font-weight: 900; line-height: 1; color: rgba(16, 20, 10, .82); }
.rn-win .rn-podium .p1 .rn-podium-step { height: 104px; background: linear-gradient(180deg, #e2ff4d 0%, #c6ff00 40%, #8fd400 100%); box-shadow: 0 0 26px rgba(198, 255, 0, .75), inset 0 -18px 22px rgba(60, 100, 0, .28); }
.rn-win .rn-podium .p2 .rn-podium-step { height: 78px; background: linear-gradient(180deg, #fffb7a 0%, #fff200 40%, #e0c400 100%); box-shadow: 0 0 22px rgba(255, 242, 0, .6), inset 0 -16px 20px rgba(120, 100, 0, .26); }
.rn-win .rn-podium .p3 .rn-podium-step { height: 62px; background: linear-gradient(180deg, #ffb45c 0%, #ff8a00 45%, #e06400 100%); box-shadow: 0 0 22px rgba(255, 138, 0, .6), inset 0 -14px 18px rgba(120, 40, 0, .28); }
.rn-win .rn-podium li.none .rn-podium-step { opacity: .3; box-shadow: none; }
.rn-rank.board .rn-rank-n { width: 30px; height: 30px; border-radius: 10px; background: var(--rn-soft); font-size: 13.5px; line-height: 30px; color: var(--rn-ink); }
.rn-rank-range { margin: -8px 0 12px; text-align: center; font-size: 12px; color: var(--rn-sub); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .rn-win-sky u, .rn-win-sky .beam { animation: none; } }

/* 시상대: 캐릭터가 단상 위에 서고, 이름 · 거리 · 페이스는 단상 아래에 */
.rn-win { padding-bottom: 12px; }
.rn-win .rn-podium-who { order: 1; }
.rn-win .rn-podium-step { order: 2; margin-top: -3px; margin-bottom: 8px; }
.rn-win .rn-podium li > b { order: 3; margin-top: 0; font-size: 13px; }
.rn-win .rn-podium li > span { order: 4; }
.rn-win .rn-podium li > em { order: 5; min-height: 17px; }
.rn-win .rn-podium .p1 .rn-podium-step { height: 88px; }
.rn-win .rn-podium .p2 .rn-podium-step { height: 62px; }
.rn-win .rn-podium .p3 .rn-podium-step { height: 46px; }
.rn-win .rn-podium .p3 .rn-podium-step i { display: none; }
.rn-win-sky .crowd { bottom: 46%; }
/* 코스 선택: 거리 코스 */
.rn-course-map.goal { background: #10162e; }
.rn-course-tag.goal { background: #ff8a00; }

/* 결과 화면의 코스 저장 단추 + 코스 저장 창(난이도 별 고르기) */
.rn-big.rn-course-save { width: 100%; min-height: 56px; font-size: 17px; }
.rn-big.rn-course-save i { font-style: normal; }
.rn-star-line { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.rn-star-pick { display: flex; gap: 4px; }
.rn-star-pick button { width: 44px; height: 44px; padding: 0; border: 0; background: none; font-size: 32px; line-height: 1; color: rgba(127, 140, 160, .35); cursor: pointer; }
.rn-star-pick button.on { color: #ffc21a; }
.rn-star-word { font-size: 14px; font-weight: 700; }
.rn-course-form .rn-note { margin: 6px 0 10px; }

/* 코스 선택: 한 장씩 옆으로 밀어 넘기는 큰 지도 카드 */
.rn-courses.swipe { gap: 10px; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.rn-courses.swipe .rn-course { width: 84%; padding: 8px 8px 12px; scroll-snap-align: center; scroll-snap-stop: always; }
.rn-courses.swipe .rn-course-sq { aspect-ratio: 1.3; border-radius: 14px; }
.rn-courses.swipe .rn-course > b { font-size: 16px; margin-top: 4px; }
.rn-courses.swipe .rn-course > span { font-size: 12.5px; }
.rn-courses.swipe .rn-course-over b { font-size: 19px; }
.rn-courses.swipe .rn-course-over .rn-stars i { font-size: 14px; }
.rn-course.on > b::after { content: " ✓"; }
.rn-course-dots { display: flex; justify-content: center; gap: 6px; margin: 2px 0 10px; }
.rn-course-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(127, 140, 160, .35); transition: all .2s; }
.rn-course-dots i.on { width: 20px; border-radius: 4px; background: #1c2434; }
.rn-limit input::placeholder { font-size: 13.5px; }

/* 관리자 페이지 */
.rn-admin-go { margin-left: 10px; vertical-align: middle; white-space: nowrap; }
.rn-admin-tabs { display: flex; flex-wrap: wrap; width: 100%; margin: 0 0 16px; }
.rn-admin-tabs button { flex: 1 0 auto; padding: 0 12px; }
.rn-adm-stats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.rn-adm { display: grid; }
.rn-adm-row { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(70px, .7fr)) auto; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--rn-line); }
.rn-adm-row.course { grid-template-columns: 56px minmax(160px, 2fr) repeat(3, minmax(70px, .7fr)) auto; }
.rn-adm-row:first-child { border-top: 0; }
.rn-adm-row.off { opacity: .6; }
.rn-adm-row > div { display: grid; gap: 2px; min-width: 0; }
.rn-adm-row > div > span { font-size: 11.5px; color: var(--rn-sub); overflow: hidden; text-overflow: ellipsis; }
.rn-adm-row > div > b { font-size: 14px; font-weight: 650; color: var(--rn-ink); font-variant-numeric: tabular-nums; }
.rn-adm-main b i { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--rn-soft); font-size: 10.5px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.rn-adm-main b i.warn { background: rgba(255, 170, 60, .2); color: #c26a00; }
.rn-adm-acts { display: flex !important; flex-wrap: wrap; justify-content: flex-end; gap: 6px !important; }
.rn-adm-acts .btn.small, .rn-member-acts .btn.small { min-height: 30px; padding: 3px 10px; }
.rn-course-sq.sm { width: 56px; border-radius: 10px; margin: 0; }
.rn-member.adm { grid-template-columns: minmax(190px, 1.5fr) repeat(6, minmax(60px, .55fr)) minmax(250px, 1.4fr); }
.rn-admin-form .rn-field, .rn-admin-form .row-check { display: block; margin: 10px 0; }
.rn-admin-form .rn-field input, .rn-admin-form .rn-field select { display: block; width: 100%; margin-top: 6px; }
.rn-admin-form .row-check input { margin-right: 8px; }
@media (max-width: 900px) {
  .rn-adm-row, .rn-adm-row.course { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
  .rn-adm-main, .rn-adm-acts { grid-column: 1 / -1; }
  .rn-adm-row.course .rn-course-sq.sm { display: none; }
  .rn-member.adm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rn-admin-go { margin: 6px 0 0; }
}
.rn-adm-acts .btn.small, .rn-member-acts .btn.small { white-space: nowrap; }
.rn-grid .rn-adm-row { grid-template-columns: minmax(0, 1fr) repeat(3, auto); }
.rn-grid .rn-adm-row .rn-adm-acts { grid-column: 1 / -1; justify-content: flex-start; }
.rn-admin-form input[type="datetime-local"] { min-height: 46px; padding: 8px 12px; border: 1px solid var(--rn-line, #555); border-radius: 12px; background: transparent; color: inherit; font: inherit; color-scheme: dark; }
