/* 친구 탭(캘린더) · 알림 종 · 카드 공개 범위. 토큰은 cosmos.css(:root --space·--raspberry·--honey·--harbor·--paper) */

/* ── 머리의 알림 종 ── */
.status:empty + .inbox-bell { margin-left: auto; }
.inbox-bell { position: relative; display: grid; place-items: center; width: 36px; height: 36px; margin-left: 6px; border: 1px solid #01264120; border-radius: 50%; background: var(--paper); color: var(--space); cursor: pointer; flex: none; }
.inbox-bell svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.inbox-bell b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--raspberry); color: #fff; font: 700 10px/18px var(--font); text-align: center; animation: ib-pop .4s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes ib-pop { from { transform: scale(0); } to { transform: scale(1); } }
.inbox-sheet { width: min(440px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 22px; background: var(--paper); color: var(--space); }
.inbox-sheet::backdrop { background: #01264155; }
.ib-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 8px; font-size: 17px; }
.ib-close { border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; }
.ib-list { display: grid; padding: 4px 10px 16px; max-height: 60vh; overflow: auto; }
.ib-item { display: flex; justify-content: space-between; gap: 12px; padding: 13px 10px; border-radius: 12px; color: var(--space); text-decoration: none; font-size: 14px; line-height: 1.5; }
.ib-item small { color: var(--muted); white-space: nowrap; font-size: 11px; }
.ib-item.new { background: #fff0f4; }
.ib-item.new a > span::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 6px 2px 0; border-radius: 50%; background: var(--raspberry); }
.ib-empty { padding: 26px 10px; color: var(--muted); font-size: 13px; text-align: center; }

/* ── 친구 탭 ── */
#view-friends { max-width: 760px; margin: 0 auto; padding-bottom: 96px; }
.fr-hero { display: flex; align-items: center; gap: 18px; margin: 8px 0 14px; }
.fr-hero-text h1 { margin: 2px 0 6px; font-family: var(--title, var(--font)); font-size: 30px; letter-spacing: -.04em; }
.fr-hero-text p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.fr-intro { width: 150px; height: 82px; flex: none; overflow: visible; }
.fr-intro-cell { fill: var(--paper); stroke: var(--space); stroke-width: 1.6; }
.fr-intro-num { font: 800 18px Syne, var(--font); fill: var(--space); }
.fr-intro-cards rect { fill: var(--honey); stroke: var(--space); stroke-width: 1.2; }
.fr-intro-cards rect:nth-child(2) { fill: var(--harbor); }
.fr-intro-cards rect:nth-child(3) { fill: var(--coral); }
.fr-dot { fill: var(--raspberry); stroke: var(--paper); stroke-width: 2; }
.fr-dot.d2 { fill: var(--harbor); } .fr-dot.d3 { fill: var(--honey); stroke: var(--space); stroke-width: 1; }
.fr-trail { fill: none; stroke: var(--space); stroke-width: 1.2; stroke-dasharray: 3 4; opacity: .35; }
.fr-hero.play .fr-trail { stroke-dasharray: 120; stroke-dashoffset: 120; animation: fr-draw .7s ease-out forwards; }
.fr-hero.play .t2 { animation-delay: .15s; } .fr-hero.play .t3 { animation-delay: .3s; }
.fr-hero.play .fr-dot { animation: fr-fly 1s cubic-bezier(.5, 0, .2, 1) .5s both; }
.fr-hero.play .d1 { --dx: 82px; --dy: 52px; } .fr-hero.play .d2 { --dx: -78px; --dy: 44px; } .fr-hero.play .d3 { --dx: 82px; --dy: -24px; }
.fr-hero.play .fr-dot.d2 { animation-delay: .62s; } .fr-hero.play .fr-dot.d3 { animation-delay: .74s; }
.fr-hero.play .fr-intro-cards rect { animation: fr-card .45s cubic-bezier(.3, 1.5, .5, 1) both; transform-box: fill-box; transform-origin: center bottom; }
.fr-hero.play .fr-intro-cards rect:nth-child(1) { animation-delay: 1.3s; } .fr-hero.play .fr-intro-cards rect:nth-child(2) { animation-delay: 1.42s; } .fr-hero.play .fr-intro-cards rect:nth-child(3) { animation-delay: 1.54s; }
.fr-hero.play .fr-intro-cell { animation: fr-stamp .5s ease-out 1.15s both; transform-box: fill-box; transform-origin: center; }
@keyframes fr-draw { to { stroke-dashoffset: 0; } }
@keyframes fr-fly { 0% { transform: none; opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@keyframes fr-card { from { transform: translateY(14px) scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fr-stamp { 0% { transform: scale(1); } 40% { transform: scale(1.12); stroke: var(--raspberry); } 100% { transform: scale(1); } }

.fr-seg { display: flex; gap: 6px; margin: 0 0 14px; overflow-x: auto; }
.fr-seg a { flex: none; display: flex; align-items: center; gap: 5px; padding: 8px 14px; border: 1px solid #01264120; border-radius: 999px; background: var(--paper); color: var(--space); font: 600 13px var(--font); text-decoration: none; }
.fr-seg a.on { background: var(--space); color: var(--paper); border-color: var(--space); }

.fr-people-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 18px; background: #fff8e9; }
.fr-people-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fr-people-text b { font-size: 14px; } .fr-people-text small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.fr-invite-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 12px; }
.fr-invite-box input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid #01264125; border-radius: 10px; font: 12px var(--font); background: #fff; }
.fr-invite-box small { width: 100%; color: var(--muted); font-size: 11px; }

.fr-avs { display: inline-flex; align-items: center; }
.fr-avs i { display: grid; place-items: center; width: 18px; height: 18px; margin-left: -5px; border: 1.5px solid var(--paper); border-radius: 50%; background: var(--harbor); color: #fff; font: 700 9px/1 var(--font); font-style: normal; }
.fr-avs i:first-child { margin-left: 0; }
.fr-avs i:nth-child(2) { background: var(--coral); } .fr-avs i:nth-child(3) { background: var(--space); }
.fr-avs i.more { background: var(--honey); color: var(--space); }
.fr-avs i.none { background: transparent; border: 1.5px dashed var(--muted); color: var(--muted); }
.fr-avs.big i { width: 34px; height: 34px; margin-left: -9px; font-size: 14px; border-width: 2px; }
.fr-avs.big i:first-child { margin-left: 0; }

.fr-cal { padding: 14px 12px 10px; border: 1px solid #01264114; border-radius: 22px; background: #fff; }
.fr-month { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px; }
.fr-month b { font: 700 17px var(--font); letter-spacing: -.03em; }
.fr-nav { width: 34px; height: 34px; border: 1px solid #01264120; border-radius: 50%; background: var(--paper); color: var(--space); font-size: 18px; cursor: pointer; }
.fr-week, .fr-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.fr-week span { padding: 4px 0; text-align: center; color: var(--muted); font-size: 11px; }
.fr-week span:first-child { color: var(--raspberry); }
.fr-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 64px; padding: 6px 2px 4px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--space); cursor: pointer; font-family: var(--font); animation: fr-cell-in .35s ease-out both; animation-delay: calc(var(--i) * 12ms); }
.fr-cell.pad { cursor: default; animation: none; }
.fr-cell.has { background: #f6f8f8; }
.fr-cell.past .fr-num { color: var(--muted); }
.fr-cell.today .fr-num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--space); color: var(--paper); }
.fr-cell.sel { border-color: var(--raspberry); background: #fff0f4; }
.fr-cell:focus-visible { outline: 2px solid var(--raspberry); outline-offset: 1px; }
.fr-num { font: 600 13px Syne, var(--font); line-height: 22px; }
@keyframes fr-cell-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.fr-tier { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 6px; font: 800 11px/1 Syne, var(--font); color: #fff; background: var(--muted); }
.fr-tier.t-s { background: var(--raspberry); } .fr-tier.t-a { background: var(--space); } .fr-tier.t-b { background: var(--harbor); } .fr-tier.t-c { background: #9aa6ad; } .fr-tier.t-n { background: var(--honey); color: var(--space); }
.fr-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 4px 2px; color: var(--muted); font-size: 11px; }
.fr-legend .fr-avs { margin-left: 8px; }

.fr-day { margin-top: 18px; }
.fr-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fr-day-head h2 { margin: 0; font-family: var(--title, var(--font)); font-size: 21px; letter-spacing: -.04em; }
.fr-day-head span { color: var(--muted); font-size: 12px; }
.fr-hint { color: var(--muted); font-size: 13px; }
.fr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.fr-card { overflow: hidden; border: 1px solid #01264116; border-radius: 18px; background: #fff; animation: fr-card-in .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.fr-card:nth-child(2) { animation-delay: .06s; } .fr-card:nth-child(3) { animation-delay: .12s; } .fr-card:nth-child(n+4) { animation-delay: .18s; }
.fr-card.is-mine { border-color: var(--space); }
@keyframes fr-card-in { from { opacity: 0; transform: translateY(12px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
.fr-card-face { position: relative; aspect-ratio: 3 / 4; background: #eef2f2; }
.fr-card-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fr-back { display: grid; place-content: center; gap: 4px; height: 100%; text-align: center; color: #fff; background: linear-gradient(160deg, var(--p0) 0 55%, var(--p1) 55% 100%); }
.fr-back span { font: 800 20px var(--title, var(--font)); letter-spacing: -.04em; }
.fr-back small { font-size: 11px; opacity: .8; }
.fr-stamp { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font: 800 17px/1 Syne, var(--font); background: var(--space); box-shadow: 0 0 0 2px var(--paper); transform: rotate(-10deg); }
.fr-stamp.t-s { background: var(--raspberry); } .fr-stamp.t-b { background: var(--harbor); } .fr-stamp.t-c { background: #9aa6ad; }
.fr-card-body { display: grid; gap: 6px; padding: 10px 11px 12px; }
.fr-card-who { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; }
.fr-card-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-face { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--honey); color: var(--space); font: 700 11px var(--font); }
.fr-chip { margin-left: auto; flex: none; padding: 3px 8px; border-radius: 999px; background: #e6f0f1; font-size: 11px; }
.fr-cap { margin: 0; font-size: 12px; line-height: 1.5; color: var(--space); }
.fr-pal { display: flex; gap: 4px; } .fr-pal i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #0126411a; }
.fr-react { margin: 0; color: var(--muted); font-size: 11px; }
.fr-make { display: grid; gap: 3px; margin-top: 12px; padding: 16px 18px; border: 1.5px dashed #01264140; border-radius: 18px; color: var(--space); text-decoration: none; }
.fr-make b { font-size: 15px; } .fr-make small { color: var(--muted); font-size: 12px; }

/* ── 카드 공개 범위(플랜 카드 탭 · 캘린더 내 카드) ── */
.card-visibility { margin: 14px 0 4px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #01264114; }
.cv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.cv-head a { font-size: 12px; color: var(--link, var(--space)); }
.cv-row { display: flex; align-items: center; gap: 8px; }
.cv-k { color: var(--muted); font-size: 11px; flex: none; }
.cv-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #eef2f2; }
.cv-seg button { white-space: nowrap; padding: 6px 12px; border: 0; border-radius: 999px; background: none; color: var(--space); font: 600 12px var(--font); cursor: pointer; }
.cv-seg button.on { background: var(--space); color: var(--paper); }
.cv-say { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.cv-cap { display: flex; gap: 6px; margin-top: 10px; }
.cv-cap input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid #01264125; border-radius: 10px; font: 13px var(--font); }
.fr-vis .cv-k { display: none; }
.fr-vis .cv-seg { display: flex; width: 100%; }
.fr-vis .cv-seg button { flex: 1; padding: 5px 4px; font-size: 11px; }

/* ── 머리 모션: 화면마다 다른 그림 ── */
.it-l { fill: none; stroke: var(--space); stroke-width: 1.4; opacity: .5; stroke-dasharray: 100; stroke-dashoffset: 100; }
.fr-hero.play .it-l { animation: fr-draw .7s ease-out forwards; } .fr-hero.play .it-l:nth-child(2) { animation-delay: .12s; } .fr-hero.play .it-l:nth-child(3) { animation-delay: .24s; } .fr-hero.play .it-l:nth-child(4) { animation-delay: .36s; }
.it-me { fill: var(--space); }
.it-s { fill: var(--honey); stroke: var(--space); stroke-width: .8; transform-box: fill-box; transform-origin: center; }
.it-s.s1 { fill: var(--raspberry); } .it-s.s3 { fill: var(--harbor); }
.fr-hero.play .it-s { animation: fr-card .5s cubic-bezier(.3, 1.6, .5, 1) both; } .fr-hero.play .s1 { animation-delay: .5s; } .fr-hero.play .s2 { animation-delay: .62s; } .fr-hero.play .s3 { animation-delay: .74s; } .fr-hero.play .s4 { animation-delay: .86s; }
.it-b { fill: var(--honey); stroke: var(--space); stroke-width: 1.2; transform-box: fill-box; transform-origin: center bottom; }
.it-b.b1 { fill: var(--raspberry); } .it-b.b2 { fill: var(--harbor); }
.fr-hero.play .it-b { animation: it-rise .6s cubic-bezier(.3, 1.4, .5, 1) both; } .fr-hero.play .b2 { animation-delay: .15s; } .fr-hero.play .b1 { animation-delay: .3s; } .fr-hero.play .b3 { animation-delay: .45s; }
.it-n { font: 800 14px Syne, var(--font); fill: #fff; }
.it-stamp { fill: var(--paper); stroke: var(--raspberry); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.it-st { font: 800 13px Syne, var(--font); fill: var(--raspberry); }
.fr-hero.play .it-stamp, .fr-hero.play .it-st { animation: it-stampin .45s cubic-bezier(.3, 1.8, .5, 1) .9s both; transform-box: fill-box; transform-origin: center; }
@keyframes it-rise { from { transform: scaleY(0); } to { transform: none; } }
@keyframes it-stampin { from { transform: scale(2.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.it-r { fill: none; stroke: var(--harbor); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; }
.fr-hero.play .it-r { animation: it-ping 1.2s ease-out both; } .fr-hero.play .r2 { animation-delay: .2s; } .fr-hero.play .r3 { animation-delay: .4s; }
.it-p { fill: var(--raspberry); transform-box: fill-box; transform-origin: center; } .it-p.p2 { fill: var(--honey); stroke: var(--space); } .it-p.p3 { fill: var(--harbor); }
.fr-hero.play .it-p { animation: fr-card .4s cubic-bezier(.3, 1.6, .5, 1) both; } .fr-hero.play .p1 { animation-delay: .7s; } .fr-hero.play .p2 { animation-delay: .85s; } .fr-hero.play .p3 { animation-delay: 1s; }
@keyframes it-ping { from { transform: scale(.2); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: .7; } }

/* ── ③ 리액션 ── */
.rx { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.rx-btn { padding: 5px 8px; border: 1px solid #01264122; border-radius: 999px; background: #fff; color: var(--space); font: 600 11px var(--font); cursor: pointer; }
.rx-btn b { font-family: Syne, var(--font); }
.rx-btn.on { background: var(--raspberry); border-color: var(--raspberry); color: #fff; }
.rx-btn.pop { animation: rx-pop .35s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes rx-pop { 50% { transform: scale(1.18); } }
.rx-more { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 2px 6px; }
.rx-own { gap: 8px; color: var(--muted); font-size: 11px; }
.rx-count b { color: var(--space); }
.rx-who { border: 0; background: none; color: var(--link, var(--space)); font: 600 11px var(--font); text-decoration: underline; cursor: pointer; padding: 0; }
.rx-sheet { width: min(420px, calc(100% - 24px)); border: 0; border-radius: 22px; padding: 6px 18px 18px; background: var(--paper); color: var(--space); }
.rx-sheet::backdrop { background: #01264155; }
.rx-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 8px; font-size: 16px; }
.rx-x { border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; }
.rx-purposes, .rx-safety { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rx-purposes button, .rx-safety button { display: flex; align-items: center; gap: 8px; padding: 14px; border: 1px solid #01264120; border-radius: 14px; background: #fff; color: var(--space); font: 600 14px var(--font); cursor: pointer; }
.rx-safety button.danger { color: #b0003f; }
.rx-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 12px 0 0; }
.rx-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rx-people li { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: #fff; font-size: 13px; }
.rx-people span { color: var(--muted); }

/* ── 알림함 버튼 ── */
.ib-item { display: grid; gap: 8px; }
.ib-item a { display: flex; justify-content: space-between; gap: 12px; color: var(--space); text-decoration: none; }
.ib-acts { display: flex; gap: 6px; }
.ib-done { color: var(--muted); font-size: 11px; font-style: normal; }

/* ── ② 궁합 지도 ── */
.cm-hint { color: var(--muted); font-size: 13px; line-height: 1.6; }
.cm-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.cm-bar b { color: var(--space); }
#view-friends .cm-toggle { display: flex !important; flex-direction: row; align-items: center; gap: 5px; white-space: nowrap; margin: 0; font-size: 12px; font-weight: 500; }
#view-friends .cm-toggle input { width: 16px; height: 16px; margin: 0; }
.cm-stage { border-radius: 24px; background: radial-gradient(circle at 50% 50%, #0d3454 0%, #012641 70%); padding: 6px; }
.cm-svg { display: block; width: 100%; max-width: 520px; margin: 0 auto; overflow: visible; }
.cm-ring { fill: none; stroke: #ffffff18; stroke-dasharray: 2 5; }
.cm-ring-label { fill: #ffffff55; font: 10px var(--font); text-anchor: middle; }
.cm-line { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cm-draw .8s ease-out forwards; animation-delay: calc(.15s + var(--i) * 70ms); }
.cm-edge.faint .cm-line { stroke-dasharray: .02 .03; stroke-dashoffset: 0; animation: none; opacity: .5; }
.cm-edge.between { display: none; } .show-between .cm-edge.between { display: inline; } .cm-edge.between .cm-line { stroke-dasharray: .03 .03; stroke-dashoffset: 0; animation: none; opacity: .7; }
.cm-hit { stroke: transparent; stroke-width: 18; fill: none; cursor: pointer; }
@keyframes cm-draw { to { stroke-dashoffset: 0; } }
.cm-me circle { stroke: var(--paper); stroke-width: 3; }
.cm-me-label { fill: #fff; font: 800 15px var(--font); text-anchor: middle; }
.cm-star { cursor: pointer; transform-box: view-box; animation: cm-pop .55s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.4s + var(--i) * 90ms); outline: none; }
@keyframes cm-pop { from { transform: translate(calc(var(--x) * -1), calc(var(--y) * -1)) scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.cm-glow { opacity: .22; animation: cm-twinkle 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }
@keyframes cm-twinkle { 50% { opacity: .05; } }
.cm-shape { stroke: #fff; stroke-width: 1.2; }
.cm-star.book .cm-shape { opacity: .55; }
.cm-name { fill: #fff; font: 600 11px var(--font); text-anchor: middle; paint-order: stroke; stroke: #012641; stroke-width: 3px; }
.picking .cm-star:not(.sel), .picking .cm-edge[data-key]:not(.sel) { opacity: .3; }
.cm-star.sel .cm-glow { opacity: .55; animation: none; }
.cm-edge.sel .cm-line { stroke-width: 3.5; }
.cm-star:focus-visible .cm-shape { stroke: var(--raspberry); stroke-width: 3; }
.cm-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 2px 12px; color: var(--muted); font-size: 11px; }
.cm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 3px; vertical-align: -1px; }
.cm-el i { margin-right: 1px; }
.cm-card { padding: 16px; border-radius: 20px; background: #fff; border: 1px solid #01264114; animation: fr-card-in .4s ease-out both; }
.cm-top { display: flex; gap: 14px; align-items: center; }
.cm-score { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--space); color: var(--paper); font: 800 24px/1 Syne, var(--font); }
.cm-score small { font-size: 10px; font-weight: 600; margin-top: -14px; }
.cm-name-lg { font-size: 17px; letter-spacing: -.03em; margin-right: 6px; }
.cm-level { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--c); color: #fff; font: 700 11px var(--font); }
.cm-basis { margin-left: 6px; color: var(--muted); font-size: 11px; }
.cm-role { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cm-role b { color: var(--space); }
.cm-why { margin: 12px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.cm-purposes { display: flex; gap: 6px; overflow-x: auto; margin: 14px 0 4px; padding-bottom: 2px; }
.cm-purposes button { flex: none; padding: 7px 12px; border: 1px solid #01264120; border-radius: 999px; background: #fff; color: var(--space); font: 600 12px var(--font); cursor: pointer; }
.cm-purposes button.on { background: var(--space); color: var(--paper); }
.cm-days-title { margin: 12px 0 8px; font-size: 12px; color: var(--muted); }
.cm-days { display: grid; gap: 8px; }
.cm-day { padding: 12px; border-radius: 14px; background: #f6f8f8; animation: fr-card-in .4s ease-out both; animation-delay: calc(var(--i) * 80ms); }
.cm-day-top { display: flex; justify-content: space-between; align-items: center; }
.cm-day-score { font: 800 18px Syne, var(--font); color: var(--raspberry); }
.cm-day p { margin: 4px 0; font-size: 12px; line-height: 1.5; }
.cm-day small { color: var(--muted); font-size: 11px; }
.cm-day-acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cm-empty { padding: 30px 20px; text-align: center; border-radius: 20px; background: #012641; color: var(--paper); }
.cm-empty p { opacity: .75; font-size: 13px; }

/* ── ④ 랭킹 ── */
.rk-controls { display: grid; gap: 8px; margin-bottom: 12px; }
.rk-dates, .rk-tags, .rk-segs { display: flex; gap: 6px; overflow-x: auto; align-items: center; padding-bottom: 2px; }
.rk-dates button, .rk-tags button { flex: none; padding: 7px 12px; border: 1px solid #01264120; border-radius: 999px; background: #fff; color: var(--space); font: 600 12px var(--font); cursor: pointer; }
.rk-dates button.on, .rk-tags button.on { background: var(--space); color: var(--paper); }
.rk-date input, .rk-tags select { padding: 6px 10px; border: 1px solid #01264120; border-radius: 999px; background: #fff; font: 12px var(--font); color: var(--space); }
.rk-segs { gap: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rk-title { margin: 6px 0 10px; font-family: var(--title, var(--font)); font-size: 22px; letter-spacing: -.04em; }
.rk-title small { display: block; margin-top: 2px; font: 500 12px var(--font); color: var(--muted); letter-spacing: 0; }
.rk-me { display: grid; gap: 2px; padding: 12px 14px; margin-bottom: 10px; border-radius: 16px; background: var(--space); color: var(--paper); text-decoration: none; }
.rk-me span, .rk-me small { font-size: 12px; opacity: .8; }
.rk-me.muted { background: #eef2f2; color: var(--space); }
.rk-me.cta { background: #fff0f4; color: var(--space); border: 1.5px dashed var(--raspberry); }
.rk-join { display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin-bottom: 10px; border-radius: 16px; background: #fff8e9; font-size: 12px; line-height: 1.5; }
.rk-ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rk-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 16px; background: #fff; border: 1px solid #01264112; animation: fr-card-in .4s ease-out both; animation-delay: calc(var(--i) * 50ms); }
.rk-row.me { border-color: var(--space); }
.rk-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 800 14px Syne, var(--font); color: var(--muted); }
.rk-row.p1 .rk-n { background: var(--raspberry); color: #fff; } .rk-row.p2 .rk-n { background: var(--space); color: #fff; } .rk-row.p3 .rk-n { background: var(--harbor); color: #fff; }
.rk-row.podium .rk-n { animation: it-stampin .45s cubic-bezier(.3, 1.8, .5, 1) both; animation-delay: calc(.2s + var(--i) * 80ms); }
.rk-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--space); text-decoration: none; }
.rk-who img, .rk-av { flex: none; width: 40px; height: 52px; border-radius: 10px; object-fit: cover; }
.rk-av { display: grid; place-items: center; background: var(--honey); font: 700 15px var(--font); }
.rk-who span { display: grid; min-width: 0; }
.rk-who b { font-size: 14px; } .rk-who small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-pts { font: 800 20px Syne, var(--font); color: var(--space); }
.rk-empty { padding: 18px; border-radius: 16px; background: #f6f8f8; color: var(--muted); font-size: 13px; text-align: center; }
.rk-formula { margin: 10px 2px; color: var(--muted); font-size: 11px; }

/* ── ⑤ 주변 친구 ── */
.nb-intro { padding: 16px; border-radius: 20px; background: #012641; color: var(--paper); }
.nb-intro b { font-size: 16px; } .nb-intro p { font-size: 13px; opacity: .8; line-height: 1.6; }
.nb-shown { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12px; }
.nb-shown li { display: flex; gap: 8px; } .nb-shown span { flex: none; width: 70px; opacity: .6; }
.nb-block { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff0f4; color: #982340; font-size: 12px; opacity: 1 !important; }
.nb-form { display: grid; gap: 12px; margin-top: 14px; }
.nb-form[inert] { opacity: .45; }
.nb-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; }
.nb-form input[name=nickname] { padding: 11px 12px; border: 1px solid #01264125; border-radius: 12px; font: 15px var(--font); }
.nb-form fieldset { border: 0; padding: 0; margin: 0; } .nb-form legend { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.nb-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-cats button { padding: 7px 12px; border: 1px solid #01264120; border-radius: 999px; background: #fff; color: var(--space); font: 600 12px var(--font); cursor: pointer; }
.nb-cats button.on { background: var(--space); color: var(--paper); }
.nb-check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 8px; font-weight: 500 !important; line-height: 1.5; }
.nb-check.consent { padding: 10px 12px; border-radius: 12px; background: #fff8e9; }
.nb-acts { display: flex; gap: 8px; }
.nb-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: #e6f0f1; font-size: 12px; margin-bottom: 8px; }
.nb-status span { flex: 1; }
.nb-status .link { border: 0; background: none; color: var(--space); font: 600 12px var(--font); text-decoration: underline; cursor: pointer; }
.nb-list { display: grid; gap: 8px; }
.nb-card { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid #01264112; animation: fr-card-in .4s ease-out both; animation-delay: calc(var(--i) * 60ms); }
.nb-ring { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(var(--raspberry) calc(var(--p) * 1%), #eef2f2 0); }
.nb-ring b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; font: 800 16px Syne, var(--font); }
.nb-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.nb-name { display: flex; align-items: center; } .nb-name b { font-size: 15px; }
.nb-body small { color: var(--muted); font-size: 11px; }
.nb-body p { margin: 0; font-size: 12px; line-height: 1.5; }
.nb-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.nb-tags span { padding: 2px 7px; border-radius: 999px; background: #f0f2f2; font-size: 10px; }
.nb-tags span.same { background: var(--honey); }
.nb-act { flex: none; align-self: flex-end; }

@media (max-width: 760px) {
  .fr-hero { gap: 10px; }
  .fr-intro { width: 112px; height: 62px; }
  .fr-hero-text h1 { font-size: 25px; }
  .fr-cell { min-height: 56px; padding-top: 4px; }
  .fr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .inbox-bell { width: 32px; height: 32px; }
  .nb-card { flex-wrap: wrap; } .nb-act { width: 100%; } .nb-act .btn { width: 100%; }
  .rk-title { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .fr-hero.play *, .fr-cell, .fr-card, .inbox-bell b, .cm-line, .cm-star, .cm-glow, .cm-card, .cm-day, .rk-row, .rk-n, .nb-card, .rx-btn { animation: none !important; }
  .cm-line { stroke-dashoffset: 0; } .it-l { stroke-dashoffset: 0; }
  .fr-hero.play .fr-dot { opacity: 0; }
}
